From 1e6d21a54e0ae8e1f79876db8a89abe0502046da Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 30 Apr 2024 11:17:43 +0100 Subject: [PATCH] Merge latest work into tvi (#81) * FileManager - Only show tenant bucket * WIP - Lang * WIP - Lang latest * Initial Zora implementation - Add some sample translations to use as a base * WIP latest translations * Updated readme * WIP - Lang latest changes * Translations * WIP - translations + new course page * WIP - new translations + changed website course page * WIP latest with FAQ * Show refund message + footer component * feat: Implement BE that allows for CMS pages to be created with course(s) attached * Added auth translations * WIP - New footer changes for landing page * WIP - Remove unnecessary route * Logic for Email to sign up after purchase * feat(course-template-fe): Add FE for course pages * feat(course-template-fe): Add FE for course pages * Changes to landing page * Clean up * Fix for organisation unit creator * Fix for organisation units edit * Fix for side menu icon * Implement organisation unit cms field * Org updates - Add snap and tiktok - Fix email required - Update twitter/x label * Org updates - Add snap and tiktok - Fix email required - Update twitter/x label * Add page-meta to page show and course template * Latest * remove unused import * Add keywords metadata * WIP * Show section files in all lectures for student * Implement theme settings - Add new color vars to support theming - Add UI/UX to set colours in admin - Update Course FE components to use theme * Yarn prod & zora generate * Implement repeater functionality into faqs section - Fix repeater CMS selector - Ensure course template uses the repeater data * Updates for course show template * Updates for course show template * yarn prod * yarn prod * yarn prod * yarn prod * yarn prod * yarn prod * yarn prod * yarn prod * Commit * Commit * Allow super users to manually create student accounts * ignition in core deps * ignition in core deps * Composer * Composer * Updated img links * Basic Page/Layout FE * Basic Page/Layout FE * yarn prod * Fixes * Remove unused script * Latest changes and text next to video * Translations * Adjustments to payments * VAT message for Lei * Add settings to landlord * UX changes to footer and improvements * Clean up * UX changes * Fixes and improv * Only load theme for tenants * Only load theme for tenants * Handle the redemption/mail outside of commit to ensure data persists * Implement GTM support - Add Setting for GTM ID - Refactor head to allow for tenant head data to be set, including GTM script - Add dataLayer.push event for navigation * Implement filter to hide decimals for whole numbers * Add logic for ignoring stripe events * Ensure only active pages are shown on the website * Migrate from Laravel Mix to Vite (#72) * Add npm dependencies * Update build scripts * Configure Vite * Remove `webpack.mix.js` * Use ES modules * Rename ENV variables * Add PostCSS configuration for Tailwind * Use new `@vite` Blade directive * Add `.vue` extension to Vue imports * Ignore build assets * PostCSS Setup --------- Co-authored-by: Shift * Implement CMS Redirects (#73) * Fix for dayjs locale (#74) Fix for landlord web middleware Add inertia head Fix inertia versioning Bump inertia php version * Add form column for submit button text * Refactor course components to sit within website/course/ * yarb prod * yarn prod * refactor course components * Implement course interest form for non-published courses (#75) * Small changes and improvements * Call to Action section * Latest * Changes to UX + wip animations * minor chore: Style cleanups (#79) * minor chore: Style cleanups - Remove styles from base / create anime.css - Remove usages of style="" - Add in missing en translations * yarn prod * Ignore Stripe Checkout Session Expired requests. * Fix tenant scheduled commands * Test commit for scheduled commandfs * Test commit for scheduled commands * Prod commit to enable scheduled jobs * Changes for logo and small impro * WIP * Yt field on org unit * WIP * Student video show updates * Add GTM dataLayer push on course purchase (#83) * Fix vue-cookie issue (#84) * - Allow '/' for page URLs - Allow non-'/' urls for redirect to's * - Allow '/' for page URLs - Allow non-'/' urls for redirect to's * - Revert slugify changes - was working as expected - Refactor sticky-menu css * - Revert slugify changes - was working as expected - Refactor sticky-menu css * Email updates * Fix * Fix * Fix * Fix * Locale for checkout * Multiple updates for live: - Sort purchases by newest first - Student admin FE= - Student course - show latest incomplete course when loading the page - Minimise toggled sections on mobile by default * Add date to purchases Remove hard coded redirect from home page * Fix course purchase date * Template update * Template update * Quick changes + yarn prod * Revert format change * Fixed conflict * Add third party mailer setting and config bootstrapper (#86) * Add third party mailer setting and config bootstrapper * Tenancy bootstrapper fix * Fixes * Updates with test mail and correct config handling * Add comment * Yarn prod * Yarn prod * Yarn prod * Add internal notifications for form submissions (#80) * WIP commit for initial notificaiton email and preview * Send internal mail notification on form submission * Remove hard coded "Minducate" reference in mails (#89) - Implement helper to allow us to us the theme to get the tenant_name as needed * yarn prod * Add domain to tenant store action * Add xdebug support * Add dignostics route * Fix tenant migrations running on artisan migrate * Initial fix for tests (#90) - Tests still take too long to run per test but can at least test! * Fix EDU summary length check causing error when no summary is set * Removed unwanted sign up button * Yarn prod --------- Co-authored-by: dorusomcutean Co-authored-by: dorusomcutean <25460111+dorusomcutean@users.noreply.github.com> Co-authored-by: Shift --- .../faqs/adding-new-tabler-icons.md | 73 + .env.example | 4 +- README.md | 15 +- app/Actions/CMS/Page/PageQueryAction.php | 18 +- .../CMS/Redirect/RedirectQueryAction.php | 31 + .../CMS/Redirect/RedirectStoreAction.php | 14 + .../CMS/Redirect/RedirectUpdateAction.php | 19 + .../FormSubmissionStoreAction.php | 21 +- .../Purchase/CoursePurchaseQueryAction.php | 2 + .../RedeemUserCoursePurchasesAction.php | 5 +- .../Student/StudentCourseShowAction.php | 2 +- .../FileManagerFileStoreAction.php | 13 +- .../Landlord/Tenant/TenantStoreAction.php | 13 +- .../Setting/MailerSettingTestAction.php | 26 + app/Actions/Setting/SettingUpdateAction.php | 3 + .../ConfigTenancyBootstrapper.php | 25 +- .../ProcessCoursePurchasePaymentsDue.php | 4 - app/Console/Kernel.php | 12 +- app/Helpers/Helper.php | 157 + app/Helpers/Tenant.php | 19 + .../Admin/CMS/RedirectController.php | 88 + .../Admin/CRM/OrganisationUnitController.php | 2 +- .../Admin/EDU/Course/CourseController.php | 16 +- .../Admin/EDU/Lecture/LectureController.php | 3 - .../Controllers/Admin/SettingController.php | 12 + .../AdminApi/CMS/TemplateController.php | 2 +- .../AdminApi/EDU/CourseController.php | 27 + .../FileManagerDirectoryController.php | 7 +- .../Settings/MailerTestController.php | 26 + app/Http/Controllers/Auth/LoginController.php | 1 + .../Student/Admin/HomeController.php | 7 +- .../Student/Auth/RegisterController.php | 22 +- .../Stripe/StripeCourseCheckoutController.php | 23 +- .../Website/EDU/CourseController.php | 2 + .../Controllers/Website/PageController.php | 4 + app/Http/Kernel.php | 15 +- app/Http/Middleware/CheckForCmsRedirect.php | 38 + .../Admin/CMS/Page/PageStoreRequest.php | 2 + .../CMS/Redirect/RedirectIndexRequest.php | 18 + .../CMS/Redirect/RedirectStoreRequest.php | 26 + .../CMS/Redirect/RedirectUpdateRequest.php | 22 + .../Admin/CRM/Form/FormStoreRequest.php | 3 +- .../Admin/EDU/Course/CourseIndexRequest.php | 14 +- .../EDU/Lecture/LectureUpdateRequest.php | 2 +- .../Setting/ThemeSettingsUpdateRequest.php | 18 + .../ThirdPartySettingsUpdateRequest.php | 4 +- .../Setting/MailerSettingTestRequest.php | 35 + .../Resources/Admin/CMS/MetadataResource.php | 2 + .../Resources/Admin/CMS/RedirectResource.php | 23 + app/Http/Resources/Admin/CRM/FormResource.php | 1 + .../Admin/EDU/Section/SectionResource.php | 23 + .../Setting/ThemeSettingEditResource.php | 41 + .../Setting/ThirdPartySettingEditResource.php | 17 + .../Resources/Web/CMS/FullPageResource.php | 1 + app/Http/Resources/Web/CRM/FormResource.php | 1 + .../Resources/Web/EDU/CourseListResource.php | 3 + .../Resources/Web/EDU/CourseShowResource.php | 36 +- app/Interfaces/CMS/TemplateFieldInterface.php | 34 +- app/Interfaces/CRM/FormFieldInterface.php | 4 + .../EDU/Course/CoursePurchaseInterface.php | 6 +- app/Interfaces/RoleInterface.php | 1 + app/Interfaces/ThemeInterface.php | 79 + app/Interfaces/ThirdPartyInterface.php | 99 + .../Course/ProcessCoursePurchaseRegister.php | 27 + app/Mail/CRM/Form/FormSubmittedInternal.php | 53 + .../EDU/Course/CoursePurchaseRegister.php | 63 + app/Mail/EDU/Course/TestEmail.php | 57 + app/Mail/Setting/MailerTest.php | 41 + app/Models/CMS/Redirect.php | 77 + app/Models/CRM/Form.php | 30 +- app/Models/CRM/FormField.php | 15 + app/Models/CRM/FormSubmission.php | 15 +- app/Models/EDU/Course/Course.php | 4 +- app/Models/EDU/Section/Section.php | 11 + app/Models/EDU/Section/SectionFiles.php | 23 + app/Models/Settings/ThemeSettings.php | 74 + app/Models/Settings/ThirdPartySettings.php | 9 +- app/Models/Tenant.php | 13 +- app/Providers/InertiaServiceProvider.php | 2 +- app/Providers/RouteServiceProvider.php | 2 +- app/Traits/Admin/EDU/CourseActions.php | 2 - app/Traits/Admin/Email/PreviewsMailables.php | 64 +- app/Traits/Base/ManagesTenancyMailer.php | 127 + app/Traits/CMS/ResourceHasContent.php | 57 +- .../CreatesCheckoutSessionForCourse.php | 2 + composer.json | 14 +- composer.lock | 1236 +++-- config/mail.php | 111 +- config/meta.php | 2 +- config/services.php | 35 +- config/settings.php | 2 +- config/tenancy.php | 2 +- database/factories/CMS/RedirectFactory.php | 39 + .../factories/CRM/OrganisationUnitFactory.php | 2 + ..._create_landlord_base_permission_roles.php | 36 +- ...023_09_13_000000_create_settings_table.php | 29 + ...22_115240_create_base_permission_roles.php | 36 +- ...02_04_000000_create_cms_metadata_table.php | 1 + ...09_13_200859_create_edu_lectures_table.php | 2 +- ...024_03_09_000000_create_theme_settings.php | 35 + ..._201037_create_edu_section_files_table.php | 30 + ...update_third_party_settings_add_gtm_id.php | 11 + ...3_22_000000_create_cms_redirects_table.php | 44 + ...alter_crm_forms_add_submit_button_text.php | 28 + ...update_third_party_settings_add_mailer.php | 11 + database/seeders/EmptySeeder.php | 15 + docker-compose.yml | 1 + package.json | 19 +- postcss.config.js | 7 + public/build/assets/ArrayGroup.46c0a3b3.js | 1 + public/build/assets/CheckboxGroup.7b759576.js | 1 + public/build/assets/Confirm.583f4cb4.js | 1 + .../assets/ConfirmationModal.242a99d0.js | 1 + public/build/assets/CourseFooter.585c86a3.js | 1 + public/build/assets/Create.01776621.js | 1 + public/build/assets/Create.104a8ccd.js | 1 + public/build/assets/Create.1d8384ed.js | 1 + public/build/assets/Create.623d94ee.js | 1 + public/build/assets/Create.65796194.js | 1 + public/build/assets/Create.8b338964.js | 1 + public/build/assets/Create.9b1c6787.js | 1 + public/build/assets/Create.a039d33f.js | 1 + public/build/assets/Create.a06b8a57.js | 1 + public/build/assets/Create.a0dfac91.js | 1 + public/build/assets/Create.b08dc421.js | 1 + public/build/assets/Create.c4bffa52.js | 1 + public/build/assets/Create.cb1bb46a.js | 1 + public/build/assets/Create.d20ee538.js | 1 + public/build/assets/Create.d415ad4b.js | 1 + public/build/assets/Create.dc6785fd.js | 1 + public/build/assets/Create.fbafad00.js | 1 + .../assets/DateTimePickerGroup.36fef719.js | 1 + public/build/assets/Edit.3a64c03f.js | 1 + public/build/assets/Edit.4cc99e10.js | 1 + public/build/assets/Edit.4d42b7d4.js | 1 + public/build/assets/Edit.74bf91fc.js | 1 + public/build/assets/Edit.79dd354d.js | 1 + public/build/assets/Edit.83ddf47c.js | 1 + public/build/assets/Edit.8c1caf79.js | 1 + public/build/assets/Edit.8d25ca1f.js | 1 + public/build/assets/Edit.91c008d3.js | 1 + public/build/assets/Edit.922955c0.js | 1 + public/build/assets/Edit.978f8d21.js | 1 + public/build/assets/Edit.a623ba83.js | 1 + public/build/assets/Edit.ada03e97.js | 1 + public/build/assets/Edit.b00dcb2a.js | 1 + public/build/assets/Edit.c516894b.js | 1 + public/build/assets/Edit.d0258602.js | 1 + public/build/assets/Edit.d160eb80.js | 1 + public/build/assets/Edit.d1a7952b.js | 1 + public/build/assets/Edit.f1dc4dd8.js | 1 + public/build/assets/Edit.f690a4d6.js | 1 + public/build/assets/Edit.f9606cf6.js | 1 + public/build/assets/Email.287632b0.js | 1 + public/build/assets/Email.7525ef1b.js | 1 + public/build/assets/Error.1c1a5db4.js | 1 + public/build/assets/Error.79c094aa.js | 1 + public/build/assets/Error.8da45f54.js | 1 + public/build/assets/Error.df4fa7f5.js | 1 + .../build/assets/FormFieldEditor.b347e16b.css | 1 + .../build/assets/FormFieldEditor.e5430ae4.js | 1 + public/build/assets/GenericModal.3f75002a.js | 1 + public/build/assets/Index.17940c7c.js | 1 + public/build/assets/Index.1c1af3f0.js | 1 + public/build/assets/Index.2e286002.js | 1 + public/build/assets/Index.2e6ffc28.js | 1 + public/build/assets/Index.3f6690d4.js | 1 + public/build/assets/Index.4223f71d.js | 1 + public/build/assets/Index.431eb08b.css | 1 + public/build/assets/Index.43f325e1.js | 1 + public/build/assets/Index.47975f97.js | 1 + public/build/assets/Index.4c323bd5.js | 1 + public/build/assets/Index.4c3e42a0.js | 1 + public/build/assets/Index.5037e854.js | 1 + public/build/assets/Index.58bb9fee.js | 1 + public/build/assets/Index.62203f14.js | 1 + public/build/assets/Index.6df621a4.js | 1 + public/build/assets/Index.6e120ca2.js | 1 + public/build/assets/Index.70b9066f.js | 1 + public/build/assets/Index.8c47121c.js | 1 + public/build/assets/Index.8e4e8571.js | 1 + public/build/assets/Index.ad329ada.js | 1 + public/build/assets/Index.ba613796.js | 1 + public/build/assets/Index.c6dbc88a.js | 1 + public/build/assets/Index.cecb4ae3.js | 1 + public/build/assets/Index.d2ba76f2.js | 1 + public/build/assets/Index.d696434d.js | 1 + public/build/assets/Index.d8a5dc92.js | 1 + public/build/assets/Index.e94fc6a9.css | 1 + public/build/assets/Index.ebf74275.js | 1 + public/build/assets/Index.efc25151.js | 1 + public/build/assets/Index.f2c6fdf5.js | 1 + public/build/assets/Index.f652474a.js | 1 + public/build/assets/Index.f7839a10.js | 1 + .../assets/InlineCheckboxGroup.b3aa2b58.js | 1 + public/build/assets/InputGroup.513e0dd4.js | 1 + public/build/assets/Login.364765db.js | 1 + public/build/assets/Login.3e5bd779.js | 1 + public/build/assets/Login.b6f91a43.js | 1 + public/build/assets/LogoLight.f7426689.js | 35 + public/build/assets/LogoLight.fab1a1ae.css | 1 + .../build/assets/MenuItemsEditor.ac46952f.css | 1 + .../build/assets/MenuItemsEditor.d3626ff3.js | 1 + public/build/assets/Preview.605dcace.js | 1 + public/build/assets/Preview.72090992.js | 1 + public/build/assets/Preview.8fb72e53.js | 1 + public/build/assets/Register.2d4e8bdb.js | 1 + public/build/assets/Register.724812d1.js | 1 + public/build/assets/Reset.4c08c7e2.js | 1 + public/build/assets/Reset.97ac2872.js | 1 + .../assets/SectionItemsEditor.28200d00.css | 1 + .../assets/SectionItemsEditor.845c8cbd.js | 1 + .../assets/SelectMultipleGroup.445aa1ac.js | 1 + public/build/assets/Show.0629b321.js | 1 + public/build/assets/Show.90bc0a44.js | 1 + public/build/assets/Show.ab6aa26a.js | 86 + public/build/assets/Show.b9570225.js | 1 + public/build/assets/Show.c3c9e29f.js | 1 + public/build/assets/Show.edafe552.js | 1 + .../assets/TemplateFieldEditor.7dee26e3.js | 1 + .../assets/TemplateFieldEditor.d4d3e141.css | 1 + public/build/assets/UrlEditor.6a278f5e.js | 1 + public/build/assets/Verify.95e566d7.js | 1 + public/build/assets/app.7909fd0b.css | 2 + public/build/assets/app.7916e14e.css | 2 + public/build/assets/app.795ed856.js | 1 + public/build/assets/app.c52b09a2.js | 3 + .../assets/checkbox-form-group.99a615f1.js | 1 + public/build/assets/vendor.21c2b6f5.js | 185 + .../build/assets/vuedraggable.umd.700457d3.js | 8 + public/build/manifest.json | 1401 ++++++ public/css/app.css | 5 +- public/css/landlord/app.css | 4 +- public/js/app.js | 2 - public/js/app.js.LICENSE.txt | 47 - public/js/landlord/app.js | 2 - public/js/landlord/app.js.LICENSE.txt | 40 - public/mix-manifest.json | 8 - public/vendor/tinymce/skins/sigi/skin.min.css | 2 +- resources/css/app.css | 2 +- resources/css/core/anime.css | 90 + resources/css/core/base.css | 14 +- resources/css/core/button.css | 24 +- resources/css/core/custom-includes.css | 2 + resources/css/core/helpers.css | 10 + resources/css/core/theme.css | 8 + resources/css/landlord/core/theme.css | 8 + resources/js/app.js | 39 +- resources/js/bootstrap.js | 10 +- resources/js/component-registration.js | 40 +- .../admin/cms/content/ContentEditor.vue | 24 +- .../content/content_fields/CmsMenuField.vue | 2 +- .../content/content_fields/CrmFormField.vue | 3 +- .../CrmOrganisationUnitField.vue | 84 + .../content/content_fields/EduCourseField.vue | 84 + .../cms/content/content_fields/ImageField.vue | 2 +- .../content/content_fields/NumberField.vue | 2 +- .../content/content_fields/RepeaterField.vue | 4 +- .../content/content_fields/TextAreaField.vue | 2 +- .../cms/content/content_fields/TextField.vue | 2 +- .../admin/cms/menus/MenuItemDraggable.vue | 4 +- .../admin/cms/menus/MenuItemModal.vue | 2 +- .../admin/cms/menus/MenuItemsEditor.vue | 4 +- .../admin/cms/metadata/MetadataEditor.vue | 14 +- .../cms/templates/TemplateFieldEditor.vue | 2 +- .../template_fields/TemplateField.vue | 14 +- .../NumberSettings.vue | 2 +- .../RepeaterSettings.vue | 3 +- .../TextAreaSettings.vue | 2 +- .../template_field_settings/TextSettings.vue | 2 +- .../components/admin/cms/urls/UrlEditor.vue | 6 +- .../admin/crm/forms/FormFieldEditor.vue | 2 +- .../admin/crm/forms/form_fields/FormField.vue | 12 +- .../form_field_settings/NumberSettings.vue | 2 +- .../form_field_settings/TextAreaSettings.vue | 2 +- .../form_field_settings/TextSettings.vue | 2 +- .../admin/edu/sections/LectureItemModal.vue | 4 +- .../edu/sections/SectionItemDraggable.vue | 6 +- .../admin/edu/sections/SectionItemModal.vue | 115 +- .../admin/edu/sections/SectionItemsEditor.vue | 4 +- .../admin/file_manager/FileManager.vue | 8 +- .../partials/FileManagerFilesList.vue | 2 +- .../admin/modals/FileManagerModal.vue | 2 +- .../admin/settings/ColorsSetting.vue | 162 + .../admin/settings/MailerSetting.vue | 229 + .../js/components/core/footer/Footer.vue | 53 + .../forms/{ArrayGroup..vue => ArrayGroup.vue} | 2 +- .../components/core/forms/CheckboxGroup.vue | 2 +- .../core/forms/DateTimePickerGroup.vue | 2 +- .../core/forms/InlineCheckboxGroup.vue | 2 +- .../js/components/core/forms/InputGroup.vue | 2 +- .../js/components/core/forms/SelectGroup.vue | 9 +- .../core/forms/SelectMultipleGroup.vue | 2 +- .../components/core/forms/TextAreaGroup.vue | 2 +- .../components/core/icons/IconAlertVideo.vue | 19 +- .../core/icons/IconArrowsShuffle.vue | 25 + .../js/components/core/icons/IconBadgeCc.vue | 25 + .../core/icons/IconBookDownload.vue | 30 +- .../components/core/icons/IconBoxMultiple.vue | 16 +- .../components/core/icons/IconCameraCheck.vue | 17 +- .../components/core/icons/IconCertificate.vue | 33 +- .../components/core/icons/IconChalkboard.vue | 19 +- .../core/icons/IconDeviceMobile.vue | 18 +- .../js/components/core/icons/IconDiscount.vue | 17 +- .../js/components/core/icons/IconDownload.vue | 20 +- .../js/components/core/icons/IconFacebook.vue | 23 + .../core/icons/IconFileDownload.vue | 20 +- .../components/core/icons/IconHeadphones.vue | 17 +- .../js/components/core/icons/IconInfinity.vue | 23 + .../components/core/icons/IconInstagram.vue | 25 + .../js/components/core/icons/IconLanguage.vue | 20 +- .../js/components/core/icons/IconLinkedIn.vue | 19 + .../js/components/core/icons/IconMoneyBag.vue | 10 - .../js/components/core/icons/IconMoneybag.vue | 24 + .../core/icons/IconReceiptRefund.vue | 16 +- .../js/components/core/icons/IconSnapchat.vue | 16 + .../js/components/core/icons/IconSpeaker.vue | 27 - .../core/icons/IconSpeakerPhone.vue | 25 + .../components/core/icons/IconTextCaption.vue | 10 - .../js/components/core/icons/IconTiktok.vue | 16 + .../js/components/core/icons/IconTwitter.vue | 16 + .../js/components/core/icons/IconYoutube.vue | 16 + .../js/components/core/menus/SideMenu.vue | 3 +- .../components/core/pagination/Pagination.vue | 2 +- .../student/admin/course/CourseCard.vue | 28 +- .../student/admin/menus/StudentTopMenu.vue | 33 +- .../student/menus/CourseSideMenuItem.vue | 12 +- .../website/cms/forms/StandardForm.vue | 173 + .../website/edu/course/AboutAuthor.vue | 44 + .../website/edu/course/CourseCallToAction.vue | 32 + .../website/edu/course/CourseContent.vue | 114 + .../website/edu/course/CourseDescription.vue | 27 + .../website/edu/course/CourseFeatures.vue | 128 + .../website/edu/course/CourseFooter.vue | 29 + .../website/edu/course/CourseFooterBottom.vue | 90 + .../website/edu/course/CourseFooterTop.vue | 115 + .../website/edu/course/CourseHeader.vue | 43 + .../website/edu/course/CourseInterestForm.vue | 36 + .../js/components/website/edu/course/Faq.vue | 88 + .../website/edu/course/Purchase.vue | 256 + .../website/edu/course/Testimonials.vue | 60 + .../website/edu/course/VideoPreview.vue | 58 + resources/js/filters/date-times.js | 2 +- resources/js/filters/prices.js | 20 +- resources/js/inertia-events.js | 12 + resources/js/landlord/app.js | 28 +- resources/js/landlord/bootstrap.js | 10 +- .../js/landlord/component-registration.js | 32 +- .../components/website/banners/BannerGrid.vue | 20 +- .../components/website/heroes/HeroWithSvg.vue | 2 +- .../components/website/menus/HeaderMenu.vue | 29 +- .../js/landlord/layouts/admin/AdminLayout.vue | 2 +- .../layouts/website/WebsiteLayout.vue | 39 +- .../js/landlord/pages/admin/profile/Edit.vue | 2 +- .../js/landlord/pages/admin/tenant/Create.vue | 4 +- .../js/landlord/pages/admin/tenant/Edit.vue | 4 +- .../js/landlord/pages/admin/tenant/Index.vue | 4 +- .../js/landlord/pages/admin/user/Create.vue | 4 +- .../js/landlord/pages/admin/user/Edit.vue | 4 +- .../js/landlord/pages/admin/user/Index.vue | 4 +- resources/js/landlord/pages/auth/Login.vue | 2 +- .../js/landlord/pages/website/home/Index.vue | 40 +- resources/js/layouts/admin/AdminLayout.vue | 92 +- resources/js/layouts/auth/AuthLayout.vue | 49 +- .../js/layouts/customer/CustomerLayout.vue | 2 +- .../js/layouts/student/StudentAdminLayout.vue | 38 +- resources/js/layouts/website/BasicLayout.vue | 47 + resources/js/layouts/website/CourseLayout.vue | 101 + .../js/layouts/website/WebsiteLayout.vue | 8 +- resources/js/mixins/website/page-with-meta.js | 186 + resources/js/mixins/zora.js | 20 + resources/js/page-templates/web/BasicPage.vue | 30 + .../js/page-templates/web/CoursePage.vue | 134 + .../js/pages/admin/cms/layout/Create.vue | 6 +- resources/js/pages/admin/cms/layout/Edit.vue | 6 +- resources/js/pages/admin/cms/layout/Index.vue | 6 +- resources/js/pages/admin/cms/menu/Create.vue | 6 +- resources/js/pages/admin/cms/menu/Edit.vue | 6 +- resources/js/pages/admin/cms/menu/Index.vue | 4 +- resources/js/pages/admin/cms/page/Create.vue | 10 +- resources/js/pages/admin/cms/page/Edit.vue | 33 +- resources/js/pages/admin/cms/page/Index.vue | 6 +- .../js/pages/admin/cms/redirect/Create.vue | 159 + .../js/pages/admin/cms/redirect/Edit.vue | 162 + .../js/pages/admin/cms/redirect/Index.vue | 345 ++ .../js/pages/admin/cms/template/Create.vue | 8 +- .../js/pages/admin/cms/template/Edit.vue | 8 +- .../js/pages/admin/cms/template/Index.vue | 6 +- .../js/pages/admin/crm/contact/Create.vue | 4 +- resources/js/pages/admin/crm/contact/Edit.vue | 4 +- .../js/pages/admin/crm/contact/Index.vue | 4 +- resources/js/pages/admin/crm/form/Create.vue | 22 +- resources/js/pages/admin/crm/form/Edit.vue | 21 +- resources/js/pages/admin/crm/form/Index.vue | 6 +- .../pages/admin/crm/form_submission/Index.vue | 4 +- .../admin/crm/organisation_unit/Create.vue | 54 +- .../admin/crm/organisation_unit/Edit.vue | 84 +- .../admin/crm/organisation_unit/Index.vue | 4 +- .../pages/admin/edu/announcement/Create.vue | 8 +- .../js/pages/admin/edu/announcement/Edit.vue | 10 +- .../js/pages/admin/edu/announcement/Index.vue | 8 +- .../js/pages/admin/edu/course/Create.vue | 16 +- resources/js/pages/admin/edu/course/Edit.vue | 31 +- resources/js/pages/admin/edu/course/Index.vue | 10 +- .../js/pages/admin/edu/course/Preview.vue | 53 +- .../pages/admin/edu/course/purchase/Index.vue | 18 +- .../pages/admin/edu/course/purchase/Show.vue | 6 +- resources/js/pages/admin/edu/label/Create.vue | 4 +- resources/js/pages/admin/edu/label/Edit.vue | 2 +- resources/js/pages/admin/edu/label/Index.vue | 4 +- .../js/pages/admin/edu/lecture/Create.vue | 14 +- resources/js/pages/admin/edu/lecture/Edit.vue | 21 +- .../js/pages/admin/edu/lecture/Index.vue | 10 +- .../js/pages/admin/edu/programme/Create.vue | 14 +- .../js/pages/admin/edu/programme/Edit.vue | 14 +- .../js/pages/admin/edu/programme/Index.vue | 6 +- .../js/pages/admin/edu/webinar/Create.vue | 14 +- resources/js/pages/admin/edu/webinar/Edit.vue | 14 +- .../js/pages/admin/edu/webinar/Index.vue | 8 +- .../js/pages/admin/file_manager/Index.vue | 2 +- resources/js/pages/admin/profile/Edit.vue | 5 +- resources/js/pages/admin/setting/Edit.vue | 43 +- resources/js/pages/admin/user/Create.vue | 4 +- resources/js/pages/admin/user/Edit.vue | 4 +- resources/js/pages/admin/user/Index.vue | 4 +- resources/js/pages/auth/Login.vue | 2 +- resources/js/pages/auth/Register.vue | 2 +- resources/js/pages/auth/passwords/Confirm.vue | 2 +- resources/js/pages/auth/passwords/Email.vue | 2 +- resources/js/pages/auth/passwords/Reset.vue | 4 +- .../js/pages/student/admin/home/Index.vue | 8 +- .../js/pages/student/admin/home/Show.vue | 376 +- .../js/pages/student/admin/profile/Edit.vue | 14 +- .../js/pages/student/admin/profile/Index.vue | 34 +- resources/js/pages/student/auth/Login.vue | 27 +- resources/js/pages/student/auth/Register.vue | 18 +- .../js/pages/student/auth/passwords/Email.vue | 12 +- .../js/pages/student/auth/passwords/Reset.vue | 16 +- .../js/pages/website/edu/course/Show.vue | 205 +- resources/js/pages/website/home/Index.vue | 10 +- resources/js/pages/website/page/Show.vue | 99 +- resources/js/plugins/anime.js | 4 + resources/js/plugins/dayjs.js | 5 + resources/js/plugins/vue-cookies.js | 3 +- resources/js/plugins/zora.js | 5 + resources/js/zora.js | 7 + resources/lang/en/form.php | 8 + resources/lang/en/messages.php | 122 + resources/lang/en/settings.php | 5 + resources/lang/en/validation.php | 5 +- resources/lang/ro/auth.php | 20 + resources/lang/ro/form.php | 7 + resources/lang/ro/messages.php | 123 + resources/lang/ro/pagination.php | 19 + resources/lang/ro/passwords.php | 22 + resources/lang/ro/settings.php | 5 + resources/lang/ro/validation.php | 190 + resources/views/app.blade.php | 17 +- resources/views/landlord/app.blade.php | 6 +- .../CRM/form/submission/internal.blade.php | 26 + .../EDU/course/purchase/register-ro.blade.php | 32 + .../EDU/course/purchase/register.blade.php | 26 + .../views/mail/setting/mailer-test.blade.php | 13 + .../views/partials/tenant-head.blade.php | 22 + .../views/vendor/mail/html/button.blade.php | 24 + .../views/vendor/mail/html/footer.blade.php | 11 + .../views/vendor/mail/html/header.blade.php | 12 + .../views/vendor/mail/html/layout.blade.php | 57 + .../views/vendor/mail/html/message.blade.php | 28 + .../views/vendor/mail/html/panel.blade.php | 14 + .../views/vendor/mail/html/subcopy.blade.php | 7 + .../views/vendor/mail/html/table.blade.php | 3 + .../views/vendor/mail/html/themes/default.css | 290 ++ .../views/vendor/mail/text/button.blade.php | 1 + .../views/vendor/mail/text/footer.blade.php | 1 + .../views/vendor/mail/text/header.blade.php | 1 + .../views/vendor/mail/text/layout.blade.php | 9 + .../views/vendor/mail/text/message.blade.php | 27 + .../views/vendor/mail/text/panel.blade.php | 1 + .../views/vendor/mail/text/subcopy.blade.php | 1 + .../views/vendor/mail/text/table.blade.php | 1 + routes/admin-api.php | 16 + routes/admin.php | 13 + routes/student-admin.php | 2 +- tailwind.config.js | 8 + tests/Feature/Admin/DashboardTest.php | 22 +- tests/TenantTestCase.php | 56 + tests/TestCase.php | 30 +- vite.config.js | 38 + webpack.mix.js | 42 - yarn.lock | 4182 +---------------- 491 files changed, 11643 insertions(+), 5893 deletions(-) create mode 100644 .documentation/faqs/adding-new-tabler-icons.md create mode 100644 app/Actions/CMS/Redirect/RedirectQueryAction.php create mode 100644 app/Actions/CMS/Redirect/RedirectStoreAction.php create mode 100644 app/Actions/CMS/Redirect/RedirectUpdateAction.php create mode 100644 app/Actions/Setting/MailerSettingTestAction.php create mode 100644 app/Helpers/Helper.php create mode 100644 app/Helpers/Tenant.php create mode 100644 app/Http/Controllers/Admin/CMS/RedirectController.php create mode 100644 app/Http/Controllers/AdminApi/EDU/CourseController.php create mode 100644 app/Http/Controllers/AdminApi/Settings/MailerTestController.php create mode 100644 app/Http/Middleware/CheckForCmsRedirect.php create mode 100644 app/Http/Requests/Admin/CMS/Redirect/RedirectIndexRequest.php create mode 100644 app/Http/Requests/Admin/CMS/Redirect/RedirectStoreRequest.php create mode 100644 app/Http/Requests/Admin/CMS/Redirect/RedirectUpdateRequest.php create mode 100644 app/Http/Requests/Admin/Setting/ThemeSettingsUpdateRequest.php create mode 100644 app/Http/Requests/AdminApi/Setting/MailerSettingTestRequest.php create mode 100644 app/Http/Resources/Admin/CMS/RedirectResource.php create mode 100644 app/Http/Resources/Admin/Setting/ThemeSettingEditResource.php create mode 100644 app/Interfaces/ThemeInterface.php create mode 100644 app/Interfaces/ThirdPartyInterface.php create mode 100644 app/Jobs/EDU/Course/ProcessCoursePurchaseRegister.php create mode 100644 app/Mail/CRM/Form/FormSubmittedInternal.php create mode 100644 app/Mail/EDU/Course/CoursePurchaseRegister.php create mode 100644 app/Mail/EDU/Course/TestEmail.php create mode 100644 app/Mail/Setting/MailerTest.php create mode 100644 app/Models/CMS/Redirect.php create mode 100644 app/Models/EDU/Section/SectionFiles.php create mode 100644 app/Models/Settings/ThemeSettings.php create mode 100644 app/Traits/Base/ManagesTenancyMailer.php create mode 100644 database/factories/CMS/RedirectFactory.php create mode 100644 database/migrations/landlord/2023_09_13_000000_create_settings_table.php create mode 100644 database/migrations/tenant/2024_03_09_000000_create_theme_settings.php create mode 100644 database/migrations/tenant/2024_03_09_201037_create_edu_section_files_table.php create mode 100644 database/migrations/tenant/2024_03_20_000000_update_third_party_settings_add_gtm_id.php create mode 100644 database/migrations/tenant/2024_03_22_000000_create_cms_redirects_table.php create mode 100644 database/migrations/tenant/2024_03_23_000000_alter_crm_forms_add_submit_button_text.php create mode 100644 database/migrations/tenant/2024_04_13_000000_update_third_party_settings_add_mailer.php create mode 100644 database/seeders/EmptySeeder.php create mode 100644 postcss.config.js create mode 100644 public/build/assets/ArrayGroup.46c0a3b3.js create mode 100644 public/build/assets/CheckboxGroup.7b759576.js create mode 100644 public/build/assets/Confirm.583f4cb4.js create mode 100644 public/build/assets/ConfirmationModal.242a99d0.js create mode 100644 public/build/assets/CourseFooter.585c86a3.js create mode 100644 public/build/assets/Create.01776621.js create mode 100644 public/build/assets/Create.104a8ccd.js create mode 100644 public/build/assets/Create.1d8384ed.js create mode 100644 public/build/assets/Create.623d94ee.js create mode 100644 public/build/assets/Create.65796194.js create mode 100644 public/build/assets/Create.8b338964.js create mode 100644 public/build/assets/Create.9b1c6787.js create mode 100644 public/build/assets/Create.a039d33f.js create mode 100644 public/build/assets/Create.a06b8a57.js create mode 100644 public/build/assets/Create.a0dfac91.js create mode 100644 public/build/assets/Create.b08dc421.js create mode 100644 public/build/assets/Create.c4bffa52.js create mode 100644 public/build/assets/Create.cb1bb46a.js create mode 100644 public/build/assets/Create.d20ee538.js create mode 100644 public/build/assets/Create.d415ad4b.js create mode 100644 public/build/assets/Create.dc6785fd.js create mode 100644 public/build/assets/Create.fbafad00.js create mode 100644 public/build/assets/DateTimePickerGroup.36fef719.js create mode 100644 public/build/assets/Edit.3a64c03f.js create mode 100644 public/build/assets/Edit.4cc99e10.js create mode 100644 public/build/assets/Edit.4d42b7d4.js create mode 100644 public/build/assets/Edit.74bf91fc.js create mode 100644 public/build/assets/Edit.79dd354d.js create mode 100644 public/build/assets/Edit.83ddf47c.js create mode 100644 public/build/assets/Edit.8c1caf79.js create mode 100644 public/build/assets/Edit.8d25ca1f.js create mode 100644 public/build/assets/Edit.91c008d3.js create mode 100644 public/build/assets/Edit.922955c0.js create mode 100644 public/build/assets/Edit.978f8d21.js create mode 100644 public/build/assets/Edit.a623ba83.js create mode 100644 public/build/assets/Edit.ada03e97.js create mode 100644 public/build/assets/Edit.b00dcb2a.js create mode 100644 public/build/assets/Edit.c516894b.js create mode 100644 public/build/assets/Edit.d0258602.js create mode 100644 public/build/assets/Edit.d160eb80.js create mode 100644 public/build/assets/Edit.d1a7952b.js create mode 100644 public/build/assets/Edit.f1dc4dd8.js create mode 100644 public/build/assets/Edit.f690a4d6.js create mode 100644 public/build/assets/Edit.f9606cf6.js create mode 100644 public/build/assets/Email.287632b0.js create mode 100644 public/build/assets/Email.7525ef1b.js create mode 100644 public/build/assets/Error.1c1a5db4.js create mode 100644 public/build/assets/Error.79c094aa.js create mode 100644 public/build/assets/Error.8da45f54.js create mode 100644 public/build/assets/Error.df4fa7f5.js create mode 100644 public/build/assets/FormFieldEditor.b347e16b.css create mode 100644 public/build/assets/FormFieldEditor.e5430ae4.js create mode 100644 public/build/assets/GenericModal.3f75002a.js create mode 100644 public/build/assets/Index.17940c7c.js create mode 100644 public/build/assets/Index.1c1af3f0.js create mode 100644 public/build/assets/Index.2e286002.js create mode 100644 public/build/assets/Index.2e6ffc28.js create mode 100644 public/build/assets/Index.3f6690d4.js create mode 100644 public/build/assets/Index.4223f71d.js create mode 100644 public/build/assets/Index.431eb08b.css create mode 100644 public/build/assets/Index.43f325e1.js create mode 100644 public/build/assets/Index.47975f97.js create mode 100644 public/build/assets/Index.4c323bd5.js create mode 100644 public/build/assets/Index.4c3e42a0.js create mode 100644 public/build/assets/Index.5037e854.js create mode 100644 public/build/assets/Index.58bb9fee.js create mode 100644 public/build/assets/Index.62203f14.js create mode 100644 public/build/assets/Index.6df621a4.js create mode 100644 public/build/assets/Index.6e120ca2.js create mode 100644 public/build/assets/Index.70b9066f.js create mode 100644 public/build/assets/Index.8c47121c.js create mode 100644 public/build/assets/Index.8e4e8571.js create mode 100644 public/build/assets/Index.ad329ada.js create mode 100644 public/build/assets/Index.ba613796.js create mode 100644 public/build/assets/Index.c6dbc88a.js create mode 100644 public/build/assets/Index.cecb4ae3.js create mode 100644 public/build/assets/Index.d2ba76f2.js create mode 100644 public/build/assets/Index.d696434d.js create mode 100644 public/build/assets/Index.d8a5dc92.js create mode 100644 public/build/assets/Index.e94fc6a9.css create mode 100644 public/build/assets/Index.ebf74275.js create mode 100644 public/build/assets/Index.efc25151.js create mode 100644 public/build/assets/Index.f2c6fdf5.js create mode 100644 public/build/assets/Index.f652474a.js create mode 100644 public/build/assets/Index.f7839a10.js create mode 100644 public/build/assets/InlineCheckboxGroup.b3aa2b58.js create mode 100644 public/build/assets/InputGroup.513e0dd4.js create mode 100644 public/build/assets/Login.364765db.js create mode 100644 public/build/assets/Login.3e5bd779.js create mode 100644 public/build/assets/Login.b6f91a43.js create mode 100644 public/build/assets/LogoLight.f7426689.js create mode 100644 public/build/assets/LogoLight.fab1a1ae.css create mode 100644 public/build/assets/MenuItemsEditor.ac46952f.css create mode 100644 public/build/assets/MenuItemsEditor.d3626ff3.js create mode 100644 public/build/assets/Preview.605dcace.js create mode 100644 public/build/assets/Preview.72090992.js create mode 100644 public/build/assets/Preview.8fb72e53.js create mode 100644 public/build/assets/Register.2d4e8bdb.js create mode 100644 public/build/assets/Register.724812d1.js create mode 100644 public/build/assets/Reset.4c08c7e2.js create mode 100644 public/build/assets/Reset.97ac2872.js create mode 100644 public/build/assets/SectionItemsEditor.28200d00.css create mode 100644 public/build/assets/SectionItemsEditor.845c8cbd.js create mode 100644 public/build/assets/SelectMultipleGroup.445aa1ac.js create mode 100644 public/build/assets/Show.0629b321.js create mode 100644 public/build/assets/Show.90bc0a44.js create mode 100644 public/build/assets/Show.ab6aa26a.js create mode 100644 public/build/assets/Show.b9570225.js create mode 100644 public/build/assets/Show.c3c9e29f.js create mode 100644 public/build/assets/Show.edafe552.js create mode 100644 public/build/assets/TemplateFieldEditor.7dee26e3.js create mode 100644 public/build/assets/TemplateFieldEditor.d4d3e141.css create mode 100644 public/build/assets/UrlEditor.6a278f5e.js create mode 100644 public/build/assets/Verify.95e566d7.js create mode 100644 public/build/assets/app.7909fd0b.css create mode 100644 public/build/assets/app.7916e14e.css create mode 100644 public/build/assets/app.795ed856.js create mode 100644 public/build/assets/app.c52b09a2.js create mode 100644 public/build/assets/checkbox-form-group.99a615f1.js create mode 100644 public/build/assets/vendor.21c2b6f5.js create mode 100644 public/build/assets/vuedraggable.umd.700457d3.js create mode 100644 public/build/manifest.json delete mode 100644 public/js/app.js delete mode 100644 public/js/app.js.LICENSE.txt delete mode 100644 public/js/landlord/app.js delete mode 100644 public/js/landlord/app.js.LICENSE.txt delete mode 100644 public/mix-manifest.json create mode 100644 resources/css/core/anime.css create mode 100644 resources/css/core/helpers.css create mode 100644 resources/js/components/admin/cms/content/content_fields/CrmOrganisationUnitField.vue create mode 100644 resources/js/components/admin/cms/content/content_fields/EduCourseField.vue create mode 100644 resources/js/components/admin/settings/ColorsSetting.vue create mode 100644 resources/js/components/admin/settings/MailerSetting.vue create mode 100644 resources/js/components/core/footer/Footer.vue rename resources/js/components/core/forms/{ArrayGroup..vue => ArrayGroup.vue} (98%) create mode 100644 resources/js/components/core/icons/IconArrowsShuffle.vue create mode 100644 resources/js/components/core/icons/IconBadgeCc.vue create mode 100644 resources/js/components/core/icons/IconFacebook.vue create mode 100644 resources/js/components/core/icons/IconInfinity.vue create mode 100644 resources/js/components/core/icons/IconInstagram.vue create mode 100644 resources/js/components/core/icons/IconLinkedIn.vue delete mode 100644 resources/js/components/core/icons/IconMoneyBag.vue create mode 100644 resources/js/components/core/icons/IconMoneybag.vue create mode 100644 resources/js/components/core/icons/IconSnapchat.vue delete mode 100644 resources/js/components/core/icons/IconSpeaker.vue create mode 100644 resources/js/components/core/icons/IconSpeakerPhone.vue delete mode 100644 resources/js/components/core/icons/IconTextCaption.vue create mode 100644 resources/js/components/core/icons/IconTiktok.vue create mode 100644 resources/js/components/core/icons/IconTwitter.vue create mode 100644 resources/js/components/core/icons/IconYoutube.vue create mode 100644 resources/js/components/website/cms/forms/StandardForm.vue create mode 100644 resources/js/components/website/edu/course/AboutAuthor.vue create mode 100644 resources/js/components/website/edu/course/CourseCallToAction.vue create mode 100644 resources/js/components/website/edu/course/CourseContent.vue create mode 100644 resources/js/components/website/edu/course/CourseDescription.vue create mode 100644 resources/js/components/website/edu/course/CourseFeatures.vue create mode 100644 resources/js/components/website/edu/course/CourseFooter.vue create mode 100644 resources/js/components/website/edu/course/CourseFooterBottom.vue create mode 100644 resources/js/components/website/edu/course/CourseFooterTop.vue create mode 100644 resources/js/components/website/edu/course/CourseHeader.vue create mode 100644 resources/js/components/website/edu/course/CourseInterestForm.vue create mode 100644 resources/js/components/website/edu/course/Faq.vue create mode 100644 resources/js/components/website/edu/course/Purchase.vue create mode 100644 resources/js/components/website/edu/course/Testimonials.vue create mode 100644 resources/js/components/website/edu/course/VideoPreview.vue create mode 100644 resources/js/inertia-events.js create mode 100644 resources/js/layouts/website/BasicLayout.vue create mode 100644 resources/js/layouts/website/CourseLayout.vue create mode 100644 resources/js/mixins/website/page-with-meta.js create mode 100644 resources/js/mixins/zora.js create mode 100644 resources/js/page-templates/web/BasicPage.vue create mode 100644 resources/js/page-templates/web/CoursePage.vue create mode 100644 resources/js/pages/admin/cms/redirect/Create.vue create mode 100644 resources/js/pages/admin/cms/redirect/Edit.vue create mode 100644 resources/js/pages/admin/cms/redirect/Index.vue create mode 100644 resources/js/plugins/anime.js create mode 100644 resources/js/plugins/dayjs.js create mode 100644 resources/js/plugins/zora.js create mode 100644 resources/js/zora.js create mode 100644 resources/lang/en/form.php create mode 100644 resources/lang/en/messages.php create mode 100644 resources/lang/en/settings.php create mode 100644 resources/lang/ro/auth.php create mode 100644 resources/lang/ro/form.php create mode 100644 resources/lang/ro/messages.php create mode 100644 resources/lang/ro/pagination.php create mode 100644 resources/lang/ro/passwords.php create mode 100644 resources/lang/ro/settings.php create mode 100644 resources/lang/ro/validation.php create mode 100644 resources/views/mail/CRM/form/submission/internal.blade.php create mode 100644 resources/views/mail/EDU/course/purchase/register-ro.blade.php create mode 100644 resources/views/mail/EDU/course/purchase/register.blade.php create mode 100644 resources/views/mail/setting/mailer-test.blade.php create mode 100644 resources/views/partials/tenant-head.blade.php create mode 100644 resources/views/vendor/mail/html/button.blade.php create mode 100644 resources/views/vendor/mail/html/footer.blade.php create mode 100644 resources/views/vendor/mail/html/header.blade.php create mode 100644 resources/views/vendor/mail/html/layout.blade.php create mode 100644 resources/views/vendor/mail/html/message.blade.php create mode 100644 resources/views/vendor/mail/html/panel.blade.php create mode 100644 resources/views/vendor/mail/html/subcopy.blade.php create mode 100644 resources/views/vendor/mail/html/table.blade.php create mode 100644 resources/views/vendor/mail/html/themes/default.css create mode 100644 resources/views/vendor/mail/text/button.blade.php create mode 100644 resources/views/vendor/mail/text/footer.blade.php create mode 100644 resources/views/vendor/mail/text/header.blade.php create mode 100644 resources/views/vendor/mail/text/layout.blade.php create mode 100644 resources/views/vendor/mail/text/message.blade.php create mode 100644 resources/views/vendor/mail/text/panel.blade.php create mode 100644 resources/views/vendor/mail/text/subcopy.blade.php create mode 100644 resources/views/vendor/mail/text/table.blade.php create mode 100644 tests/TenantTestCase.php create mode 100644 vite.config.js delete mode 100644 webpack.mix.js diff --git a/.documentation/faqs/adding-new-tabler-icons.md b/.documentation/faqs/adding-new-tabler-icons.md new file mode 100644 index 00000000..264f8ad1 --- /dev/null +++ b/.documentation/faqs/adding-new-tabler-icons.md @@ -0,0 +1,73 @@ +# Adding new tabler icons + +The default icon set for this project is [TablerIcons](https://tablericons.com). + +They should all be stored inside `./resources/js/components/core/icons/Icon{IconName}.vue` +as this will allow them to be automatically imported and usable within the application via ``. + +## Step by step + +1. Find the icon you want to use on [TablerIcons](https://tablericons.com) +2. Click it to copy the SVG + 1. Make note of the name e.g. `arrows-shuffle` +3. Copy an existing icon, using pascal case prefixed with `Icon` e.g. `IconArrowsShuffle.vue` + 1. Alternatively use the icon template below +4. Inside the existing `` tag, paste the copied SVG +5. Remove the opening and closing `` that were pasted, so only the outer tag remains +6. Update the name to the pascal case icon name e.g. `IconArrowsShuffle` +7. Use the icon wherever needed via kebab case e.g. `` + +The resulting vue file should look similar to the following: +```vue + + + +``` + +## Icon Template +```vue + + + +``` diff --git a/.env.example b/.env.example index f24e11b0..051d6b48 100644 --- a/.env.example +++ b/.env.example @@ -42,8 +42,8 @@ PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=mt1 -MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" # Whether a user can register themselves on the app AUTH_USER_REGISTER=false diff --git a/README.md b/README.md index 7166be0b..379f793c 100644 --- a/README.md +++ b/README.md @@ -80,13 +80,24 @@ So the process is inline with the package's documentation. ./vendor/bin/sail artisan make:settings SettingsName --group=groupName --path=App/Models/Settings/ ``` 1. Add the settings properties to the class -2. Create the settings migration +2. Create the settings migration (note: the path is important here) ```bash - ./vendor/bin/sail artisan make:settings-migration CreateSettingsName + ./vendor/bin/sail artisan make:settings-migration CreateSettingsName database/migrations/tenant ``` 1. Add the settings to the migration 3. Add the settings class to the `config.settings.settings` config file +### Preparing for production + +1. Generate the JS translation files (if any have been added/updated) + ```bash + ./vendor/bin/sail artisan zora:generate + ``` +2. Production-ify JS/CSS + ```bash + ./vendor/bin/sail artisan yarn prod + ``` + --------- diff --git a/app/Actions/CMS/Page/PageQueryAction.php b/app/Actions/CMS/Page/PageQueryAction.php index 6390eb53..478e717d 100644 --- a/app/Actions/CMS/Page/PageQueryAction.php +++ b/app/Actions/CMS/Page/PageQueryAction.php @@ -27,7 +27,7 @@ class PageQueryAction extends AbstractQueryAction protected function addCustomSearchOptions() { if (Arr::get($this->search_options, 'page_url')) { - $this->query->whereHas('url', function ($query) { + $this->query->whereHas('url', function (Builder $query) { $url = Arr::get($this->search_options, 'page_url'); if (!Str::startsWith($url, '/')) { $url = '/' . $url; @@ -36,6 +36,22 @@ protected function addCustomSearchOptions() $query->where('url_full', $url); }); } + + if (Arr::get($this->search_options, 'is_active')) { + $this->query->whereHas('url', function (Builder $query) { + $query->where('is_enabled', 1); + + $query->where(function (Builder $subQ) { + $subQ->whereNull('published_at') + ->orWhere('published_at', '<=', now()); + }); + $query->where(function (Builder $subQ) { + $subQ->whereNull('expired_at') + ->orWhere('expired_at', '>=', now()); + }); + + }); + } } protected function addOrderOptions() diff --git a/app/Actions/CMS/Redirect/RedirectQueryAction.php b/app/Actions/CMS/Redirect/RedirectQueryAction.php new file mode 100644 index 00000000..4bdb66fa --- /dev/null +++ b/app/Actions/CMS/Redirect/RedirectQueryAction.php @@ -0,0 +1,31 @@ + 'redirect_is_enabled', + 'is_permanent' => 'redirect_is_permanent' + ]; + + protected array $searchable_fields_likes = [ + 'url_from' => 'redirect_url_from', + 'url_to' => 'redirect_url_to', + ]; + + protected string $order_by = 'url_from'; + + + protected function getQueryBuilder(): Builder + { + return Redirect::query(); + } +} diff --git a/app/Actions/CMS/Redirect/RedirectStoreAction.php b/app/Actions/CMS/Redirect/RedirectStoreAction.php new file mode 100644 index 00000000..857425d2 --- /dev/null +++ b/app/Actions/CMS/Redirect/RedirectStoreAction.php @@ -0,0 +1,14 @@ +update($redirect_data); + + if ($refresh) { + $redirect->refresh(); + } + + return $redirect; + } +} diff --git a/app/Actions/CRM/FormSubmission/FormSubmissionStoreAction.php b/app/Actions/CRM/FormSubmission/FormSubmissionStoreAction.php index e5a04a13..b64b7b58 100644 --- a/app/Actions/CRM/FormSubmission/FormSubmissionStoreAction.php +++ b/app/Actions/CRM/FormSubmission/FormSubmissionStoreAction.php @@ -3,12 +3,14 @@ namespace App\Actions\CRM\FormSubmission; use App\Interfaces\CRM\FormFieldInterface; +use App\Mail\CRM\Form\FormSubmittedInternal; use App\Models\CRM\Contact; use App\Models\CRM\Form; use App\Models\CRM\FormSubmission; use Exception; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Mail; use Illuminate\Validation\ValidationException; class FormSubmissionStoreAction @@ -29,8 +31,8 @@ public function handle(Form $form, array $submissionData) : FormSubmission $this->form = $form; $this->submissionData = app(ValidateFormSubmissionDataAction::class)->handle($form, $submissionData); - if (!$form->relationLoaded('formFields')) { - $form->load('formFields'); + if (!$this->form->relationLoaded('formFields')) { + $this->form->load('formFields'); } try { @@ -44,6 +46,8 @@ public function handle(Form $form, array $submissionData) : FormSubmission 'form_id' => $this->form->id, ]); + $this->sendSubmissionNotification($formSubmission); + DB::commit(); return $formSubmission; @@ -104,4 +108,15 @@ protected function getCrmContactData() : array return $crmData; } -} \ No newline at end of file + + protected function sendSubmissionNotification(FormSubmission $formSubmission): void + { + // TODO: We may want to move to dispatching events going forward + if (! $this->form->hasEmailRecipients()) { + return; + } + + Mail::to($this->form->email_recipients) + ->send(new FormSubmittedInternal($formSubmission)); + } +} diff --git a/app/Actions/EDU/Course/Purchase/CoursePurchaseQueryAction.php b/app/Actions/EDU/Course/Purchase/CoursePurchaseQueryAction.php index 9183c0a0..234d0a33 100644 --- a/app/Actions/EDU/Course/Purchase/CoursePurchaseQueryAction.php +++ b/app/Actions/EDU/Course/Purchase/CoursePurchaseQueryAction.php @@ -21,6 +21,8 @@ class CoursePurchaseQueryAction extends AbstractQueryAction protected string $order_by = 'id'; + protected string $order_direction = 'desc'; + protected function getQueryBuilder(): Builder { return CoursePurchase::query(); diff --git a/app/Actions/EDU/Course/Purchase/RedeemUserCoursePurchasesAction.php b/app/Actions/EDU/Course/Purchase/RedeemUserCoursePurchasesAction.php index c53981e0..388fb0d2 100644 --- a/app/Actions/EDU/Course/Purchase/RedeemUserCoursePurchasesAction.php +++ b/app/Actions/EDU/Course/Purchase/RedeemUserCoursePurchasesAction.php @@ -2,6 +2,7 @@ namespace App\Actions\EDU\Course\Purchase; +use App\Interfaces\EDU\Course\CoursePurchaseInterface; use App\Models\EDU\Course\CoursePurchase; use App\Models\User; @@ -12,11 +13,11 @@ public function handle(User $user) // Set the user id for any existing purchases with the user's email CoursePurchase::whereNull('user_id') ->where('email_address', $user->email) - ->update(['user_id', $user->id]); + ->update(['user_id' => $user->id]); // Attach purchased courses to the user $user->coursePurchases() - ->where('payment_status', 'PAID') + ->whereIn('status', [CoursePurchaseInterface::PAYMENT_STATUS_PAID, CoursePurchaseInterface::PAYMENT_STATUS_PARTIALLY_PAID]) ->whereNull('redeemed_at') ->get()->each(function (CoursePurchase $purchase) use ($user) { $purchase->redeem($user); diff --git a/app/Actions/EDU/Course/Student/StudentCourseShowAction.php b/app/Actions/EDU/Course/Student/StudentCourseShowAction.php index 425e3448..7cc854ce 100644 --- a/app/Actions/EDU/Course/Student/StudentCourseShowAction.php +++ b/app/Actions/EDU/Course/Student/StudentCourseShowAction.php @@ -15,9 +15,9 @@ public function handle(Course $course) $course->load([ 'sections', 'sections.webinars', + 'sections.files', 'webinars', 'creator', - 'labels', 'programme', ]); diff --git a/app/Actions/FileManager/FileManagerFileStoreAction.php b/app/Actions/FileManager/FileManagerFileStoreAction.php index c5c624ef..dbc99e76 100644 --- a/app/Actions/FileManager/FileManagerFileStoreAction.php +++ b/app/Actions/FileManager/FileManagerFileStoreAction.php @@ -4,6 +4,7 @@ use App\Models\EDU\Lecture\LectureFiles; +use App\Models\EDU\Section\SectionFiles; use Carbon\Carbon; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; @@ -44,7 +45,17 @@ public function handle(string $directory, UploadedFile $file, $request) $lectureFiles->save(); } - return $file->storeAs($directory, $filename, $this->storage_disk);; + if ($request->has('section')) { + $sectionFiles = new SectionFiles(); + $sectionFiles->fill([ + 'section_id' => $request->input('section'), + 'file_path' => $directory . $filename, + 'file_name' => $filename, + ]); + $sectionFiles->save(); + } + + return $file->storeAs($directory, $filename, $this->storage_disk); } /** diff --git a/app/Actions/Landlord/Tenant/TenantStoreAction.php b/app/Actions/Landlord/Tenant/TenantStoreAction.php index 6b3abd87..1ce5e301 100644 --- a/app/Actions/Landlord/Tenant/TenantStoreAction.php +++ b/app/Actions/Landlord/Tenant/TenantStoreAction.php @@ -6,10 +6,19 @@ class TenantStoreAction { - public function handle(array $tenant_data) : Tenant + public function handle(array $tenant_data, ?string $domain = null): Tenant { - return Tenant::create([ + /** @var Tenant $tenant */ + $tenant = Tenant::create([ 'id' => $tenant_data['id'] ]); + + if ($domain) { + $tenant->domains()->create([ + 'domain' => $domain + ]); + } + + return $tenant; } } diff --git a/app/Actions/Setting/MailerSettingTestAction.php b/app/Actions/Setting/MailerSettingTestAction.php new file mode 100644 index 00000000..b7c09605 --- /dev/null +++ b/app/Actions/Setting/MailerSettingTestAction.php @@ -0,0 +1,26 @@ +validated(), 'recipient'); + + $this->setMailConfigForTenant(tenant(), $mailerSettings); + + Mail::to($request->get('recipient')) + ->send(new MailerTest($mailerSettings)); + + $this->setMailConfigDefaults(); + } +} diff --git a/app/Actions/Setting/SettingUpdateAction.php b/app/Actions/Setting/SettingUpdateAction.php index 9c06e2bc..2776ec24 100644 --- a/app/Actions/Setting/SettingUpdateAction.php +++ b/app/Actions/Setting/SettingUpdateAction.php @@ -4,6 +4,7 @@ use App\Models\Settings\CoreSettings; use App\Models\Settings\EduSettings; +use App\Models\Settings\ThemeSettings; use App\Models\Settings\ThirdPartySettings; use Exception; @@ -27,6 +28,8 @@ protected function getSettingClass(string $group): string return CoreSettings::class; case 'edu': return EduSettings::class; + case 'theme': + return ThemeSettings::class; case 'third-party': return ThirdPartySettings::class; default: diff --git a/app/Bootstrappers/ConfigTenancyBootstrapper.php b/app/Bootstrappers/ConfigTenancyBootstrapper.php index 7f1d22af..1dc802fa 100644 --- a/app/Bootstrappers/ConfigTenancyBootstrapper.php +++ b/app/Bootstrappers/ConfigTenancyBootstrapper.php @@ -2,25 +2,46 @@ namespace App\Bootstrappers; +use App\Traits\Base\ManagesTenancyMailer; +use Illuminate\Database\QueryException; use Illuminate\Support\Facades\App; +use Illuminate\Support\Facades\View as ViewFacade; +use Illuminate\View\View; use Spatie\LaravelSettings\Exceptions\MissingSettings; use Stancl\Tenancy\Contracts\TenancyBootstrapper; use Stancl\Tenancy\Contracts\Tenant; class ConfigTenancyBootstrapper implements TenancyBootstrapper { + use ManagesTenancyMailer; + public function bootstrap(Tenant $tenant) { try { App::setLocale($tenant->locale); - } catch (MissingSettings $e) { + + $this->setMailConfigForTenant($tenant); + + $this->registerViewComposers(); + } catch (QueryException | MissingSettings $e) { // For initial migration of setting, this may not be set. No need to fail } } public function revert() { - App::setLocale(config('app.landlord.locale')); + // Don't need to do anything here as there is no reverting in a single request to worry about } + public function registerViewComposers(): void + { + ViewFacade::composer( + [ + 'mail::message' + ], + function (View $view) { + $view->with('tenant_name', get_tenant_name()); + } + ); + } } diff --git a/app/Console/Commands/EDU/Course/ProcessCoursePurchasePaymentsDue.php b/app/Console/Commands/EDU/Course/ProcessCoursePurchasePaymentsDue.php index cb78b740..f3ba86ce 100644 --- a/app/Console/Commands/EDU/Course/ProcessCoursePurchasePaymentsDue.php +++ b/app/Console/Commands/EDU/Course/ProcessCoursePurchasePaymentsDue.php @@ -2,11 +2,7 @@ namespace App\Console\Commands\EDU\Course; -use App\Interfaces\RoleInterface; -use App\Models\User; use Illuminate\Console\Command; -use Illuminate\Support\Facades\Hash; -use Spatie\Permission\Models\Role; use Stancl\Tenancy\Concerns\HasATenantArgument; use Stancl\Tenancy\Concerns\TenantAwareCommand; diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 962e5c54..63e9a19b 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -2,6 +2,7 @@ namespace App\Console; +use App\Console\Commands\EDU\Course\ProcessCoursePurchasePaymentsDue; use App\Models\Tenant; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; @@ -25,10 +26,13 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule) { - if (Tenant::current()){ - $schedule->command('course:process-purchase-payments-due') - ->dailyAt('05:00'); - } + // Tenant commands + Tenant::all()->each(function (Tenant $tenant) use ($schedule) { + $schedule->command( + ProcessCoursePurchasePaymentsDue::class, + [$tenant->id] + )->dailyAt('05:00'); + }); } /** diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php new file mode 100644 index 00000000..95c12072 --- /dev/null +++ b/app/Helpers/Helper.php @@ -0,0 +1,157 @@ + env('MAIL_MAILER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers to be used while + | sending an e-mail. You will specify which one you are using for your + | mailers below. You are free to add additional mailers as required. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", + | "postmark", "log", "array" + | + */ + + 'mailers' => [ + 'smtp' => [ + 'transport' => 'smtp', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + ], + + 'postmark' => [ + 'transport' => 'postmark', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => '/usr/sbin/sendmail -bs', + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + + ]; + } +} + +/** + * This should be used instead of adding config options directly to config/mail.php + * As it allows for defaults to be loaded reloaded if needed + */ +if (! function_exists('default_services_config')) { + function default_services_config(): array + { + return [ + + /* + |-------------------------------------------------------------------------- + | Third Party Services + |-------------------------------------------------------------------------- + | + | This file is for storing the credentials for third party services such + | as Mailgun, Postmark, AWS and more. This file provides the de facto + | location for this type of information, allowing packages to have + | a conventional file to locate the various service credentials. + | + */ + 'mailgun' => [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + ], + + 'postmark' => [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + ]; + } +} diff --git a/app/Helpers/Tenant.php b/app/Helpers/Tenant.php new file mode 100644 index 00000000..c466785f --- /dev/null +++ b/app/Helpers/Tenant.php @@ -0,0 +1,19 @@ +site_name || !strlen($theme->site_name)) { + return tenant()->id; + } + + return $theme->site_name; + } +} diff --git a/app/Http/Controllers/Admin/CMS/RedirectController.php b/app/Http/Controllers/Admin/CMS/RedirectController.php new file mode 100644 index 00000000..86c28faa --- /dev/null +++ b/app/Http/Controllers/Admin/CMS/RedirectController.php @@ -0,0 +1,88 @@ +addMetaTitleSection('Redirects'); + } + + public function create() : Response + { + $this->addMetaTitleSection('Create')->shareMeta(); + return Inertia::render('admin/cms/redirect/Create'); + } + + public function destroy(Request $request, Redirect $cms_redirect) : RedirectResponse + { + $cms_redirect->delete(); + + return LaravelRedirect::back(303)->with( + 'success', + 'Redirect deleted.' + ); + } + + public function edit(Redirect $cms_redirect) : Response + { + $this->addMetaTitleSection('Edit Redirect')->shareMeta(); + return Inertia::render('admin/cms/redirect/Edit', [ + 'redirect' => function () use ($cms_redirect) { + RedirectResource::withoutWrapping(); + return RedirectResource::make($cms_redirect); + }, + ]); + } + + public function index(RedirectIndexRequest $request) : Response + { + $search_options = $request->validated(); + + $this->shareMeta(); + + return Inertia::render('admin/cms/redirect/Index', [ + 'searchOptions' => $search_options, + 'redirects' => function () use ($search_options) { + return RedirectResource::collection( + app(RedirectQueryAction::class) + ->handle($search_options) + ->paginate(AppInterface::getSearchPaginationParam($search_options)) + ); + }, + ]); + } + + public function store(RedirectStoreRequest $request): RedirectResponse + { + $cms_redirect = app(RedirectStoreAction::class)->handle($request->validated()); + return LaravelRedirect::to(route('admin.cms.redirects.edit', $cms_redirect)) + ->with('success', 'Redirect created.'); + } + + public function update(RedirectUpdateRequest $request, Redirect $cms_redirect): RedirectResponse + { + $cms_redirect = app(RedirectUpdateAction::class)->handle($cms_redirect, $request->validated()); + return LaravelRedirect::to(route('admin.cms.redirects.edit', $cms_redirect)) + ->with('success', 'Redirect updated.'); + } +} diff --git a/app/Http/Controllers/Admin/CRM/OrganisationUnitController.php b/app/Http/Controllers/Admin/CRM/OrganisationUnitController.php index 17ad5d46..ae6749bd 100644 --- a/app/Http/Controllers/Admin/CRM/OrganisationUnitController.php +++ b/app/Http/Controllers/Admin/CRM/OrganisationUnitController.php @@ -99,7 +99,7 @@ public function index(OrganisationUnitIndexRequest $request) : Response public function store(OrganisationUnitStoreRequest $request) : RedirectResponse { $organisationUnit = app(OrganisationUnitStoreAction::class)->handle($request->validated()); - return Redirect::to(route('admin.crm.organisation-units.edit'. $organisationUnit->id)) + return Redirect::to(route('admin.crm.organisation-units.edit', $organisationUnit->id)) ->with('success', 'Organisation Unit created.'); } diff --git a/app/Http/Controllers/Admin/EDU/Course/CourseController.php b/app/Http/Controllers/Admin/EDU/Course/CourseController.php index fb135702..d6912073 100644 --- a/app/Http/Controllers/Admin/EDU/Course/CourseController.php +++ b/app/Http/Controllers/Admin/EDU/Course/CourseController.php @@ -11,6 +11,7 @@ use App\Http\Requests\Admin\EDU\Course\CourseStoreRequest; use App\Http\Requests\Admin\EDU\Course\CourseUpdateRequest; use App\Http\Resources\Admin\EDU\Course\CourseResource; +use App\Http\Resources\Web\EDU\CourseShowResource; use App\Interfaces\AppInterface; use App\Interfaces\EDU\Course\CourseInterface; use App\Interfaces\EDU\Course\CoursePurchaseInterface; @@ -75,7 +76,7 @@ public function destroy(Course $course): RedirectResponse public function edit(Course $course): Response { $this->addMetaTitleSection('Edit - ' . $course->name)->shareMeta(); - $course->load('sections'); + $course->load(['sections', 'sections.files']); return Inertia::render('admin/edu/course/Edit', [ 'course' => function () use ($course) { @@ -126,11 +127,16 @@ public function update(CourseUpdateRequest $request, Course $course): RedirectRe public function preview(Course $course): Response { - $course->load('sections'); - return Inertia::render('admin/edu/course/Preview', [ + return Inertia::render('website/edu/course/Show', [ 'course' => function () use ($course) { - CourseResource::withoutWrapping(); - return CourseResource::make($course); + $course->load([ + 'instalmentPlans', + 'sections', + 'creator' + ]); + + CourseShowResource::withoutWrapping(); + return CourseShowResource::make($course); } ]); } diff --git a/app/Http/Controllers/Admin/EDU/Lecture/LectureController.php b/app/Http/Controllers/Admin/EDU/Lecture/LectureController.php index 362702f0..3bea2f74 100644 --- a/app/Http/Controllers/Admin/EDU/Lecture/LectureController.php +++ b/app/Http/Controllers/Admin/EDU/Lecture/LectureController.php @@ -67,9 +67,6 @@ public function edit(Lecture $lecture) : Response $lecture->load('files'); $lecture->load('section', 'section.course'); - $lecture->load('files'); - $lecture->load('section', 'section.course'); - return Inertia::render('admin/edu/lecture/Edit', [ 'lecture' => function () use ($lecture) { LectureResource::withoutWrapping(); diff --git a/app/Http/Controllers/Admin/SettingController.php b/app/Http/Controllers/Admin/SettingController.php index 859c82b3..bdc2de2c 100644 --- a/app/Http/Controllers/Admin/SettingController.php +++ b/app/Http/Controllers/Admin/SettingController.php @@ -6,13 +6,16 @@ use App\Http\Controllers\AdminController; use App\Http\Requests\Admin\Setting\CoreSettingsUpdateRequest; use App\Http\Requests\Admin\Setting\EduSettingsUpdateRequest; +use App\Http\Requests\Admin\Setting\ThemeSettingsUpdateRequest; use App\Http\Requests\Admin\Setting\ThirdPartySettingsUpdateRequest; use App\Http\Resources\Admin\Setting\CoreSettingEditResource; use App\Http\Resources\Admin\Setting\EduSettingEditResource; +use App\Http\Resources\Admin\Setting\ThemeSettingEditResource; use App\Http\Resources\Admin\Setting\ThirdPartySettingEditResource; use App\Interfaces\PermissionInterface; use App\Models\Settings\CoreSettings; use App\Models\Settings\EduSettings; +use App\Models\Settings\ThemeSettings; use App\Models\Settings\ThirdPartySettings; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; @@ -75,6 +78,8 @@ protected function getSettingClass(string $group): string return CoreSettings::class; case 'edu': return EduSettings::class; + case 'theme': + return ThemeSettings::class; case 'third-party': return ThirdPartySettings::class; default: @@ -95,6 +100,11 @@ protected function getSettingResource(string $settingClass): JsonResource return EduSettingEditResource::make( app(EduSettings::class) ); + case ThemeSettings::class: + ThemeSettingEditResource::withoutWrapping(); + return ThemeSettingEditResource::make( + app(ThemeSettings::class) + ); case ThirdPartySettings::class: ThirdPartySettingEditResource::withoutWrapping(); return ThirdPartySettingEditResource::make( @@ -112,6 +122,8 @@ protected function getSettingUpdateRequestClass(string $group): string return CoreSettingsUpdateRequest::class; case 'edu': return EduSettingsUpdateRequest::class; + case 'theme': + return ThemeSettingsUpdateRequest::class; case 'third-party': return ThirdPartySettingsUpdateRequest::class; default: diff --git a/app/Http/Controllers/AdminApi/CMS/TemplateController.php b/app/Http/Controllers/AdminApi/CMS/TemplateController.php index 595a3d87..42097459 100644 --- a/app/Http/Controllers/AdminApi/CMS/TemplateController.php +++ b/app/Http/Controllers/AdminApi/CMS/TemplateController.php @@ -14,7 +14,7 @@ class TemplateController extends Controller public function __construct() { $this->middleware( - PermissionInterface::getMiddlewareString(PermissionInterface::VIEW_CMS_ADVANCED) + PermissionInterface::getMiddlewareString(PermissionInterface::VIEW_CMS) )->only(['index', 'show']); } diff --git a/app/Http/Controllers/AdminApi/EDU/CourseController.php b/app/Http/Controllers/AdminApi/EDU/CourseController.php new file mode 100644 index 00000000..f3a7f819 --- /dev/null +++ b/app/Http/Controllers/AdminApi/EDU/CourseController.php @@ -0,0 +1,27 @@ +middleware( + PermissionInterface::getMiddlewareString(PermissionInterface::VIEW_EDU_COURSES) + )->only('show'); + } + + public function index(CourseIndexRequest $request) : ResourceCollection + { + return CourseListResource::collection( + app(CourseQueryAction::class)->handle($request->validated())->get() + ); + } +} diff --git a/app/Http/Controllers/AdminApi/FileManager/FileManagerDirectoryController.php b/app/Http/Controllers/AdminApi/FileManager/FileManagerDirectoryController.php index 4e364760..dd898aaa 100644 --- a/app/Http/Controllers/AdminApi/FileManager/FileManagerDirectoryController.php +++ b/app/Http/Controllers/AdminApi/FileManager/FileManagerDirectoryController.php @@ -17,7 +17,12 @@ class FileManagerDirectoryController extends AbstractFileManagerController */ public function index(Request $request) { - $directories = collect(Storage::disk($this->storage_disk)->directories($request->get('directory'))) + //TODO:: see if we want to use this somewhere else in the code? +// $dir = $request->get('directory') ?? tenant()->id; + $dir = tenant()->id; + // TODO:: get the size of all files in this dir and return to FE to allow user to know sizeUsed/SizeLeft in gb + $directories = collect(Storage::disk($this->storage_disk) + ->directories($dir)) ->map(function($directory) { $label = explode('/', $directory); $label = $label[count($label) - 1]; diff --git a/app/Http/Controllers/AdminApi/Settings/MailerTestController.php b/app/Http/Controllers/AdminApi/Settings/MailerTestController.php new file mode 100644 index 00000000..da755ba4 --- /dev/null +++ b/app/Http/Controllers/AdminApi/Settings/MailerTestController.php @@ -0,0 +1,26 @@ +middleware( + PermissionInterface::getMiddlewareString(PermissionInterface::EDIT_SETTINGS) + ); + } + + public function __invoke(MailerSettingTestRequest $request) + { + app(MailerSettingTestAction::class)->handle($request); + return response()->json([ + 'message' => 'Test email sent.' + ]); + } +} diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index b59b4b25..2549a520 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -5,6 +5,7 @@ use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Auth\AuthenticatesUsers; +use Illuminate\Support\Facades\App; use Inertia\Inertia; use Inertia\Response; diff --git a/app/Http/Controllers/Student/Admin/HomeController.php b/app/Http/Controllers/Student/Admin/HomeController.php index 6129d8e7..54ad3b20 100644 --- a/app/Http/Controllers/Student/Admin/HomeController.php +++ b/app/Http/Controllers/Student/Admin/HomeController.php @@ -60,9 +60,10 @@ public function index() ]); } - public function show(Course $course): Response + public function show($slug): Response { $this->shareMeta(); + $course = Course::where('slug', $slug)->firstOrFail(); return Inertia::render('student/admin/home/Show', [ 'course' => function () use ($course) { @@ -77,7 +78,7 @@ public function completeLecture(Lecture $lecture): RedirectResponse return Redirect::back(303)->with( 'success', - 'Completed.' + trans('messages.mark-complete-success') ); } @@ -87,7 +88,7 @@ public function downloadLecturePDFs(Lecture $lecture): RedirectResponse return Redirect::back(303)->with( 'success', - 'Completed.' + trans('messages.mark-complete-success') ); } } diff --git a/app/Http/Controllers/Student/Auth/RegisterController.php b/app/Http/Controllers/Student/Auth/RegisterController.php index f7be0acf..635e7d75 100644 --- a/app/Http/Controllers/Student/Auth/RegisterController.php +++ b/app/Http/Controllers/Student/Auth/RegisterController.php @@ -64,12 +64,22 @@ public function showRegistrationForm() */ protected function validator(array $data) { - return Validator::make($data, [ - 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], - 'first_name' => ['required', 'string', 'max:255'], - 'last_name' => ['required', 'string', 'max:255'], - 'password' => ['required', 'string', 'min:8', 'confirmed'], - ]); + return Validator::make( + $data, + [ + 'email' => [ + 'required', + 'string', + 'email', + 'max:255', + 'unique:users', + 'exists:edu_course_purchases,email_address' + ], + 'first_name' => ['required', 'string', 'max:255'], + 'last_name' => ['required', 'string', 'max:255'], + 'password' => ['required', 'string', 'min:8', 'confirmed'], + ], + ); } /** diff --git a/app/Http/Controllers/Webhook/Stripe/StripeCourseCheckoutController.php b/app/Http/Controllers/Webhook/Stripe/StripeCourseCheckoutController.php index c0f5b3e7..78e74764 100644 --- a/app/Http/Controllers/Webhook/Stripe/StripeCourseCheckoutController.php +++ b/app/Http/Controllers/Webhook/Stripe/StripeCourseCheckoutController.php @@ -5,9 +5,11 @@ use App\Actions\EDU\Course\Purchase\RedeemUserCoursePurchasesAction; use App\Http\Controllers\Controller; use App\Interfaces\EDU\Course\CoursePurchaseInterface; +use App\Jobs\EDU\Course\ProcessCoursePurchaseRegister; use App\Models\EDU\Course\CoursePurchasePayment; use App\Models\User; use Exception; +use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Stripe\Event; @@ -24,6 +26,9 @@ public function __invoke(Request $request) switch ($event->type) { case Event::CHECKOUT_SESSION_COMPLETED: return $this->handleSessionCompleted($event); + case Event::CHARGE_EXPIRED: + case Event::CHECKOUT_SESSION_EXPIRED: + return $this->handleIgnoredEvent($event); default: throw new MethodNotAllowedException( [Event::CHECKOUT_SESSION_COMPLETED], @@ -32,7 +37,7 @@ public function __invoke(Request $request) } } - protected function handleSessionCompleted(Event $event) + protected function handleSessionCompleted(Event $event): JsonResponse { /** @var CoursePurchasePayment $payment */ $payment = CoursePurchasePayment::findOrFail($event->data->object->metadata->payment_id); @@ -74,19 +79,33 @@ protected function handleSessionCompleted(Event $event) if ((int)$purchase->total_price_outstanding === 0) { $purchase->status = CoursePurchaseInterface::PAYMENT_STATUS_PAID; $purchase->full_price_paid_at = now(); + } else if ($purchase->status === CoursePurchaseInterface::PAYMENT_STATUS_PENDING) { + $purchase->status = CoursePurchaseInterface::PAYMENT_STATUS_PARTIALLY_PAID; } $purchase->update(); + DB::commit(); + // Redeem the user's purchases if they already exist if ($user) { app(RedeemUserCoursePurchasesAction::class)->handle($user); + } else { + // Send email to customer to register an account + dispatch(new ProcessCoursePurchaseRegister($payment)); } - DB::commit(); + return response()->json([ + 'success' => true, + ]); + } + protected function handleIgnoredEvent(Event $event): JsonResponse + { + // We could potentially log/capture these in the future return response()->json([ 'success' => true, + 'message' => 'Event ignored' ]); } } diff --git a/app/Http/Controllers/Website/EDU/CourseController.php b/app/Http/Controllers/Website/EDU/CourseController.php index f1f8d1a6..7fb8d771 100644 --- a/app/Http/Controllers/Website/EDU/CourseController.php +++ b/app/Http/Controllers/Website/EDU/CourseController.php @@ -21,6 +21,8 @@ public function show(Request $request, Course $course): Response 'course' => function () use ($course) { $course->load([ 'instalmentPlans', + 'sections', + 'creator' ]); CourseShowResource::withoutWrapping(); diff --git a/app/Http/Controllers/Website/PageController.php b/app/Http/Controllers/Website/PageController.php index e67f68c5..40ff5d56 100644 --- a/app/Http/Controllers/Website/PageController.php +++ b/app/Http/Controllers/Website/PageController.php @@ -5,6 +5,7 @@ use App\Actions\CMS\Page\PageQueryAction; use App\Http\Controllers\Controller; use App\Http\Resources\Web\CMS\FullPageResource; +use App\Models\Settings\ThemeSettings; use Illuminate\Http\Request; use Inertia\Inertia; use Inertia\Response; @@ -18,6 +19,7 @@ public function show(Request $request): Response } $search_options = [ + 'is_active' => true, 'page_url' => $request->getPathInfo(), 'with' => [ 'content', @@ -38,6 +40,8 @@ public function show(Request $request): Response abort(404); } + $page->logo_url = app(ThemeSettings::class)->getLogoUrl(); + return Inertia::render('website/page/Show', [ 'page' => function () use ($page) { return FullPageResource::make($page); diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 5389e917..bb84092d 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -2,6 +2,7 @@ namespace App\Http; +use App\Http\Middleware\CheckForCmsRedirect; use App\Http\Middleware\HandleInertiaRequests; use App\Http\Middleware\SetLandlordGuard; use App\Interfaces\PermissionInterface; @@ -40,7 +41,8 @@ class Kernel extends HttpKernel \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, - HandleInertiaRequests::class + CheckForCmsRedirect::class, + HandleInertiaRequests::class, ], 'admin' => [ @@ -85,6 +87,17 @@ class Kernel extends HttpKernel \Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains::class, ], + 'landlord-web' => [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + // \Illuminate\Session\Middleware\AuthenticateSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + HandleInertiaRequests::class, + ], + 'landlord-admin' => [ SetLandlordGuard::class, \App\Http\Middleware\EncryptCookies::class, diff --git a/app/Http/Middleware/CheckForCmsRedirect.php b/app/Http/Middleware/CheckForCmsRedirect.php new file mode 100644 index 00000000..a6192ce6 --- /dev/null +++ b/app/Http/Middleware/CheckForCmsRedirect.php @@ -0,0 +1,38 @@ +getRedirectFromRequest($request); + if (is_null($redirect)) { + return $next($request); + } + + return redirect( + $redirect->url_to, + $redirect->http_status + ); + } + + protected function getRedirectFromRequest(Request $request): ?Redirect + { + $path = $request->path(); + if (! Str::startsWith($path, '/')) { + $path = '/' . $path; + } + + /** @var ?Redirect $redirect */ + $redirect = Redirect::active()->where('url_from', $path)->first(); + + return $redirect; + } +} diff --git a/app/Http/Requests/Admin/CMS/Page/PageStoreRequest.php b/app/Http/Requests/Admin/CMS/Page/PageStoreRequest.php index a42b007d..a9ef657d 100644 --- a/app/Http/Requests/Admin/CMS/Page/PageStoreRequest.php +++ b/app/Http/Requests/Admin/CMS/Page/PageStoreRequest.php @@ -16,6 +16,7 @@ public function attributes() : array 'template_id' => 'template', 'metadata.canonical' => 'canonical', 'metadata.description' => 'meta description', + 'metadata.keywords' => 'meta keywords', 'metadata.og_description' => 'og description ', 'metadata.og_image' => 'og image', 'metadata.og_title' => 'og title', @@ -49,6 +50,7 @@ public function rules() : array ], 'metadata.canonical' => 'nullable|string', 'metadata.description' => 'nullable|string', + 'metadata.keywords' => 'nullable|string', 'metadata.og_description' => 'nullable|string', 'metadata.og_image' => 'nullable|string', 'metadata.og_title' => 'nullable|string', diff --git a/app/Http/Requests/Admin/CMS/Redirect/RedirectIndexRequest.php b/app/Http/Requests/Admin/CMS/Redirect/RedirectIndexRequest.php new file mode 100644 index 00000000..f3fc0ccd --- /dev/null +++ b/app/Http/Requests/Admin/CMS/Redirect/RedirectIndexRequest.php @@ -0,0 +1,18 @@ + 'nullable|bool', + 'redirect_is_permanent' => 'nullable|bool', + 'redirect_url_from' => 'nullable|string', + 'redirect_url_to' => 'nullable|string', + ]); + } +} diff --git a/app/Http/Requests/Admin/CMS/Redirect/RedirectStoreRequest.php b/app/Http/Requests/Admin/CMS/Redirect/RedirectStoreRequest.php new file mode 100644 index 00000000..64e4a31c --- /dev/null +++ b/app/Http/Requests/Admin/CMS/Redirect/RedirectStoreRequest.php @@ -0,0 +1,26 @@ + [ + 'required', + 'string', + 'starts_with:/', + Rule::unique('cms_redirects') + ], + 'url_to' => 'required|string', + 'is_enabled' => 'required|boolean', + 'is_permanent' => 'required|boolean', + 'published_at' => 'nullable|date', + 'expired_at' => 'nullable|date', + ]; + } +} diff --git a/app/Http/Requests/Admin/CMS/Redirect/RedirectUpdateRequest.php b/app/Http/Requests/Admin/CMS/Redirect/RedirectUpdateRequest.php new file mode 100644 index 00000000..26000a07 --- /dev/null +++ b/app/Http/Requests/Admin/CMS/Redirect/RedirectUpdateRequest.php @@ -0,0 +1,22 @@ +ignore($this->cms_redirect->id) + ]; + + return $rules; + } +} diff --git a/app/Http/Requests/Admin/CRM/Form/FormStoreRequest.php b/app/Http/Requests/Admin/CRM/Form/FormStoreRequest.php index d5dd29c8..b96b06db 100644 --- a/app/Http/Requests/Admin/CRM/Form/FormStoreRequest.php +++ b/app/Http/Requests/Admin/CRM/Form/FormStoreRequest.php @@ -42,7 +42,8 @@ public function rules() : array 'max:' . FormInterface::FIELD_SLUG_MAX_LENGTH, Rule::unique('crm_forms'), ], - 'success_message' => [ + 'submit_button_text' => 'nullable|string', + 'success_message' => [ 'nullable', 'string', 'max:' . FormInterface::FIELD_SUCCESS_MESSAGE_MAX_LENGTH, diff --git a/app/Http/Requests/Admin/EDU/Course/CourseIndexRequest.php b/app/Http/Requests/Admin/EDU/Course/CourseIndexRequest.php index 84d5a8a2..cf21b88e 100644 --- a/app/Http/Requests/Admin/EDU/Course/CourseIndexRequest.php +++ b/app/Http/Requests/Admin/EDU/Course/CourseIndexRequest.php @@ -6,11 +6,11 @@ class CourseIndexRequest extends BaseIndexRequest { -// public function rules() : array -// { -// return array_merge(parent::rules(), [ -// 'course_name' => 'nullable|string', -// 'course_slug' => 'nullable|string', -// ]); -// } + public function rules() : array + { + return array_merge(parent::rules(), [ + 'course_name' => 'nullable|string', + 'course_slug' => 'nullable|string', + ]); + } } diff --git a/app/Http/Requests/Admin/EDU/Lecture/LectureUpdateRequest.php b/app/Http/Requests/Admin/EDU/Lecture/LectureUpdateRequest.php index 9fd2093e..0ddfee8c 100644 --- a/app/Http/Requests/Admin/EDU/Lecture/LectureUpdateRequest.php +++ b/app/Http/Requests/Admin/EDU/Lecture/LectureUpdateRequest.php @@ -16,7 +16,7 @@ public function rules(): array 'preview_url' => 'nullable|string', 'video_url' => 'nullable|string', 'content_length' => 'nullable|string', - 'index' => 'nullable|string', + 'index' => 'nullable|integer', 'section_id' => 'required|exists:edu_sections,id', ]); } diff --git a/app/Http/Requests/Admin/Setting/ThemeSettingsUpdateRequest.php b/app/Http/Requests/Admin/Setting/ThemeSettingsUpdateRequest.php new file mode 100644 index 00000000..4db58aff --- /dev/null +++ b/app/Http/Requests/Admin/Setting/ThemeSettingsUpdateRequest.php @@ -0,0 +1,18 @@ + 'nullable|array', + 'favicon_url' => 'nullable|string', + 'logo_url' => 'nullable|string', + 'site_name' => 'nullable|string', + ]; + } +} diff --git a/app/Http/Requests/Admin/Setting/ThirdPartySettingsUpdateRequest.php b/app/Http/Requests/Admin/Setting/ThirdPartySettingsUpdateRequest.php index 9d588863..80bcb6de 100644 --- a/app/Http/Requests/Admin/Setting/ThirdPartySettingsUpdateRequest.php +++ b/app/Http/Requests/Admin/Setting/ThirdPartySettingsUpdateRequest.php @@ -9,8 +9,10 @@ class ThirdPartySettingsUpdateRequest extends BaseRequest public function rules() : array { return [ + 'gtm_id' => 'nullable|string', + 'mailer' => 'nullable|array', 'stripe_publishable_key' => 'nullable|string', 'stripe_secret_key' => 'nullable|string', ]; } -} \ No newline at end of file +} diff --git a/app/Http/Requests/AdminApi/Setting/MailerSettingTestRequest.php b/app/Http/Requests/AdminApi/Setting/MailerSettingTestRequest.php new file mode 100644 index 00000000..0e3f12d6 --- /dev/null +++ b/app/Http/Requests/AdminApi/Setting/MailerSettingTestRequest.php @@ -0,0 +1,35 @@ + 'required|email', + 'mailer' => [ + 'required', + Rule::in(array_keys(ThirdPartyInterface::ALL_MAILERS_LABELLED)) + ], + ThirdPartyInterface::MAILER_CONFIG_ENCRYPTION => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_FROM_ADDRESS => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_FROM_NAME => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_HOST => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_USERNAME => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_PASSWORD => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_PORT => 'sometimes|nullable|numeric', + ThirdPartyInterface::MAILER_CONFIG_SERVICE_DOMAIN => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_SERVICE_ENDPOINT => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_SERVICE_KEY => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_SERVICE_REGION => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_SERVICE_SECRET => 'sometimes|nullable|string', + ThirdPartyInterface::MAILER_CONFIG_TIMEOUT => 'sometimes|nullable|integer', + + ]; + } +} diff --git a/app/Http/Resources/Admin/CMS/MetadataResource.php b/app/Http/Resources/Admin/CMS/MetadataResource.php index bf830675..ce3ca17e 100644 --- a/app/Http/Resources/Admin/CMS/MetadataResource.php +++ b/app/Http/Resources/Admin/CMS/MetadataResource.php @@ -11,12 +11,14 @@ public function toArray($request) return [ 'canonical' => $this->canonical, 'description' => $this->description, + 'keywords' => $this->keywords, 'og_description' => $this->og_description, 'og_image' => $this->og_image, 'og_title' => $this->og_title, 'og_type' => $this->og_type, 'og_url' => $this->og_url, 'title' => $this->title, + 'logo' => $this->title, ]; } } diff --git a/app/Http/Resources/Admin/CMS/RedirectResource.php b/app/Http/Resources/Admin/CMS/RedirectResource.php new file mode 100644 index 00000000..4dc3f47e --- /dev/null +++ b/app/Http/Resources/Admin/CMS/RedirectResource.php @@ -0,0 +1,23 @@ + $this->formatDateTime($this->expired_at), + 'http_status' => $this->http_status, + 'id' => $this->id, + 'is_active' => $this->is_active, + 'is_enabled' => $this->is_enabled, + 'is_permanent' => $this->is_permanent, + 'published_at' => $this->formatDateTime($this->published_at), + 'url_from' => $this->url_from, + 'url_to' => $this->url_to, + ]; + } +} diff --git a/app/Http/Resources/Admin/CRM/FormResource.php b/app/Http/Resources/Admin/CRM/FormResource.php index df385d4a..e05e9e6a 100644 --- a/app/Http/Resources/Admin/CRM/FormResource.php +++ b/app/Http/Resources/Admin/CRM/FormResource.php @@ -18,6 +18,7 @@ public function toArray($request) 'name' => $this->name, 'redirect_url' => $this->redirect_url, 'slug' => $this->slug, + 'submit_button_text' => $this->submit_button_text, 'success_message' => $this->success_message, ]; } diff --git a/app/Http/Resources/Admin/EDU/Section/SectionResource.php b/app/Http/Resources/Admin/EDU/Section/SectionResource.php index 55c7b8b7..296ce064 100644 --- a/app/Http/Resources/Admin/EDU/Section/SectionResource.php +++ b/app/Http/Resources/Admin/EDU/Section/SectionResource.php @@ -5,6 +5,8 @@ use App\Http\Resources\Admin\EDU\Lecture\LectureResource; use App\Http\Resources\Admin\EDU\Webinar\WebinarResource; use Illuminate\Http\Resources\Json\JsonResource; +use Illuminate\Support\Carbon; +use Illuminate\Support\Facades\Storage; class SectionResource extends JsonResource { @@ -22,6 +24,27 @@ public function toArray($request) 'course_id' => $this->course_id, 'child_items' => LectureResource::collection($this->whenLoaded('childItems')), 'webinar' => WebinarResource::make($this->whenLoaded('webinar')), + 'files' => $this->getFiles() ?? null, ]; } + + protected function getFiles() + { + if (!$this->files) { + return null; + } + + $files = $this->files; + + foreach ($files as $file) { + $file->url = Storage::disk('file_manager')->temporaryUrl( + $file->file_path, Carbon::now()->addHour() + ); + if (str_contains($file->file_name, '.mp3')) { + $file->type_audio = true; + } + } + + return $files; + } } diff --git a/app/Http/Resources/Admin/Setting/ThemeSettingEditResource.php b/app/Http/Resources/Admin/Setting/ThemeSettingEditResource.php new file mode 100644 index 00000000..8b378814 --- /dev/null +++ b/app/Http/Resources/Admin/Setting/ThemeSettingEditResource.php @@ -0,0 +1,41 @@ + [ + 'value' => $this->site_name, + 'type' => 'text', + 'label' => 'Site Name', + 'description' => 'The site name, typically shown in titles etc.', + ], + 'logo_url' => [ + 'value' => $this->logo_url, + 'type' => 'text', // TODO: File type to use file manager + 'label' => 'Logo URL', + 'description' => 'The URL for the logo.', + ], + 'favicon_url' => [ + 'value' => $this->favicon_url, + 'type' => 'text', // TODO: File type to use file manager + 'label' => 'Favicon URL', + 'description' => 'The URL for the favicon.', + ], + 'colors' => [ + 'value' => $this->colors, + 'type' => 'colors', + 'label' => 'Colors', + 'description' => 'Allows all colors to be overwritten', + 'colors' => ThemeInterface::ALL_COLORS, + 'defaultColors' => ThemeInterface::DEFAULT_COLORS, + ], + ]; + } +} diff --git a/app/Http/Resources/Admin/Setting/ThirdPartySettingEditResource.php b/app/Http/Resources/Admin/Setting/ThirdPartySettingEditResource.php index f70a8289..557572ae 100644 --- a/app/Http/Resources/Admin/Setting/ThirdPartySettingEditResource.php +++ b/app/Http/Resources/Admin/Setting/ThirdPartySettingEditResource.php @@ -2,6 +2,7 @@ namespace App\Http\Resources\Admin\Setting; +use App\Interfaces\ThirdPartyInterface; use Illuminate\Http\Resources\Json\JsonResource; class ThirdPartySettingEditResource extends JsonResource @@ -21,6 +22,22 @@ public function toArray($request) 'label' => 'Stripe Secret Key', 'description' => 'The secret key for Stripe.', ], + 'gtm_id' => [ + 'value' => $this->gtm_id, + 'type' => 'text', + 'label' => 'GTM ID', + 'description' => 'The id for Google Tag Manager. Enables GTM if set.', + ], + 'mailer' => [ + 'value' => $this->mailer, + 'type' => 'mailer', + 'label' => 'Mail Settings', + 'description' => 'The config for the mailer.', + 'mailers' => ThirdPartyInterface::ALL_MAILERS_LABELLED, + 'mailerSettingKeys' => ThirdPartyInterface::ALL_MAILER_SETTING_KEYS, + 'mailerSettingLabels' => ThirdPartyInterface::ALL_MAILER_CONFIGS_LABELLED, + 'mailerSettingTypes' => ThirdPartyInterface::ALL_MAILER_CONFIGS_TYPES, + ], ]; } } diff --git a/app/Http/Resources/Web/CMS/FullPageResource.php b/app/Http/Resources/Web/CMS/FullPageResource.php index 0713eb5e..338d7034 100644 --- a/app/Http/Resources/Web/CMS/FullPageResource.php +++ b/app/Http/Resources/Web/CMS/FullPageResource.php @@ -18,6 +18,7 @@ public function toArray($request) 'slug' => $this->slug, 'template' => TemplateResource::make($this->whenLoaded('template')), 'url' => UrlResource::make($this->whenLoaded('url')), + 'logo_url' => $this->logo_url ?? null, ]; // Add content diff --git a/app/Http/Resources/Web/CRM/FormResource.php b/app/Http/Resources/Web/CRM/FormResource.php index cbd49377..0e6b25ed 100644 --- a/app/Http/Resources/Web/CRM/FormResource.php +++ b/app/Http/Resources/Web/CRM/FormResource.php @@ -15,6 +15,7 @@ public function toArray($request) 'marketing_sms' => $this->marketing_sms, 'marketing_telephone' => $this->marketing_telephone, 'name' => $this->name, + 'submit_button_text' => $this->submit_button_text, ]; } } diff --git a/app/Http/Resources/Web/EDU/CourseListResource.php b/app/Http/Resources/Web/EDU/CourseListResource.php index ce4efd71..239f3570 100644 --- a/app/Http/Resources/Web/EDU/CourseListResource.php +++ b/app/Http/Resources/Web/EDU/CourseListResource.php @@ -2,6 +2,7 @@ namespace App\Http\Resources\Web\EDU; +use App\Interfaces\EDU\Course\CourseInterface; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; @@ -11,10 +12,12 @@ public function toArray(Request $request) { return [ 'discount_price' => $this->discount_price, + 'id' => $this->id, 'name' => $this->name, 'price' => $this->price, 'primary_image' => $this->primary_image, 'slug' => $this->slug, + 'status' => CourseInterface::STATUSES[$this->status] ]; } } diff --git a/app/Http/Resources/Web/EDU/CourseShowResource.php b/app/Http/Resources/Web/EDU/CourseShowResource.php index e4c7a79b..4186f6b2 100644 --- a/app/Http/Resources/Web/EDU/CourseShowResource.php +++ b/app/Http/Resources/Web/EDU/CourseShowResource.php @@ -2,6 +2,8 @@ namespace App\Http\Resources\Web\EDU; +use App\Http\Resources\Admin\EDU\Creator\CreatorResource; +use App\Http\Resources\Admin\EDU\Section\SectionResource; use App\Models\EDU\Course\CourseInstalmentPlan; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; @@ -11,17 +13,37 @@ class CourseShowResource extends JsonResource public function toArray(Request $request) { return [ + 'id' => $this->id, + 'name' => $this->name, + 'slug' => $this->slug, + 'summary' => $this->summary, + 'description' => $this->description, + 'creator_id' => $this->creator_id, + 'creator' => CreatorResource::make($this->whenLoaded('creator')), + 'status' => $this->status, + 'available_from' => $this->available_from, + 'available_to' => $this->available_to, + 'content_length_video' => $this->content_length_video, 'banner' => $this->banner, + 'primary_image' => $this->primary_image, + 'video_preview' => $this->video_preview, 'current_price' => $this->current_price, - 'discount_price' => $this->discount_price, - 'description' => $this->description, - 'id' => $this->id, 'instalment_plans' => CourseInstalmentPlanResource::collection($this->whenLoaded('instalmentPlans'))->sortBy('instalment_count')->keyBy('id'), - 'name' => $this->name, 'price' => $this->price, - 'primary_image' => $this->primary_image, - 'summary' => $this->summary, - 'slug' => $this->slug, + 'discount_price' => $this->discount_price, + 'vat' => $this->vat, + 'price_vat' => $this->price_vat, + 'currency' => $this->currency, + 'languages' => $this->languages, + 'has_webinars' => (bool)$this->has_webinars, + 'has_money_back_guarantee' => (bool)$this->has_money_back_guarantee, + 'has_certificate' => (bool)$this->has_certificate, + 'has_captions' => (bool)$this->has_captions, + 'has_lifetime_access' => (bool)$this->has_lifetime_access, + 'has_student_discount' => (bool)$this->has_student_discount, + 'has_pdfs' => (bool)$this->has_pdfs, + 'has_free_seo_exposure' => (bool)$this->has_free_seo_exposure, + 'sections' => SectionResource::collection($this->whenLoaded('sections')), ]; } } diff --git a/app/Interfaces/CMS/TemplateFieldInterface.php b/app/Interfaces/CMS/TemplateFieldInterface.php index 69899ce9..8d248317 100644 --- a/app/Interfaces/CMS/TemplateFieldInterface.php +++ b/app/Interfaces/CMS/TemplateFieldInterface.php @@ -7,6 +7,8 @@ class TemplateFieldInterface // Template field types const TYPE_CMS_MENU = 'cms_menu'; const TYPE_CRM_FORM = 'crm_form'; + const TYPE_CRM_ORGANISATION_UNIT = 'crm_organisation_unit'; + const TYPE_EDU_COURSE = 'edu_course'; const TYPE_IMAGE = 'image'; const TYPE_NUMBER = 'number'; const TYPE_REPEATER = 'repeater'; @@ -17,6 +19,8 @@ class TemplateFieldInterface const ALL_TYPES = [ self::TYPE_CMS_MENU, self::TYPE_CRM_FORM, + self::TYPE_CRM_ORGANISATION_UNIT, + self::TYPE_EDU_COURSE, self::TYPE_IMAGE, self::TYPE_NUMBER, self::TYPE_REPEATER, @@ -27,14 +31,16 @@ class TemplateFieldInterface // Labelled types - typically used for showing the types to a user const ALL_TYPES_LABELLED = [ - self::TYPE_CMS_MENU => "CMS Menu", - self::TYPE_CRM_FORM => "CRM Form", - self::TYPE_IMAGE => "Image", - self::TYPE_NUMBER => "Number", - self::TYPE_REPEATER => "Repeater", - self::TYPE_TEXT => "Text", - self::TYPE_TEXTAREA => "Text Area", - self::TYPE_WYSIWYG => "WYSIWYG", + self::TYPE_CMS_MENU => "CMS Menu", + self::TYPE_CRM_FORM => "CRM Form", + self::TYPE_CRM_ORGANISATION_UNIT => "CRM Organisation Unit", + self::TYPE_EDU_COURSE => "EDU Course", + self::TYPE_IMAGE => "Image", + self::TYPE_NUMBER => "Number", + self::TYPE_REPEATER => "Repeater", + self::TYPE_TEXT => "Text", + self::TYPE_TEXTAREA => "Text Area", + self::TYPE_WYSIWYG => "WYSIWYG", ]; // Types that are allowed to be used in a repeater -- essentially any that don't have relationships @@ -58,7 +64,7 @@ static function getAllRepeaterTypesLabelled() : array } // Types that should be cast/stored as JSON - const JSON_TYPES =[ + const JSON_TYPES = [ self::TYPE_REPEATER ]; @@ -67,22 +73,24 @@ static function getAllRepeaterTypesLabelled() : array const SETTINGS = [ self::TYPE_CMS_MENU => [], self::TYPE_CRM_FORM => [], - self::TYPE_IMAGE => [], - self::TYPE_NUMBER => [ + self::TYPE_CRM_ORGANISATION_UNIT => [], + self::TYPE_EDU_COURSE => [], + self::TYPE_IMAGE => [], + self::TYPE_NUMBER => [ 'min' => null, 'max' => null, ], self::TYPE_REPEATER => [ 'template_id' => '', ], - self::TYPE_TEXT => [ + self::TYPE_TEXT => [ 'max_length' => null, ], self::TYPE_TEXTAREA => [ 'max_length' => null, 'rows' => null, ], - self::TYPE_WYSIWYG => [], + self::TYPE_WYSIWYG => [], ]; diff --git a/app/Interfaces/CRM/FormFieldInterface.php b/app/Interfaces/CRM/FormFieldInterface.php index 3b3f7da4..725e75c9 100644 --- a/app/Interfaces/CRM/FormFieldInterface.php +++ b/app/Interfaces/CRM/FormFieldInterface.php @@ -32,12 +32,14 @@ class FormFieldInterface // Standard Form Field Types const TYPE_EMAIL = 'email'; + const TYPE_HIDDEN = 'hidden'; const TYPE_NUMBER = 'number'; const TYPE_TEXT = 'text'; const TYPE_TEXTAREA = 'textarea'; const ALL_STANDARD_TYPES = [ self::TYPE_EMAIL, + self::TYPE_HIDDEN, self::TYPE_NUMBER, self::TYPE_TEXT, self::TYPE_TEXTAREA, @@ -50,6 +52,7 @@ class FormFieldInterface self::TYPE_CRM_TITLE => 'CRM Title', self::TYPE_CRM_TELEPHONE => 'CRM Telephone', self::TYPE_EMAIL => 'Email', + self::TYPE_HIDDEN => 'Hidden', self::TYPE_NUMBER => 'Number', self::TYPE_TEXT => 'Text', self::TYPE_TEXTAREA => 'Textarea', @@ -63,6 +66,7 @@ class FormFieldInterface self::TYPE_CRM_TITLE => [], self::TYPE_CRM_TELEPHONE => [], self::TYPE_EMAIL => [], + self::TYPE_HIDDEN => [], self::TYPE_NUMBER => [ 'min' => null, 'max' => null, diff --git a/app/Interfaces/EDU/Course/CoursePurchaseInterface.php b/app/Interfaces/EDU/Course/CoursePurchaseInterface.php index 79aeb0a9..aa0cb65b 100644 --- a/app/Interfaces/EDU/Course/CoursePurchaseInterface.php +++ b/app/Interfaces/EDU/Course/CoursePurchaseInterface.php @@ -6,12 +6,12 @@ class CoursePurchaseInterface { - public const CURRENCY_RO = 'LEI'; + public const CURRENCY_RO = 'RON'; public const CURRENCY_GB = 'GBP'; - public const CURRENCY_EU = 'E'; + public const CURRENCY_EU = 'EUR'; public const CURRENCIES = [ - self::CURRENCY_RO => 'Lei', + self::CURRENCY_RO => 'RON', self::CURRENCY_GB => '£', self::CURRENCY_EU => '€', ]; diff --git a/app/Interfaces/RoleInterface.php b/app/Interfaces/RoleInterface.php index 067e2543..72804e45 100644 --- a/app/Interfaces/RoleInterface.php +++ b/app/Interfaces/RoleInterface.php @@ -41,6 +41,7 @@ class RoleInterface self::ADMIN, self::SUPER, self::USER, + self::STUDENT ]; const USER_SELECTABLE_ROLES = []; diff --git a/app/Interfaces/ThemeInterface.php b/app/Interfaces/ThemeInterface.php new file mode 100644 index 00000000..b8bad350 --- /dev/null +++ b/app/Interfaces/ThemeInterface.php @@ -0,0 +1,79 @@ + 'Base', + self::COLOR_BASE_CONTRAST => 'Base - Contrast', + self::COLOR_BASE_SUBTLE => 'Base Subtle', + self::COLOR_BASE_SUBTLE_CONTRAST => 'Base Subtle - Contrast', + self::COLOR_PRIMARY => 'Primary', + self::COLOR_PRIMARY_CONTRAST => 'Primary - Contrast', + self::COLOR_PRIMARY_HOVER => 'Primary Hover', + self::COLOR_PRIMARY_HOVER_CONTRAST => 'Primary Hover - Contrast', + self::COLOR_SECONDARY => 'Secondary', + self::COLOR_SECONDARY_CONTRAST => 'Secondary - Contrast', + self::COLOR_SECONDARY_HOVER => 'Secondary Hover', + self::COLOR_SECONDARY_HOVER_CONTRAST => 'Secondary: Hover - Contrast', + self::COLOR_ACCENT => 'Accent', + self::COLOR_ACCENT_CONTRAST => 'Accent - Contrast', + self::COLOR_ACCENT_HOVER => 'Accent Hover', + self::COLOR_ACCENT_HOVER_CONTRAST => 'Accent Hover - Contrast', + ]; + + const ALL_COLORS_CSS_VARS = [ + self::COLOR_BASE => 'color-base', + self::COLOR_BASE_CONTRAST => 'color-base-contrast', + self::COLOR_BASE_SUBTLE => 'color-base-subtle', + self::COLOR_BASE_SUBTLE_CONTRAST => 'color-base-subtle-contrast', + self::COLOR_PRIMARY => 'color-primary', + self::COLOR_PRIMARY_CONTRAST => 'color-primary-contrast', + self::COLOR_PRIMARY_HOVER => 'color-primary-hover', + self::COLOR_PRIMARY_HOVER_CONTRAST => 'color-primary-hover-contrast', + self::COLOR_SECONDARY => 'color-secondary', + self::COLOR_SECONDARY_CONTRAST => 'color-secondary-contrast', + self::COLOR_SECONDARY_HOVER => 'color-secondary-hover', + self::COLOR_SECONDARY_HOVER_CONTRAST => 'color-secondary-hover-contrast', + self::COLOR_ACCENT => 'color-accent', + self::COLOR_ACCENT_CONTRAST => 'color-accent-contrast', + self::COLOR_ACCENT_HOVER => 'color-accent-hover', + self::COLOR_ACCENT_HOVER_CONTRAST => 'color-accent-hover-contrast', + ]; + + const DEFAULT_COLORS = [ + self::COLOR_BASE => '#FFFFFF', + self::COLOR_BASE_CONTRAST => '#262C43', + self::COLOR_BASE_SUBTLE => '#E2E8F0', + self::COLOR_BASE_SUBTLE_CONTRAST => '#262C43', + self::COLOR_PRIMARY => '#2563EB', + self::COLOR_PRIMARY_CONTRAST => '#FFFFFF', + self::COLOR_PRIMARY_HOVER => '#1E40AF', + self::COLOR_PRIMARY_HOVER_CONTRAST => '#FFFFFF', + self::COLOR_SECONDARY => '#323954', + self::COLOR_SECONDARY_CONTRAST => '#FFFFFF', + self::COLOR_SECONDARY_HOVER => '#262C43', + self::COLOR_SECONDARY_HOVER_CONTRAST => '#FFFFFF', + self::COLOR_ACCENT => '#EA580C', + self::COLOR_ACCENT_CONTRAST => '#FFFFFF', + self::COLOR_ACCENT_HOVER => '#9A3412', + self::COLOR_ACCENT_HOVER_CONTRAST => '#FFFFFF', + ]; +} diff --git a/app/Interfaces/ThirdPartyInterface.php b/app/Interfaces/ThirdPartyInterface.php new file mode 100644 index 00000000..b3710f24 --- /dev/null +++ b/app/Interfaces/ThirdPartyInterface.php @@ -0,0 +1,99 @@ + 'Mailgun', + self::MAILER_SES => 'Amazon SES', + self::MAILER_SMTP => 'SMTP', + ]; + + const MAILER_CONFIG_ENCRYPTION = 'encryption'; + const MAILER_CONFIG_FROM_ADDRESS = 'from_address'; + const MAILER_CONFIG_FROM_NAME = 'from_name'; + const MAILER_CONFIG_HOST = 'host'; + const MAILER_CONFIG_USERNAME = 'username'; + const MAILER_CONFIG_PASSWORD = 'password'; + const MAILER_CONFIG_PORT = 'port'; + const MAILER_CONFIG_SERVICE_DOMAIN = 'service_domain'; + const MAILER_CONFIG_SERVICE_ENDPOINT = 'service_endpoint'; + const MAILER_CONFIG_SERVICE_KEY = 'service_key'; + const MAILER_CONFIG_SERVICE_REGION = 'service_region'; + const MAILER_CONFIG_SERVICE_SECRET = 'service_secret'; + const MAILER_CONFIG_TIMEOUT = 'timeout'; + + const ALL_MAILER_CONFIGS_LABELLED = [ + self::MAILER_CONFIG_ENCRYPTION => 'Encryption', + self::MAILER_CONFIG_FROM_ADDRESS => 'From Address', + self::MAILER_CONFIG_FROM_NAME => 'From Name', + self::MAILER_CONFIG_HOST => 'Host', + self::MAILER_CONFIG_USERNAME => 'Username', + self::MAILER_CONFIG_PASSWORD => 'Password', + self::MAILER_CONFIG_PORT => 'Port', + self::MAILER_CONFIG_SERVICE_DOMAIN => 'Domain', + self::MAILER_CONFIG_SERVICE_ENDPOINT => 'Endpoint', + self::MAILER_CONFIG_SERVICE_KEY => 'Key', + self::MAILER_CONFIG_SERVICE_REGION => 'Region', + self::MAILER_CONFIG_SERVICE_SECRET => 'Secret', + self::MAILER_CONFIG_TIMEOUT => 'Timout', + ]; + + const ALL_MAILER_CONFIGS_TYPES = [ + self::MAILER_CONFIG_ENCRYPTION => 'text', + self::MAILER_CONFIG_FROM_ADDRESS => 'text', + self::MAILER_CONFIG_FROM_NAME => 'text', + self::MAILER_CONFIG_HOST => 'text', + self::MAILER_CONFIG_USERNAME => 'text', + self::MAILER_CONFIG_PASSWORD => 'password', + self::MAILER_CONFIG_PORT => 'number', + self::MAILER_CONFIG_SERVICE_DOMAIN => 'text', + self::MAILER_CONFIG_SERVICE_ENDPOINT => 'text', + self::MAILER_CONFIG_SERVICE_KEY => 'password', + self::MAILER_CONFIG_SERVICE_REGION => 'text', + self::MAILER_CONFIG_SERVICE_SECRET => 'password', + self::MAILER_CONFIG_TIMEOUT => 'number', + ]; + + const MAILER_SETTING_KEYS_MAILGUN = [ + self::MAILER_CONFIG_FROM_ADDRESS, + self::MAILER_CONFIG_FROM_NAME, + self::MAILER_CONFIG_SERVICE_DOMAIN, + self::MAILER_CONFIG_SERVICE_SECRET, + self::MAILER_CONFIG_SERVICE_ENDPOINT, + ]; + + const MAILER_SETTING_KEYS_SES = [ + self::MAILER_CONFIG_FROM_ADDRESS, + self::MAILER_CONFIG_FROM_NAME, + self::MAILER_CONFIG_SERVICE_KEY, + self::MAILER_CONFIG_SERVICE_SECRET, + self::MAILER_CONFIG_SERVICE_REGION, + ]; + + const MAILER_SETTING_KEYS_SMTP = [ + self::MAILER_CONFIG_FROM_ADDRESS, + self::MAILER_CONFIG_FROM_NAME, + self::MAILER_CONFIG_HOST, + self::MAILER_CONFIG_PORT, + self::MAILER_CONFIG_ENCRYPTION, + self::MAILER_CONFIG_USERNAME, + self::MAILER_CONFIG_PASSWORD, + self::MAILER_CONFIG_TIMEOUT, + self::MAILER_CONFIG_SERVICE_DOMAIN, + self::MAILER_CONFIG_SERVICE_SECRET, + self::MAILER_CONFIG_SERVICE_ENDPOINT, + ]; + + const ALL_MAILER_SETTING_KEYS = [ + self::MAILER_MAILGUN => self::MAILER_SETTING_KEYS_MAILGUN, + self::MAILER_SES => self::MAILER_SETTING_KEYS_SES, + self::MAILER_SMTP => self::MAILER_SETTING_KEYS_SMTP, + ]; +} diff --git a/app/Jobs/EDU/Course/ProcessCoursePurchaseRegister.php b/app/Jobs/EDU/Course/ProcessCoursePurchaseRegister.php new file mode 100644 index 00000000..23a0239b --- /dev/null +++ b/app/Jobs/EDU/Course/ProcessCoursePurchaseRegister.php @@ -0,0 +1,27 @@ +payment->purchase->email_address)->send(new CoursePurchaseRegister($this->payment)); + } +} diff --git a/app/Mail/CRM/Form/FormSubmittedInternal.php b/app/Mail/CRM/Form/FormSubmittedInternal.php new file mode 100644 index 00000000..36d51eb3 --- /dev/null +++ b/app/Mail/CRM/Form/FormSubmittedInternal.php @@ -0,0 +1,53 @@ +formSubmission->load(['form', 'contact', 'form.formFields']); + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: 'Form Submitted: ' . $this->formSubmission->form->name, + ); + } + + /** + * Get the message content definition. + * @return Content + * @throws Exception + */ + public function content(): Content + { + return new Content( + markdown: 'mail.CRM.form.submission.internal', + with: [ + 'contact' => $this->formSubmission->contact ?? null, + 'form' => $this->formSubmission->form, + 'formFields' => $this->formSubmission->form->formFields, + 'submission' => $this->formSubmission, + ] + ); + } +} diff --git a/app/Mail/EDU/Course/CoursePurchaseRegister.php b/app/Mail/EDU/Course/CoursePurchaseRegister.php new file mode 100644 index 00000000..e6747b8b --- /dev/null +++ b/app/Mail/EDU/Course/CoursePurchaseRegister.php @@ -0,0 +1,63 @@ +tenantName = app(ThemeSettings::class)->getSiteName(); + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: implode( + " - ", + collect([ + $this->tenantName, + trans('messages.register-for-course'), + $this->payment->purchase->course->name + ])->filter()->toArray() + ), + ); + } + + /** + * Get the message content definition. + * @return Content + * @throws Exception + */ + public function content(): Content + { + return new Content( + markdown: 'mail.EDU.course.purchase.register-ro', + with: [ + 'url' => url("/student/register"), + 'payment' => $this->payment, + 'tenantName' => $this->tenantName, + ] + ); + } +} diff --git a/app/Mail/EDU/Course/TestEmail.php b/app/Mail/EDU/Course/TestEmail.php new file mode 100644 index 00000000..a181f802 --- /dev/null +++ b/app/Mail/EDU/Course/TestEmail.php @@ -0,0 +1,57 @@ +tenantName = app(ThemeSettings::class)->getSiteName(); + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: $this->tenantName . ' - ' + . trans('messages.register-for-course') . ' - ' + . $this->payment->purchase->course->name, + ); + } + + /** + * Get the message content definition. + * @return Content + * @throws Exception + */ + public function content(): Content + { + return new Content( + markdown: 'mail.EDU.course.purchase.register-ro', + with: [ + 'url' => url("/student/register"), + 'payment' => $this->payment, + 'tenantName' => $this->tenantName, + ] + ); + } +} diff --git a/app/Mail/Setting/MailerTest.php b/app/Mail/Setting/MailerTest.php new file mode 100644 index 00000000..619b3cbe --- /dev/null +++ b/app/Mail/Setting/MailerTest.php @@ -0,0 +1,41 @@ + $this->mailerSettings + ] + ); + } +} diff --git a/app/Models/CMS/Redirect.php b/app/Models/CMS/Redirect.php new file mode 100644 index 00000000..7c1e81a8 --- /dev/null +++ b/app/Models/CMS/Redirect.php @@ -0,0 +1,77 @@ + 'datetime', + 'is_enabled' => 'boolean', + 'is_permanent' => 'boolean', + 'published_at' => 'datetime' + ]; + + public function getHttpStatusAttribute(): int + { + return $this->is_permanent ? 301 : 302; + } + + public function getIsActiveAttribute(): bool + { + // Not enabled + if (!$this->is_enabled) { + return false; + } + + // Not yet reached published date + if (!is_null($this->published_at) && $this->published_at->isAfter(now())) { + return false; + } + + // Expiration date has been reached + if (!is_null($this->expired_at) && $this->expired_at->isBefore(now())) { + return false; + } + + return true; + } + + protected function scopeActive(Builder $query): Builder + { + return $query->where('is_enabled', true) + ->where(function (Builder $subQ) { + $subQ->whereNull('published_at') + ->orWhere('published_at', '<=', now()); + })->where(function (Builder $subQ) { + $subQ->whereNull('expired_at') + ->orWhere('expired_at', '>=', now()); + }); + } +} diff --git a/app/Models/CRM/Form.php b/app/Models/CRM/Form.php index c0f12fe5..5c1a5aae 100644 --- a/app/Models/CRM/Form.php +++ b/app/Models/CRM/Form.php @@ -2,11 +2,30 @@ namespace App\Models\CRM; +use Carbon\Carbon; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\SoftDeletes; - +use Illuminate\Support\Collection; + +/** + * @property int $id + * @property string $name + * @property string $slug + * @property ?array $email_recipients + * @property bool $marketing_email + * @property bool $marketing_sms + * @property bool $marketing_telephone + * @property ?string $submit_button_text + * @property ?string $redirect_url + * @property ?string $success_message + * @property Carbon $created_at + * @property Carbon $updated_at + * @property ?Carbon $deleted_at + * @property Collection $formFields + * @property Collection $formSubmissions + */ class Form extends Model { use HasFactory, SoftDeletes; @@ -23,14 +42,19 @@ class Form extends Model ]; - public function formFields() : HasMany + public function formFields(): HasMany { return $this->hasMany(FormField::class); } - public function formSubmissions() : HasMany + public function formSubmissions(): HasMany { return $this->hasMany(FormSubmission::class); } + public function hasEmailRecipients(): bool + { + return $this->email_recipients && count($this->email_recipients); + } + } diff --git a/app/Models/CRM/FormField.php b/app/Models/CRM/FormField.php index f2c43197..4fac1917 100644 --- a/app/Models/CRM/FormField.php +++ b/app/Models/CRM/FormField.php @@ -2,12 +2,27 @@ namespace App\Models\CRM; +use Carbon\Carbon; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\SoftDeletes; +/** + * @property int $id + * @property int $form_id + * @property string $type + * @property string $name + * @property string $slug + * @property bool $is_required + * @property int $order + * @property array $settings + * @property Carbon $created_at + * @property Carbon $updated_at + * @property ?Carbon $deleted_at + * @property Form $form + */ class FormField extends Model { use HasFactory, SoftDeletes; diff --git a/app/Models/CRM/FormSubmission.php b/app/Models/CRM/FormSubmission.php index 2f934f8b..bf1c5a20 100644 --- a/app/Models/CRM/FormSubmission.php +++ b/app/Models/CRM/FormSubmission.php @@ -2,11 +2,20 @@ namespace App\Models\CRM; +use Carbon\Carbon; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; -use Illuminate\Database\Eloquent\SoftDeletes; +/** + * @property int $id + * @property int $contact_id + * @property int $form_id + * @property array $data + * @property Carbon $submitted_at + * @property ?Contact $contact + * @property Form $form + */ class FormSubmission extends Model { use HasFactory; @@ -23,12 +32,12 @@ class FormSubmission extends Model ]; - public function contact() : BelongsTo + public function contact(): BelongsTo { return $this->belongsTo(Contact::class); } - public function form() : BelongsTo + public function form(): BelongsTo { return $this->belongsTo(Form::class); } diff --git a/app/Models/EDU/Course/Course.php b/app/Models/EDU/Course/Course.php index 332cdf8a..19d81b53 100644 --- a/app/Models/EDU/Course/Course.php +++ b/app/Models/EDU/Course/Course.php @@ -148,7 +148,7 @@ public function sections(): HasMany { return $this->hasMany(Section::class) ->with('childItems') - ->orderBy('index'); + ->orderBy('index', 'asc'); } public function webinars(): HasMany @@ -203,6 +203,6 @@ public function getIsPurchasableAttribute(): bool public function getCurrentPriceAttribute(): string { - return $this->discount_price ? $this->discount_price : $this->price; + return ($this->discount_price ?: $this->price) * 100; } } diff --git a/app/Models/EDU/Section/Section.php b/app/Models/EDU/Section/Section.php index a02447f0..427e0955 100644 --- a/app/Models/EDU/Section/Section.php +++ b/app/Models/EDU/Section/Section.php @@ -38,10 +38,21 @@ public function lectures(): HasMany ->orderBy('index'); } + public function lecturesCompleted(): HasMany + { + return $this->hasMany(Lecture::class) + ->where(''); + } + public function childItems(): HasMany { return $this->hasMany(Lecture::class) ->with('files') ->orderBy('index'); } + + public function files(): HasMany + { + return $this->hasMany(SectionFiles::class, 'section_id'); + } } diff --git a/app/Models/EDU/Section/SectionFiles.php b/app/Models/EDU/Section/SectionFiles.php new file mode 100644 index 00000000..aa3ce276 --- /dev/null +++ b/app/Models/EDU/Section/SectionFiles.php @@ -0,0 +1,23 @@ +belongsTo(Section::class); + } +} diff --git a/app/Models/Settings/ThemeSettings.php b/app/Models/Settings/ThemeSettings.php new file mode 100644 index 00000000..0ea8b28d --- /dev/null +++ b/app/Models/Settings/ThemeSettings.php @@ -0,0 +1,74 @@ +logo_url; + } + + public function getFaviconUrl(): ?string + { + return $this->favicon_url; + } + + public function getSiteName(): ?string + { + return $this->site_name; + } + + public function getGeneralThemeSettingsArray(): array + { + return [ + $this->favicon_url, + $this->logo_url, + $this->site_name, + ]; + } + + public function getColorsAsCssArray(): array + { + $cssVars = ThemeInterface::ALL_COLORS_CSS_VARS; + + $cssArray = []; + foreach ($cssVars as $colorKey => $cssVar) { + if (Arr::get($this->colors, $colorKey)) { + $cssArray['--' . $cssVar] = Arr::get($this->colors, $colorKey); + } + } + + return $cssArray; + } + + public function getColorsAsCssString(): string + { + $cssString = ''; + foreach ($this->getColorsAsCssArray() as $cssVar => $color) { + $cssString .= "$cssVar: $color; "; + } + + return $cssString; + } + +} diff --git a/app/Models/Settings/ThirdPartySettings.php b/app/Models/Settings/ThirdPartySettings.php index a418cbc4..c0f9f21f 100644 --- a/app/Models/Settings/ThirdPartySettings.php +++ b/app/Models/Settings/ThirdPartySettings.php @@ -6,13 +6,16 @@ class ThirdPartySettings extends Settings { - public string $stripe_publishable_key; + public ?string $stripe_publishable_key; - public string $stripe_secret_key; + public ?string $stripe_secret_key; + public ?string $gtm_id; + + public ?array $mailer; public static function group(): string { return 'thirdParty'; } -} \ No newline at end of file +} diff --git a/app/Models/Tenant.php b/app/Models/Tenant.php index 44c22895..a52d9431 100644 --- a/app/Models/Tenant.php +++ b/app/Models/Tenant.php @@ -3,17 +3,28 @@ namespace App\Models; use App\Models\Settings\CoreSettings; +use Exception; use Stancl\Tenancy\Database\Models\Tenant as BaseTenant; use Stancl\Tenancy\Contracts\TenantWithDatabase; use Stancl\Tenancy\Database\Concerns\HasDatabase; use Stancl\Tenancy\Database\Concerns\HasDomains; +/** + * + * @property string $id + * @property string $locale + */ class Tenant extends BaseTenant implements TenantWithDatabase { use HasDatabase, HasDomains; public function getLocaleAttribute(): string { - return app()->make(CoreSettings::class)->locale; + try { + return app()->make(CoreSettings::class)->locale; + } catch (Exception $e) { + // For when a tenant is being created + return 'en'; + } } } diff --git a/app/Providers/InertiaServiceProvider.php b/app/Providers/InertiaServiceProvider.php index 6ffffb05..30a6247e 100644 --- a/app/Providers/InertiaServiceProvider.php +++ b/app/Providers/InertiaServiceProvider.php @@ -175,7 +175,7 @@ protected function shareData() protected function versionAssets() { Inertia::version(function () { - return md5_file(public_path('mix-manifest.json')); + return md5_file(public_path('build/manifest.json')); }); } } diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 8e21d9f8..0a7a7d24 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -126,7 +126,7 @@ protected function mapWebhookRoutes(): void protected function mapLandlordWebRoutes(): void { $this->buildLandlordRoutes( - ['web', 'landlord.set-guard'], + ['landlord-web', 'landlord.set-guard'], 'landlord', 'routes/landlord/web.php' ); diff --git a/app/Traits/Admin/EDU/CourseActions.php b/app/Traits/Admin/EDU/CourseActions.php index e0b695f2..d6a27e58 100644 --- a/app/Traits/Admin/EDU/CourseActions.php +++ b/app/Traits/Admin/EDU/CourseActions.php @@ -131,8 +131,6 @@ public function updateCourse($course, $data) $sections = $data['sections']; unset($data['sections']); - // Create course - $data['status'] = CourseInterface::STATUS_DRAFT; $course->update($data); if (count($sections)) { diff --git a/app/Traits/Admin/Email/PreviewsMailables.php b/app/Traits/Admin/Email/PreviewsMailables.php index 15e32f27..685d00fa 100644 --- a/app/Traits/Admin/Email/PreviewsMailables.php +++ b/app/Traits/Admin/Email/PreviewsMailables.php @@ -2,7 +2,11 @@ namespace App\Traits\Admin\Email; +use App\Mail\CRM\Form\FormSubmittedInternal; use App\Mail\EDU\Course\CoursePurchasePaymentDue; +use App\Mail\EDU\Course\CoursePurchaseRegister; +use App\Models\CRM\Form; +use App\Models\CRM\FormSubmission; use App\Models\EDU\Course\Course; use App\Models\EDU\Course\CoursePurchase; use App\Models\EDU\Course\CoursePurchasePayment; @@ -19,11 +23,33 @@ trait PreviewsMailables 'module' => 'EDU', 'name' => 'Course Purchase Payment Due', ], + 'edu-course-purchase-register' => [ + 'mailable' => 'getCoursePurchaseRegisterMailable', + 'module' => 'EDU', + 'name' => 'Course Register', + ], ]; + protected function getMailableMap(): array + { + $map = $this->mailable_map; + + // Add any CRM forms -- NOTE: must have actual submissions for now + Form::has('formSubmissions')->each(function (Form $form) use (&$map) { + $map["crm-form-submitted-internal-{$form->id}"] = [ + 'mailable' => 'getFormSubmittedInternal', + 'mailableParams' => ['form_id' => $form->id], + 'module' => 'CRM', + 'name' => "Form Submitted Internal: {$form->name}", + ]; + }); + + return $map; + } + protected function getMailablePreviewUrls(): Collection { - return collect($this->mailable_map)->mapWithKeys(function (array $mailable, string $id) { + return collect($this->getMailableMap())->mapWithKeys(function (array $mailable, string $id) { return [ $id => [ 'module' => $mailable['module'], @@ -36,16 +62,25 @@ protected function getMailablePreviewUrls(): Collection protected function getMailable(string $mailable_id): ?Mailable { - $mailable = Arr::get($this->mailable_map, $mailable_id . '.mailable'); + $mailable_map = $this->getMailableMap(); + $mailable = Arr::get($mailable_map, $mailable_id . '.mailable'); + $params = Arr::get($mailable_map, $mailable_id . '.mailableParams', []); if (!$mailable) { return null; } - return $this->$mailable(); + return $this->$mailable($params); } - protected function getCoursePurchasePaymentDueMailable(): Mailable + protected function getFormSubmittedInternal(array $params): Mailable + { + return new FormSubmittedInternal( + FormSubmission::where('form_id', Arr::get($params, 'form_id'))->firstOrFail() + ); + } + + protected function getCoursePurchasePaymentDueMailable(array $params): Mailable { // Create a payment - ensuring no data is persisted in the DB $payment = CoursePurchasePayment::factory()->make([ @@ -65,4 +100,25 @@ protected function getCoursePurchasePaymentDueMailable(): Mailable return new CoursePurchasePaymentDue($payment); } + + protected function getCoursePurchaseRegisterMailable(array $params): Mailable + { + // Create a payment - ensuring no data is persisted in the DB + $payment = CoursePurchasePayment::factory()->make([ + 'id' => 0, + 'course_purchase_id' => null, + 'created_at' => now(), + ])->setRelation( + 'purchase', + CoursePurchase::factory()->make([ + 'course_id' => null, + 'user_id' => null + ])->setRelations([ + 'course' => Course::factory()->make(), + 'user' => User::factory()->make(), + ]) + ); + + return new CoursePurchaseRegister($payment); + } } diff --git a/app/Traits/Base/ManagesTenancyMailer.php b/app/Traits/Base/ManagesTenancyMailer.php new file mode 100644 index 00000000..84529a07 --- /dev/null +++ b/app/Traits/Base/ManagesTenancyMailer.php @@ -0,0 +1,127 @@ +mailer; + + // If no settings, use env as normal + if (is_null($mailerSetting)) { + return; + } + } + + $this->setMailFromConfigForTenant($tenant, $mailerSetting); + $this->setDefaultMailerConfigForTenant($tenant, $mailerSetting); + + switch (Arr::get($mailerSetting, 'mailer')) { + case ThirdPartyInterface::MAILER_MAILGUN: + $this->setMailgunMailerForTenant($tenant, $mailerSetting); + break; + case ThirdPartyInterface::MAILER_SES: + $this->setSesMailerForTenant($tenant, $mailerSetting); + break; + case ThirdPartyInterface::MAILER_SMTP: + $this->setSmtpMailerForTenant($tenant, $mailerSetting); + break; + } + } + + protected function setMailgunMailerForTenant(Tenant $tenant, array $mailerSetting): void + { + + $this->setMailerConfigForTenant([ + 'transport' => ThirdPartyInterface::MAILER_MAILGUN, + ]); + + $this->setServicesConfig( + 'mailgun', + [ + 'domain' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_SERVICE_DOMAIN), + 'secret' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_SERVICE_SECRET), + 'endpoint' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_SERVICE_ENDPOINT) ?? 'api.mailgun.net', + ] + ); + } + + protected function setSesMailerForTenant(Tenant $tenant, array $mailerSetting): void + { + $this->setMailerConfigForTenant([ + 'transport' => ThirdPartyInterface::MAILER_SES, + ]); + + $this->setServicesConfig( + 'ses', + [ + 'key' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_SERVICE_KEY), + 'secret' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_SERVICE_SECRET), + 'region' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_SERVICE_REGION), + ] + ); + } + + protected function setSmtpMailerForTenant(Tenant $tenant, array $mailerSetting): void + { + $this->setMailerConfigForTenant([ + 'transport' => ThirdPartyInterface::MAILER_SMTP, + 'host' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_HOST), + 'port' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_PORT), + 'encryption' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_ENCRYPTION), + 'username' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_USERNAME), + 'password' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_PASSWORD), + 'timeout' => is_numeric(Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_TIMEOUT)) ? Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_TIMEOUT) : null, + ]); + } + + protected function setDefaultMailerConfigForTenant(Tenant $tenant, array $mailerSetting): void + { + Config::set('mail.default', $this->mailer_key); + } + + protected function setMailFromConfigForTenant(Tenant $tenant, array $mailerSetting): void + { + Config::set( + 'mail.from', + [ + 'address' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_FROM_ADDRESS), + 'name' => Arr::get($mailerSetting, ThirdPartyInterface::MAILER_CONFIG_FROM_NAME), + ] + ); + } + + protected function setMailerConfigForTenant(array $config): void + { + Config::set( + 'mail.mailers.' . $this->mailer_key, + $config + ); + } + + protected function setServicesConfig(string $service, array $config): void + { + Config::set( + 'services.' . $service, + $config + ); + } +} diff --git a/app/Traits/CMS/ResourceHasContent.php b/app/Traits/CMS/ResourceHasContent.php index 5ed9cc57..403b51b3 100644 --- a/app/Traits/CMS/ResourceHasContent.php +++ b/app/Traits/CMS/ResourceHasContent.php @@ -2,12 +2,16 @@ namespace App\Traits\CMS; +use App\Http\Resources\Admin\CRM\OrganisationUnitResource; use App\Http\Resources\Web\CMS\ContentResource; use App\Http\Resources\Web\CMS\MenuResource; use App\Http\Resources\Web\CRM\FormResource; +use App\Http\Resources\Web\EDU\CourseShowResource; use App\Interfaces\CMS\TemplateFieldInterface; use App\Models\CMS\Menu; use App\Models\CRM\Form; +use App\Models\CRM\OrganisationUnit; +use App\Models\EDU\Course\Course; trait ResourceHasContent { @@ -17,20 +21,29 @@ protected function formatContent() // Loop through the content and get any "relation" fields $menu_fields = []; + $course_fields = []; $form_fields = []; + $organisation_unit_fields = []; foreach ($content as $template_field_slug => $c) { if ($c->template_field_type === TemplateFieldInterface::TYPE_CMS_MENU) { $menu_fields[$template_field_slug] = $c->data; + } elseif ($c->template_field_type === TemplateFieldInterface::TYPE_EDU_COURSE) { + $course_fields[$template_field_slug] = $c->data; } elseif ($c->template_field_type === TemplateFieldInterface::TYPE_CRM_FORM) { $form_fields[$template_field_slug] = $c->data; + } elseif ($c->template_field_type === TemplateFieldInterface::TYPE_CRM_ORGANISATION_UNIT) { + $organisation_unit_fields[$template_field_slug] = $c->data; } } // Load any menus $menu_ids = array_unique($menu_fields); if (count($menu_ids)) { - $menus = Menu::whereIn('id', $menu_ids)->get()->keyBy('id'); + $menus = Menu::whereIn('id', $menu_ids) + ->get() + ->keyBy('id'); + foreach ($menu_fields as $template_field_slug => $menu_id) { $content[$template_field_slug]['data'] = $menus->get($menu_id) ? MenuResource::make($menus->get($menu_id)) : @@ -38,10 +51,31 @@ protected function formatContent() } } + // Load any courses + $course_ids = array_unique($course_fields); + if (count($course_ids)) { + $courses = Course::whereIn('id', $course_ids)->with([ + 'creator', + 'instalmentPlans', + 'sections' + ])->get() + ->keyBy('id'); + + foreach ($course_fields as $template_field_slug => $course_id) { + $content[$template_field_slug]['data'] = $courses->get($course_id) ? + CourseShowResource::make($courses->get($course_id)) : + null; + } + } + // Load any forms $form_ids = array_unique($form_fields); if (count($form_ids)) { - $forms = Form::whereIn('id', $form_ids)->with('formFields')->get()->keyBy('id'); + $forms = Form::whereIn('id', $form_ids) + ->with('formFields') + ->get() + ->keyBy('id'); + foreach ($form_fields as $template_field_slug => $form_id) { $content[$template_field_slug]['data'] = $forms->get($form_id) ? FormResource::make($forms->get($form_id)) : @@ -49,6 +83,25 @@ protected function formatContent() } } + // Load any organisation units + $organisation_unit_ids = array_unique($organisation_unit_fields); + if (count($organisation_unit_fields)) { + $organisation_units = OrganisationUnit::whereIn('id', $organisation_unit_ids) + ->with([ + 'location', + 'company', + 'children', + ]) + ->get() + ->keyBy('id'); + + foreach ($organisation_unit_fields as $template_field_slug => $organisation_unit_id) { + $content[$template_field_slug]['data'] = $organisation_units->get($organisation_unit_id) ? + OrganisationUnitResource::make($organisation_units->get($organisation_unit_id)) : + null; + } + } + return $content; } } diff --git a/app/Traits/EDU/Course/CreatesCheckoutSessionForCourse.php b/app/Traits/EDU/Course/CreatesCheckoutSessionForCourse.php index e5a88acf..d85d8d42 100644 --- a/app/Traits/EDU/Course/CreatesCheckoutSessionForCourse.php +++ b/app/Traits/EDU/Course/CreatesCheckoutSessionForCourse.php @@ -11,6 +11,7 @@ use App\Models\Settings\ThirdPartySettings; use Exception; use Illuminate\Support\Collection; +use Illuminate\Support\Facades\App; use Stripe\Checkout\Session; use Stripe\Stripe; @@ -161,6 +162,7 @@ protected function buildCourseCheckoutSession(Course $course, CoursePurchase $pu $course, route('website.edu.courses.show', ['course' => $course]) . '?checkout=cancel' ), + 'locale' => App::getLocale(), ]); } } diff --git a/composer.json b/composer.json index 50014337..2a47e591 100644 --- a/composer.json +++ b/composer.json @@ -12,18 +12,22 @@ "fakerphp/faker": "^1.0", "guzzlehttp/guzzle": "^7.0.1", "honeybadger-io/honeybadger-laravel": "^3.18", - "inertiajs/inertia-laravel": "^0.6", + "inertiajs/inertia-laravel": "^1.0.0", "laravel/framework": "^10.0", "laravel/telescope": "^4.4", "laravel/tinker": "^2.0", "laravel/ui": "^4.0", "league/flysystem-aws-s3-v3": "^3.1", "predis/predis": "^1.0", + "sendgrid/sendgrid": "^8.1", + "spatie/laravel-ignition": "^2.4", "spatie/laravel-permission": "^5.8", "spatie/laravel-ray": "^1.33", "spatie/laravel-settings": "^3.2", "stancl/tenancy": "^3.7", "stripe/stripe-php": "^12.3", + "symfony/http-client": "^7.0", + "symfony/mailgun-mailer": "^7.0", "tightenco/ziggy": "^1.5", "vimeo/laravel": "^5.8" }, @@ -31,11 +35,11 @@ "barryvdh/laravel-debugbar": "^3.3", "brianium/paratest": "^7.0", "itsgoingd/clockwork": "^5.0", + "jetstreamlabs/zora": "^4.1", "laravel/sail": "^1.23", "mockery/mockery": "^1.3.1", "nunomaduro/collision": "^7.0", - "phpunit/phpunit": "^10.0", - "spatie/laravel-ignition": "2.0" + "phpunit/phpunit": "^10.0" }, "config": { "platform-check": false, @@ -49,6 +53,10 @@ } }, "autoload": { + "files": [ + "app/Helpers/Helper.php", + "app/Helpers/Tenant.php" + ], "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", diff --git a/composer.lock b/composer.lock index b6c894dc..1d87cd6e 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": "79bf5de38348a5b6ed3976fbe75e019a", + "content-hash": "e6294b304de094c489b9dbb1070ae177", "packages": [ { "name": "ankitpokhrel/tus-php", @@ -1638,27 +1638,27 @@ }, { "name": "inertiajs/inertia-laravel", - "version": "v0.6.11", + "version": "v1.0.0", "source": { "type": "git", "url": "https://github.com/inertiajs/inertia-laravel.git", - "reference": "2a1e19048f95c0e4adb2b2733f9119e49c4fc09f" + "reference": "fcf3d6db1a259a55d8d18cf43fc971202c1f6b0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/2a1e19048f95c0e4adb2b2733f9119e49c4fc09f", - "reference": "2a1e19048f95c0e4adb2b2733f9119e49c4fc09f", + "url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/fcf3d6db1a259a55d8d18cf43fc971202c1f6b0d", + "reference": "fcf3d6db1a259a55d8d18cf43fc971202c1f6b0d", "shasum": "" }, "require": { "ext-json": "*", - "laravel/framework": "^6.0|^7.0|^8.74|^9.0|^10.0", - "php": "^7.2|~8.0.0|~8.1.0|~8.2.0|~8.3.0" + "laravel/framework": "^8.74|^9.0|^10.0|^11.0", + "php": "^7.3|~8.0.0|~8.1.0|~8.2.0|~8.3.0" }, "require-dev": { "mockery/mockery": "^1.3.3", - "orchestra/testbench": "^4.0|^5.0|^6.4|^7.0|^8.0", - "phpunit/phpunit": "^8.0|^9.5.8", + "orchestra/testbench": "^6.4|^7.0|^8.0|^9.0", + "phpunit/phpunit": "^8.0|^9.5.8|^10.4", "roave/security-advisories": "dev-master" }, "suggest": { @@ -1670,6 +1670,9 @@ "providers": [ "Inertia\\ServiceProvider" ] + }, + "branch-alias": { + "dev-master": "1.x-dev" } }, "autoload": { @@ -1698,7 +1701,7 @@ ], "support": { "issues": "https://github.com/inertiajs/inertia-laravel/issues", - "source": "https://github.com/inertiajs/inertia-laravel/tree/v0.6.11" + "source": "https://github.com/inertiajs/inertia-laravel/tree/v1.0.0" }, "funding": [ { @@ -1706,7 +1709,7 @@ "type": "github" } ], - "time": "2023-10-27T10:59:02+00:00" + "time": "2024-03-09T00:30:58+00:00" }, { "name": "laravel/framework", @@ -4323,6 +4326,133 @@ ], "time": "2023-11-08T05:53:05+00:00" }, + { + "name": "sendgrid/php-http-client", + "version": "4.1.0", + "source": { + "type": "git", + "url": "https://github.com/sendgrid/php-http-client.git", + "reference": "84fe926f3d2ac3454f088c9a06ebdc398cc3727e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sendgrid/php-http-client/zipball/84fe926f3d2ac3454f088c9a06ebdc398cc3727e", + "reference": "84fe926f3d2ac3454f088c9a06ebdc398cc3727e", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=7.3" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "~2.0" + }, + "suggest": { + "composer/ca-bundle": "Including this library will ensure that a valid CA bundle is available for secure connections" + }, + "type": "library", + "autoload": { + "psr-4": { + "SendGrid\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Bernier", + "email": "mbernier@twilio.com" + }, + { + "name": "Elmer Thomas", + "email": "ethomas@twilio.com" + } + ], + "description": "HTTP REST client, simplified for PHP", + "homepage": "http://github.com/sendgrid/php-http-client", + "keywords": [ + "api", + "fluent", + "http", + "rest", + "sendgrid" + ], + "support": { + "source": "https://github.com/sendgrid/php-http-client/tree/4.1.0" + }, + "time": "2023-12-01T05:16:21+00:00" + }, + { + "name": "sendgrid/sendgrid", + "version": "8.1.1", + "source": { + "type": "git", + "url": "https://github.com/sendgrid/sendgrid-php.git", + "reference": "08514e75789f192c034fdcf18efe6d8b1a7c91da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sendgrid/sendgrid-php/zipball/08514e75789f192c034fdcf18efe6d8b1a7c91da", + "reference": "08514e75789f192c034fdcf18efe6d8b1a7c91da", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "php": ">=7.3", + "sendgrid/php-http-client": "4.1.0", + "starkbank/ecdsa": "0.*" + }, + "replace": { + "sendgrid/sendgrid-php": "*" + }, + "require-dev": { + "phpstan/phpstan": "^1.5", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "3.*", + "swaggest/json-diff": "^3.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "SendGrid\\Mail\\": "lib/mail/", + "SendGrid\\Stats\\": "lib/stats/", + "SendGrid\\Helper\\": "lib/helper/", + "SendGrid\\Contacts\\": "lib/contacts/", + "SendGrid\\EventWebhook\\": "lib/eventwebhook/" + }, + "classmap": [ + "lib/BaseSendGridClientInterface.php", + "lib/SendGrid.php", + "lib/TwilioEmail.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.", + "homepage": "http://github.com/sendgrid/sendgrid-php", + "keywords": [ + "email", + "grid", + "send", + "sendgrid", + "twilio sendgrid" + ], + "support": { + "source": "https://github.com/sendgrid/sendgrid-php/tree/8.1.1" + }, + "time": "2023-12-06T07:11:08+00:00" + }, { "name": "sixlive/dotenv-editor", "version": "v2.0.0", @@ -4439,41 +4569,41 @@ "time": "2023-06-28T12:59:17+00:00" }, { - "name": "spatie/laravel-permission", - "version": "5.11.1", + "name": "spatie/flare-client-php", + "version": "1.4.3", "source": { "type": "git", - "url": "https://github.com/spatie/laravel-permission.git", - "reference": "7090824cca57e693b880ce3aaf7ef78362e28bbd" + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/7090824cca57e693b880ce3aaf7ef78362e28bbd", - "reference": "7090824cca57e693b880ce3aaf7ef78362e28bbd", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec", + "reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec", "shasum": "" }, "require": { - "illuminate/auth": "^7.0|^8.0|^9.0|^10.0", - "illuminate/container": "^7.0|^8.0|^9.0|^10.0", - "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0", - "illuminate/database": "^7.0|^8.0|^9.0|^10.0", - "php": "^7.3|^8.0" + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.62.1", + "php": "^8.0", + "spatie/backtrace": "^1.5.2", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" }, "require-dev": { - "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0", - "phpunit/phpunit": "^9.4", - "predis/predis": "^1.1" + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/phpunit-snapshot-assertions": "^4.0|^5.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.x-dev", - "dev-master": "5.x-dev" - }, - "laravel": { - "providers": [ - "Spatie\\Permission\\PermissionServiceProvider" - ] + "dev-main": "1.3.x-dev" } }, "autoload": { @@ -4481,36 +4611,24 @@ "src/helpers.php" ], "psr-4": { - "Spatie\\Permission\\": "src" + "Spatie\\FlareClient\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://spatie.be", - "role": "Developer" - } - ], - "description": "Permission handling for Laravel 6.0 and up", - "homepage": "https://github.com/spatie/laravel-permission", + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", "keywords": [ - "acl", - "laravel", - "permission", - "permissions", - "rbac", - "roles", - "security", + "exception", + "flare", + "reporting", "spatie" ], "support": { - "issues": "https://github.com/spatie/laravel-permission/issues", - "source": "https://github.com/spatie/laravel-permission/tree/5.11.1" + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.4.3" }, "funding": [ { @@ -4518,57 +4636,56 @@ "type": "github" } ], - "time": "2023-10-25T05:12:01+00:00" + "time": "2023-10-17T15:54:07+00:00" }, { - "name": "spatie/laravel-ray", - "version": "1.33.1", + "name": "spatie/ignition", + "version": "1.12.0", "source": { "type": "git", - "url": "https://github.com/spatie/laravel-ray.git", - "reference": "b9574cec543b932d99e68247eaeb37876c71c8eb" + "url": "https://github.com/spatie/ignition.git", + "reference": "5b6f801c605a593106b623e45ca41496a6e7d56d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/b9574cec543b932d99e68247eaeb37876c71c8eb", - "reference": "b9574cec543b932d99e68247eaeb37876c71c8eb", + "url": "https://api.github.com/repos/spatie/ignition/zipball/5b6f801c605a593106b623e45ca41496a6e7d56d", + "reference": "5b6f801c605a593106b623e45ca41496a6e7d56d", "shasum": "" }, "require": { "ext-json": "*", - "illuminate/contracts": "^7.20|^8.19|^9.0|^10.0", - "illuminate/database": "^7.20|^8.19|^9.0|^10.0", - "illuminate/queue": "^7.20|^8.19|^9.0|^10.0", - "illuminate/support": "^7.20|^8.19|^9.0|^10.0", - "php": "^7.4|^8.0", - "spatie/backtrace": "^1.0", - "spatie/ray": "^1.37", - "symfony/stopwatch": "4.2|^5.1|^6.0|^7.0", - "zbateson/mail-mime-parser": "^1.3.1|^2.0" + "ext-mbstring": "*", + "php": "^8.0", + "spatie/backtrace": "^1.5.3", + "spatie/flare-client-php": "^1.4.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" }, "require-dev": { - "guzzlehttp/guzzle": "^7.3", - "laravel/framework": "^7.20|^8.19|^9.0|^10.0", - "orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0", - "pestphp/pest": "^1.22", - "phpstan/phpstan": "^0.12.93", - "phpunit/phpunit": "^9.3", - "spatie/pest-plugin-snapshots": "^1.1" + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "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", "extra": { "branch-alias": { - "dev-main": "1.29.x-dev" - }, - "laravel": { - "providers": [ - "Spatie\\LaravelRay\\RayServiceProvider" - ] + "dev-main": "1.5.x-dev" } }, "autoload": { "psr-4": { - "Spatie\\LaravelRay\\": "src" + "Spatie\\Ignition\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -4577,56 +4694,314 @@ ], "authors": [ { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://spatie.be", + "name": "Spatie", + "email": "info@spatie.be", "role": "Developer" } ], - "description": "Easily debug Laravel apps", - "homepage": "https://github.com/spatie/laravel-ray", + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", "keywords": [ - "laravel-ray", - "spatie" + "error", + "flare", + "laravel", + "page" ], "support": { - "issues": "https://github.com/spatie/laravel-ray/issues", - "source": "https://github.com/spatie/laravel-ray/tree/1.33.1" + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" }, "funding": [ { - "url": "https://github.com/sponsors/spatie", + "url": "https://github.com/spatie", "type": "github" - }, - { - "url": "https://spatie.be/open-source/support-us", - "type": "other" } ], - "time": "2024-01-04T21:36:17+00:00" + "time": "2024-01-03T15:49:39+00:00" }, { - "name": "spatie/laravel-settings", - "version": "3.2.3", + "name": "spatie/laravel-ignition", + "version": "2.4.2", "source": { "type": "git", - "url": "https://github.com/spatie/laravel-settings.git", - "reference": "2cca592b32ddce15b32ef1ef652d346416d2da03" + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "351504f4570e32908839fc5a2dc53bf77d02f85e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-settings/zipball/2cca592b32ddce15b32ef1ef652d346416d2da03", - "reference": "2cca592b32ddce15b32ef1ef652d346416d2da03", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/351504f4570e32908839fc5a2dc53bf77d02f85e", + "reference": "351504f4570e32908839fc5a2dc53bf77d02f85e", "shasum": "" }, "require": { + "ext-curl": "*", "ext-json": "*", - "illuminate/database": "^8.73|^9.0|^10.0", - "php": "^7.4|^8.0", - "phpdocumentor/type-resolver": "^1.5", - "spatie/temporary-directory": "^1.3|^2.0" - }, - "require-dev": { + "ext-mbstring": "*", + "illuminate/support": "^10.0|^11.0", + "php": "^8.1", + "spatie/flare-client-php": "^1.3.5", + "spatie/ignition": "^1.9", + "symfony/console": "^6.2.3|^7.0", + "symfony/var-dumper": "^6.2.3|^7.0" + }, + "require-dev": { + "livewire/livewire": "^2.11|^3.3.5", + "mockery/mockery": "^1.5.1", + "openai-php/client": "^0.8.1", + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^2.30", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan-deprecation-rules": "^1.1.1", + "phpstan/phpstan-phpunit": "^1.3.3", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "psr/simple-cache-implementation": "Needed to cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ], + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-02-09T16:08:40+00:00" + }, + { + "name": "spatie/laravel-permission", + "version": "5.11.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-permission.git", + "reference": "7090824cca57e693b880ce3aaf7ef78362e28bbd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/7090824cca57e693b880ce3aaf7ef78362e28bbd", + "reference": "7090824cca57e693b880ce3aaf7ef78362e28bbd", + "shasum": "" + }, + "require": { + "illuminate/auth": "^7.0|^8.0|^9.0|^10.0", + "illuminate/container": "^7.0|^8.0|^9.0|^10.0", + "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0", + "illuminate/database": "^7.0|^8.0|^9.0|^10.0", + "php": "^7.3|^8.0" + }, + "require-dev": { + "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0", + "phpunit/phpunit": "^9.4", + "predis/predis": "^1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.x-dev", + "dev-master": "5.x-dev" + }, + "laravel": { + "providers": [ + "Spatie\\Permission\\PermissionServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\Permission\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Permission handling for Laravel 6.0 and up", + "homepage": "https://github.com/spatie/laravel-permission", + "keywords": [ + "acl", + "laravel", + "permission", + "permissions", + "rbac", + "roles", + "security", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-permission/issues", + "source": "https://github.com/spatie/laravel-permission/tree/5.11.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-10-25T05:12:01+00:00" + }, + { + "name": "spatie/laravel-ray", + "version": "1.33.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ray.git", + "reference": "b9574cec543b932d99e68247eaeb37876c71c8eb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/b9574cec543b932d99e68247eaeb37876c71c8eb", + "reference": "b9574cec543b932d99e68247eaeb37876c71c8eb", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/contracts": "^7.20|^8.19|^9.0|^10.0", + "illuminate/database": "^7.20|^8.19|^9.0|^10.0", + "illuminate/queue": "^7.20|^8.19|^9.0|^10.0", + "illuminate/support": "^7.20|^8.19|^9.0|^10.0", + "php": "^7.4|^8.0", + "spatie/backtrace": "^1.0", + "spatie/ray": "^1.37", + "symfony/stopwatch": "4.2|^5.1|^6.0|^7.0", + "zbateson/mail-mime-parser": "^1.3.1|^2.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.3", + "laravel/framework": "^7.20|^8.19|^9.0|^10.0", + "orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0", + "pestphp/pest": "^1.22", + "phpstan/phpstan": "^0.12.93", + "phpunit/phpunit": "^9.3", + "spatie/pest-plugin-snapshots": "^1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.29.x-dev" + }, + "laravel": { + "providers": [ + "Spatie\\LaravelRay\\RayServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\LaravelRay\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily debug Laravel apps", + "homepage": "https://github.com/spatie/laravel-ray", + "keywords": [ + "laravel-ray", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-ray/issues", + "source": "https://github.com/spatie/laravel-ray/tree/1.33.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2024-01-04T21:36:17+00:00" + }, + { + "name": "spatie/laravel-settings", + "version": "3.2.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-settings.git", + "reference": "2cca592b32ddce15b32ef1ef652d346416d2da03" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-settings/zipball/2cca592b32ddce15b32ef1ef652d346416d2da03", + "reference": "2cca592b32ddce15b32ef1ef652d346416d2da03", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/database": "^8.73|^9.0|^10.0", + "php": "^7.4|^8.0", + "phpdocumentor/type-resolver": "^1.5", + "spatie/temporary-directory": "^1.3|^2.0" + }, + "require-dev": { "ext-redis": "*", "mockery/mockery": "^1.4", "nunomaduro/larastan": "^2.0", @@ -5023,17 +5398,57 @@ "shasum": "" }, "require": { - "illuminate/database": "^9.0|^10.0", - "illuminate/support": "^9.0|^10.0" - }, - "require-dev": { - "orchestra/testbench": "^7.0|^8.0" + "illuminate/database": "^9.0|^10.0", + "illuminate/support": "^9.0|^10.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Stancl\\VirtualColumn\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Samuel Štancl", + "email": "samuel.stancl@gmail.com" + } + ], + "description": "Eloquent virtual column.", + "support": { + "issues": "https://github.com/archtechx/virtualcolumn/issues", + "source": "https://github.com/archtechx/virtualcolumn/tree/v1.3.1" + }, + "time": "2023-02-16T10:34:42+00:00" + }, + { + "name": "starkbank/ecdsa", + "version": "0.0.5", + "source": { + "type": "git", + "url": "https://github.com/starkbank/ecdsa-php.git", + "reference": "484bedac47bac4012dc73df91da221f0a66845cb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/starkbank/ecdsa-php/zipball/484bedac47bac4012dc73df91da221f0a66845cb", + "reference": "484bedac47bac4012dc73df91da221f0a66845cb", + "shasum": "" + }, + "require": { + "php": ">=5.5" }, "type": "library", "autoload": { - "psr-4": { - "Stancl\\VirtualColumn\\": "src/" - } + "files": [ + "src/ellipticcurve.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5041,16 +5456,19 @@ ], "authors": [ { - "name": "Samuel Štancl", - "email": "samuel.stancl@gmail.com" + "name": "StarkBank", + "email": "developers@starkbank.com", + "homepage": "https://starkbank.com", + "role": "Developer" } ], - "description": "Eloquent virtual column.", + "description": "fast openSSL-compatible implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA)", + "homepage": "https://github.com/starkbank/ecdsa-php", "support": { - "issues": "https://github.com/archtechx/virtualcolumn/issues", - "source": "https://github.com/archtechx/virtualcolumn/tree/v1.3.1" + "issues": "https://github.com/starkbank/ecdsa-php/issues", + "source": "https://github.com/starkbank/ecdsa-php/tree/v0.0.5" }, - "time": "2023-02-16T10:34:42+00:00" + "time": "2021-06-06T22:24:49+00:00" }, { "name": "stripe/stripe-php", @@ -5632,6 +6050,176 @@ ], "time": "2023-10-31T17:30:12+00:00" }, + { + "name": "symfony/http-client", + "version": "v7.0.6", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client.git", + "reference": "6e70473909f46fe5dd3b994a0f1b20ecb6b2f858" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client/zipball/6e70473909f46fe5dd3b994a0f1b20ecb6b2f858", + "reference": "6e70473909f46fe5dd3b994a0f1b20ecb6b2f858", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/http-client-contracts": "^3.4.1", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "php-http/discovery": "<1.15", + "symfony/http-foundation": "<6.4" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "1.0", + "symfony/http-client-implementation": "3.0" + }, + "require-dev": { + "amphp/amp": "^2.5", + "amphp/http-client": "^4.2.1", + "amphp/http-tunnel": "^1.0", + "amphp/socket": "^1.1", + "guzzlehttp/promises": "^1.4|^2.0", + "nyholm/psr7": "^1.0", + "php-http/httplug": "^1.0|^2.0", + "psr/http-client": "^1.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpClient\\": "" + }, + "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": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", + "homepage": "https://symfony.com", + "keywords": [ + "http" + ], + "support": { + "source": "https://github.com/symfony/http-client/tree/v7.0.6" + }, + "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-04-01T20:49:44+00:00" + }, + { + "name": "symfony/http-client-contracts", + "version": "v3.4.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client-contracts.git", + "reference": "b6b5c876b3a4ed74460e2c5ac53bbce2f12e2a7e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/b6b5c876b3a4ed74460e2c5ac53bbce2f12e2a7e", + "reference": "b6b5c876b3a4ed74460e2c5ac53bbce2f12e2a7e", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\HttpClient\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "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": "Generic abstractions related to HTTP clients", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/http-client-contracts/tree/v3.4.2" + }, + "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-04-01T18:51:09+00:00" + }, { "name": "symfony/http-foundation", "version": "v6.4.2", @@ -5902,6 +6490,75 @@ ], "time": "2023-12-19T09:12:31+00:00" }, + { + "name": "symfony/mailgun-mailer", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailgun-mailer.git", + "reference": "96df0d3815dc72367ecc38c4a82d8021f8bddd4e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailgun-mailer/zipball/96df0d3815dc72367ecc38c4a82d8021f8bddd4e", + "reference": "96df0d3815dc72367ecc38c4a82d8021f8bddd4e", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/mailer": "^6.4|^7.0" + }, + "conflict": { + "symfony/http-foundation": "<6.4" + }, + "require-dev": { + "symfony/http-client": "^6.4|^7.0", + "symfony/webhook": "^6.4|^7.0" + }, + "type": "symfony-mailer-bridge", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\Bridge\\Mailgun\\": "" + }, + "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": "Symfony Mailgun Mailer Bridge", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailgun-mailer/tree/v7.0.4" + }, + "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-02-15T11:33:06+00:00" + }, { "name": "symfony/mime", "version": "v6.4.0", @@ -8634,21 +9291,78 @@ "php": "^7.1|^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.17", - "jean85/composer-provided-replaced-stub-package": "^1.0", - "phpstan/phpstan": "^0.12.66", - "phpunit/phpunit": "^7.5|^8.5|^9.4", - "vimeo/psalm": "^4.3" + "friendsofphp/php-cs-fixer": "^2.17", + "jean85/composer-provided-replaced-stub-package": "^1.0", + "phpstan/phpstan": "^0.12.66", + "phpunit/phpunit": "^7.5|^8.5|^9.4", + "vimeo/psalm": "^4.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Jean85\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A library to get pretty versions strings of installed dependencies", + "keywords": [ + "composer", + "package", + "release", + "versions" + ], + "support": { + "issues": "https://github.com/Jean85/pretty-package-versions/issues", + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.5" + }, + "time": "2021-10-08T21:21:46+00:00" + }, + { + "name": "jetstreamlabs/zora", + "version": "v4.1.2", + "source": { + "type": "git", + "url": "https://github.com/jetstreamlabs/zora.git", + "reference": "8c303e9f37fbd75eb8a0200a9372b54b1d3f9386" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jetstreamlabs/zora/zipball/8c303e9f37fbd75eb8a0200a9372b54b1d3f9386", + "reference": "8c303e9f37fbd75eb8a0200a9372b54b1d3f9386", + "shasum": "" + }, + "require": { + "laravel/framework": "^9.0|^10.0", + "php": "^8.1" + }, + "require-dev": { + "jetstreamlabs/pinte": "^1.0" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.x-dev" + "laravel": { + "providers": [ + "Jetlabs\\Zora\\ZoraServiceProvider" + ] } }, "autoload": { "psr-4": { - "Jean85\\": "src/" + "Jetlabs\\Zora\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -8657,22 +9371,16 @@ ], "authors": [ { - "name": "Alessandro Lai", - "email": "alessandro.lai85@gmail.com" + "name": "secondman", + "email": "secondman@jetstreamlabs.com" } ], - "description": "A library to get pretty versions strings of installed dependencies", - "keywords": [ - "composer", - "package", - "release", - "versions" - ], + "description": "Add your Laravel language translations to your asset pipeline for use in Javascript packages like Vue or React.", "support": { - "issues": "https://github.com/Jean85/pretty-package-versions/issues", - "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.5" + "issues": "https://github.com/jetstreamlabs/zora/issues", + "source": "https://github.com/jetstreamlabs/zora/tree/v4.1.2" }, - "time": "2021-10-08T21:21:46+00:00" + "time": "2024-01-29T08:46:55+00:00" }, { "name": "laravel/sail", @@ -10491,248 +11199,6 @@ ], "time": "2023-02-07T11:34:05+00:00" }, - { - "name": "spatie/flare-client-php", - "version": "1.4.3", - "source": { - "type": "git", - "url": "https://github.com/spatie/flare-client-php.git", - "reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec", - "reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec", - "shasum": "" - }, - "require": { - "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", - "nesbot/carbon": "^2.62.1", - "php": "^8.0", - "spatie/backtrace": "^1.5.2", - "symfony/http-foundation": "^5.2|^6.0|^7.0", - "symfony/mime": "^5.2|^6.0|^7.0", - "symfony/process": "^5.2|^6.0|^7.0", - "symfony/var-dumper": "^5.2|^6.0|^7.0" - }, - "require-dev": { - "dms/phpunit-arraysubset-asserts": "^0.5.0", - "pestphp/pest": "^1.20|^2.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", - "spatie/phpunit-snapshot-assertions": "^4.0|^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.3.x-dev" - } - }, - "autoload": { - "files": [ - "src/helpers.php" - ], - "psr-4": { - "Spatie\\FlareClient\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Send PHP errors to Flare", - "homepage": "https://github.com/spatie/flare-client-php", - "keywords": [ - "exception", - "flare", - "reporting", - "spatie" - ], - "support": { - "issues": "https://github.com/spatie/flare-client-php/issues", - "source": "https://github.com/spatie/flare-client-php/tree/1.4.3" - }, - "funding": [ - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2023-10-17T15:54:07+00:00" - }, - { - "name": "spatie/ignition", - "version": "1.12.0", - "source": { - "type": "git", - "url": "https://github.com/spatie/ignition.git", - "reference": "5b6f801c605a593106b623e45ca41496a6e7d56d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/ignition/zipball/5b6f801c605a593106b623e45ca41496a6e7d56d", - "reference": "5b6f801c605a593106b623e45ca41496a6e7d56d", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-mbstring": "*", - "php": "^8.0", - "spatie/backtrace": "^1.5.3", - "spatie/flare-client-php": "^1.4.0", - "symfony/console": "^5.4|^6.0|^7.0", - "symfony/var-dumper": "^5.4|^6.0|^7.0" - }, - "require-dev": { - "illuminate/cache": "^9.52|^10.0|^11.0", - "mockery/mockery": "^1.4", - "pestphp/pest": "^1.20|^2.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", - "psr/simple-cache-implementation": "*", - "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", - "extra": { - "branch-alias": { - "dev-main": "1.5.x-dev" - } - }, - "autoload": { - "psr-4": { - "Spatie\\Ignition\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Spatie", - "email": "info@spatie.be", - "role": "Developer" - } - ], - "description": "A beautiful error page for PHP applications.", - "homepage": "https://flareapp.io/ignition", - "keywords": [ - "error", - "flare", - "laravel", - "page" - ], - "support": { - "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", - "forum": "https://twitter.com/flareappio", - "issues": "https://github.com/spatie/ignition/issues", - "source": "https://github.com/spatie/ignition" - }, - "funding": [ - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2024-01-03T15:49:39+00:00" - }, - { - "name": "spatie/laravel-ignition", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/spatie/laravel-ignition.git", - "reference": "70c0e2a22c5c4b691a34db8c98bd6d695660a97a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/70c0e2a22c5c4b691a34db8c98bd6d695660a97a", - "reference": "70c0e2a22c5c4b691a34db8c98bd6d695660a97a", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*", - "illuminate/support": "^10.0", - "php": "^8.1", - "spatie/flare-client-php": "^1.3.5", - "spatie/ignition": "^1.4.3", - "symfony/console": "^6.2.3", - "symfony/var-dumper": "^6.2.3" - }, - "require-dev": { - "livewire/livewire": "^2.11", - "mockery/mockery": "^1.5.1", - "orchestra/testbench": "^8.0", - "pestphp/pest": "^1.22.3", - "phpstan/extension-installer": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.1.1", - "phpstan/phpstan-phpunit": "^1.3.3" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Spatie\\LaravelIgnition\\IgnitionServiceProvider" - ], - "aliases": { - "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" - } - }, - "branch-alias": { - "dev-main": "2.0-dev" - } - }, - "autoload": { - "files": [ - "src/helpers.php" - ], - "psr-4": { - "Spatie\\LaravelIgnition\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Spatie", - "email": "info@spatie.be", - "role": "Developer" - } - ], - "description": "A beautiful error page for Laravel applications.", - "homepage": "https://flareapp.io/ignition", - "keywords": [ - "error", - "flare", - "laravel", - "page" - ], - "support": { - "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", - "forum": "https://twitter.com/flareappio", - "issues": "https://github.com/spatie/laravel-ignition/issues", - "source": "https://github.com/spatie/laravel-ignition" - }, - "funding": [ - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2023-01-24T07:20:39+00:00" - }, { "name": "symfony/yaml", "version": "v7.0.0", diff --git a/config/mail.php b/config/mail.php index 5201bb76..872327d0 100644 --- a/config/mail.php +++ b/config/mail.php @@ -1,109 +1,6 @@ env('MAIL_MAILER', 'smtp'), - - /* - |-------------------------------------------------------------------------- - | Mailer Configurations - |-------------------------------------------------------------------------- - | - | Here you may configure all of the mailers used by your application plus - | their respective settings. Several examples have been configured for - | you and you are free to add your own as your application requires. - | - | Laravel supports a variety of mail "transport" drivers to be used while - | sending an e-mail. You will specify which one you are using for your - | mailers below. You are free to add additional mailers as required. - | - | Supported: "smtp", "sendmail", "mailgun", "ses", - | "postmark", "log", "array" - | - */ - - 'mailers' => [ - 'smtp' => [ - 'transport' => 'smtp', - 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), - 'port' => env('MAIL_PORT', 587), - 'encryption' => env('MAIL_ENCRYPTION', 'tls'), - 'username' => env('MAIL_USERNAME'), - 'password' => env('MAIL_PASSWORD'), - 'timeout' => null, - ], - - 'ses' => [ - 'transport' => 'ses', - ], - - 'mailgun' => [ - 'transport' => 'mailgun', - ], - - 'postmark' => [ - 'transport' => 'postmark', - ], - - 'sendmail' => [ - 'transport' => 'sendmail', - 'path' => '/usr/sbin/sendmail -bs', - ], - - 'log' => [ - 'transport' => 'log', - 'channel' => env('MAIL_LOG_CHANNEL'), - ], - - 'array' => [ - 'transport' => 'array', - ], - ], - - /* - |-------------------------------------------------------------------------- - | Global "From" Address - |-------------------------------------------------------------------------- - | - | You may wish for all e-mails sent by your application to be sent from - | the same address. Here, you may specify a name and address that is - | used globally for all e-mails that are sent by your application. - | - */ - - 'from' => [ - 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), - 'name' => env('MAIL_FROM_NAME', 'Example'), - ], - - /* - |-------------------------------------------------------------------------- - | Markdown Mail Settings - |-------------------------------------------------------------------------- - | - | If you are using Markdown based email rendering, you may configure your - | theme and component paths here, allowing you to customize the design - | of the emails. Or, you may simply stick with the Laravel defaults! - | - */ - - 'markdown' => [ - 'theme' => 'default', - - 'paths' => [ - resource_path('views/vendor/mail'), - ], - ], - -]; +/** + * To update the services config, update the function in App\Helpers\Helpers + */ +return default_mail_config(); diff --git a/config/meta.php b/config/meta.php index cc22e1f5..34422e70 100644 --- a/config/meta.php +++ b/config/meta.php @@ -2,7 +2,7 @@ return [ 'admin' => [ - 'description' => "SIGI - powered by Laravel, Tailwind, Vue, and Inertia", + 'description' => "SIGI - powering your online presence", 'title' => [ 'SIGI', 'Admin' diff --git a/config/services.php b/config/services.php index 2a1d616c..1606d243 100644 --- a/config/services.php +++ b/config/services.php @@ -1,33 +1,6 @@ [ - 'domain' => env('MAILGUN_DOMAIN'), - 'secret' => env('MAILGUN_SECRET'), - 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), - ], - - 'postmark' => [ - 'token' => env('POSTMARK_TOKEN'), - ], - - 'ses' => [ - 'key' => env('AWS_ACCESS_KEY_ID'), - 'secret' => env('AWS_SECRET_ACCESS_KEY'), - 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), - ], - -]; +/** + * To update the services config, update the function in App\Helpers\Helpers + */ +return default_services_config(); diff --git a/config/settings.php b/config/settings.php index 16886a3d..3b3369e2 100644 --- a/config/settings.php +++ b/config/settings.php @@ -23,7 +23,7 @@ * a custom defined path when running the command. */ 'migrations_paths' => [ - database_path('migrations/tenant'), + database_path('migrations/landlord'), ], /* diff --git a/config/tenancy.php b/config/tenancy.php index 65e7929b..dc5312c3 100644 --- a/config/tenancy.php +++ b/config/tenancy.php @@ -166,7 +166,7 @@ // Stancl\Tenancy\Features\UniversalRoutes::class, Stancl\Tenancy\Features\TenantConfig::class, // https://tenancyforlaravel.com/docs/v3/features/tenant-config // Stancl\Tenancy\Features\CrossDomainRedirect::class, // https://tenancyforlaravel.com/docs/v3/features/cross-domain-redirect - // Stancl\Tenancy\Features\ViteBundler::class, + Stancl\Tenancy\Features\ViteBundler::class, ], /** diff --git a/database/factories/CMS/RedirectFactory.php b/database/factories/CMS/RedirectFactory.php new file mode 100644 index 00000000..b9b5a5ed --- /dev/null +++ b/database/factories/CMS/RedirectFactory.php @@ -0,0 +1,39 @@ + $this->faker->unique()->url(), + 'url_to' => $this->faker->url(), + 'is_enabled' => $this->faker->boolean(), + 'published_at' => $this->faker->dateTime(), + 'expired_at' => $this->faker->boolean() ? + null : + $this->faker->dateTimeBetween(now()->clone()->subWeek(), now()->clone()->addWeek()) + ]; + } +} diff --git a/database/factories/CRM/OrganisationUnitFactory.php b/database/factories/CRM/OrganisationUnitFactory.php index 4f986f55..7c0ddcbd 100644 --- a/database/factories/CRM/OrganisationUnitFactory.php +++ b/database/factories/CRM/OrganisationUnitFactory.php @@ -40,6 +40,8 @@ public function definition() 'facebook' => $this->faker->userName(), 'instagram' => $this->faker->userName(), 'linkedin' => $this->faker->userName(), + 'snapchat' => $this->faker->userName(), + 'tiktok' => $this->faker->userName(), 'twitter' => $this->faker->userName(), ], 'company_id' => null, // Note this should be overridden at the factory create/make level for non-company types diff --git a/database/migrations/landlord/2020_08_22_115240_create_landlord_base_permission_roles.php b/database/migrations/landlord/2020_08_22_115240_create_landlord_base_permission_roles.php index d4826cb1..ab5cea3f 100644 --- a/database/migrations/landlord/2020_08_22_115240_create_landlord_base_permission_roles.php +++ b/database/migrations/landlord/2020_08_22_115240_create_landlord_base_permission_roles.php @@ -3,6 +3,8 @@ use App\Interfaces\Landlord\PermissionInterface; use App\Interfaces\Landlord\RoleInterface; use Illuminate\Database\Migrations\Migration; +use Illuminate\Support\Collection; +use Illuminate\Support\Facades\DB; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; use Spatie\Permission\PermissionRegistrar; @@ -37,17 +39,19 @@ public function up(): void app()[PermissionRegistrar::class]->forgetCachedPermissions(); // Create the new permissions - foreach ($this->getNewPermissions() as $permission) { - Permission::create(['guard_name' => 'landlord-web', 'name' => $permission]); - } + $permissions = $this->getNewPermissions()->map(function ($permission) { + return [ + 'name' => $permission, + 'guard_name' => 'landlord-web' + ]; + }); + DB::table('permissions')->insert($permissions->toArray()); // Create the new roles and assign any permissions foreach ($this->getNewRoles() as $role_name => $permissions) { $role = Role::create(['guard_name' => 'landlord-web', 'name' => $role_name]); // Assign the permissions to the role - foreach ($permissions as $permission) { - $role->givePermissionTo($permission); - } + $role->givePermissionTo($permissions); } auth()->setDefaultDriver($originalDriver); @@ -61,19 +65,19 @@ public function up(): void public function down(): void { // Delete the new Permissions and Roles - Permission::whereIn('name', $this->getNewPermissions())->delete(); - Role::whereIn('name', array_keys($this->getNewRoles()))->delete(); + Permission::whereIn('name', $this->getNewPermissions()->toArray())->delete(); + Role::whereIn('name', array_keys($this->getNewRoles()->toArray()))->delete(); } /** * New Permissions being added in the migration * - * @return array + * @return Collection */ - protected function getNewPermissions(): array + protected function getNewPermissions(): Collection { - return [ + return collect([ // Admin PermissionInterface::VIEW_ADMIN, @@ -99,17 +103,17 @@ protected function getNewPermissions(): array PermissionInterface::DELETE_USERS, PermissionInterface::EDIT_USERS, PermissionInterface::VIEW_USERS, - ]; + ]); } /** * New Roles with the associated permissions * - * @return array[] + * @return Collection> */ - protected function getNewRoles(): array + protected function getNewRoles(): Collection { - return [ + return collect([ RoleInterface::ADMIN => [ // Admin PermissionInterface::VIEW_ADMIN, @@ -127,6 +131,6 @@ protected function getNewRoles(): array PermissionInterface::VIEW_USERS, ], RoleInterface::SUPER => [], - ]; + ]); } } diff --git a/database/migrations/landlord/2023_09_13_000000_create_settings_table.php b/database/migrations/landlord/2023_09_13_000000_create_settings_table.php new file mode 100644 index 00000000..9d690b6a --- /dev/null +++ b/database/migrations/landlord/2023_09_13_000000_create_settings_table.php @@ -0,0 +1,29 @@ +id(); + + $table->string('group'); + $table->string('name'); + $table->boolean('locked')->default(false); + $table->json('payload'); + + $table->timestamps(); + + $table->unique(['group', 'name']); + }); + } + + public function down() + { + Schema::dropIfExists('settings'); + } +}; diff --git a/database/migrations/tenant/2020_08_22_115240_create_base_permission_roles.php b/database/migrations/tenant/2020_08_22_115240_create_base_permission_roles.php index f9002015..0de00c63 100644 --- a/database/migrations/tenant/2020_08_22_115240_create_base_permission_roles.php +++ b/database/migrations/tenant/2020_08_22_115240_create_base_permission_roles.php @@ -3,6 +3,8 @@ use App\Interfaces\PermissionInterface; use App\Interfaces\RoleInterface; use Illuminate\Database\Migrations\Migration; +use Illuminate\Support\Collection; +use Illuminate\Support\Facades\DB; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; use Spatie\Permission\PermissionRegistrar; @@ -37,17 +39,19 @@ public function up(): void app()[PermissionRegistrar::class]->forgetCachedPermissions(); // Create the new permissions - foreach ($this->getNewPermissions() as $permission) { - Permission::create(['name' => $permission]); - } + $permissions = $this->getNewPermissions()->map(function ($permission) { + return [ + 'name' => $permission, + 'guard_name' => 'web' + ]; + }); + DB::table('permissions')->insert($permissions->toArray()); // Create the new roles and assign any permissions foreach ($this->getNewRoles() as $role_name => $permissions) { $role = Role::create(['name' => $role_name]); // Assign the permissions to the role - foreach ($permissions as $permission) { - $role->givePermissionTo($permission); - } + $role->givePermissionTo($permissions); } auth()->setDefaultDriver($originalDriver); @@ -61,19 +65,19 @@ public function up(): void public function down(): void { // Delete the new Permissions and Roles - Permission::whereIn('name', $this->getNewPermissions())->delete(); - Role::whereIn('name', array_keys($this->getNewRoles()))->delete(); + Permission::whereIn('name', $this->getNewPermissions()->toArray())->delete(); + Role::whereIn('name', array_keys($this->getNewRoles()->toArray()))->delete(); } /** * New Permissions being added in the migration * - * @return array + * @return Collection */ - protected function getNewPermissions(): array + protected function getNewPermissions(): Collection { - return [ + return collect([ // Admin PermissionInterface::VIEW_ADMIN, @@ -182,17 +186,17 @@ protected function getNewPermissions(): array // Student PermissionInterface::VIEW_STUDENT_ADMIN, PermissionInterface::EDIT_STUDENT_ADMIN, - ]; + ]); } /** * New Roles with the associated permissions * - * @return array[] + * @return Collection> */ - protected function getNewRoles(): array + protected function getNewRoles(): Collection { - return [ + return collect([ RoleInterface::ADMIN => [ // Admin PermissionInterface::VIEW_ADMIN, @@ -300,6 +304,6 @@ protected function getNewRoles(): array PermissionInterface::EDIT_PROFILE, PermissionInterface::VIEW_PROFILE, ] - ]; + ]); } } diff --git a/database/migrations/tenant/2021_02_04_000000_create_cms_metadata_table.php b/database/migrations/tenant/2021_02_04_000000_create_cms_metadata_table.php index 5ea7e38f..7b21d356 100644 --- a/database/migrations/tenant/2021_02_04_000000_create_cms_metadata_table.php +++ b/database/migrations/tenant/2021_02_04_000000_create_cms_metadata_table.php @@ -21,6 +21,7 @@ public function up() $table->string('canonical')->nullable(); $table->string('description')->nullable(); $table->string('title')->nullable(); + $table->string('keywords')->nullable(); $table->string('og_description')->nullable(); $table->string('og_image')->nullable(); $table->string('og_title')->nullable(); diff --git a/database/migrations/tenant/2023_09_13_200859_create_edu_lectures_table.php b/database/migrations/tenant/2023_09_13_200859_create_edu_lectures_table.php index 9d634631..b3c1d65e 100644 --- a/database/migrations/tenant/2023_09_13_200859_create_edu_lectures_table.php +++ b/database/migrations/tenant/2023_09_13_200859_create_edu_lectures_table.php @@ -20,7 +20,7 @@ public function up(): void $table->longText('preview_url')->nullable(); $table->longText('video_url')->nullable(); $table->string('content_length')->nullable(); - $table->string('index')->nullable(); + $table->integer('index')->nullable(); $table->string('item_type')->nullable(); // Lecture OR Quiz $table->unsignedBigInteger('section_id')->index(); $table->softDeletes(); diff --git a/database/migrations/tenant/2024_03_09_000000_create_theme_settings.php b/database/migrations/tenant/2024_03_09_000000_create_theme_settings.php new file mode 100644 index 00000000..8ec0de23 --- /dev/null +++ b/database/migrations/tenant/2024_03_09_000000_create_theme_settings.php @@ -0,0 +1,35 @@ +migrator->add( + 'theme.colors', + ThemeInterface::DEFAULT_COLORS + ); + + $this->migrator->add( + 'theme.favicon_url', + null + ); + + $this->migrator->add( + 'theme.logo_url', + null + ); + + $this->migrator->add( + 'theme.site_name', + null + ); + + $this->migrator->add( + 'theme.primary', + null + ); + } +}; diff --git a/database/migrations/tenant/2024_03_09_201037_create_edu_section_files_table.php b/database/migrations/tenant/2024_03_09_201037_create_edu_section_files_table.php new file mode 100644 index 00000000..9f79c7c9 --- /dev/null +++ b/database/migrations/tenant/2024_03_09_201037_create_edu_section_files_table.php @@ -0,0 +1,30 @@ +id(); + $table->unsignedBigInteger('section_id'); + $table->longText('file_path'); + $table->longText('file_name'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('edu_section_files'); + } +}; diff --git a/database/migrations/tenant/2024_03_20_000000_update_third_party_settings_add_gtm_id.php b/database/migrations/tenant/2024_03_20_000000_update_third_party_settings_add_gtm_id.php new file mode 100644 index 00000000..c2f0d56c --- /dev/null +++ b/database/migrations/tenant/2024_03_20_000000_update_third_party_settings_add_gtm_id.php @@ -0,0 +1,11 @@ +migrator->add('thirdParty.gtm_id'); + } +}; diff --git a/database/migrations/tenant/2024_03_22_000000_create_cms_redirects_table.php b/database/migrations/tenant/2024_03_22_000000_create_cms_redirects_table.php new file mode 100644 index 00000000..a2ed7f97 --- /dev/null +++ b/database/migrations/tenant/2024_03_22_000000_create_cms_redirects_table.php @@ -0,0 +1,44 @@ +id(); + $table->string('url_from'); + $table->string('url_to'); + $table->boolean('is_enabled')->default(false); + $table->boolean('is_permanent')->default(false); + $table->timestamp('published_at')->nullable(); + $table->timestamp('expired_at')->nullable(); + $table->timestamps(); + + // Index Creation + $table->index('is_enabled'); + $table->index('published_at'); + $table->index('expired_at'); + $table->unique('url_from', 'unique_url_from'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('cms_redirects'); + } +} diff --git a/database/migrations/tenant/2024_03_23_000000_alter_crm_forms_add_submit_button_text.php b/database/migrations/tenant/2024_03_23_000000_alter_crm_forms_add_submit_button_text.php new file mode 100644 index 00000000..a7938963 --- /dev/null +++ b/database/migrations/tenant/2024_03_23_000000_alter_crm_forms_add_submit_button_text.php @@ -0,0 +1,28 @@ +string('submit_button_text', 50)->nullable()->after('marketing_telephone'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('crm_forms', function (Blueprint $table) { + $table->dropColumn('submit_button_text'); + }); + } +}; diff --git a/database/migrations/tenant/2024_04_13_000000_update_third_party_settings_add_mailer.php b/database/migrations/tenant/2024_04_13_000000_update_third_party_settings_add_mailer.php new file mode 100644 index 00000000..8197427a --- /dev/null +++ b/database/migrations/tenant/2024_04_13_000000_update_third_party_settings_add_mailer.php @@ -0,0 +1,11 @@ +migrator->add('thirdParty.mailer'); + } +}; diff --git a/database/seeders/EmptySeeder.php b/database/seeders/EmptySeeder.php new file mode 100644 index 00000000..9e1c90b7 --- /dev/null +++ b/database/seeders/EmptySeeder.php @@ -0,0 +1,15 @@ +=0){this.$errorToast("Duplicate values not allowed.");return}this.editableInputValue.push(this.newValue),this.newValue="",this.autofocus(),this.onEditableInputChange()},removeValue(a){this.errorHideOnInput&&(this.hideError=!0);try{this.editableInputValue.splice(a,1),this.onEditableInputChange()}catch(e){this.$errorToast("Failed to remove value."),console.log(e)}},onEditableInputChange(){this.$emit("input",this.editableInputValue)}}};var m=function(){var e=this,n=e._self._c;return n("div",{staticClass:"flex flex-col"},[n("label",{class:e.formattedLabelClass,attrs:{for:e.inputId}},[e._t("default",function(){return[n("span",{staticClass:"flex flex-row items-baseline"},[n("span",[e._v(e._s(e.labelText))]),e.inputRequired?n("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])]})],2),n("div",[n("div",{class:e.inputWrapperClass},[e.inputType==="checkbox"?n("input",{directives:[{name:"model",rawName:"v-model",value:e.newValue,expression:"newValue"}],ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,name:e.inputName,required:e.inputRequired,type:"checkbox"},domProps:{checked:Array.isArray(e.newValue)?e._i(e.newValue,null)>-1:e.newValue},on:{blur:e.onInputBlur,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.addValue.apply(null,arguments))},change:function(t){var u=e.newValue,l=t.target,i=!!l.checked;if(Array.isArray(u)){var s=null,r=e._i(u,s);l.checked?r<0&&(e.newValue=u.concat([s])):r>-1&&(e.newValue=u.slice(0,r).concat(u.slice(r+1)))}else e.newValue=i}}}):e.inputType==="radio"?n("input",{directives:[{name:"model",rawName:"v-model",value:e.newValue,expression:"newValue"}],ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,name:e.inputName,required:e.inputRequired,type:"radio"},domProps:{checked:e._q(e.newValue,null)},on:{blur:e.onInputBlur,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.addValue.apply(null,arguments))},change:function(t){e.newValue=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.newValue,expression:"newValue"}],ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,name:e.inputName,required:e.inputRequired,type:e.inputType},domProps:{value:e.newValue},on:{blur:e.onInputBlur,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.addValue.apply(null,arguments))},input:function(t){t.target.composing||(e.newValue=t.target.value)}}}),n("button",{class:e.inputButtonClass,attrs:{type:"button"},on:{click:e.addValue}},[e._v(" Add ")])]),e.editableInputValue.length?n("div",{class:e.inputValuesWrapperClass},e._l(e.editableInputValue,function(t,u){return n("button",{key:`value-${u}-${t}`,class:e.inputValuesClass,attrs:{type:"button"},on:{click:function(l){return e.removeValue(u)}}},[e._v(" "+e._s(t)+" "),n("icon-x",{class:e.inputValuesCloseClass})],1)}),0):e._e()]),n("form-field-error",{attrs:{"error-class":e.errorClass,"error-message":e.errorMessage,"is-error":e.isError}})],1)},y=[],h=c(f,m,y,!1,null,null,null,null);const k=h.exports;export{k as A}; diff --git a/public/build/assets/CheckboxGroup.7b759576.js b/public/build/assets/CheckboxGroup.7b759576.js new file mode 100644 index 00000000..20c6e7f2 --- /dev/null +++ b/public/build/assets/CheckboxGroup.7b759576.js @@ -0,0 +1 @@ +import{b as u,F as o}from"./InputGroup.513e0dd4.js";import{c}from"./checkbox-form-group.99a615f1.js";import{n as d}from"./LogoLight.f7426689.js";const p={name:"CheckboxGroup",mixins:[u,c],components:{FormFieldError:o},props:{inputClass:{default:"cursor-pointer form-checkbox h-5 mt-2 rounded text-theme-primary w-5 focus:border-theme-primary focus:outline-none focus:ring focus:ring-primary",type:String},labelClass:{default:"cursor-pointer font-medium select-none text-theme-base-contrast text-sm tracking-wider",type:String}}};var m=function(){var e=this,r=e._self._c;return r("div",{staticClass:"flex flex-col"},[r("label",{class:e.formattedLabelClass,attrs:{for:e.inputId}},[e._t("default",function(){return[r("span",{staticClass:"flex flex-row items-baseline"},[r("span",[e._v(e._s(e.labelText))]),e.inputRequired?r("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])]})],2),r("input",{directives:[{name:"model",rawName:"v-model",value:e.editableValue,expression:"editableValue"}],ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,"false-value":e.inputDisabled,name:e.inputName,required:e.inputRequired,"true-value":e.inputValueTrue,type:"checkbox"},domProps:{checked:Array.isArray(e.editableValue)?e._i(e.editableValue,null)>-1:e._q(e.editableValue,e.inputValueTrue)},on:{change:[function(t){var a=e.editableValue,l=t.target,i=l.checked?e.inputValueTrue:e.inputDisabled;if(Array.isArray(a)){var n=null,s=e._i(a,n);l.checked?s<0&&(e.editableValue=a.concat([n])):s>-1&&(e.editableValue=a.slice(0,s).concat(a.slice(s+1)))}else e.editableValue=i},e.onInput],keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)}}}),r("div",[r("transition",{attrs:{name:"slide-down-fade"}},[e.isError?r("p",{class:e.errorClass},[e._v(" "+e._s(e.errorMessage)+" ")]):e._e()])],1)])},f=[],b=d(p,m,f,!1,null,null,null,null);const k=b.exports;export{k as C}; diff --git a/public/build/assets/Confirm.583f4cb4.js b/public/build/assets/Confirm.583f4cb4.js new file mode 100644 index 00000000..94942a55 --- /dev/null +++ b/public/build/assets/Confirm.583f4cb4.js @@ -0,0 +1 @@ +import{I as a}from"./InputGroup.513e0dd4.js";import{n as o}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"AuthPasswordConfirm",components:{InputGroup:a},layout:"auth-layout",data(){return{form:{password:""}}},methods:{submit(){this.$inertia.post(this.$route("password.confirm"),this.form)}}};var i=function(){var t=this,s=t._self._c;return s("div",{staticClass:"auth-card-container"},[s("div",{staticClass:"auth-card"},[s("h1",{staticClass:"auth-header"},[t._v(" Confirm Password ")]),s("form",{staticClass:"px-6",on:{submit:function(r){return r.preventDefault(),t.submit.apply(null,arguments)}}},[s("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("password"),"input-autocomplete":"current-password","input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(r){return t.clearPageErrorMessage("password")}},model:{value:t.form.password,callback:function(r){t.$set(t.form,"password",r)},expression:"form.password"}}),t._m(0)],1)]),s("div",{staticClass:"flex justify-end mt-4"},[t.$routeCheck("password.request")?s("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("password.request")}},[t._v(" Forgot Your Password? ")]):t._e()],1)])},u=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[t("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[e._v(" Confirm Password ")])])}],m=o(n,i,u,!1,null,null,null,null);const d=m.exports;export{d as default}; diff --git a/public/build/assets/ConfirmationModal.242a99d0.js b/public/build/assets/ConfirmationModal.242a99d0.js new file mode 100644 index 00000000..4ec0613c --- /dev/null +++ b/public/build/assets/ConfirmationModal.242a99d0.js @@ -0,0 +1 @@ +import{m as o}from"./vendor.21c2b6f5.js";import{n}from"./LogoLight.f7426689.js";const i={name:"ConfirmationModal",mixins:[o],props:{componentName:{default:"confirmation-modal",type:String},cancelText:{default:"Cancel",type:String},confirmText:{default:"Confirm",type:String},confirmType:{default:"primary",type:String},isActionLoading:{default:!1,type:Boolean},messageText:{default:"Do you really want to continue?",type:String},messageTitle:{default:"Are you sure?",type:String},showModal:{default:!0,type:Boolean}},computed:{confirmButtonClass(){let s=[];return s.push("bg-theme-"+this.confirmType),s.push("border-theme-"+this.confirmType),s.push("text-theme-"+this.confirmType+"-contrast"),s.push("hover:bg-theme-"+this.confirmType+"-hover"),s.push("hover:border-theme-"+this.confirmType+"-hover"),s.push("hover:text-theme-"+this.confirmType+"-hover-contrast"),s},isMessage(){return this.isMessageText&&this.isMessageTitle},isMessageText(){return!!this.messageText.length},isMessageTitle(){return!!this.messageTitle.length}},methods:{cancelAction(){this.$emit("cancelAction")},closeModal(){this.$emit("closeModal")},confirmAction(){this.$emit("confirmAction")},onShowModal(){try{let s=document.getElementsByTagName("body")[0];this.showModal?s.classList.add("overflow-y-hidden"):s.classList.remove("overflow-y-hidden")}catch(s){console.error(s)}}},watch:{showModal:{handler:"onShowModal"}}};var a=function(){var e=this,t=e._self._c;return e.showModal?t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"bg-gray-800 bg-opacity-75 fixed flex h-full inset-0 items-center justify-center w-full p-4 z-30",class:e.componentName},[t("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeModal,expression:"closeModal"}],staticClass:"bg-theme-card max-h-full max-w-full overflow-y-auto relative rounded shadow-md text-theme-card-contrast w-96"},[t("div",{staticClass:"flex flex-row justify-end p-2"},[t("button",{staticClass:"flex items-center justify-center ml-auto p-1 rounded ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle",attrs:{disabled:e.isActionLoading,type:"button"},on:{click:e.closeModal}},[t("icon-close",{staticClass:"h-5 w-5"})],1)]),e._t("default",function(){return[e.isMessage?t("div",{staticClass:"flex flex-col items-center mt-6 px-4 text-center"},[e.messageTitle?t("h2",{staticClass:"font-semibold text-lg"},[e._v(" "+e._s(e.messageTitle)+" ")]):e._e(),e.messageText?t("p",{staticClass:"mt-2 text-center text-gray-700"},[e._v(" "+e._s(e.messageText)+" ")]):e._e()]):e._e()]}),t("div",{staticClass:"flex flex-col items-center justify-center mb-4 mt-8 px-4 space-y-2 sm:flex-row sm:space-x-3 sm:space-y-0"},[t("button",{staticClass:"bg-theme-base-subtle min-w-24 px-4 py-2 rounded text-center text-theme-base-subtle-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle-contrast hover:text-theme-base-subtle",attrs:{disabled:e.isActionLoading,type:"button"},on:{click:e.cancelAction}},[e._v(" "+e._s(e.cancelText)+" ")]),t("button",{staticClass:"border flex flex-row items-center justify-center px-4 py-2 min-w-24 px-4 py-2 rounded text-center w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary",class:e.confirmButtonClass,attrs:{disabled:e.isActionLoading,type:"button"},on:{click:e.confirmAction}},[e.isActionLoading?t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}):t("span",[e._v(" "+e._s(e.confirmText)+" ")])],1)])],2)])]):e._e()},r=[],l=n(i,a,r,!1,null,null,null,null);const u=l.exports;export{u as C}; diff --git a/public/build/assets/CourseFooter.585c86a3.js b/public/build/assets/CourseFooter.585c86a3.js new file mode 100644 index 00000000..8ff7c28f --- /dev/null +++ b/public/build/assets/CourseFooter.585c86a3.js @@ -0,0 +1 @@ +import{_ as c,d as n}from"./vendor.21c2b6f5.js";import{n as r}from"./LogoLight.f7426689.js";const o={name:"Faq",props:{faqs:{required:!0,type:Object|null,default:()=>{}}},data(){return{toggledFaqs:{}}},computed:{isFaqs(){try{return this.faqs.length}catch{return!1}}},mounted(){this.isFaqs&&c.forEach(this.faqs,(s,t)=>{this.$set(this.toggledFaqs,t,!1)})},methods:{toggleFaq(s){this.$set(this.toggledFaqs,s,!this.toggledFaqs[s])}}};var h=function(){var t=this,e=t._self._c;return t.isFaqs?e("section",{staticClass:"px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"max-w-screen-lg"},[e("p",{staticClass:"font-bold mb-2 text-lg"},[t._v(" "+t._s(t.__("messages.faq"))+" ")]),t._l(t.faqs,function(a,l){return e("div",{key:`faq-${l}`,staticClass:"overflow-hidden cursor-pointer"},[e("div",{staticClass:"flex flex-row justify-between mt-2 relative rounded px-4 py-2 z-10 ease-in-out duration-300 transition-colors hover:bg-theme-secondary hover:text-theme-secondary-contrast",class:{"bg-theme-secondary text-theme-secondary-contrast":t.toggledFaqs[l],"bg-theme-base text-theme-base-contrast":!t.toggledFaqs[l]},on:{click:function(i){return t.toggleFaq(l)}}},[e("span",{staticClass:"font-semibold"},[t._v(" "+t._s(a.question.data)+" ")])]),e("transition",{attrs:{name:"slide-down"}},[t.toggledFaqs[l]?e("p",{staticClass:"flex flex-row justify-between my-1 pl-4 pr-4 py-2 rounded text-theme-base-contrast z-0"},[t._v(" "+t._s(a.answer.data)+" ")]):t._e()])],1)})],2)])]):t._e()},u=[],m=r(o,h,u,!1,null,null,null,null);const it=m.exports,p={name:"AboutAuthor",props:{bio:{default:"",required:!1,type:String},name:{default:"",required:!1,type:String}}};var d=function(){var t=this,e=t._self._c;return e("section",{staticClass:"px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"max-w-screen-lg"},[e("p",{staticClass:"font-bold mb-4 text-lg"},[t._v(" "+t._s(t.__("messages.about-author"))+" ")]),t.name.length?e("p",{staticClass:"font-bold"},[t._v(" "+t._s(t.name)+" ")]):t._e(),t.bio.length?e("p",{staticClass:"text-justify",class:{"mt-2":t.name.length},domProps:{innerHTML:t._s(t.bio)}}):t._e()])])])},_=[],f=r(p,d,_,!1,null,null,null,null);const nt=f.exports,v={name:"Testimonials",props:{testimonials:{type:Object|null,default:()=>{}}},computed:{isTestimonials(){try{return this.testimonials.length}catch{return!1}}}};var g=function(){var t=this,e=t._self._c;return t.isTestimonials?e("section",{staticClass:"bg-theme-base-subtle px-4 py-12 text-theme-base-subtle-contrast"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("p",{staticClass:"font-bold mb-4 text-lg"},[t._v(" "+t._s(t.__("messages.testimonials"))+" ")]),e("div",{staticClass:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3"},t._l(t.testimonials,function(a,l){return e("section",{key:"testimonial-"+l,staticClass:"bg-theme-base mb-3 overflow-hidden px-6 py-12 relative rounded-lg shadow-lg text-theme-base-contrast"},[e("div",[e("figure",[e("blockquote",{staticClass:"font-semibold text-center text-lg"},[e("p",[t._v("\u201C"+t._s(a.testimonial.data)+"\u201D")])]),e("figcaption",{staticClass:"mt-4"},[e("div",{staticClass:"flex items-center justify-center"},[t._v(" "+t._s(a.name.data)+" ")])])])])])}),0)])]):t._e()},y=[],x=r(v,g,y,!1,null,null,null,null);const ot=x.exports,C={name:"CourseContent",props:{course:{required:!0,type:Object}},data(){return{toggledSections:{}}},computed:{sections(){try{return this.course.sections.length?c.cloneDeep(this.course.sections):!1}catch{return!1}}},mounted(){c.forEach(this.sections,s=>{this.$set(this.toggledSections,s.index,!1)})},methods:{toggleSection(s){this.$set(this.toggledSections,s,!this.toggledSections[s])},sectionHasChildren(s){try{return s.child_items.length}catch{return!1}}}};var b=function(){var t=this,e=t._self._c;return t.sections?e("section",{staticClass:"px-4 py-12 bg-theme-base"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"max-w-screen-lg"},[e("p",{staticClass:"font-bold mb-4 text-lg"},[t._v(" "+t._s(t.__("messages.course-content"))+" ")]),t._l(t.sections,function(a){return e("div",{key:`section-${a.id}`,staticClass:"overflow-hidden cursor-pointer"},[e("div",{staticClass:"flex flex-row justify-between relative rounded px-4 py-2 z-10 ease-in-out duration-300 transition-colors",class:{"hover:bg-theme-secondary hover:text-theme-secondary-contrast":t.sectionHasChildren(a),"bg-theme-secondary text-theme-secondary-contrast":t.sectionHasChildren(a)&&t.toggledSections[a.index],"bg-theme-base text-theme-base-contrast":!t.toggledSections[a.index]},on:{click:function(l){return t.toggleSection(a.index)}}},[e("span",{staticClass:"font-semibold"},[t._v(" "+t._s(parseInt(a.index)+1)+". "+t._s(a.title)+" ")]),a.content_length?e("span",[t._v(" "+t._s(a.content_length+" mins")+" ")]):t._e()]),e("transition",{attrs:{name:"slide-down"}},[t.toggledSections[a.index]&&t.sectionHasChildren(a)?e("ul",{staticClass:"my-1"},t._l(a.child_items,function(l){return e("li",{key:`section-${a.index}-lecture-${l.index}`,staticClass:"bg-theme-base flex flex-row justify-between pl-8 pr-4 py-2 rounded text-sm text-theme-base-contrast z-0 ease-in-out duration-300 transition-colors hover:bg-theme-base-subtle hover:text-theme-base-subtle-contrast"},[e("span",[t._v(" "+t._s(parseInt(l.index)+1)+". "+t._s(l.title)+" ")]),l.content_length?e("span",[t._v(" "+t._s(l.content_length+" mins")+" ")]):t._e()])}),0):t._e()])],1)})],2)])]):t._e()},w=[],F=r(C,b,w,!1,null,null,null,null);const ht=F.exports,z={name:"Purchase",props:{course:{required:!0,type:Object}},data(){return{isLoadingCheckout:!1,checkoutErrors:null,checkoutResponse:null,paymentType:"full",instalmentSelection:null,sectionToShow:!1}},computed:{coursePurchaseDataLayerData(){try{let s=this.paymentType==="full"?this.course.current_price:this.instalmentSelection.instalment_current_price;return{event:"conversion_course_purchase",payment_type:this.paymentType,value:this.$options.filters.priceDecimalUnlessWhole(s),currency:this.paymentType==="full"?this.course.currency:this.instalmentSelection.currency}}catch(s){return console.error(s),!1}},orderedInstalmentPlans(){try{return c.orderBy(this.course.instalment_plans,"instalment_count")}catch{return!1}}},mounted(){this.getCheckoutResponse()},methods:{showSection(s){this.sectionToShow=s},getCheckoutResponse(){try{let t=new URLSearchParams(window.location.search).get("checkout");if(!["cancel","success"].includes(t))return;this.checkoutResponse=t}catch{}},purchaseCourse(){var s;this.checkoutErrors=null,this.isLoadingCheckout=!0,axios.post(this.$route("api.edu.courses.checkout",this.course.id),{instalment_plan_id:(s=this.instalmentSelection)==null?void 0:s.id}).then(t=>{if(!t.data.url){this.checkoutErrors="No checkout URL returned from server.";return}this.coursePurchaseDataLayerData&&this.dataLayerPush(this.coursePurchaseDataLayerData),window.location.href=t.data.url}).catch(t=>{var e,a;this.checkoutErrors=((a=(e=t==null?void 0:t.response)==null?void 0:e.data)==null?void 0:a.message)||t}).finally(()=>{this.isLoadingCheckout=!1})},paymentSelectionClass(s,t=null){let e="cursor-pointer border flex flex-col px-8 py-2 rounded space-y-1 w-full items-center justify-center";return s==="full"&&this.paymentType==="full"||s==="instalment"&&this.instalmentSelection===t?e+" border-theme-primary text-theme-primary":e+" border-gray-200 bg-grey-100 text-gray-500 hover:bg-gray-100"},selectPaymentType(s,t=null){this.paymentType=s,this.instalmentSelection=t},dataLayerPush(s){try{dataLayer.push(s)}catch(t){console.error("GTM Error",t)}}}};var M=function(){var t=this,e=t._self._c;return e("section",{staticClass:"px-4 py-12",attrs:{id:"purchase"}},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[t.checkoutResponse==="success"?e("div",{staticClass:"bg-theme-success-contrast text-theme-accent-contrast px-4 py-2 text-center"},[t._v(" "+t._s(t.__("messages.purchase-success"))+" ")]):t.checkoutResponse==="cancel"?e("div",{staticClass:"bg-theme-warning text-theme-warning-contrast px-4 py-2 text-center"},[t._v(" "+t._s(t.__("messages.purchase-cancel"))+" ")]):t._e()]),e("div",{staticClass:"container max-w-screen-lg mx-auto"},[t.orderedInstalmentPlans?[e("p",{staticClass:"font-bold mb-4 text-lg"},[t._v(" "+t._s(t.__("messages.payment-options"))+" ")]),e("div",{staticClass:"flex flex-row mt-2 space-x-4"},[e("button",{class:t.paymentSelectionClass("full"),attrs:{type:"button"},on:{click:function(a){return t.selectPaymentType("full")}}},[e("span",[e("strong",[t._v(" "+t._s(t.__("messages.pay-in-full"))+" ")])]),t.course.currency==="GBP"?e("span",{staticClass:"text-sm"},[t._v(" "+t._s(t._f("currencySymbol")(t.course.currency))+t._s(t._f("priceDecimalUnlessWhole")(t.course.current_price))+" ")]):t.course.currency==="RON"?e("span",{staticClass:"text-sm"},[t._v(" "+t._s(t._f("priceDecimalUnlessWhole")(t.course.current_price))+" Lei "),e("small",{staticClass:"font-weight-lighter"},[t._v("(TVA inclus)")])]):t.course.currency==="EUR"?e("span",{staticClass:"text-sm"},[t._v(" "+t._s(t._f("priceDecimal")(t.course.current_price))+" Euro ")]):t._e(),e("small",{staticClass:"font-weight-lighter"},[t._v(" *"+t._s(t.__("messages.pay-in-full-note",{savingPercentage:40}))+" ")])]),t._l(t.orderedInstalmentPlans,function(a){return e("button",{key:`instalment_plan_${a.id}`,class:t.paymentSelectionClass("instalment",a),attrs:{type:"button"},on:{click:function(l){return t.selectPaymentType("instalment",a)}}},[e("span",[e("strong",[t._v(" "+t._s(t.__("messages.pay-in-instalments",{numberOfInstalments:a.instalment_count}))+" ")])]),a.currency==="GBP"?e("span",{staticClass:"text-sm"},[t._v(" "+t._s(t._f("currencySymbol")(a.currency))+t._s(t._f("priceDecimalUnlessWhole")(a.instalment_current_price))+" ")]):a.currency==="RON"?e("span",{staticClass:"text-sm"},[t._v(" "+t._s(t._f("priceDecimalUnlessWhole")(a.instalment_current_price))+" Lei "),e("small",[t._v("(TVA inclus)")])]):a.currency==="EUR"?e("span",{staticClass:"text-sm"},[t._v(" "+t._s(t._f("priceDecimalUnlessWhole")(a.instalment_current_price))+" Euro ")]):t._e(),e("small",[t._v(" *"+t._s(t.__("messages.pay-in-instalments-note",{numberOfInstalments:a.instalment_count}))+" ")])])})],2)]:t._e(),e("div",{staticClass:"flex flex-row justify-center"},[e("button",{staticClass:"button button-primary flex flex-row justify-center max-w-250px mt-6 rounded-full text-xl w-full",attrs:{disabled:!t.paymentType||t.isLoadingCheckout},on:{click:t.purchaseCourse}},[t._v(" "+t._s(t.__("messages.sign-up"))+" "),t.isLoadingCheckout?e("icon-loader-circle",{staticClass:"animate-spin-slow ml-2 w-5"}):t._e()],1)])],2),t.checkoutErrors?e("div",{staticClass:"container max-w-screen-lg mx-auto min-h-screen min-w-screen"},[e("section",{staticClass:"bg-theme-danger mx-4 my-6 px-4 py-2 rounded text-theme-danger-contrast"},[e("strong",[t._v("Checkout Error:")]),e("pre",{staticClass:"mt-2"},[t._v(t._s(t.checkoutErrors))])])]):t._e()])},$=[],k=r(z,M,$,!1,null,null,null,null);const ut=k.exports,H={name:"CourseDescription",props:{course:{required:!0,type:Object}}};var V=function(){var t=this,e=t._self._c;return e("section",{staticClass:"bg-gray-100 px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"max-w-screen-lg"},[e("p",{staticClass:"font-bold mb-4 text-lg"},[t._v(" "+t._s(t.__("messages.additional-course-details"))+" ")]),e("div",{staticClass:"text-justify"},[e("p",{domProps:{innerHTML:t._s(t.course.description)}})])])])])},q=[],S=r(H,V,q,!1,null,null,null,null);const mt=S.exports,L={name:"VideoPreview",props:{course:{required:!0,type:Object},showTitle:{default:!1,required:!1,type:Boolean},videoPreviewText:{default:"Preview Video",required:!1,type:String}}};var T=function(){var t=this,e=t._self._c;return t.course.video_preview?e("section",{staticClass:"bg-grey-800 px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[t.showTitle?e("div",{staticClass:"max-w-screen-md"},[e("p",{staticClass:"font-bold mb-4 text-lg"},[t._v(" "+t._s(t.__("messages.course-preview"))+": ")])]):t._e(),e("section",{staticClass:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-2"},[e("div",{staticClass:"align-left"},[e("p",{domProps:{innerHTML:t._s(t.videoPreviewText)}})]),e("div",{staticClass:"aspect-ratio-16-9 max-w-xl relative w-full align-right"},[e("iframe",{staticClass:"h-full w-full",attrs:{src:t.course.video_preview,frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})])])])]):t._e()},j=[],B=r(L,T,j,!1,null,null,null,null);const pt=B.exports,E={name:"CourseFeatures",props:{course:{required:!0,type:Object}},data(){return{featureList:[{feature_name:"has_pdfs",icon:"icon-book-download",label:"messages.resources-pdfs"},{feature_name:"has_webinars",icon:"icon-camera-check",label:"messages.weekly-webinars"},{force_active:!0,icon:"icon-device-mobile",label:"messages.access-on-mobile"},{feature_name:"has_money_back_guarantee",icon:"icon-moneybag",label:"messages.money-back-gurantee"},{feature_name:"has_captions",icon:"icon-badge-cc",label:"messages.captions"},{feature_name:"has_lifetime_access",icon:"icon-check",label:"messages.lifetime-access"},{feature_name:"has_student_discount",icon:"icon-discount",label:"messages.student-discount"},{feature_name:"has_certificate",icon:"icon-certificate",label:"messages.certificate"},{feature_name:"has_seo",icon:"icon-speaker-phone",label:"messages.seo-exposure"}]}},computed:{activeFeatureList(){try{return c.filter(this.featureList,s=>this.isFeatureActive(s))}catch(s){return console.log(s),!1}},totalCourseVideos(){return 34}},methods:{isFeatureActive(s){try{return s.force_active||this.course[s.feature_name]===!0}catch(t){return console.log(t),!1}}}};var R=function(){var t=this,e=t._self._c;return t.activeFeatureList?e("section",{staticClass:"bg-theme-accent text-theme-accent-contrast px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"max-w-screen-md"},[e("p",{staticClass:"font-bold mb-4 text-xl"},[t._v(" "+t._s(t.__("messages.this-course-includes"))+": ")]),e("div",{staticClass:"gap-x-4 grid gap-y-3 md:grid-cols-2 lg:grid-cols-3"},[e("div",{staticClass:"flex flex-row"},[e("icon-alert-video",{staticClass:"mr-2 w-5"}),e("span",[t._v(t._s(t.totalCourseVideos)+" "+t._s(t.__("messages.videos")))])],1),t._l(t.activeFeatureList,function(a,l){return e("div",{key:`feature-${l}`,staticClass:"flex flex-row"},[e(a.icon,{tag:"component",staticClass:"mr-2 w-5"}),e("span",[t._v(t._s(t.__(a.label)))])],1)})],2)])])]):t._e()},D=[],P=r(E,R,D,!1,null,null,null,null);const dt=P.exports,A={name:"CourseHeader",props:{course:{required:!0,type:Object}}};var O=function(){var t=this,e=t._self._c;return e("header",{staticClass:"bg-theme-secondary px-4 py-12 text-theme-secondary-contrast"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"flex flex-col items-center md:flex-col md:items-center"},[e("div",{staticClass:"aspect-ratio-16-9 max-w-xl relative w-full align-right"},[e("iframe",{staticClass:"h-full w-full",attrs:{src:t.course.video_preview,frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})])]),e("div",{staticClass:"flex flex-col items-center md:flex-row md:items-start"},[e("section",{staticClass:"mt-8 text-center md:ml-8 md:mt-0 md:text-center"},[e("strong",{staticClass:"text-sm font-light md:text-sm pb-2"},[t._v(t._s(t.course.creator.name))]),e("h1",{staticClass:"text-2xl font-bold md:text-2xl"},[t._v(t._s(t.course.name))]),e("p",{staticClass:"mt-4"},[t._v(t._s(t.course.summary))])])])])])},U=[],I=r(A,O,U,!1,null,null,null,null);const _t=I.exports,N={name:"CourseFooterTop",props:{company:{type:Object,required:!1,default:()=>[]},footerMenu:{type:Object,required:!1,default:()=>[]}},computed:{footerMenuName(){try{return this.footerMenu.name}catch{return""}},socials(){try{return Object.fromEntries(Object.entries(this.company.socials).filter(([s,t])=>t!==null))}catch{return[]}}},methods:{getIconComponent(s){switch(s){case"instagram":return"icon-instagram";case"facebook":return"icon-facebook";case"twitter":return"icon-twitter";case"linkedin":return"icon-linked-in";case"youtube":return"icon-youtube";case"tiktok":return"icon-tiktok";case"snapchat":return"icon-snapchat";default:return"false"}}}};var Z=function(){var t=this,e=t._self._c;return e("section",{staticClass:"bg-theme-secondary text-theme-secondary-contrast px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2"},[t.footerMenu?e("div",[e("h1",{staticClass:"font-bold mb-2"},[t._v(t._s(t.footerMenuName))]),e("ul",t._l(t.footerMenu.menu_items,function(a,l){return e("li",{key:"menu-item-"+l,staticClass:"pt-2"},[e("a",{staticClass:"capitalize",attrs:{href:a.href}},[t._v(" "+t._s(a.label)+" ")])])}),0)]):t._e(),t.socials?e("div",[e("h1",{staticClass:"font-bold mb-2"},[t._v("Socials")]),e("ul",{staticClass:"flex list-none"},t._l(t.socials,function(a,l,i){return e("li",{key:"social-"+i,staticClass:"pt-2 pr-2"},[e("a",{attrs:{href:a}},[t.getIconComponent(l)!=="false"?e(t.getIconComponent(l),{tag:"component",staticClass:"w-8 md:mr-2"}):e("span",{staticClass:"capitalize"},[t._v(" "+t._s(l)+" ")])],1)])}),0)]):t._e()])])])},G=[],W=r(N,Z,G,!1,null,null,null,null);const J=W.exports,K={name:"CourseFooterBottom",props:{company:{type:Object,required:!1,default:()=>[]}},computed:{year(){return n().year()},companyName(){try{return this.company.name}catch{return""}}}};var Q=function(){var t=this,e=t._self._c;return e("section",[e("footer",{staticClass:"bg-neutral-200 text-center dark:bg-neutral-700 lg:text-left"},[e("div",{staticClass:"p-4 text-center text-neutral-700 dark:text-neutral-200"},[t._v(" Copyright \xA9 "+t._s(t.year+" "+t.companyName)+". "),e("a",{staticClass:"hover:text-dark-200 hover:underline hover:shadow-subtle",attrs:{href:"https://sigi.ro/"}},[t._v(" Powered by SIGI. ")])]),e("div",{staticClass:"text-center"},[e("ul",{staticClass:"flex-wrap inline-flex justify-center space-x-1",attrs:{role:"list"}},[e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{xmlns:"http://www.w3.org/2000/svg",role:"img","aria-labelledby":"pi-american_express",viewBox:"0 0 38 24",width:"38",height:"24"}},[e("title",{attrs:{id:"pi-american_express"}},[t._v("American Express")]),e("path",{attrs:{fill:"#000",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3Z",opacity:".07"}}),e("path",{attrs:{fill:"#006FCF",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32Z"}}),e("path",{attrs:{fill:"#FFF",d:"M22.012 19.936v-8.421L37 11.528v2.326l-1.732 1.852L37 17.573v2.375h-2.766l-1.47-1.622-1.46 1.628-9.292-.02Z"}}),e("path",{attrs:{fill:"#006FCF",d:"M23.013 19.012v-6.57h5.572v1.513h-3.768v1.028h3.678v1.488h-3.678v1.01h3.768v1.531h-5.572Z"}}),e("path",{attrs:{fill:"#006FCF",d:"m28.557 19.012 3.083-3.289-3.083-3.282h2.386l1.884 2.083 1.89-2.082H37v.051l-3.017 3.23L37 18.92v.093h-2.307l-1.917-2.103-1.898 2.104h-2.321Z"}}),e("path",{attrs:{fill:"#FFF",d:"M22.71 4.04h3.614l1.269 2.881V4.04h4.46l.77 2.159.771-2.159H37v8.421H19l3.71-8.421Z"}}),e("path",{attrs:{fill:"#006FCF",d:"m23.395 4.955-2.916 6.566h2l.55-1.315h2.98l.55 1.315h2.05l-2.904-6.566h-2.31Zm.25 3.777.875-2.09.873 2.09h-1.748Z"}}),e("path",{attrs:{fill:"#006FCF",d:"M28.581 11.52V4.953l2.811.01L32.84 9l1.456-4.046H37v6.565l-1.74.016v-4.51l-1.644 4.494h-1.59L30.35 7.01v4.51h-1.768Z"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",role:"img",x:"0",y:"0",width:"38",height:"24",viewBox:"0 0 165.521 105.965","xml:space":"preserve","aria-labelledby":"pi-apple_pay"}},[e("title",{attrs:{id:"pi-apple_pay"}},[t._v("Apple Pay")]),e("path",{attrs:{fill:"#000",d:"M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696a70.22 70.22 0 0 0-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.017 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004.476-.002.952-.009 1.431-.02 1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.94 9.94 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.417 71.417 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"}}),e("path",{attrs:{fill:"#FFF",d:"M150.698 3.532l1.672.003c.452.003.905.008 1.36.02.793.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.511-1.971.645-.881.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a74.993 74.993 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.646-1.985c-.156-.863-.2-1.788-.22-2.578a66.088 66.088 0 0 1-.02-1.355l-.003-1.327V14.474l.002-1.325a66.7 66.7 0 0 1 .02-1.357c.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.623a6.386 6.386 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.646c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"}}),e("g",[e("g",[e("path",{attrs:{fill:"#000",d:"M43.508 35.77c1.404-1.755 2.356-4.112 2.105-6.52-2.054.102-4.56 1.355-6.012 3.112-1.303 1.504-2.456 3.959-2.156 6.266 2.306.2 4.61-1.152 6.063-2.858"}}),e("path",{attrs:{fill:"#000",d:"M45.587 39.079c-3.35-.2-6.196 1.9-7.795 1.9-1.6 0-4.049-1.8-6.698-1.751-3.447.05-6.645 2-8.395 5.1-3.598 6.2-.95 15.4 2.55 20.45 1.699 2.5 3.747 5.25 6.445 5.151 2.55-.1 3.549-1.65 6.647-1.65 3.097 0 3.997 1.65 6.696 1.6 2.798-.05 4.548-2.5 6.247-5 1.95-2.85 2.747-5.6 2.797-5.75-.05-.05-5.396-2.101-5.446-8.251-.05-5.15 4.198-7.6 4.398-7.751-2.399-3.548-6.147-3.948-7.447-4.048"}})]),e("g",[e("path",{attrs:{fill:"#000",d:"M78.973 32.11c7.278 0 12.347 5.017 12.347 12.321 0 7.33-5.173 12.373-12.529 12.373h-8.058V69.62h-5.822V32.11h14.062zm-8.24 19.807h6.68c5.07 0 7.954-2.729 7.954-7.46 0-4.73-2.885-7.434-7.928-7.434h-6.706v14.894z"}}),e("path",{attrs:{fill:"#000",d:"M92.764 61.847c0-4.809 3.665-7.564 10.423-7.98l7.252-.442v-2.08c0-3.04-2.001-4.704-5.562-4.704-2.938 0-5.07 1.507-5.51 3.82h-5.252c.157-4.86 4.731-8.395 10.918-8.395 6.654 0 10.995 3.483 10.995 8.89v18.663h-5.38v-4.497h-.13c-1.534 2.937-4.914 4.782-8.579 4.782-5.406 0-9.175-3.222-9.175-8.057zm17.675-2.417v-2.106l-6.472.416c-3.64.234-5.536 1.585-5.536 3.95 0 2.288 1.975 3.77 5.068 3.77 3.95 0 6.94-2.522 6.94-6.03z"}}),e("path",{attrs:{fill:"#000",d:"M120.975 79.652v-4.496c.364.051 1.247.103 1.715.103 2.573 0 4.029-1.09 4.913-3.899l.52-1.663-9.852-27.293h6.082l6.863 22.146h.13l6.862-22.146h5.927l-10.216 28.67c-2.34 6.577-5.017 8.735-10.683 8.735-.442 0-1.872-.052-2.261-.157z"}})])])])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",width:"38",height:"24","aria-labelledby":"pi-diners_club"}},[e("title",{attrs:{id:"pi-diners_club"}},[t._v("Diners Club")]),e("path",{attrs:{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}}),e("path",{attrs:{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}}),e("path",{attrs:{d:"M12 12v3.7c0 .3-.2.3-.5.2-1.9-.8-3-3.3-2.3-5.4.4-1.1 1.2-2 2.3-2.4.4-.2.5-.1.5.2V12zm2 0V8.3c0-.3 0-.3.3-.2 2.1.8 3.2 3.3 2.4 5.4-.4 1.1-1.2 2-2.3 2.4-.4.2-.4.1-.4-.2V12zm7.2-7H13c3.8 0 6.8 3.1 6.8 7s-3 7-6.8 7h8.2c3.8 0 6.8-3.1 6.8-7s-3-7-6.8-7z",fill:"#3086C8"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{viewBox:"0 0 38 24",width:"38",height:"24",role:"img","aria-labelledby":"pi-discover",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("title",{attrs:{id:"pi-discover"}},[t._v("Discover")]),e("path",{attrs:{fill:"#000",opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}}),e("path",{attrs:{d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32z",fill:"#fff"}}),e("path",{attrs:{d:"M3.57 7.16H2v5.5h1.57c.83 0 1.43-.2 1.96-.63.63-.52 1-1.3 1-2.11-.01-1.63-1.22-2.76-2.96-2.76zm1.26 4.14c-.34.3-.77.44-1.47.44h-.29V8.1h.29c.69 0 1.11.12 1.47.44.37.33.59.84.59 1.37 0 .53-.22 1.06-.59 1.39zm2.19-4.14h1.07v5.5H7.02v-5.5zm3.69 2.11c-.64-.24-.83-.4-.83-.69 0-.35.34-.61.8-.61.32 0 .59.13.86.45l.56-.73c-.46-.4-1.01-.61-1.62-.61-.97 0-1.72.68-1.72 1.58 0 .76.35 1.15 1.35 1.51.42.15.63.25.74.31.21.14.32.34.32.57 0 .45-.35.78-.83.78-.51 0-.92-.26-1.17-.73l-.69.67c.49.73 1.09 1.05 1.9 1.05 1.11 0 1.9-.74 1.9-1.81.02-.89-.35-1.29-1.57-1.74zm1.92.65c0 1.62 1.27 2.87 2.9 2.87.46 0 .86-.09 1.34-.32v-1.26c-.43.43-.81.6-1.29.6-1.08 0-1.85-.78-1.85-1.9 0-1.06.79-1.89 1.8-1.89.51 0 .9.18 1.34.62V7.38c-.47-.24-.86-.34-1.32-.34-1.61 0-2.92 1.28-2.92 2.88zm12.76.94l-1.47-3.7h-1.17l2.33 5.64h.58l2.37-5.64h-1.16l-1.48 3.7zm3.13 1.8h3.04v-.93h-1.97v-1.48h1.9v-.93h-1.9V8.1h1.97v-.94h-3.04v5.5zm7.29-3.87c0-1.03-.71-1.62-1.95-1.62h-1.59v5.5h1.07v-2.21h.14l1.48 2.21h1.32l-1.73-2.32c.81-.17 1.26-.72 1.26-1.56zm-2.16.91h-.31V8.03h.33c.67 0 1.03.28 1.03.82 0 .55-.36.85-1.05.85z",fill:"#231F20"}}),e("path",{attrs:{d:"M20.16 12.86a2.931 2.931 0 100-5.862 2.931 2.931 0 000 5.862z",fill:"url(#pi-paint0_linear)"}}),e("path",{attrs:{opacity:".65",d:"M20.16 12.86a2.931 2.931 0 100-5.862 2.931 2.931 0 000 5.862z",fill:"url(#pi-paint1_linear)"}}),e("path",{attrs:{d:"M36.57 7.506c0-.1-.07-.15-.18-.15h-.16v.48h.12v-.19l.14.19h.14l-.16-.2c.06-.01.1-.06.1-.13zm-.2.07h-.02v-.13h.02c.06 0 .09.02.09.06 0 .05-.03.07-.09.07z",fill:"#231F20"}}),e("path",{attrs:{d:"M36.41 7.176c-.23 0-.42.19-.42.42 0 .23.19.42.42.42.23 0 .42-.19.42-.42 0-.23-.19-.42-.42-.42zm0 .77c-.18 0-.34-.15-.34-.35 0-.19.15-.35.34-.35.18 0 .33.16.33.35 0 .19-.15.35-.33.35z",fill:"#231F20"}}),e("path",{attrs:{d:"M37 12.984S27.09 19.873 8.976 23h26.023a2 2 0 002-1.984l.024-3.02L37 12.985z",fill:"#F48120"}}),e("defs",[e("linearGradient",{attrs:{id:"pi-paint0_linear",x1:"21.657",y1:"12.275",x2:"19.632",y2:"9.104",gradientUnits:"userSpaceOnUse"}},[e("stop",{attrs:{"stop-color":"#F89F20"}}),e("stop",{attrs:{offset:".25","stop-color":"#F79A20"}}),e("stop",{attrs:{offset:".533","stop-color":"#F68D20"}}),e("stop",{attrs:{offset:".62","stop-color":"#F58720"}}),e("stop",{attrs:{offset:".723","stop-color":"#F48120"}}),e("stop",{attrs:{offset:"1","stop-color":"#F37521"}})],1),e("linearGradient",{attrs:{id:"pi-paint1_linear",x1:"21.338",y1:"12.232",x2:"18.378",y2:"6.446",gradientUnits:"userSpaceOnUse"}},[e("stop",{attrs:{"stop-color":"#F58720"}}),e("stop",{attrs:{offset:".359","stop-color":"#E16F27"}}),e("stop",{attrs:{offset:".703","stop-color":"#D4602C"}}),e("stop",{attrs:{offset:".982","stop-color":"#D05B2E"}})],1)],1)])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{xmlns:"http://www.w3.org/2000/svg",role:"img",viewBox:"0 0 38 24",width:"38",height:"24","aria-labelledby":"pi-google_pay"}},[e("title",{attrs:{id:"pi-google_pay"}},[t._v("Google Pay")]),e("path",{attrs:{d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z",fill:"#000",opacity:".07"}}),e("path",{attrs:{d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32",fill:"#FFF"}}),e("path",{attrs:{d:"M18.093 11.976v3.2h-1.018v-7.9h2.691a2.447 2.447 0 0 1 1.747.692 2.28 2.28 0 0 1 .11 3.224l-.11.116c-.47.447-1.098.69-1.747.674l-1.673-.006zm0-3.732v2.788h1.698c.377.012.741-.135 1.005-.404a1.391 1.391 0 0 0-1.005-2.354l-1.698-.03zm6.484 1.348c.65-.03 1.286.188 1.778.613.445.43.682 1.03.65 1.649v3.334h-.969v-.766h-.049a1.93 1.93 0 0 1-1.673.931 2.17 2.17 0 0 1-1.496-.533 1.667 1.667 0 0 1-.613-1.324 1.606 1.606 0 0 1 .613-1.336 2.746 2.746 0 0 1 1.698-.515c.517-.02 1.03.093 1.49.331v-.208a1.134 1.134 0 0 0-.417-.901 1.416 1.416 0 0 0-.98-.368 1.545 1.545 0 0 0-1.319.717l-.895-.564a2.488 2.488 0 0 1 2.182-1.06zM23.29 13.52a.79.79 0 0 0 .337.662c.223.176.5.269.785.263.429-.001.84-.17 1.146-.472.305-.286.478-.685.478-1.103a2.047 2.047 0 0 0-1.324-.374 1.716 1.716 0 0 0-1.03.294.883.883 0 0 0-.392.73zm9.286-3.75l-3.39 7.79h-1.048l1.281-2.728-2.224-5.062h1.103l1.612 3.885 1.569-3.885h1.097z",fill:"#5F6368"}}),e("path",{attrs:{d:"M13.986 11.284c0-.308-.024-.616-.073-.92h-4.29v1.747h2.451a2.096 2.096 0 0 1-.9 1.373v1.134h1.464a4.433 4.433 0 0 0 1.348-3.334z",fill:"#4285F4"}}),e("path",{attrs:{d:"M9.629 15.721a4.352 4.352 0 0 0 3.01-1.097l-1.466-1.14a2.752 2.752 0 0 1-4.094-1.44H5.577v1.17a4.53 4.53 0 0 0 4.052 2.507z",fill:"#34A853"}}),e("path",{attrs:{d:"M7.079 12.05a2.709 2.709 0 0 1 0-1.735v-1.17H5.577a4.505 4.505 0 0 0 0 4.075l1.502-1.17z",fill:"#FBBC04"}}),e("path",{attrs:{d:"M9.629 8.44a2.452 2.452 0 0 1 1.74.68l1.3-1.293a4.37 4.37 0 0 0-3.065-1.183 4.53 4.53 0 0 0-4.027 2.5l1.502 1.171a2.715 2.715 0 0 1 2.55-1.875z",fill:"#EA4335"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",width:"38",height:"24",role:"img","aria-labelledby":"pi-maestro"}},[e("title",{attrs:{id:"pi-maestro"}},[t._v("Maestro")]),e("path",{attrs:{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}}),e("path",{attrs:{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}}),e("circle",{attrs:{fill:"#EB001B",cx:"15",cy:"12",r:"7"}}),e("circle",{attrs:{fill:"#00A2E5",cx:"23",cy:"12",r:"7"}}),e("path",{attrs:{fill:"#7375CF",d:"M22 12c0-2.4-1.2-4.5-3-5.7-1.8 1.3-3 3.4-3 5.7s1.2 4.5 3 5.7c1.8-1.2 3-3.3 3-5.7z"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",width:"38",height:"24","aria-labelledby":"pi-master"}},[e("title",{attrs:{id:"pi-master"}},[t._v("Mastercard")]),e("path",{attrs:{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}}),e("path",{attrs:{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}}),e("circle",{attrs:{fill:"#EB001B",cx:"15",cy:"12",r:"7"}}),e("circle",{attrs:{fill:"#F79E1B",cx:"23",cy:"12",r:"7"}}),e("path",{attrs:{fill:"#FF5F00",d:"M22 12c0-2.4-1.2-4.5-3-5.7-1.8 1.3-3 3.4-3 5.7s1.2 4.5 3 5.7c1.8-1.2 3-3.3 3-5.7z"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{xmlns:"http://www.w3.org/2000/svg",role:"img",viewBox:"0 0 38 24",width:"38",height:"24","aria-labelledby":"pi-shopify_pay"}},[e("title",{attrs:{id:"pi-shopify_pay"}},[t._v("Shop Pay")]),e("path",{attrs:{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z",fill:"#000"}}),e("path",{attrs:{d:"M35.889 0C37.05 0 38 .982 38 2.182v19.636c0 1.2-.95 2.182-2.111 2.182H2.11C.95 24 0 23.018 0 21.818V2.182C0 .982.95 0 2.111 0H35.89z",fill:"#5A31F4"}}),e("path",{attrs:{d:"M9.35 11.368c-1.017-.223-1.47-.31-1.47-.705 0-.372.306-.558.92-.558.54 0 .934.238 1.225.704a.079.079 0 00.104.03l1.146-.584a.082.082 0 00.032-.114c-.475-.831-1.353-1.286-2.51-1.286-1.52 0-2.464.755-2.464 1.956 0 1.275 1.15 1.597 2.17 1.82 1.02.222 1.474.31 1.474.705 0 .396-.332.582-.993.582-.612 0-1.065-.282-1.34-.83a.08.08 0 00-.107-.035l-1.143.57a.083.083 0 00-.036.111c.454.92 1.384 1.437 2.627 1.437 1.583 0 2.539-.742 2.539-1.98s-1.155-1.598-2.173-1.82v-.003zM15.49 8.855c-.65 0-1.224.232-1.636.646a.04.04 0 01-.069-.03v-2.64a.08.08 0 00-.08-.081H12.27a.08.08 0 00-.08.082v8.194a.08.08 0 00.08.082h1.433a.08.08 0 00.081-.082v-3.594c0-.695.528-1.227 1.239-1.227.71 0 1.226.521 1.226 1.227v3.594a.08.08 0 00.081.082h1.433a.08.08 0 00.081-.082v-3.594c0-1.51-.981-2.577-2.355-2.577zM20.753 8.62c-.778 0-1.507.24-2.03.588a.082.082 0 00-.027.109l.632 1.088a.08.08 0 00.11.03 2.5 2.5 0 011.318-.366c1.25 0 2.17.891 2.17 2.068 0 1.003-.736 1.745-1.669 1.745-.76 0-1.288-.446-1.288-1.077 0-.361.152-.657.548-.866a.08.08 0 00.032-.113l-.596-1.018a.08.08 0 00-.098-.035c-.799.299-1.359 1.018-1.359 1.984 0 1.46 1.152 2.55 2.76 2.55 1.877 0 3.227-1.313 3.227-3.195 0-2.018-1.57-3.492-3.73-3.492zM28.675 8.843c-.724 0-1.373.27-1.845.746-.026.027-.069.007-.069-.029v-.572a.08.08 0 00-.08-.082h-1.397a.08.08 0 00-.08.082v8.182a.08.08 0 00.08.081h1.433a.08.08 0 00.081-.081v-2.683c0-.036.043-.054.069-.03a2.6 2.6 0 001.808.7c1.682 0 2.993-1.373 2.993-3.157s-1.313-3.157-2.993-3.157zm-.271 4.929c-.956 0-1.681-.768-1.681-1.783s.723-1.783 1.681-1.783c.958 0 1.68.755 1.68 1.783 0 1.027-.713 1.783-1.681 1.783h.001z",fill:"#fff"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{viewBox:"-36 25 38 24",xmlns:"http://www.w3.org/2000/svg",width:"38",height:"24",role:"img","aria-labelledby":"pi-unionpay"}},[e("title",{attrs:{id:"pi-unionpay"}},[t._v("Union Pay")]),e("path",{attrs:{fill:"#005B9A",d:"M-36 46.8v.7-.7zM-18.3 25v24h-7.2c-1.3 0-2.1-1-1.8-2.3l4.4-19.4c.3-1.3 1.9-2.3 3.2-2.3h1.4zm12.6 0c-1.3 0-2.9 1-3.2 2.3l-4.5 19.4c-.3 1.3.5 2.3 1.8 2.3h-4.9V25h10.8z"}}),e("path",{attrs:{fill:"#E9292D",d:"M-19.7 25c-1.3 0-2.9 1.1-3.2 2.3l-4.4 19.4c-.3 1.3.5 2.3 1.8 2.3h-8.9c-.8 0-1.5-.6-1.5-1.4v-21c0-.8.7-1.6 1.5-1.6h14.7z"}}),e("path",{attrs:{fill:"#0E73B9",d:"M-5.7 25c-1.3 0-2.9 1.1-3.2 2.3l-4.4 19.4c-.3 1.3.5 2.3 1.8 2.3H-26h.5c-1.3 0-2.1-1-1.8-2.3l4.4-19.4c.3-1.3 1.9-2.3 3.2-2.3h14z"}}),e("path",{attrs:{fill:"#059DA4",d:"M2 26.6v21c0 .8-.6 1.4-1.5 1.4h-12.1c-1.3 0-2.1-1.1-1.8-2.3l4.5-19.4C-8.6 26-7 25-5.7 25H.5c.9 0 1.5.7 1.5 1.6z"}}),e("path",{attrs:{fill:"#fff",d:"M-21.122 38.645h.14c.14 0 .28-.07.28-.14l.42-.63h1.19l-.21.35h1.4l-.21.63h-1.68c-.21.28-.42.42-.7.42h-.84l.21-.63m-.21.91h3.01l-.21.7h-1.19l-.21.7h1.19l-.21.7h-1.19l-.28 1.05c-.07.14 0 .28.28.21h.98l-.21.7h-1.89c-.35 0-.49-.21-.35-.63l.35-1.33h-.77l.21-.7h.77l.21-.7h-.7l.21-.7zm4.83-1.75v.42s.56-.42 1.12-.42h1.96l-.77 2.66c-.07.28-.35.49-.77.49h-2.24l-.49 1.89c0 .07 0 .14.14.14h.42l-.14.56h-1.12c-.42 0-.56-.14-.49-.35l1.47-5.39h.91zm1.68.77h-1.75l-.21.7s.28-.21.77-.21h1.05l.14-.49zm-.63 1.68c.14 0 .21 0 .21-.14l.14-.35h-1.75l-.14.56 1.54-.07zm-1.19.84h.98v.42h.28c.14 0 .21-.07.21-.14l.07-.28h.84l-.14.49c-.07.35-.35.49-.77.56h-.56v.77c0 .14.07.21.35.21h.49l-.14.56h-1.19c-.35 0-.49-.14-.49-.49l.07-2.1zm4.2-2.45l.21-.84h1.19l-.07.28s.56-.28 1.05-.28h1.47l-.21.84h-.21l-1.12 3.85h.21l-.21.77h-.21l-.07.35h-1.19l.07-.35h-2.17l.21-.77h.21l1.12-3.85h-.28m1.26 0l-.28 1.05s.49-.21.91-.28c.07-.35.21-.77.21-.77h-.84zm-.49 1.54l-.28 1.12s.56-.28.98-.28c.14-.42.21-.77.21-.77l-.91-.07zm.21 2.31l.21-.77h-.84l-.21.77h.84zm2.87-4.69h1.12l.07.42c0 .07.07.14.21.14h.21l-.21.7h-.77c-.28 0-.49-.07-.49-.35l-.14-.91zm-.35 1.47h3.57l-.21.77h-1.19l-.21.7h1.12l-.21.77h-1.26l-.28.42h.63l.14.84c0 .07.07.14.21.14h.21l-.21.7h-.7c-.35 0-.56-.07-.56-.35l-.14-.77-.56.84c-.14.21-.35.35-.63.35h-1.05l.21-.7h.35c.14 0 .21-.07.35-.21l.84-1.26h-1.05l.21-.77h1.19l.21-.7h-1.19l.21-.77zm-19.74-5.04c-.14.7-.42 1.19-.91 1.54-.49.35-1.12.56-1.89.56-.7 0-1.26-.21-1.54-.56-.21-.28-.35-.56-.35-.98 0-.14 0-.35.07-.56l.84-3.92h1.19l-.77 3.92v.28c0 .21.07.35.14.49.14.21.35.28.7.28s.7-.07.91-.28c.21-.21.42-.42.49-.77l.77-3.92h1.19l-.84 3.92m1.12-1.54h.84l-.07.49.14-.14c.28-.28.63-.42 1.05-.42.35 0 .63.14.77.35.14.21.21.49.14.91l-.49 2.38h-.91l.42-2.17c.07-.28.07-.49 0-.56-.07-.14-.21-.14-.35-.14-.21 0-.42.07-.56.21-.14.14-.28.35-.28.63l-.42 2.03h-.91l.63-3.57m9.8 0h.84l-.07.49.14-.14c.28-.28.63-.42 1.05-.42.35 0 .63.14.77.35s.21.49.14.91l-.49 2.38h-.91l.42-2.24c.07-.21 0-.42-.07-.49-.07-.14-.21-.14-.35-.14-.21 0-.42.07-.56.21-.14.14-.28.35-.28.63l-.42 2.03h-.91l.7-3.57m-5.81 0h.98l-.77 3.5h-.98l.77-3.5m.35-1.33h.98l-.21.84h-.98l.21-.84zm1.4 4.55c-.21-.21-.35-.56-.35-.98v-.21c0-.07 0-.21.07-.28.14-.56.35-1.05.7-1.33.35-.35.84-.49 1.33-.49.42 0 .77.14 1.05.35.21.21.35.56.35.98v.21c0 .07 0 .21-.07.28-.14.56-.35.98-.7 1.33-.35.35-.84.49-1.33.49-.35 0-.7-.14-1.05-.35m1.89-.7c.14-.21.28-.49.35-.84v-.35c0-.21-.07-.35-.14-.49a.635.635 0 0 0-.49-.21c-.28 0-.49.07-.63.28-.14.21-.28.49-.35.84v.28c0 .21.07.35.14.49.14.14.28.21.49.21.28.07.42 0 .63-.21m6.51-4.69h2.52c.49 0 .84.14 1.12.35.28.21.35.56.35.91v.28c0 .07 0 .21-.07.28-.07.49-.35.98-.7 1.26-.42.35-.84.49-1.4.49h-1.4l-.42 2.03h-1.19l1.19-5.6m.56 2.59h1.12c.28 0 .49-.07.7-.21.14-.14.28-.35.35-.63v-.28c0-.21-.07-.35-.21-.42-.14-.07-.35-.14-.7-.14h-.91l-.35 1.68zm8.68 3.71c-.35.77-.7 1.26-.91 1.47-.21.21-.63.7-1.61.7l.07-.63c.84-.28 1.26-1.4 1.54-1.96l-.28-3.78h1.19l.07 2.38.91-2.31h1.05l-2.03 4.13m-2.94-3.85l-.42.28c-.42-.35-.84-.56-1.54-.21-.98.49-1.89 4.13.91 2.94l.14.21h1.12l.7-3.29-.91.07m-.56 1.82c-.21.56-.56.84-.91.77-.28-.14-.35-.63-.21-1.19.21-.56.56-.84.91-.77.28.14.35.63.21 1.19"}})])]),e("li",[e("svg",{staticClass:"icon icon--full-color",attrs:{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",width:"38",height:"24","aria-labelledby":"pi-visa"}},[e("title",{attrs:{id:"pi-visa"}},[t._v("Visa")]),e("path",{attrs:{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}}),e("path",{attrs:{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}}),e("path",{attrs:{d:"M28.3 10.1H28c-.4 1-.7 1.5-1 3h1.9c-.3-1.5-.3-2.2-.6-3zm2.9 5.9h-1.7c-.1 0-.1 0-.2-.1l-.2-.9-.1-.2h-2.4c-.1 0-.2 0-.2.2l-.3.9c0 .1-.1.1-.1.1h-2.1l.2-.5L27 8.7c0-.5.3-.7.8-.7h1.5c.1 0 .2 0 .2.2l1.4 6.5c.1.4.2.7.2 1.1.1.1.1.1.1.2zm-13.4-.3l.4-1.8c.1 0 .2.1.2.1.7.3 1.4.5 2.1.4.2 0 .5-.1.7-.2.5-.2.5-.7.1-1.1-.2-.2-.5-.3-.8-.5-.4-.2-.8-.4-1.1-.7-1.2-1-.8-2.4-.1-3.1.6-.4.9-.8 1.7-.8 1.2 0 2.5 0 3.1.2h.1c-.1.6-.2 1.1-.4 1.7-.5-.2-1-.4-1.5-.4-.3 0-.6 0-.9.1-.2 0-.3.1-.4.2-.2.2-.2.5 0 .7l.5.4c.4.2.8.4 1.1.6.5.3 1 .8 1.1 1.4.2.9-.1 1.7-.9 2.3-.5.4-.7.6-1.4.6-1.4 0-2.5.1-3.4-.2-.1.2-.1.2-.2.1zm-3.5.3c.1-.7.1-.7.2-1 .5-2.2 1-4.5 1.4-6.7.1-.2.1-.3.3-.3H18c-.2 1.2-.4 2.1-.7 3.2-.3 1.5-.6 3-1 4.5 0 .2-.1.2-.3.2M5 8.2c0-.1.2-.2.3-.2h3.4c.5 0 .9.3 1 .8l.9 4.4c0 .1 0 .1.1.2 0-.1.1-.1.1-.1l2.1-5.1c-.1-.1 0-.2.1-.2h2.1c0 .1 0 .1-.1.2l-3.1 7.3c-.1.2-.1.3-.2.4-.1.1-.3 0-.5 0H9.7c-.1 0-.2 0-.2-.2L7.9 9.5c-.2-.2-.5-.5-.9-.6-.6-.3-1.7-.5-1.9-.5L5 8.2z",fill:"#142688"}})])])])]),t._m(0)])])},X=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"flex justify-center p-1 text-center"},[t("a",{attrs:{href:"https://anpc.ro/ce-este-sal/",target:"_blank",rel:"noopener"}},[t("img",{attrs:{width:"150",height:"35",src:"https://sigi-media-pub.s3.eu-west-1.amazonaws.com/img-sol.webp",alt:"ANPC SAL"}})]),t("a",{attrs:{href:"http://ec.europa.eu/consumers/odr",target:"_blank",rel:"noopener"}},[t("img",{attrs:{width:"150",height:"35",src:"https://sigi-media-pub.s3.eu-west-1.amazonaws.com/sal-anpc-img.webp",alt:"ANPC ODR"}})])])}],Y=r(K,Q,X,!1,null,null,null,null);const tt=Y.exports,et={name:"CourseFooter",components:{CourseFooterBottom:tt,CourseFooterTop:J},props:{company:{type:Object,required:!1,default:()=>[]},footerMenu:{type:Object,required:!1,default:()=>[]}}};var st=function(){var t=this,e=t._self._c;return e("section",[e("course-footer-top",{attrs:{company:t.company,"footer-menu":t.footerMenu}}),e("course-footer-bottom",{attrs:{company:t.company}})],1)},at=[],lt=r(et,st,at,!1,null,null,null,null);const ft=lt.exports;export{nt as A,ht as C,it as F,ut as P,ot as T,pt as V,mt as a,dt as b,_t as c,ft as d}; diff --git a/public/build/assets/Create.01776621.js b/public/build/assets/Create.01776621.js new file mode 100644 index 00000000..423e20a1 --- /dev/null +++ b/public/build/assets/Create.01776621.js @@ -0,0 +1 @@ +import{_ as n}from"./vendor.21c2b6f5.js";import{I as i}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as l}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const m={name:"AdminUserCreate",components:{InlineCheckboxGroup:i,InputGroup:l},layout:"admin-layout",props:{selectableRoles:{default:null}},data(){return{formData:{email:"",first_name:"",last_name:"",password:"",password_confirmation:"",roles:{}}}},computed:{isSelectableRoles(){try{return Object.keys(this.selectableRoles).length>0}catch{return!1}}},mounted(){this.initialiseRoles()},methods:{initialiseRoles(){n.forEach(this.selectableRoles,(r,e)=>{this.formData.roles.hasOwnProperty(e)||(this.formData.roles[e]=!1)})},submit(){this.$inertia.post(this.$route("admin.users.store"),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("users.create")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create User ")]),e.userCan("users.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.users.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create User ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("first_name")}},model:{value:e.formData.first_name,callback:function(a){e.$set(e.formData,"first_name",a)},expression:"formData.first_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("last_name")}},model:{value:e.formData.last_name,callback:function(a){e.$set(e.formData,"last_name",a)},expression:"formData.last_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"off","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return e.clearPageErrorMessage("email")}},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"off","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(a){return e.clearPageErrorMessage("password")}},model:{value:e.formData.password,callback:function(a){e.$set(e.formData,"password",a)},expression:"formData.password"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password_confirmation"),"input-autocomplete":"off","input-id":"password_confirmation","input-name":"password_confirmation","input-required":!0,"input-type":"password","label-text":"Confirm Password"},on:{errorHidden:function(a){return e.clearPageErrorMessage("password_confirmation")}},model:{value:e.formData.password_confirmation,callback:function(a){e.$set(e.formData,"password_confirmation",a)},expression:"formData.password_confirmation"}})],1)]),e.isSelectableRoles?t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Roles ")]),t("div",{staticClass:"space-y-2"},e._l(e.selectableRoles,function(a,s){return t("inline-checkbox-group",{key:`user-role-${s}`,attrs:{"input-id":`user-role-${s}`,"input-name":`user-role-${s}`,"label-text":a},model:{value:e.formData.roles[s],callback:function(o){e.$set(e.formData.roles,s,o)},expression:"formData.roles[role_key]"}})}),1)])]):e._e()])},c=[],f=u(m,p,c,!1,null,null,null,null);const v=f.exports;export{v as default}; diff --git a/public/build/assets/Create.104a8ccd.js b/public/build/assets/Create.104a8ccd.js new file mode 100644 index 00000000..7a3f0aa5 --- /dev/null +++ b/public/build/assets/Create.104a8ccd.js @@ -0,0 +1 @@ +import{C as a}from"./CheckboxGroup.7b759576.js";import{D as s}from"./DateTimePickerGroup.36fef719.js";import{I as n}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";import"./vendor.21c2b6f5.js";const o={name:"AdminCmsRedirectCreate",components:{CheckboxGroup:a,DateTimePickerGroup:s,InputGroup:n},layout:"admin-layout",data(){return{formData:{expired_at:null,is_enabled:!1,is_permanent:!1,published_at:null,url_from:"",url_to:""}}},methods:{submit(){this.$inertia.post(this.$route("admin.cms.redirects.store"),this.formData)}}};var l=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms_advanced.create")?t("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Redirect ")]),e.userCan("cms_advanced.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.redirects.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Redirect ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("url_from"),"input-autocomplete":"url_from","input-id":"url_from","input-name":"url_from","input-required":!0,"input-type":"text","label-text":"URL From"},on:{errorHidden:function(r){return e.clearPageErrorMessage("url_from")}},model:{value:e.formData.url_from,callback:function(r){e.$set(e.formData,"url_from",r)},expression:"formData.url_from"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("url_to"),"input-autocomplete":"url_to","input-id":"url_to","input-name":"url_to","input-required":!0,"input-type":"text","label-text":"URL To"},on:{errorHidden:function(r){return e.clearPageErrorMessage("url_to")}},model:{value:e.formData.url_to,callback:function(r){e.$set(e.formData,"url_to",r)},expression:"formData.url_to"}}),t("p",{staticClass:"mt-4 text-sm"},[e._v("Note: URL's should begin with '/'")])],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("checkbox-group",{attrs:{"error-message":e.getPageErrorMessage("is_enabled"),"input-id":"is_enabled","input-name":"is_enabled","label-text":"Enabled?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("is_enabled")}},model:{value:e.formData.is_enabled,callback:function(r){e.$set(e.formData,"is_enabled",r)},expression:"formData.is_enabled"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("is_permanent1"),"input-id":"is_permanent","input-name":"is_permanent","label-text":"Permanent?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("is_permanent")}},model:{value:e.formData.is_permanent,callback:function(r){e.$set(e.formData,"is_permanent",r)},expression:"formData.is_permanent"}}),t("date-time-picker-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("published_at"),"input-id":"published_at","input-name":"published_at","label-text":"Publish Date"},on:{errorHidden:function(r){return e.clearPageErrorMessage("published_at")}},model:{value:e.formData.published_at,callback:function(r){e.$set(e.formData,"published_at",r)},expression:"formData.published_at"}}),t("date-time-picker-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("expired_at"),"input-id":"expired_at","input-name":"expired_at","label-text":"Expiry Date"},on:{errorHidden:function(r){return e.clearPageErrorMessage("expired_at")}},model:{value:e.formData.expired_at,callback:function(r){e.$set(e.formData,"expired_at",r)},expression:"formData.expired_at"}})],1)])])},u=[],m=i(o,l,u,!1,null,null,null,null);const x=m.exports;export{x as default}; diff --git a/public/build/assets/Create.1d8384ed.js b/public/build/assets/Create.1d8384ed.js new file mode 100644 index 00000000..551c7e4f --- /dev/null +++ b/public/build/assets/Create.1d8384ed.js @@ -0,0 +1 @@ +import{s as n}from"./vendor.21c2b6f5.js";import{I as i}from"./InputGroup.513e0dd4.js";import{M as o,U as u}from"./UrlEditor.6a278f5e.js";import{S as p}from"./app.c52b09a2.js";import{n as m}from"./LogoLight.f7426689.js";import"./DateTimePickerGroup.36fef719.js";import"./InlineCheckboxGroup.b3aa2b58.js";import"./checkbox-form-group.99a615f1.js";import"./ConfirmationModal.242a99d0.js";let s=axios.CancelToken,l=s.source();const d={name:"AdminCmsPageCreate",components:{InputGroup:i,MetadataEditor:o,SelectGroup:p,UrlEditor:u},layout:"admin-layout",props:{layouts:{required:!0,type:Object|Array},parentPages:{required:!0,type:Object|Array|null},templates:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!0,computedUrl:"",formData:{layout_id:"",metadata:{},name:"",parent_id:"",slug:"",template_id:"",url:{}},isLoadingTemplate:!1,isUrlAvailable:!1,selectedTemplate:null}},computed:{isLayouts(){try{return Object.keys(this.layouts).length}catch{return!1}},isTemplates(){try{return Object.keys(this.templates).length}catch{return!1}},parentPagesUrls(){try{if(!Object.keys(this.parentPages).length)return null;let t={};return _.forEach(this.parentPages,(e,a)=>{t[a]={id:e.id,label:e.name+" => "+e.url.url_full,url_full:e.url.url_full,url_main:e.url.url_main}}),t}catch{return null}},parentPagesMap(){try{if(!Object.keys(this.parentPages).length)return null;let t={};return _.forEach(this.parentPages,(e,a)=>{t[e.id]=a}),t}catch{return null}},selectedParentPage(){try{return this.formData.parent_id?this.parentPages[this.parentPagesMap[this.formData.parent_id]]:null}catch{return null}},selectedParentPageUrl(){try{return this.selectedParentPage.url.url_full}catch{return null}},selectedTemplateHasFields(){try{return this.selectedTemplate?this.selectedTemplate.template_fields.length:!1}catch{return!1}},selectedTemplateId(){var t;return(t=this.formData.template_id)!=null?t:""}},methods:{cancelLoadTemplate(){this.isLoadingTemplate&&(l.cancel("Template load cancelled"),l=s.source())},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSelectedTemplateIdChange:_.debounce(function(){this.selectedTemplate=null,this.cancelLoadTemplate(),this.selectedTemplateId&&(this.isLoadingTemplate=!0,axios.get(this.$route("admin.api.cms.templates.show",this.selectedTemplateId)).then(t=>{this.selectedTemplate=_.cloneDeep(t.data.data),this.setNewTemplateContent()}).catch(t=>{axios.isCancel(t)||(this.$errorToast("Failed to load selected template"),console.log(t))}).finally(()=>{this.isLoadingTemplate=!1}))},500),onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},onUrlIsAvailableEvent(t){this.isUrlAvailable=t},setNewTemplateContent(){this.selectedTemplateHasFields||(this.formData.content={});let t={};_.forEach(this.selectedTemplate.template_fields,e=>{t[e.id]={data:"",template_field_id:e.id}}),this.$set(this.formData,"content",_.cloneDeep(t))},slugify(t){return!t||!t.length?"":n(t,{lower:!0})},submit(){if(!this.isUrlAvailable){this.$errorToast("Unable to create page. URL is unavailable");return}this.$inertia.post(this.$route("admin.cms.pages.store"),this.formData)}},watch:{selectedTemplateId:{handler:"onSelectedTemplateIdChange"}}};var c=function(){var e=this,a=e._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms.create")?a("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Page ")]),e.userCan("cms.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.pages.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Create Page ")])],1)],1):e._e(),a("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("select-group",{attrs:{"error-message":e.getPageErrorMessage("layout_id"),"label-text":"Layout","input-any-option-enabled":!0,"input-any-option-label":"Please select a Layout","input-autofocus":!0,"input-id":"layout_id","input-name":"layout_id","input-options":e.isLayouts?e.layouts:{},"input-option-label-key":"name","input-option-value-key":"id","input-required":!0},on:{errorHidden:function(r){return e.clearPageErrorMessage("layout_id")}},model:{value:e.formData.layout_id,callback:function(r){e.$set(e.formData,"layout_id",r)},expression:"formData.layout_id"}}),a("select-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("template_id"),"label-text":"Template","input-any-option-enabled":!0,"input-any-option-label":"Please select a template","input-id":"template_id","input-name":"template_id","input-options":e.isTemplates?e.templates:{},"input-option-label-key":"name","input-option-value-key":"id","input-required":!0},on:{errorHidden:function(r){return e.clearPageErrorMessage("template_id")}},model:{value:e.formData.template_id,callback:function(r){e.$set(e.formData,"template_id",r)},expression:"formData.template_id"}}),e.parentPagesUrls?a("select-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("parent_id"),"label-text":"Parent Page","input-any-option-enabled":!0,"input-any-option-label":"Please select a parent (optional)","input-id":"parent_id","input-name":"parent_id","input-options":e.parentPagesUrls,"input-option-label-key":"label","input-option-value-key":"id"},on:{errorHidden:function(r){return e.clearPageErrorMessage("parent_id")}},model:{value:e.formData.parent_id,callback:function(r){e.$set(e.formData,"parent_id",r)},expression:"formData.parent_id"}}):e._e(),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"page_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Page Name"},on:{errorHidden:function(r){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(r){e.$set(e.formData,"name",r)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"page_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Page Slug"},on:{blur:e.onSlugBlur,errorHidden:function(r){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(r){e.$set(e.formData,"slug",r)},expression:"formData.slug"}})],1)]),a("div",{staticClass:"bg-white mt-6 overflow-x-hidden px-6 py-6 shadow-subtle rounded-lg"},[a("metadata-editor",{model:{value:e.formData.metadata,callback:function(r){e.$set(e.formData,"metadata",r)},expression:"formData.metadata"}})],1),a("div",{staticClass:"bg-white mt-6 px-6 py-6 shadow-subtle rounded-lg"},[a("url-editor",{attrs:{"computed-url":e.computedUrl,"parent-url":e.selectedParentPageUrl},on:{isAvailable:e.onUrlIsAvailableEvent},model:{value:e.formData.url,callback:function(r){e.$set(e.formData,"url",r)},expression:"formData.url"}})],1),!this.isLoadingTemplate&&e.selectedTemplateHasFields?a("div",{staticClass:"bg-white mt-6 px-6 py-6 shadow-subtle rounded-lg"},[a("p",{staticClass:"text-lg"},[e._v("Fields")]),a("content-editor",{staticClass:"mt-4",attrs:{"template-fields":e.selectedTemplate.template_fields},model:{value:e.formData.content,callback:function(r){e.$set(e.formData,"content",r)},expression:"formData.content"}})],1):e._e()])},f=[],g=m(d,c,f,!1,null,null,null,null);const k=g.exports;export{k as default}; diff --git a/public/build/assets/Create.623d94ee.js b/public/build/assets/Create.623d94ee.js new file mode 100644 index 00000000..30b59f79 --- /dev/null +++ b/public/build/assets/Create.623d94ee.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import{W as s,T as i,S as n}from"./app.c52b09a2.js";import{C as o}from"./CheckboxGroup.7b759576.js";import{D as u}from"./DateTimePickerGroup.36fef719.js";import{S as c}from"./SectionItemsEditor.845c8cbd.js";import{n as l}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const m={name:"AdminEDUCourseCreate",components:{WysiwygField:s,TextAreaGroup:i,SectionItemsEditor:c,InputGroup:r,CheckboxGroup:o,SelectGroup:n,DateTimePickerGroup:u},layout:"admin-layout",props:{currencies:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!0,formData:{name:"",summary:"",description:"",available_from:"",available_to:"",content_length_video:"",banner:"",primary_image:"",video_preview:"",price:"",discount_price:"",vat:"",price_vat:"",currency:"",languages:"",has_webinars:"",has_money_back_guarantee:"",has_certificate:"",has_captions:"",has_lifetime_access:"",has_student_discount:"",has_pdfs:"",has_free_seo_exposure:"",sections:[],templateField:{type:"wysiwyg"}}}},methods:{submit(){this.$inertia.post(this.$route("admin.edu.courses.store"),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("courses.create")?t("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create ")]),e.userCan("course.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.courses.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v("General details")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"course_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("name")}},model:{value:e.formData.name,callback:function(a){e.$set(e.formData,"name",a)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"course_summary","input-id":"summary","input-name":"summary","input-required":!0,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(a){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(a){e.$set(e.formData,"summary",a)},expression:"formData.summary"}}),t("div",{staticClass:"mt-4"},[t("label",[e._v("Description")]),t("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:e.formData.description,callback:function(a){e.$set(e.formData,"description",a)},expression:"formData.description"}})],1)],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Availability details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_from"),"input-id":"available_from","input-name":"available_from","label-text":"Available From"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_from")}},model:{value:e.formData.available_from,callback:function(a){e.$set(e.formData,"available_from",a)},expression:"formData.available_from"}}),t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_to"),"input-id":"available_to","input-name":"available_to","label-text":"Available To"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_to")}},model:{value:e.formData.available_to,callback:function(a){e.$set(e.formData,"available_to",a)},expression:"formData.available_to"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Image & Video details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("content_length_video"),"input-autocomplete":"course_content_length_video","input-id":"content_length_video","input-name":"content_length_video","input-required":!1,"input-type":"text","label-text":"Total content length in hours"},on:{errorHidden:function(a){return e.clearPageErrorMessage("content_length_video")}},model:{value:e.formData.content_length_video,callback:function(a){e.$set(e.formData,"content_length_video",a)},expression:"formData.content_length_video"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("banner"),"input-autocomplete":"course_banner","input-id":"banner","input-name":"banner","input-required":!1,"input-type":"text","label-text":"Banner"},on:{errorHidden:function(a){return e.clearPageErrorMessage("banner")}},model:{value:e.formData.banner,callback:function(a){e.$set(e.formData,"banner",a)},expression:"formData.banner"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("primary_image"),"input-autocomplete":"primary_image","input-id":"primary_image","input-name":"primary_image","input-required":!1,"input-type":"text","label-text":"Primary Image"},on:{errorHidden:function(a){return e.clearPageErrorMessage("primary_image")}},model:{value:e.formData.primary_image,callback:function(a){e.$set(e.formData,"primary_image",a)},expression:"formData.primary_image"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("video_preview"),"input-autocomplete":"video_preview","input-id":"video_preview","input-name":"video_preview","input-required":!1,"input-type":"text","label-text":"Video Preview"},on:{errorHidden:function(a){return e.clearPageErrorMessage("video_preview")}},model:{value:e.formData.video_preview,callback:function(a){e.$set(e.formData,"video_preview",a)},expression:"formData.video_preview"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("languages"),"input-autocomplete":"languages","input-id":"languages","input-name":"languages","input-required":!1,"input-type":"text","label-text":"The language/s of the content"},on:{errorHidden:function(a){return e.clearPageErrorMessage("languages")}},model:{value:e.formData.languages,callback:function(a){e.$set(e.formData,"languages",a)},expression:"formData.languages"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Price details")]),t("div",{staticClass:"grid grid-cols-3 gap-3"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price"),"input-autocomplete":"price","input-id":"price","input-name":"price","input-required":!1,"input-type":"text","label-text":"Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("price")}},model:{value:e.formData.price,callback:function(a){e.$set(e.formData,"price",a)},expression:"formData.price"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("discount_price"),"input-autocomplete":"discount_price","input-id":"discount_price","input-name":"discount_price","input-required":!1,"input-type":"text","label-text":"Discount Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("discount_price")}},model:{value:e.formData.discount_price,callback:function(a){e.$set(e.formData,"discount_price",a)},expression:"formData.discount_price"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("vat"),"input-autocomplete":"vat","input-id":"vat","input-name":"vat","input-required":!1,"input-type":"text","label-text":"VAT"},on:{errorHidden:function(a){return e.clearPageErrorMessage("vat")}},model:{value:e.formData.vat,callback:function(a){e.$set(e.formData,"vat",a)},expression:"formData.vat"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price_vat"),"input-autocomplete":"price_vat","input-id":"price_vat","input-name":"price_vat","input-required":!1,"input-type":"text","label-text":"Price VAT"},on:{errorHidden:function(a){return e.clearPageErrorMessage("price_vat")}},model:{value:e.formData.price_vat,callback:function(a){e.$set(e.formData,"price_vat",a)},expression:"formData.price_vat"}}),t("select-group",{staticClass:"mt-4",attrs:{"label-text":"Currency","input-any-option-enabled":!0,"input-any-option-label":"Currency","input-class":"input-group-input","input-id":"currency","input-name":"currency","input-option-label-key":"name","input-option-value-key":"id","input-options":e.currencies},model:{value:e.formData.currency,callback:function(a){e.$set(e.formData,"currency",a)},expression:"formData.currency"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Features Offered")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_webinars"),"input-id":"has_webinars","input-name":"has_webinars","label-text":"Has Webinars?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_webinars")}},model:{value:e.formData.has_webinars,callback:function(a){e.$set(e.formData,"has_webinars",a)},expression:"formData.has_webinars"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_money_back_guarantee"),"input-id":"has_money_back_guarantee","input-name":"has_money_back_guarantee","label-text":"Has Money Back Guarantee?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_money_back_guarantee")}},model:{value:e.formData.has_money_back_guarantee,callback:function(a){e.$set(e.formData,"has_money_back_guarantee",a)},expression:"formData.has_money_back_guarantee"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_certificate"),"input-id":"has_certificate","input-name":"has_certificate","label-text":"Has Certificate?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_certificate")}},model:{value:e.formData.has_certificate,callback:function(a){e.$set(e.formData,"has_certificate",a)},expression:"formData.has_certificate"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_captions"),"input-id":"has_captions","input-name":"has_captions","label-text":"Videos have captions?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_captions")}},model:{value:e.formData.has_captions,callback:function(a){e.$set(e.formData,"has_captions",a)},expression:"formData.has_captions"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_lifetime_access"),"input-id":"has_lifetime_access","input-name":"has_lifetime_access","label-text":"Has Lifetime Access?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_lifetime_access")}},model:{value:e.formData.has_lifetime_access,callback:function(a){e.$set(e.formData,"has_lifetime_access",a)},expression:"formData.has_lifetime_access"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_student_discount"),"input-id":"has_student_discount","input-name":"has_student_discount","label-text":"Has Student Discount?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_student_discount")}},model:{value:e.formData.has_student_discount,callback:function(a){e.$set(e.formData,"has_student_discount",a)},expression:"formData.has_student_discount"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_pdfs"),"input-id":"has_pdfs","input-name":"has_pdfs","label-text":"Has PDFs?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_pdfs")}},model:{value:e.formData.has_pdfs,callback:function(a){e.$set(e.formData,"has_pdfs",a)},expression:"formData.has_pdfs"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_free_seo_exposure"),"input-id":"has_free_seo_exposure","input-name":"has_free_seo_exposure","label-text":"Has Free SEO Exposure?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_free_seo_exposure")}},model:{value:e.formData.has_free_seo_exposure,callback:function(a){e.$set(e.formData,"has_free_seo_exposure",a)},expression:"formData.has_free_seo_exposure"}})],1)]),t("div",{staticClass:"bg-white mt-6 p-6 shadow-subtle rounded-lg"},[t("section-items-editor",{model:{value:e.formData.sections,callback:function(a){e.$set(e.formData,"sections",a)},expression:"formData.sections"}})],1)])},d=[],g=l(m,p,d,!1,null,null,null,null);const $=g.exports;export{$ as default}; diff --git a/public/build/assets/Create.65796194.js b/public/build/assets/Create.65796194.js new file mode 100644 index 00000000..b2160ff2 --- /dev/null +++ b/public/build/assets/Create.65796194.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import{T as s,S as n,W as o}from"./app.c52b09a2.js";import{C as i}from"./CheckboxGroup.7b759576.js";import{D as u}from"./DateTimePickerGroup.36fef719.js";import{S as l}from"./SectionItemsEditor.845c8cbd.js";import{n as c}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const m={name:"AdminEDUCourseCreate",components:{TextAreaGroup:s,SectionItemsEditor:l,InputGroup:r,CheckboxGroup:i,SelectGroup:n,DateTimePickerGroup:u,WysiwygField:o},layout:"admin-layout",props:{currencies:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!0,formData:{name:"",summary:"",description:"",available_from:"",available_to:"",content_length_video:"",banner:"",primary_image:"",video_preview:"",price:"",discount_price:"",currency:"",languages:"",has_webinars:"",has_money_back_guarantee:"",has_certificate:"",has_captions:"",has_lifetime_access:"",has_student_discount:"",has_pdfs:"",has_free_seo_exposure:"",sections:[],templateField:{type:"wysiwyg"}}}},methods:{submit(){this.$inertia.post(this.$route("admin.edu.courses.store"),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("courses.create")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create ")]),e.userCan("course.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.courses.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v("General details")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"course_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("name")}},model:{value:e.formData.name,callback:function(a){e.$set(e.formData,"name",a)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"course_summary","input-id":"summary","input-name":"summary","input-required":!0,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(a){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(a){e.$set(e.formData,"summary",a)},expression:"formData.summary"}}),t("div",{staticClass:"mt-4"},[t("label",[e._v("Description")]),t("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:e.formData.description,callback:function(a){e.$set(e.formData,"description",a)},expression:"formData.description"}})],1)],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Availability details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_from"),"input-id":"available_from","input-name":"available_from","label-text":"Available From"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_from")}},model:{value:e.formData.available_from,callback:function(a){e.$set(e.formData,"available_from",a)},expression:"formData.available_from"}}),t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_to"),"input-id":"available_to","input-name":"available_to","label-text":"Available To"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_to")}},model:{value:e.formData.available_to,callback:function(a){e.$set(e.formData,"available_to",a)},expression:"formData.available_to"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Image & Video details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("content_length_video"),"input-autocomplete":"course_content_length_video","input-id":"content_length_video","input-name":"content_length_video","input-required":!1,"input-type":"text","label-text":"Total content length in hours"},on:{errorHidden:function(a){return e.clearPageErrorMessage("content_length_video")}},model:{value:e.formData.content_length_video,callback:function(a){e.$set(e.formData,"content_length_video",a)},expression:"formData.content_length_video"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("banner"),"input-autocomplete":"course_banner","input-id":"banner","input-name":"banner","input-required":!1,"input-type":"text","label-text":"Banner"},on:{errorHidden:function(a){return e.clearPageErrorMessage("banner")}},model:{value:e.formData.banner,callback:function(a){e.$set(e.formData,"banner",a)},expression:"formData.banner"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("primary_image"),"input-autocomplete":"primary_image","input-id":"primary_image","input-name":"primary_image","input-required":!1,"input-type":"text","label-text":"Primary Image"},on:{errorHidden:function(a){return e.clearPageErrorMessage("primary_image")}},model:{value:e.formData.primary_image,callback:function(a){e.$set(e.formData,"primary_image",a)},expression:"formData.primary_image"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("video_preview"),"input-autocomplete":"video_preview","input-id":"video_preview","input-name":"video_preview","input-required":!1,"input-type":"text","label-text":"Video Preview"},on:{errorHidden:function(a){return e.clearPageErrorMessage("video_preview")}},model:{value:e.formData.video_preview,callback:function(a){e.$set(e.formData,"video_preview",a)},expression:"formData.video_preview"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("languages"),"input-autocomplete":"languages","input-id":"languages","input-name":"languages","input-required":!1,"input-type":"text","label-text":"The language/s of the content"},on:{errorHidden:function(a){return e.clearPageErrorMessage("languages")}},model:{value:e.formData.languages,callback:function(a){e.$set(e.formData,"languages",a)},expression:"formData.languages"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Price details")]),t("div",{staticClass:"grid grid-cols-3 gap-3"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price"),"input-autocomplete":"price","input-id":"price","input-name":"price","input-required":!1,"input-type":"text","label-text":"Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("price")}},model:{value:e.formData.price,callback:function(a){e.$set(e.formData,"price",a)},expression:"formData.price"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("discount_price"),"input-autocomplete":"discount_price","input-id":"discount_price","input-name":"discount_price","input-required":!1,"input-type":"text","label-text":"Discount Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("discount_price")}},model:{value:e.formData.discount_price,callback:function(a){e.$set(e.formData,"discount_price",a)},expression:"formData.discount_price"}}),t("select-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Currency","input-any-option-enabled":!0,"input-any-option-label":"Currency","input-class":"form-control form-control-short","input-id":"currency","input-name":"currency","input-option-label-key":"name","input-option-value-key":"id","input-options":e.currencies},model:{value:e.formData.currency,callback:function(a){e.$set(e.formData,"currency",a)},expression:"formData.currency"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Features Offered")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_webinars"),"input-id":"has_webinars","input-name":"has_webinars","label-text":"Has Webinars?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_webinars")}},model:{value:e.formData.has_webinars,callback:function(a){e.$set(e.formData,"has_webinars",a)},expression:"formData.has_webinars"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_money_back_guarantee"),"input-id":"has_money_back_guarantee","input-name":"has_money_back_guarantee","label-text":"Has Money Back Guarantee?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_money_back_guarantee")}},model:{value:e.formData.has_money_back_guarantee,callback:function(a){e.$set(e.formData,"has_money_back_guarantee",a)},expression:"formData.has_money_back_guarantee"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_certificate"),"input-id":"has_certificate","input-name":"has_certificate","label-text":"Has Certificate?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_certificate")}},model:{value:e.formData.has_certificate,callback:function(a){e.$set(e.formData,"has_certificate",a)},expression:"formData.has_certificate"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_captions"),"input-id":"has_captions","input-name":"has_captions","label-text":"Videos have captions?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_captions")}},model:{value:e.formData.has_captions,callback:function(a){e.$set(e.formData,"has_captions",a)},expression:"formData.has_captions"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_lifetime_access"),"input-id":"has_lifetime_access","input-name":"has_lifetime_access","label-text":"Has Lifetime Access?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_lifetime_access")}},model:{value:e.formData.has_lifetime_access,callback:function(a){e.$set(e.formData,"has_lifetime_access",a)},expression:"formData.has_lifetime_access"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_student_discount"),"input-id":"has_student_discount","input-name":"has_student_discount","label-text":"Has Student Discount?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_student_discount")}},model:{value:e.formData.has_student_discount,callback:function(a){e.$set(e.formData,"has_student_discount",a)},expression:"formData.has_student_discount"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_pdfs"),"input-id":"has_pdfs","input-name":"has_pdfs","label-text":"Has PDFs?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_pdfs")}},model:{value:e.formData.has_pdfs,callback:function(a){e.$set(e.formData,"has_pdfs",a)},expression:"formData.has_pdfs"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_free_seo_exposure"),"input-id":"has_free_seo_exposure","input-name":"has_free_seo_exposure","label-text":"Has Free SEO Exposure?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_free_seo_exposure")}},model:{value:e.formData.has_free_seo_exposure,callback:function(a){e.$set(e.formData,"has_free_seo_exposure",a)},expression:"formData.has_free_seo_exposure"}})],1)]),t("div",{staticClass:"bg-white mt-6 p-6 shadow-subtle rounded-lg"},[t("section-items-editor",{model:{value:e.formData.sections,callback:function(a){e.$set(e.formData,"sections",a)},expression:"formData.sections"}})],1)])},d=[],g=c(m,p,d,!1,null,null,null,null);const $=g.exports;export{$ as default}; diff --git a/public/build/assets/Create.8b338964.js b/public/build/assets/Create.8b338964.js new file mode 100644 index 00000000..e390c42d --- /dev/null +++ b/public/build/assets/Create.8b338964.js @@ -0,0 +1 @@ +import{s as i}from"./vendor.21c2b6f5.js";import{I as r}from"./InputGroup.513e0dd4.js";import{S as o}from"./app.c52b09a2.js";import{n as u}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";let n=axios.CancelToken,l=n.source();const m={name:"AdminCmsLayoutCreate",components:{InputGroup:r,SelectGroup:o},layout:"admin-layout",props:{templates:{type:Object|Array,required:!0}},data(){return{autoUpdateSlug:!0,formData:{name:"",slug:"",template_id:""},isLoadingTemplate:!1,selectedTemplate:null}},computed:{isTemplates(){try{return Object.keys(this.templates).length}catch{return!1}},selectedTemplateHasFields(){try{return this.selectedTemplate?this.selectedTemplate.template_fields.length:!1}catch{return!1}},selectedTemplateId(){var t;return(t=this.formData.template_id)!=null?t:""}},methods:{cancelLoadTemplate(){this.isLoadingTemplate&&(l.cancel("Template load cancelled"),l=n.source())},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSelectedTemplateIdChange:_.debounce(function(){this.selectedTemplate=null,this.cancelLoadTemplate(),this.selectedTemplateId&&(this.isLoadingTemplate=!0,axios.get(this.$route("admin.api.cms.templates.show",this.selectedTemplateId)).then(t=>{this.selectedTemplate=_.cloneDeep(t.data.data),this.setNewTemplateContent()}).catch(t=>{axios.isCancel(t)||(this.$errorToast("Failed to load selected template"),console.log(t))}).finally(()=>{this.isLoadingTemplate=!1}))},500),onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},setNewTemplateContent(){this.selectedTemplateHasFields||(this.formData.content={});let t={};_.forEach(this.selectedTemplate.template_fields,e=>{t[e.id]={data:"",template_field_id:e.id}}),this.$set(this.formData,"content",_.cloneDeep(t))},slugify(t){return!t||!t.length?"":i(t,{lower:!0})},submit(){this.$inertia.post(this.$route("admin.cms.layouts.store"),this.formData)}},watch:{selectedTemplateId:{handler:"onSelectedTemplateIdChange"}}};var p=function(){var e=this,a=e._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(s){return s.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms_advanced.create")?a("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Layout ")]),e.userCan("cms_advanced.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.layouts.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Create Layout ")])],1)],1):e._e(),a("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("select-group",{attrs:{"error-message":e.getPageErrorMessage("template_id"),"label-text":"Template","input-any-option-enabled":!0,"input-any-option-label":"Please select a template","input-autofocus":!0,"input-id":"template_id","input-name":"template_id","input-options":e.isTemplates?e.templates:{},"input-option-label-key":"name","input-option-value-key":"id","input-required":!0},on:{errorHidden:function(s){return e.clearPageErrorMessage("template_id")}},model:{value:e.formData.template_id,callback:function(s){e.$set(e.formData,"template_id",s)},expression:"formData.template_id"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"layout_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Layout Name"},on:{errorHidden:function(s){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(s){e.$set(e.formData,"name",s)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"layout_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Layout Slug"},on:{blur:e.onSlugBlur,errorHidden:function(s){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(s){e.$set(e.formData,"slug",s)},expression:"formData.slug"}})],1)]),!this.isLoadingTemplate&&e.selectedTemplateHasFields?a("div",{staticClass:"bg-white mt-6 px-4 py-6 shadow-subtle rounded-lg"},[a("p",{staticClass:"text-lg"},[e._v("Fields")]),a("content-editor",{staticClass:"mt-4",attrs:{"template-fields":e.selectedTemplate.template_fields},model:{value:e.formData.content,callback:function(s){e.$set(e.formData,"content",s)},expression:"formData.content"}})],1):e._e()])},c=[],d=u(m,p,c,!1,null,null,null,null);const b=d.exports;export{b as default}; diff --git a/public/build/assets/Create.9b1c6787.js b/public/build/assets/Create.9b1c6787.js new file mode 100644 index 00000000..bfd731d9 --- /dev/null +++ b/public/build/assets/Create.9b1c6787.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import{W as s,T as n}from"./app.c52b09a2.js";import{C as o}from"./CheckboxGroup.7b759576.js";import{n as i}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";const l={name:"AdminEDUAnnouncementCreate",components:{WysiwygField:s,TextAreaGroup:n,InputGroup:r,CheckboxGroup:o},layout:"admin-layout",data(){return{autoUpdateSlug:!0,formData:{title:"",description:"",platform:"",email:"",sms:""}}},methods:{submit(){this.$inertia.post(this.$route("admin.edu.announcements.store"),this.formData)}}};var m=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("announcements.create")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Create ")]),t.userCan("announcement.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.edu.announcements.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create ")])],1)],1):t._e(),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[e("h2",[t._v("General details")]),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("title"),"input-autocomplete":"title_name","input-id":"title","input-name":"title","input-required":!0,"input-type":"text","label-text":"Title"},on:{errorHidden:function(a){return t.clearPageErrorMessage("title")}},model:{value:t.formData.title,callback:function(a){t.$set(t.formData,"title",a)},expression:"formData.title"}}),e("div",{staticClass:"mt-4"},[e("label",[t._v("Description")]),e("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:t.formData.description,callback:function(a){t.$set(t.formData,"description",a)},expression:"formData.description"}})],1)],1),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[e("h2",[t._v("Communication Channels")]),e("div",{staticClass:"grid grid-cols-4 gap-4"},[e("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("platform"),"input-id":"platform","input-name":"platform","label-text":"Show to user on the platform?"},on:{errorHidden:function(a){return t.clearPageErrorMessage("platform")}},model:{value:t.formData.platform,callback:function(a){t.$set(t.formData,"platform",a)},expression:"formData.platform"}}),e("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-id":"email","input-name":"email","label-text":"Send to users via Email?"},on:{errorHidden:function(a){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(a){t.$set(t.formData,"email",a)},expression:"formData.email"}}),e("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("sms"),"input-id":"sms","input-name":"sms","label-text":"Send to users via SMS?"},on:{errorHidden:function(a){return t.clearPageErrorMessage("sms")}},model:{value:t.formData.sms,callback:function(a){t.$set(t.formData,"sms",a)},expression:"formData.sms"}})],1)])])},u=[],c=i(l,m,u,!1,null,null,null,null);const h=c.exports;export{h as default}; diff --git a/public/build/assets/Create.a039d33f.js b/public/build/assets/Create.a039d33f.js new file mode 100644 index 00000000..03f2b7a2 --- /dev/null +++ b/public/build/assets/Create.a039d33f.js @@ -0,0 +1 @@ +import{_ as n}from"./vendor.21c2b6f5.js";import{I as i}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as l}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const m={name:"AdminUserCreate",components:{InlineCheckboxGroup:i,InputGroup:l},layout:"admin-layout",props:{selectableRoles:{default:null}},data(){return{formData:{email:"",first_name:"",last_name:"",password:"",password_confirmation:"",roles:{}}}},computed:{isSelectableRoles(){try{return Object.keys(this.selectableRoles).length>0}catch{return!1}}},mounted(){this.initialiseRoles()},methods:{initialiseRoles(){n.forEach(this.selectableRoles,(s,e)=>{this.formData.roles.hasOwnProperty(e)||(this.formData.roles[e]=!1)})},submit(){this.$inertia.post(this.$route("landlord.admin.users.store"),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("users.create")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create User ")]),e.userCan("users.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("landlord.admin.users.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create User ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("first_name")}},model:{value:e.formData.first_name,callback:function(a){e.$set(e.formData,"first_name",a)},expression:"formData.first_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("last_name")}},model:{value:e.formData.last_name,callback:function(a){e.$set(e.formData,"last_name",a)},expression:"formData.last_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"off","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return e.clearPageErrorMessage("email")}},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"off","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(a){return e.clearPageErrorMessage("password")}},model:{value:e.formData.password,callback:function(a){e.$set(e.formData,"password",a)},expression:"formData.password"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password_confirmation"),"input-autocomplete":"off","input-id":"password_confirmation","input-name":"password_confirmation","input-required":!0,"input-type":"password","label-text":"Confirm Password"},on:{errorHidden:function(a){return e.clearPageErrorMessage("password_confirmation")}},model:{value:e.formData.password_confirmation,callback:function(a){e.$set(e.formData,"password_confirmation",a)},expression:"formData.password_confirmation"}})],1)]),e.isSelectableRoles?t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Roles ")]),t("div",{staticClass:"space-y-2"},e._l(e.selectableRoles,function(a,r){return t("inline-checkbox-group",{key:`user-role-${r}`,attrs:{"input-id":`user-role-${r}`,"input-name":`user-role-${r}`,"label-text":a},model:{value:e.formData.roles[r],callback:function(o){e.$set(e.formData.roles,r,o)},expression:"formData.roles[role_key]"}})}),1)])]):e._e()])},c=[],f=u(m,p,c,!1,null,null,null,null);const v=f.exports;export{v as default}; diff --git a/public/build/assets/Create.a06b8a57.js b/public/build/assets/Create.a06b8a57.js new file mode 100644 index 00000000..9bcdfffa --- /dev/null +++ b/public/build/assets/Create.a06b8a57.js @@ -0,0 +1 @@ +import{s as r}from"./vendor.21c2b6f5.js";import{A as n}from"./ArrayGroup.46c0a3b3.js";import{I as i}from"./InputGroup.513e0dd4.js";import{n as o}from"./LogoLight.f7426689.js";const u={name:"AdminEduLabelCreate",components:{ArrayGroup:n,InputGroup:i},layout:"admin-layout",data(){return{autoUpdateSlug:!0,formData:{name:"",slug:""}}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},slugify(a){return!a||!a.length?"":r(a,{lower:!0})},submit(){this.$inertia.post(this.$route("admin.edu.labels.store"),this.formData)}}};var l=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Create ")]),t.userCan("labels.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.edu.labels.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),t.userCan("labels.create")?e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create ")])],1):t._e()],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("name"),"input-autocomplete":"name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Label"},on:{errorHidden:function(s){return t.clearPageErrorMessage("name")},input:t.onNameInput},model:{value:t.formData.name,callback:function(s){t.$set(t.formData,"name",s)},expression:"formData.name"}})],1)])])},m=[],f=o(u,l,m,!1,null,null,null,null);const b=f.exports;export{b as default}; diff --git a/public/build/assets/Create.a0dfac91.js b/public/build/assets/Create.a0dfac91.js new file mode 100644 index 00000000..925a7712 --- /dev/null +++ b/public/build/assets/Create.a0dfac91.js @@ -0,0 +1 @@ +import{s as r}from"./vendor.21c2b6f5.js";import{I as l}from"./InputGroup.513e0dd4.js";import{S as u}from"./app.c52b09a2.js";import{n as c}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";let n=axios.CancelToken,i=n.source(),s=n.source();const p={name:"AdminCrmOrganisationUnitCreate",components:{InputGroup:l,SelectGroup:u},layout:"admin-layout",props:{types:{type:Object,required:!0}},data(){return{autoUpdateSlug:!0,companies:[],formData:{company_id:"",email:"",location_id:"",name:"",notification_emails:[],parent_id:null,slug:"",socials:{facebook:"",instagram:"",linkedin:"",snapchat:"",tiktok:"",twitter:"",youtube:""},telephone:"",type:""},isLoadingCompanies:!1,isLoadingLocations:!1,locations:[],selected_company_id:null,selected_location_id:null}},computed:{showCompanySelect(){return["location","department"].indexOf(this.formData.type)>-1},showLocationSelect(){return this.formData.type==="department"}},methods:{loadCompanies(){this.isLoadingCompanies&&(i.cancel("Companies load cancelled"),i=n.source()),this.isLoadingCompanies=!0,axios.get(this.$route("admin.api.crm.organisation-units.index"),{params:{organisation_unit_type:"company"}}).then(o=>{this.companies=o.data.data}).catch(o=>{axios.isCancel(o)||this.$errorToast("Failed to load companies")}).finally(()=>{this.isLoadingCompanies=!1})},loadLocations(){this.isLoadingLocations&&(s.cancel("Locations load cancelled"),s=n.source()),this.isLoadingLocations=!0,axios.get(this.$route("admin.api.crm.organisation-units.index"),{params:{organisation_unit_type:"location",organisation_unit_company_id:this.formData.company_id}}).then(o=>{this.locations=o.data.data}).catch(o=>{axios.isCancel(o)||this.$errorToast("Failed to load locations")}).finally(()=>{this.isLoadingLocations=!1})},onCompanyInput(){console.log("onCompanyInput",this.formData.company_id),this.locations=[],this.formData.location_id=null,this.showLocationSelect?(this.formData.parent_id=null,this.loadLocations()):this.formData.company_id&&(this.formData.parent_id=this.formData.company_id)},onLocationInput(){this.formData.location_id?this.formData.parent_id=this.formData.location_id:this.formData.parent_id=null},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},onTypeInput(){this.companies=[],this.locations=[],this.formData.company_id=null,this.formData.location_id=null,this.formData.parent_id=null,this.showCompanySelect&&this.loadCompanies()},slugify(o){return!o||!o.length?"":r(o,{lower:!0})},submit(){this.$inertia.post(this.$route("admin.crm.organisation-units.store"),this.formData)}}};var m=function(){var t=this,a=t._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("crm_orgamisation_units.create")?a("div",{staticClass:"flex flex-row items-center mb-6"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Create Organisation Unit ")]),t.userCan("crm_orgamisation_units.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.crm.organisation-units.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[t._v(" Create Organisation Unit ")])],1)],1):t._e(),a("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("select-group",{attrs:{"error-message":t.getPageErrorMessage("type"),"input-any-option-enabled":!0,"input-any-option-label":"Please select a type","input-autofocus":!0,"input-id":"type","input-name":"Type","input-options":t.types,"input-required":!0,"label-text":"Type"},on:{errorHidden:function(e){return t.clearPageErrorMessage("type")},input:t.onTypeInput},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}}),t.showCompanySelect?a("select-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("company_id"),"input-any-option-enabled":!0,"input-any-option-label":t.isLoadingCompanies?"Loading...":"Please select a company","input-any-option-value":null,"input-disabled":t.isLoadingCompanies||!t.companies||!t.companies.length,"input-id":"company_id","input-name":"company_id","input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":t.companies,"input-required":!0,"label-text":"Company"},on:{errorHidden:function(e){return t.clearPageErrorMessage("company_id")},input:t.onCompanyInput},model:{value:t.formData.company_id,callback:function(e){t.$set(t.formData,"company_id",e)},expression:"formData.company_id"}}):t._e(),t.showLocationSelect?a("select-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("location_id"),"input-any-option-enabled":!0,"input-any-option-label":t.isLoadingLocations?"Loading...":"Please select a location","input-any-option-value":null,"input-disabled":t.isLoadingLocations||!t.locations||!t.locations.length,"input-id":"location_id","input-name":"location_id","input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":t.locations,"input-required":!0,"label-text":"Location"},on:{errorHidden:function(e){return t.clearPageErrorMessage("location_id")},input:t.onLocationInput},model:{value:t.formData.location_id,callback:function(e){t.$set(t.formData,"location_id",e)},expression:"formData.location_id"}}):t._e()],1)]),a("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("span",{staticClass:"text-lg"},[t._v("Contact Details")]),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("name"),"input-autocomplete":"name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(e){return t.clearPageErrorMessage("name")},input:t.onNameInput},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("slug"),"input-autocomplete":"slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Slug"},on:{blur:t.onSlugBlur,errorHidden:function(e){return t.clearPageErrorMessage("slug")},input:t.onSlugInput},model:{value:t.formData.slug,callback:function(e){t.$set(t.formData,"slug",e)},expression:"formData.slug"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"organisation_unit_email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(e){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("telephone"),"input-autocomplete":"organisation_unit_telephone","input-id":"telephone","input-name":"telephone","input-type":"text","label-text":"Telephone"},on:{errorHidden:function(e){return t.clearPageErrorMessage("telephone")}},model:{value:t.formData.telephone,callback:function(e){t.$set(t.formData,"telephone",e)},expression:"formData.telephone"}})],1)]),a("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("span",{staticClass:"text-lg"},[t._v("Socials")]),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.youtube"),"input-autocomplete":"youtube_account","input-id":"youtube_account","input-name":"youtube_account","input-required":!1,"input-type":"text","label-text":"Youtube"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.youtube")}},model:{value:t.formData.socials.youtube,callback:function(e){t.$set(t.formData.socials,"youtube",e)},expression:"formData.socials.youtube"}})],1),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.facebook"),"input-autocomplete":"facebook_account","input-id":"facebook_account","input-name":"facebook_account","input-required":!1,"input-type":"text","label-text":"Facebook"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.facebook")}},model:{value:t.formData.socials.facebook,callback:function(e){t.$set(t.formData.socials,"facebook",e)},expression:"formData.socials.facebook"}}),a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.instagram"),"input-autocomplete":"instagram_account","input-id":"instagram_account","input-name":"instagram_account","input-required":!1,"input-type":"text","label-text":"Instagram"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.instagram")}},model:{value:t.formData.socials.instagram,callback:function(e){t.$set(t.formData.socials,"instagram",e)},expression:"formData.socials.instagram"}})],1),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.linkedin"),"input-autocomplete":"linkedin_account","input-id":"linkedin_account","input-name":"linkedin_account","input-required":!1,"input-type":"text","label-text":"Linkedin"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.linkedin")}},model:{value:t.formData.socials.linkedin,callback:function(e){t.$set(t.formData.socials,"linkedin",e)},expression:"formData.socials.linkedin"}}),a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.snapchat"),"input-autocomplete":"snapchat_account","input-id":"snapchat_account","input-name":"snapchat_account","input-required":!1,"input-type":"text","label-text":"Snapchat"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.snapchat")}},model:{value:t.formData.socials.snapchat,callback:function(e){t.$set(t.formData.socials,"snapchat",e)},expression:"formData.socials.snapchat"}})],1),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.tiktok"),"input-autocomplete":"tiktok_account","input-id":"tiktok_account","input-name":"tiktok_account","input-required":!1,"input-type":"text","label-text":"TikTok"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.tiktok")}},model:{value:t.formData.socials.tiktok,callback:function(e){t.$set(t.formData.socials,"tiktok",e)},expression:"formData.socials.tiktok"}}),a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.twitter"),"input-autocomplete":"twitter_account","input-id":"twitter_account","input-name":"twitter_account","input-required":!1,"input-type":"text","label-text":"Twitter/X"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.twitter")}},model:{value:t.formData.socials.twitter,callback:function(e){t.$set(t.formData.socials,"twitter",e)},expression:"formData.socials.twitter"}})],1)])])])},d=[],f=c(p,m,d,!1,null,null,null,null);const b=f.exports;export{b as default}; diff --git a/public/build/assets/Create.b08dc421.js b/public/build/assets/Create.b08dc421.js new file mode 100644 index 00000000..9e814f18 --- /dev/null +++ b/public/build/assets/Create.b08dc421.js @@ -0,0 +1 @@ +import{s as n}from"./vendor.21c2b6f5.js";import{I as r}from"./InputGroup.513e0dd4.js";import{M as u}from"./MenuItemsEditor.d3626ff3.js";import{n as i}from"./LogoLight.f7426689.js";import"./vuedraggable.umd.700457d3.js";import"./ConfirmationModal.242a99d0.js";const o={name:"AdminCmsMenuCreate",components:{MenuItemsEditor:u,InputGroup:r},layout:"admin-layout",data(){return{autoUpdateSlug:!0,formData:{name:"",slug:"",menu_items:[]}}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(s){return!s||!s.length?"":n(s,{lower:!0})},submit(){this.$inertia.post(this.$route("admin.cms.menus.store"),this.formData)}}};var m=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("cms.create")?e("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Create Menu ")]),t.userCan("cms.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.cms.menus.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create Menu ")])],1)],1):t._e(),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("name"),"input-autocomplete":"menu_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Menu Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("name")},input:t.onNameInput},model:{value:t.formData.name,callback:function(a){t.$set(t.formData,"name",a)},expression:"formData.name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("slug"),"input-autocomplete":"menu_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Menu Slug"},on:{blur:t.onSlugBlur,errorHidden:function(a){return t.clearPageErrorMessage("slug")},input:t.onSlugInput},model:{value:t.formData.slug,callback:function(a){t.$set(t.formData,"slug",a)},expression:"formData.slug"}})],1),e("div",{staticClass:"bg-white mt-6 p-6 shadow-subtle rounded-lg"},[e("menu-items-editor",{model:{value:t.formData.menu_items,callback:function(a){t.$set(t.formData,"menu_items",a)},expression:"formData.menu_items"}})],1)])},l=[],p=i(o,m,l,!1,null,null,null,null);const b=p.exports;export{b as default}; diff --git a/public/build/assets/Create.c4bffa52.js b/public/build/assets/Create.c4bffa52.js new file mode 100644 index 00000000..93a42aea --- /dev/null +++ b/public/build/assets/Create.c4bffa52.js @@ -0,0 +1 @@ +import"./vendor.21c2b6f5.js";import{I as n}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as r}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const s={name:"AdminCrmContactCreate",components:{InlineCheckboxGroup:n,InputGroup:r},layout:"admin-layout",data(){return{formData:{email:"",first_name:"",last_name:"",telephone:"",title:"",marketing_email:!1,marketing_sms:!1,marketing_telephone:!1}}},methods:{submit(){this.$inertia.post(this.$route("admin.crm.contacts.store"),this.formData)}}};var o=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("crm_contacts.create")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Contact ")]),e.userCan("crm_contacts.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.crm.contacts.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Contact ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("title"),"input-autocomplete":"title","input-autofocus":!0,"input-id":"title","input-name":"title","input-type":"text","label-text":"Title"},on:{errorHidden:function(a){return e.clearPageErrorMessage("title")}},model:{value:e.formData.title,callback:function(a){e.$set(e.formData,"title",a)},expression:"formData.title"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("first_name")}},model:{value:e.formData.first_name,callback:function(a){e.$set(e.formData,"first_name",a)},expression:"formData.first_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("last_name")}},model:{value:e.formData.last_name,callback:function(a){e.$set(e.formData,"last_name",a)},expression:"formData.last_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return e.clearPageErrorMessage("email")}},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("telephone"),"input-autocomplete":"telephone","input-id":"telephone","input-max-length":"20","input-name":"telephone","input-type":"telephone","label-text":"Telephone"},on:{errorHidden:function(a){return e.clearPageErrorMessage("telephone")}},model:{value:e.formData.telephone,callback:function(a){e.$set(e.formData,"telephone",a)},expression:"formData.telephone"}})],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Marketing Preferences ")]),t("div",{staticClass:"space-y-4"},[t("inline-checkbox-group",{attrs:{"input-id":"marketing-email","input-name":"marketing-email","label-text":"Email"},model:{value:e.formData.marketing_email,callback:function(a){e.$set(e.formData,"marketing_email",a)},expression:"formData.marketing_email"}}),t("inline-checkbox-group",{attrs:{"input-id":"marketing-sms","input-name":"marketing-sms","label-text":"SMS"},model:{value:e.formData.marketing_sms,callback:function(a){e.$set(e.formData,"marketing_sms",a)},expression:"formData.marketing_sms"}}),t("inline-checkbox-group",{attrs:{"input-id":"marketing-telephone","input-name":"marketing-telephone","label-text":"Telephone"},model:{value:e.formData.marketing_telephone,callback:function(a){e.$set(e.formData,"marketing_telephone",a)},expression:"formData.marketing_telephone"}})],1)])])])},l=[],m=i(s,o,l,!1,null,null,null,null);const _=m.exports;export{_ as default}; diff --git a/public/build/assets/Create.cb1bb46a.js b/public/build/assets/Create.cb1bb46a.js new file mode 100644 index 00000000..7ce2db72 --- /dev/null +++ b/public/build/assets/Create.cb1bb46a.js @@ -0,0 +1 @@ +import{s}from"./vendor.21c2b6f5.js";import{A as i}from"./ArrayGroup.46c0a3b3.js";import{F as n}from"./FormFieldEditor.e5430ae4.js";import{I as o}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as m}from"./InputGroup.513e0dd4.js";import{T as l}from"./app.c52b09a2.js";import{n as u}from"./LogoLight.f7426689.js";import"./vuedraggable.umd.700457d3.js";import"./CheckboxGroup.7b759576.js";import"./checkbox-form-group.99a615f1.js";import"./ConfirmationModal.242a99d0.js";const c={name:"AdminCrmFormCreate",components:{ArrayGroup:i,FormFieldEditor:n,InlineCheckboxGroup:o,InputGroup:m,TextAreaGroup:l},layout:"admin-layout",props:{crmFormFieldTypes:{type:Object,required:!0},formFieldSettings:{type:Object,required:!0},standardFormFieldTypes:{type:Object,required:!0}},data(){return{autoUpdateSlug:!0,formData:{email_recipients:[],form_fields:[],marketing_email:!1,marketing_sms:!1,marketing_telephone:!1,name:"",redirect_url:"",slug:"",submit_button_text:"",success_message:""}}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},slugify(a){return!a||!a.length?"":s(a,{lower:!0})},submit(){this.$inertia.post(this.$route("admin.crm.forms.store"),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Form ")]),e.userCan("crm_forms.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.crm.forms.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),e.userCan("crm_forms.create")?t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Form ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"form_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Form Name"},on:{errorHidden:function(r){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(r){e.$set(e.formData,"name",r)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"form_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Form Slug"},on:{blur:e.onSlugBlur,errorHidden:function(r){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(r){e.$set(e.formData,"slug",r)},expression:"formData.slug"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("submit_button_text"),"input-id":"submit_button_text","input-name":"submit_button_text","input-type":"text","label-text":"Submit Button Text (Leave blank for default)"},on:{errorHidden:function(r){return e.clearPageErrorMessage("submit_button_text")}},model:{value:e.formData.submit_button_text,callback:function(r){e.$set(e.formData,"submit_button_text",r)},expression:"formData.submit_button_text"}}),t("text-area-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("success_message"),"input-id":"success_message","input-name":"success_message","input-rows":"2","input-type":"text","label-text":"Success Message"},on:{errorHidden:function(r){return e.clearPageErrorMessage("success_message")}},model:{value:e.formData.success_message,callback:function(r){e.$set(e.formData,"success_message",r)},expression:"formData.success_message"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("redirect_url"),"input-id":"redirect_url","input-name":"redirect_url","input-type":"text","label-text":"Redirect Url (Leave blank for no redirect)"},on:{errorHidden:function(r){return e.clearPageErrorMessage("redirect_url")}},model:{value:e.formData.redirect_url,callback:function(r){e.$set(e.formData,"redirect_url",r)},expression:"formData.redirect_url"}}),t("array-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessageFromArrayField("email_recipients"),"input-id":"email_recipients","input-name":"email_recipients","label-text":"Email Recipients"},model:{value:e.formData.email_recipients,callback:function(r){e.$set(e.formData,"email_recipients",r)},expression:"formData.email_recipients"}})],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Marketing Preference Fields ")]),t("div",{staticClass:"space-y-4"},[t("inline-checkbox-group",{attrs:{"input-id":"marketing-email","input-name":"marketing-email","label-text":"Email"},model:{value:e.formData.marketing_email,callback:function(r){e.$set(e.formData,"marketing_email",r)},expression:"formData.marketing_email"}}),t("inline-checkbox-group",{attrs:{"input-id":"marketing-sms","input-name":"marketing-sms","label-text":"SMS"},model:{value:e.formData.marketing_sms,callback:function(r){e.$set(e.formData,"marketing_sms",r)},expression:"formData.marketing_sms"}}),t("inline-checkbox-group",{attrs:{"input-id":"marketing-telephone","input-name":"marketing-telephone","label-text":"Telephone"},model:{value:e.formData.marketing_telephone,callback:function(r){e.$set(e.formData,"marketing_telephone",r)},expression:"formData.marketing_telephone"}})],1)])]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("form-field-editor",{attrs:{"crm-form-field-types":e.crmFormFieldTypes,"form-field-settings":e.formFieldSettings,"standard-form-field-types":e.standardFormFieldTypes},model:{value:e.formData.form_fields,callback:function(r){e.$set(e.formData,"form_fields",r)},expression:"formData.form_fields"}})],1)])])},f=[],d=u(c,p,f,!1,null,null,null,null);const w=d.exports;export{w as default}; diff --git a/public/build/assets/Create.d20ee538.js b/public/build/assets/Create.d20ee538.js new file mode 100644 index 00000000..0587b598 --- /dev/null +++ b/public/build/assets/Create.d20ee538.js @@ -0,0 +1 @@ +import{I as i}from"./InputGroup.513e0dd4.js";import{W as o,T as n,S as u}from"./app.c52b09a2.js";import{C as l}from"./CheckboxGroup.7b759576.js";import{D as m}from"./DateTimePickerGroup.36fef719.js";import{S as c}from"./SectionItemsEditor.845c8cbd.js";import{_ as s}from"./vendor.21c2b6f5.js";import{n as d}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const p={name:"AdminEDUWebinarCreate",components:{WysiwygField:o,TextAreaGroup:n,SectionItemsEditor:c,InputGroup:i,CheckboxGroup:l,SelectGroup:u,DateTimePickerGroup:m},layout:"admin-layout",props:{courses:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!0,formData:{name:"",summary:"",description:"",creator_id:"",course_id:"",section_id:"",status:"",date_time_from:"",date_time_to:"",webinar_url:"",can_users_reserve:"",is_recorded:"",recording_url:"",templateField:{type:"wysiwyg"}},sectionOptions:null}},computed:{courseOptions(){if(!this.courses.length)return;let a={};return s.forEach(this.courses,e=>{a[e.id]=e.name}),a}},methods:{submit(){this.$inertia.post(this.$route("admin.edu.webinars.store"),this.formData)},getSectionOptions(){if(!this.courses.length)return;let a={};s.forEach(this.courses,e=>{s.forEach(e.sections,t=>{t.course_id==this.formData.course_id&&(a[t.id]=t.title)})}),this.sectionOptions=a}},watch:{["formData.course_id"](a){a!==null&&this.getSectionOptions()}}};var f=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("webinars.create")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create ")]),e.userCan("webinar.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.webinars.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v(" Course and Section ")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("select-group",{staticClass:"mt-4 md:flex-1",attrs:{"label-hidden":!0,"label-text":"Course","input-any-option-enabled":!0,"input-any-option-label":"Course","input-class":"form-control form-control-short","input-id":"course","input-name":"course","input-option-label-key":"name","input-option-value-key":"id","input-options":e.courseOptions,"input-required":!0},model:{value:e.formData.course_id,callback:function(r){e.$set(e.formData,"course_id",r)},expression:"formData.course_id"}}),t("select-group",{staticClass:"mt-4 md:flex-1",attrs:{"label-hidden":!0,"label-text":"Section","input-any-option-enabled":!0,"input-any-option-label":"Section","input-class":"form-control form-control-short","input-id":"section","input-name":"section","input-option-label-key":"name","input-option-value-key":"id","input-options":e.sectionOptions},model:{value:e.formData.section_id,callback:function(r){e.$set(e.formData,"section_id",r)},expression:"formData.section_id"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v(" General details ")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"webinar_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(r){return e.clearPageErrorMessage("name")}},model:{value:e.formData.name,callback:function(r){e.$set(e.formData,"name",r)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"webinar_summary","input-id":"summary","input-name":"summary","input-required":!1,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(r){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(r){e.$set(e.formData,"summary",r)},expression:"formData.summary"}}),t("div",{staticClass:"mt-4"},[t("label",[e._v("Description")]),t("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:e.formData.description,callback:function(r){e.$set(e.formData,"description",r)},expression:"formData.description"}})],1)],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Availability details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("date_time_from"),"input-id":"date_time_from","input-name":"date_time_from","label-text":"Available From"},on:{errorHidden:function(r){return e.clearPageErrorMessage("date_time_from")}},model:{value:e.formData.date_time_from,callback:function(r){e.$set(e.formData,"date_time_from",r)},expression:"formData.date_time_from"}}),t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("date_time_to"),"input-id":"date_time_to","input-name":"date_time_to","label-text":"Available To"},on:{errorHidden:function(r){return e.clearPageErrorMessage("date_time_to")}},model:{value:e.formData.date_time_to,callback:function(r){e.$set(e.formData,"date_time_to",r)},expression:"formData.date_time_to"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("More Details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("webinar_url"),"input-autocomplete":"webinar_url","input-id":"webinar_url","input-name":"webinar_url","input-required":!1,"input-type":"text","label-text":"Webinar URL"},on:{errorHidden:function(r){return e.clearPageErrorMessage("webinar_url")}},model:{value:e.formData.webinar_url,callback:function(r){e.$set(e.formData,"webinar_url",r)},expression:"formData.webinar_url"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("recording_url"),"input-autocomplete":"recording_url","input-id":"recording_url","input-name":"recording_url","input-required":!1,"input-type":"text","label-text":"Recording URL"},on:{errorHidden:function(r){return e.clearPageErrorMessage("recording_url")}},model:{value:e.formData.recording_url,callback:function(r){e.$set(e.formData,"recording_url",r)},expression:"formData.recording_url"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Features")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("is_recorded"),"input-id":"is_recorded","input-name":"is_recorded","label-text":"Is Recorded?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("is_recorded")}},model:{value:e.formData.is_recorded,callback:function(r){e.$set(e.formData,"is_recorded",r)},expression:"formData.is_recorded"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("can_users_reserve"),"input-id":"can_users_reserve","input-name":"can_users_reserve","label-text":"Can users reserve access in advance?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("can_users_reserve")}},model:{value:e.formData.can_users_reserve,callback:function(r){e.$set(e.formData,"can_users_reserve",r)},expression:"formData.can_users_reserve"}})],1)])])},_=[],g=d(p,f,_,!1,null,null,null,null);const E=g.exports;export{E as default}; diff --git a/public/build/assets/Create.d415ad4b.js b/public/build/assets/Create.d415ad4b.js new file mode 100644 index 00000000..5a0f4e59 --- /dev/null +++ b/public/build/assets/Create.d415ad4b.js @@ -0,0 +1 @@ +import{I as m}from"./InputGroup.513e0dd4.js";import{T as p,S as d}from"./app.c52b09a2.js";import{C as g}from"./CheckboxGroup.7b759576.js";import{D as _}from"./DateTimePickerGroup.36fef719.js";import{S as f}from"./SectionItemsEditor.845c8cbd.js";import{S as v}from"./SelectMultipleGroup.445aa1ac.js";import{n as b}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const h={name:"AdminEDUProgrammeCreate",components:{SelectMultipleGroup:v,TextAreaGroup:p,SectionItemsEditor:f,InputGroup:m,CheckboxGroup:g,SelectGroup:d,DateTimePickerGroup:_},layout:"admin-layout",props:{currencies:{required:!0,type:Object|Array},courses:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!0,formData:{name:"",summary:"",description:"",available_from:"",available_to:"",content_length_video:"",banner:"",primary_image:"",video_preview:"",price:"",discount_price:"",currency:"",languages:"",has_webinars:"",has_money_back_guarantee:"",has_certificate:"",has_captions:"",has_lifetime_access:"",has_student_discount:"",has_pdfs:"",has_free_seo_exposure:"",courses:[]}}},methods:{submit(){this.$inertia.post(this.$route("admin.edu.programmes.store"),this.formData)}}};var x=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("programmes.create")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Programme ")]),e.userCan("programmes.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.programmes.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v("General details")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"programme_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("name")}},model:{value:e.formData.name,callback:function(a){e.$set(e.formData,"name",a)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"programme_summary","input-id":"summary","input-name":"summary","input-required":!0,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(a){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(a){e.$set(e.formData,"summary",a)},expression:"formData.summary"}}),t("text-area-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("description"),"input-id":"description","input-name":"description","input-rows":"2","input-type":"text","label-text":"Describe the programme"},on:{errorHidden:function(a){return e.clearPageErrorMessage("description")}},model:{value:e.formData.description,callback:function(a){e.$set(e.formData,"description",a)},expression:"formData.description"}})],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Availability details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_from"),"input-id":"available_from","input-name":"available_from","label-text":"Available From"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_from")}},model:{value:e.formData.available_from,callback:function(a){e.$set(e.formData,"available_from",a)},expression:"formData.available_from"}}),t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_to"),"input-id":"available_to","input-name":"available_to","label-text":"Available To"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_to")}},model:{value:e.formData.available_to,callback:function(a){e.$set(e.formData,"available_to",a)},expression:"formData.available_to"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Image & Video details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("content_length_video"),"input-autocomplete":"programme_content_length_video","input-id":"content_length_video","input-name":"content_length_video","input-required":!1,"input-type":"text","label-text":"Total content length in hours"},on:{errorHidden:function(a){return e.clearPageErrorMessage("content_length_video")}},model:{value:e.formData.content_length_video,callback:function(a){e.$set(e.formData,"content_length_video",a)},expression:"formData.content_length_video"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("banner"),"input-autocomplete":"programme_banner","input-id":"banner","input-name":"banner","input-required":!1,"input-type":"text","label-text":"Banner"},on:{errorHidden:function(a){return e.clearPageErrorMessage("banner")}},model:{value:e.formData.banner,callback:function(a){e.$set(e.formData,"banner",a)},expression:"formData.banner"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("primary_image"),"input-autocomplete":"primary_image","input-id":"primary_image","input-name":"primary_image","input-required":!1,"input-type":"text","label-text":"Primary Image"},on:{errorHidden:function(a){return e.clearPageErrorMessage("primary_image")}},model:{value:e.formData.primary_image,callback:function(a){e.$set(e.formData,"primary_image",a)},expression:"formData.primary_image"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("video_preview"),"input-autocomplete":"video_preview","input-id":"video_preview","input-name":"video_preview","input-required":!1,"input-type":"text","label-text":"Video Preview"},on:{errorHidden:function(a){return e.clearPageErrorMessage("video_preview")}},model:{value:e.formData.video_preview,callback:function(a){e.$set(e.formData,"video_preview",a)},expression:"formData.video_preview"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("languages"),"input-autocomplete":"languages","input-id":"languages","input-name":"languages","input-required":!1,"input-type":"text","label-text":"The language/s of the content"},on:{errorHidden:function(a){return e.clearPageErrorMessage("languages")}},model:{value:e.formData.languages,callback:function(a){e.$set(e.formData,"languages",a)},expression:"formData.languages"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Price details")]),t("div",{staticClass:"grid grid-cols-3 gap-3"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price"),"input-autocomplete":"price","input-id":"price","input-name":"price","input-required":!1,"input-type":"text","label-text":"Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("price")}},model:{value:e.formData.price,callback:function(a){e.$set(e.formData,"price",a)},expression:"formData.price"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("discount_price"),"input-autocomplete":"discount_price","input-id":"discount_price","input-name":"discount_price","input-required":!1,"input-type":"text","label-text":"Discount Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("discount_price")}},model:{value:e.formData.discount_price,callback:function(a){e.$set(e.formData,"discount_price",a)},expression:"formData.discount_price"}}),t("select-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Currency","input-any-option-enabled":!0,"input-any-option-label":"Currency","input-class":"form-control form-control-short","input-id":"currency","input-name":"currency","input-option-label-key":"name","input-option-value-key":"id","input-options":e.currencies},model:{value:e.formData.currency,callback:function(a){e.$set(e.formData,"currency",a)},expression:"formData.currency"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Features Offered")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_webinars"),"input-id":"has_webinars","input-name":"has_webinars","label-text":"Has Webinars?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_webinars")}},model:{value:e.formData.has_webinars,callback:function(a){e.$set(e.formData,"has_webinars",a)},expression:"formData.has_webinars"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_money_back_guarantee"),"input-id":"has_money_back_guarantee","input-name":"has_money_back_guarantee","label-text":"Has Money Back Guarantee?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_money_back_guarantee")}},model:{value:e.formData.has_money_back_guarantee,callback:function(a){e.$set(e.formData,"has_money_back_guarantee",a)},expression:"formData.has_money_back_guarantee"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_certificate"),"input-id":"has_certificate","input-name":"has_certificate","label-text":"Has Certificate?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_certificate")}},model:{value:e.formData.has_certificate,callback:function(a){e.$set(e.formData,"has_certificate",a)},expression:"formData.has_certificate"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_captions"),"input-id":"has_captions","input-name":"has_captions","label-text":"Videos have captions?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_captions")}},model:{value:e.formData.has_captions,callback:function(a){e.$set(e.formData,"has_captions",a)},expression:"formData.has_captions"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_lifetime_access"),"input-id":"has_lifetime_access","input-name":"has_lifetime_access","label-text":"Has Lifetime Access?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_lifetime_access")}},model:{value:e.formData.has_lifetime_access,callback:function(a){e.$set(e.formData,"has_lifetime_access",a)},expression:"formData.has_lifetime_access"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_student_discount"),"input-id":"has_student_discount","input-name":"has_student_discount","label-text":"Has Student Discount?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_student_discount")}},model:{value:e.formData.has_student_discount,callback:function(a){e.$set(e.formData,"has_student_discount",a)},expression:"formData.has_student_discount"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_pdfs"),"input-id":"has_pdfs","input-name":"has_pdfs","label-text":"Has PDFs?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_pdfs")}},model:{value:e.formData.has_pdfs,callback:function(a){e.$set(e.formData,"has_pdfs",a)},expression:"formData.has_pdfs"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_free_seo_exposure"),"input-id":"has_free_seo_exposure","input-name":"has_free_seo_exposure","label-text":"Has Free SEO Exposure?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_free_seo_exposure")}},model:{value:e.formData.has_free_seo_exposure,callback:function(a){e.$set(e.formData,"has_free_seo_exposure",a)},expression:"formData.has_free_seo_exposure"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Courses")]),t("p",[e._v(" Please select the courses that you'd like to link to this programme. ")]),e.courses?t("div",{staticClass:"mt-4"},[t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("p",[e._v("Courses selected: "+e._s(e.formData.courses.length))])]),e._l(e.courses,function(a,o,i){return t("div",{key:"course-p-"+i,staticClass:"grid grid-cols-2 gap-3 mt-2 mb-2"},[t("label",{staticClass:"no-style",attrs:{for:"course-label-"+i}},[t("span",[e._v(e._s(a))])]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.formData.courses,expression:"formData.courses"}],staticClass:"custom-checkbox",attrs:{id:"course-input-"+i,type:"checkbox",name:"courses[]"},domProps:{value:o,checked:Array.isArray(e.formData.courses)?e._i(e.formData.courses,o)>-1:e.formData.courses},on:{change:function(c){var r=e.formData.courses,n=c.target,l=!!n.checked;if(Array.isArray(r)){var u=o,s=e._i(r,u);n.checked?s<0&&e.$set(e.formData,"courses",r.concat([u])):s>-1&&e.$set(e.formData,"courses",r.slice(0,s).concat(r.slice(s+1)))}else e.$set(e.formData,"courses",l)}}})])})],2):t("div",[t("p",[e._v("No courses found.")])])])])},D=[],y=b(h,x,D,!1,null,null,null,null);const T=y.exports;export{T as default}; diff --git a/public/build/assets/Create.dc6785fd.js b/public/build/assets/Create.dc6785fd.js new file mode 100644 index 00000000..4b5f8329 --- /dev/null +++ b/public/build/assets/Create.dc6785fd.js @@ -0,0 +1 @@ +import{s}from"./vendor.21c2b6f5.js";import{I as i}from"./InputGroup.513e0dd4.js";import{S as n}from"./app.c52b09a2.js";import{T as l}from"./TemplateFieldEditor.7dee26e3.js";import{n as o}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./vuedraggable.umd.700457d3.js";import"./CheckboxGroup.7b759576.js";import"./checkbox-form-group.99a615f1.js";const u={name:"AdminCmsTemplateCreate",components:{InputGroup:i,SelectGroup:n,TemplateFieldEditor:l},layout:"admin-layout",props:{repeaterTemplateFieldTypes:{type:Object,required:!0},templateFieldSettings:{type:Object,required:!0},templateFieldTypes:{type:Object,required:!0},templateTypes:{type:Object,required:!0}},data(){return{autoUpdateSlug:!0,formData:{description:"",name:"",slug:"",template_fields:[],type:""}}},computed:{allowedTemplateFieldTypes(){return this.formData.type==="repeater"?this.repeaterTemplateFieldTypes:this.templateFieldTypes}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},slugify(r){return!r||!r.length?"":s(r,{lower:!0})},submit(){this.$inertia.post(this.$route("admin.cms.templates.store"),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms_advanced.create")?t("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Create Template ")]),e.userCan("cms_advanced.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.templates.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Template ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("select-group",{attrs:{"error-message":e.getPageErrorMessage("type"),"label-text":"Template Type","input-any-option-enabled":!0,"input-any-option-label":"Please select a template type","input-autofocus":!0,"input-id":"type","input-name":"type","input-options":e.templateTypes,"input-required":!0},on:{errorHidden:function(a){return e.clearPageErrorMessage("type")}},model:{value:e.formData.type,callback:function(a){e.$set(e.formData,"type",a)},expression:"formData.type"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"template_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Template Name"},on:{input:e.onNameInput,errorHidden:function(a){return e.clearPageErrorMessage("name")}},model:{value:e.formData.name,callback:function(a){e.$set(e.formData,"name",a)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"template_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Template Slug"},on:{blur:e.onSlugBlur,input:e.onSlugInput,errorHidden:function(a){return e.clearPageErrorMessage("slug")}},model:{value:e.formData.slug,callback:function(a){e.$set(e.formData,"slug",a)},expression:"formData.slug"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("description"),"input-autocomplete":"template_description","input-id":"description","input-name":"description","input-type":"text","label-text":"Description"},on:{errorHidden:function(a){return e.clearPageErrorMessage("description")}},model:{value:e.formData.description,callback:function(a){e.$set(e.formData,"description",a)},expression:"formData.description"}})],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("template-field-editor",{attrs:{"template-field-settings":e.templateFieldSettings,"template-field-types":e.allowedTemplateFieldTypes},model:{value:e.formData.template_fields,callback:function(a){e.$set(e.formData,"template_fields",a)},expression:"formData.template_fields"}})],1)])])},m=[],d=o(u,p,m,!1,null,null,null,null);const C=d.exports;export{C as default}; diff --git a/public/build/assets/Create.fbafad00.js b/public/build/assets/Create.fbafad00.js new file mode 100644 index 00000000..cf0c5e8b --- /dev/null +++ b/public/build/assets/Create.fbafad00.js @@ -0,0 +1 @@ +import"./vendor.21c2b6f5.js";import{I as n}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as s}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const r={name:"AdminTenantCreate",components:{InlineCheckboxGroup:n,InputGroup:s},layout:"admin-layout",data(){return{formData:{id:""},isLoading:!1}},methods:{submit(){this.isLoading||(this.isLoading=!0,this.$inertia.post(this.$route("landlord.admin.tenants.store"),this.formData))}}};var o=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("tenants.create")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Create Tenant ")]),t.userCan("tenants.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("landlord.admin.tenants.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{disabled:t.isLoading,type:"submit"}},[t.isLoading?[e("icon-loader-circle",{staticClass:"animate-spin-slow w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Loading... this may take a while ")])]:[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create Tenant ")])]],2)],1):t._e(),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("id"),"input-autocomplete":"id","input-autofocus":!0,"input-id":"id","input-name":"id","input-required":!0,"input-type":"text","label-text":"ID"},on:{errorHidden:function(a){return t.clearPageErrorMessage("id")}},model:{value:t.formData.id,callback:function(a){t.$set(t.formData,"id",a)},expression:"formData.id"}})],1)])])},l=[],u=i(r,o,l,!1,null,null,null,null);const b=u.exports;export{b as default}; diff --git a/public/build/assets/DateTimePickerGroup.36fef719.js b/public/build/assets/DateTimePickerGroup.36fef719.js new file mode 100644 index 00000000..b5079dd3 --- /dev/null +++ b/public/build/assets/DateTimePickerGroup.36fef719.js @@ -0,0 +1 @@ +import{b as a,F as r}from"./InputGroup.513e0dd4.js";import{n}from"./LogoLight.f7426689.js";const l={name:"DateTimePickerGroup",mixins:[a],components:{FormFieldError:r},props:{inputClass:{default:"",type:String},inputFormat:{default:"DD/MM/YYYY HH:mm",type:String},inputPlaceholder:{default:"Please select a date",type:String},inputTimeTitleFormat:{default:"DD/MM/YYYY HH:mm",type:String},inputTitleFormat:{default:"DD/MM/YYYY HH:mm",type:String},inputType:{default:"datetime",type:String},inputValueType:{default:"YYYY-MM-DD HH:mm",type:String}},data(){return{editableInput:"",isInitialised:!1}},mounted(){this.editableInput=this.inputValue,this.$nextTick(()=>{this.isInitialised=!0})},methods:{onInput(){!this.isInitialised||(this.$emit("input",this.editableInput),this.errorHideOnInput&&(this.hideError=!0))},onInputValueChange(){this.inputValue!==this.editableInput&&(this.editableInput=this.inputValue)}},watch:{editableInput:{handler:"onInput"},inputValue:{handler:"onInputValueChange"}}};var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex flex-col"},[e("label",{class:t.formattedLabelClass,attrs:{for:t.inputId}},[t._t("default",function(){return[e("span",{staticClass:"flex flex-row items-baseline"},[e("span",[t._v(t._s(t.labelText))]),t.inputRequired?e("sup",{staticClass:"text-theme-danger-contrast"},[t._v(" * ")]):t._e()])]})],2),e("date-picker",{class:t.formattedInputClass,attrs:{id:t.inputId,disabled:t.inputDisabled,format:t.inputFormat,placeholder:t.inputPlaceholder,required:t.inputRequired,"time-title-format":t.inputTimeTitleFormat,"title-format":t.inputTitleFormat,type:t.inputType,"value-type":t.inputValueType},model:{value:t.editableInput,callback:function(i){t.editableInput=i},expression:"editableInput"}}),e("form-field-error",{attrs:{"error-class":t.errorClass,"error-message":t.errorMessage,"is-error":t.isError}})],1)},u=[],p=n(l,s,u,!1,null,null,null,null);const f=p.exports;export{f as D}; diff --git a/public/build/assets/Edit.3a64c03f.js b/public/build/assets/Edit.3a64c03f.js new file mode 100644 index 00000000..fb7c8b03 --- /dev/null +++ b/public/build/assets/Edit.3a64c03f.js @@ -0,0 +1 @@ +import{I as i}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as s}from"./InputGroup.513e0dd4.js";import{C as l}from"./ConfirmationModal.242a99d0.js";import{G as d}from"./GenericModal.3f75002a.js";import"./vendor.21c2b6f5.js";import{n as r}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const m={name:"AdminTenantEdit",components:{GenericModal:d,ConfirmationModal:l,InlineCheckboxGroup:i,InputGroup:s},layout:"admin-layout",props:{tenant:{required:!0,type:Object}},data(){return{domainData:null,domainIndexToDelete:null,formData:null,isLoadingDomain:!1,showAddDomainModal:!1,showDeleteDomainModal:!1}},computed:{deleteDomainModalText(){try{return"Do you really want to delete '"+this.domainToDelete.domain+"'?"}catch{return"Do you really want to delete this domain?"}},domainToDelete(){try{return this.tenant.domains[this.domainIndexToDelete]}catch{return null}}},created(){this.formData={id:this.tenant.id}},methods:{addDomain(){this.domainData={domain:""},this.showAddDomainModal=!0},cancelDomainDelete(){this.isLoadingDomain||(this.showDeleteDomainModal=!1,this.domainIndexToDelete=null)},checkDomainDelete(n){this.domainIndexToDelete=n,this.showDeleteDomainModal=!0},closeAddDomainModal(){this.isLoadingDomain||(this.showAddDomainModal=!1)},confirmDomainDelete(){if(this.isLoadingDomain)return this.$errorToast("It's only possible to delete one domain at a time.");if(!this.domainToDelete)return this.$errorToast("Unable to identify domain to delete.");axios.delete(this.$route("landlord.admin.api.tenants.domains.destroy",{tenant:this.tenant.id,domain:this.domainToDelete.id})).then(n=>{this.$successToast("Domain successfully deleted."),this.showDeleteDomainModal=!1,this.tenant.domains.splice(this.domainIndexToDelete,1),this.domainIndexToDelete=null}).catch(n=>{console.log(n),this.$errorToast("Failed to delete domain.")}).finally(()=>{this.isLoadingDomain=!1})},submitAddDomain(){this.isLoadingDomain=!0,axios.post(this.$route("landlord.admin.api.tenants.domains.store",this.tenant.id),this.domainData).then(n=>{this.tenant.domains.push(n.data.data),this.showAddDomainModal=!1,this.$successToast("Successfully added domain: "+n.data.data.domain)}).catch(n=>{var e,a;let t="Failed to create domain, please try again";(a=(e=n==null?void 0:n.response)==null?void 0:e.data)!=null&&a.message&&(t=n.response.data.message),this.$errorToast(t)}).finally(()=>{this.isLoadingDomain=!1})},submit(){this.$inertia.put(this.$route("landlord.admin.tenants`.update",this.user.id),this.formData)}}};var u=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("tenants.edit")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit Tenant "),e("span",{staticClass:"ml-2 opacity-75 text-sm"},[t._v(" "+t._s(t.tenant.id)+" ")])]),t.userCan("tenants.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("landlord.admin.tenants.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save Changes ")])],1)],1):t._e(),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("id"),"input-autocomplete":"off","input-autofocus":!0,"input-id":"id","input-name":"id","input-required":!0,"input-type":"text","label-text":"ID"},on:{errorHidden:function(a){return t.clearPageErrorMessage("id")}},model:{value:t.formData.id,callback:function(a){t.$set(t.formData,"id",a)},expression:"formData.id"}}),e("input-group",{staticClass:"mt-4",attrs:{"input-autocomplete":"off","input-disabled":!0,"input-id":"tenancy_db_name","input-name":"tenancy_db_name","input-type":"text","label-text":"DB Name"},model:{value:t.tenant.tenancy_db_name,callback:function(a){t.$set(t.tenant,"tenancy_db_name",a)},expression:"tenant.tenancy_db_name"}})],1)]),e("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("div",{staticClass:"flex flex-row items-center mb-4"},[e("span",{staticClass:"font-medium text-theme-base-contrast tracking-wider"},[t._v(" Domains ")]),e("button",{staticClass:"button button-primary-subtle button-small ml-auto text-sm",attrs:{type:"button"},on:{click:t.addDomain}},[t._v(" Add Domain ")])]),t.tenant.domains.length?e("div",{staticClass:"space-y-3"},t._l(t.tenant.domains,function(a,o){return e("div",{key:`domain-${a.domain}`},[e("div",{staticClass:"border-2 border-theme-base-subtle flex flex-row items-center py-1 rounded"},[e("span",{staticClass:"font-semibold ml-4 mr-auto"},[t._v(" "+t._s(a.domain)+" ")]),e("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Menu Item",type:"button"},on:{click:function(f){return t.checkDomainDelete(o)}}},[e("icon-trash",{staticClass:"w-4"})],1)])])}),0):e("p",{staticClass:"bg-theme-base-subtle mt-6 px-4 py-3 rounded text-center text-theme-base-subtle-contrast"},[t._v(" No domains ")])])]),e("generic-modal",{attrs:{"show-modal":t.showAddDomainModal},on:{closeModal:t.closeAddDomainModal}},[t.showAddDomainModal?e("form",{staticClass:"mx-6 mb-6",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),a.stopPropagation(),t.submitAddDomain.apply(null,arguments)}}},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("domain"),"input-autocomplete":"off","input-autofocus":!0,"input-disabled":t.isLoadingDomain,"input-id":"domain","input-name":"domain","input-required":!0,"input-type":"text","label-text":"Domain"},on:{errorHidden:function(a){return t.clearPageErrorMessage("domain")}},model:{value:t.domainData.domain,callback:function(a){t.$set(t.domainData,"domain",a)},expression:"domainData.domain"}}),e("div",{staticClass:"flex flex-row justify-end"},[e("button",{staticClass:"button button-default-responsive button-primary button-small mt-4 flex flex-row items-center",attrs:{disabled:t.isLoadingDomain,type:"submit"}},[t._v(" Add Domain ")])])],1):t._e()]),e("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":t.showDeleteDomainModal,"message-text":t.deleteDomainModalText},on:{cancelAction:t.cancelDomainDelete,closeModal:t.cancelDomainDelete,confirmAction:t.confirmDomainDelete}})],1)},c=[],p=r(m,u,c,!1,null,null,null,null);const _=p.exports;export{_ as default}; diff --git a/public/build/assets/Edit.4cc99e10.js b/public/build/assets/Edit.4cc99e10.js new file mode 100644 index 00000000..791dec87 --- /dev/null +++ b/public/build/assets/Edit.4cc99e10.js @@ -0,0 +1 @@ +import{_ as n}from"./vendor.21c2b6f5.js";import{I as r}from"./InputGroup.513e0dd4.js";import{S as u}from"./app.c52b09a2.js";import{n as o,aD as c}from"./LogoLight.f7426689.js";import{C as m}from"./ConfirmationModal.242a99d0.js";const p={name:"ColorsSetting",components:{ConfirmationModal:m,InputGroup:r,IconPlus:c},model:{prop:"settingValue"},props:{colors:{required:!0,type:Object},defaultColors:{required:!0,type:Object},settingValue:{default:{},type:String|Object},title:{default:"Colours",type:String}},data(){return{formattedSettingValue:{},showColors:!0,showResetDefaultsModal:!1}},mounted(){this.initialise()},methods:{cancelResetDefaults(){this.showResetDefaultsModal=!1},checkResetDefaults(){this.showResetDefaultsModal=!0},confirmResetDefaults(){this.setDefaults(),this.showResetDefaultsModal=!1},initialise(){try{this.setDefaults();let a={};typeof this.settingValue=="string"?a=JSON.parse(this.settingValue):a=n.cloneDeep(this.settingValue),n.forEach(this.formattedSettingValue,(t,e)=>{a.hasOwnProperty(e)&&this.$set(this.formattedSettingValue,e,a[e])})}catch{}this.onUpdate()},setDefaults(){n.forEach(this.defaultColors,(a,t)=>{this.$set(this.formattedSettingValue,t,a)})},onUpdate(){this.$emit("input",this.formattedSettingValue)},toggleColors(){this.showColors=!this.showColors}}};var d=function(){var t=this,e=t._self._c;return e("section",{staticClass:"overflow-hidden relative"},[e("div",{staticClass:"bg-white flex flex-row justify-between relative z-10"},[e("h2",{staticClass:"font-medium mb-2 text-theme-base-contrast tracking-wider"},[t._v(" "+t._s(t.title)+" "),e("span",{staticClass:"cursor-pointer text-sm text-theme-primary ease-in-out duration-300 transition-colors hover:text-theme-primary-hover",on:{click:t.checkResetDefaults}},[t._v(" (Reset) ")])]),e("div",{staticClass:"cursor-pointer ease-in-out duration-300 transition-colors hover:text-primary",on:{click:t.toggleColors}},[e(t.showColors?"icon-minus":"icon-plus",{tag:"component",staticClass:"w-3"})],1)]),e("transition",{attrs:{name:"slide-down"}},[t.showColors?e("div",{staticClass:"gap-3 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4"},t._l(t.colors,function(i,s){return e("div",{key:s},[e("input-group",{key:s,staticClass:"mt-2",attrs:{"input-autocomplete":"off","input-class":"input-group-input h-10","input-id":`color-${s}`,"input-name":`color-${s}`,"input-type":"color","label-text":i},model:{value:t.formattedSettingValue[s],callback:function(l){t.$set(t.formattedSettingValue,s,l)},expression:"formattedSettingValue[colorKey]"}})],1)}),0):t._e()]),e("confirmation-modal",{attrs:{"confirm-text":t.__("messages.confirm"),"cancel-text":t.__("messages.cancel"),"message-title":t.__("messages.are-you-sure")+"?","show-modal":t.showResetDefaultsModal,"message-text":t.__("messages.color-reset-confirm")},on:{cancelAction:t.cancelResetDefaults,closeModal:t.cancelResetDefaults,confirmAction:t.confirmResetDefaults}})],1)},f=[],h=o(p,d,f,!1,null,null,null,null);const g=h.exports,S={name:"MailerSetting",components:{ConfirmationModal:m,SelectGroup:u,InputGroup:r,IconPlus:c},model:{prop:"settingValue"},props:{mailers:{required:!0,type:Object},mailerSettingKeys:{required:!0,type:Object},mailerSettingLabels:{required:!0,type:Object},mailerSettingTypes:{required:!0,type:Object},settingValue:{default:{},type:String|Object},title:{default:"Mailer",type:String}},data(){return{formattedSettingValue:{},initialised:!1,isSendingTestMail:!1,showSendTestMailModal:!1,testMailRecipient:""}},computed:{isSettingValueSet(){try{return!!Object.keys(this.formattedSettingValue).length}catch{return!1}}},mounted(){this.initialise()},methods:{cancelSendTestMail(){this.showSendTestMailModal=!1},formatSetting(){if(!this.isSettingValueSet||this.formattedSettingValue.mailer===""){this.formattedSettingValue={},this.$set(this.formattedSettingValue,"mailer","");return}let a={mailer:this.formattedSettingValue.mailer};n.forEach(this.mailerSettingKeys[a.mailer],t=>{var e;a[t]=(e=this.formattedSettingValue[t])!=null?e:""}),this.formattedSettingValue=n.cloneDeep(a)},getInputType(a){try{return this.mailerSettingTypes.hasOwnProperty(a)?this.mailerSettingTypes[a]:"text"}catch{return"text"}},initialise(){try{this.formattedSettingValue=n.cloneDeep(this.settingValue),this.formatSetting(),this.$emit("input",this.formattedSettingValue),this.testMailRecipient=this.$page.props.auth.user.email,this.initialised=!0}catch{}},onUpdate(){this.formatSetting(),this.$emit("input",this.formattedSettingValue)},onUpdateMailer(){let a={mailer:this.formattedSettingValue.mailer};this.mailerSettingKeys.hasOwnProperty(a.mailer)&&n.forEach(this.mailerSettingKeys[a.mailer],t=>{this.$set(a,t,"")}),this.formattedSettingValue=n.cloneDeep(a),this.$emit("input",this.formattedSettingValue)},sendTestMail(){this.isSendingTestMail=!0;let a=n.cloneDeep(this.formattedSettingValue);a.recipient=this.testMailRecipient,axios.post(this.$route("admin.api.settings.mailer-test"),a).then(t=>{this.$successToast("Test mail sent to "+this.testMailRecipient)}).catch(t=>{let e="Failed to send test mail";t&&t.response&&t.response.data&&t.response.data.message&&(e+=" - "+t.response.data.message),this.$errorToast(e)}).finally(()=>{this.isSendingTestMail=!1,this.showSendTestMailModal=!1})},toggleShowSendTestMailModal(){if(this.showSendTestMailModal){this.showSendTestMailModal=!1;return}this.testMailRecipient&&this.testMailRecipient.length&&(this.showSendTestMailModal=!0)}}};var _=function(){var t=this,e=t._self._c;return e("section",{staticClass:"overflow-hidden relative"},[e("hr",{staticClass:"mb-4 mt-4"}),e("h2",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[t._v(" "+t._s(t.title)+" ")]),e("div",{staticClass:"flex flex-col space-y-2"},[t._l(t.formattedSettingValue,function(i,s){return e("div",{key:`${t.formattedSettingValue.mailer}-${s}`},[s==="mailer"?e("select-group",{attrs:{"input-any-option-enabled":!0,"input-any-option-label":"Please Select","input-options":t.mailers,"label-text":"Mailer","input-name":"mailer","input-id":"mailer"},on:{input:t.onUpdateMailer},model:{value:t.formattedSettingValue[s],callback:function(l){t.$set(t.formattedSettingValue,s,l)},expression:"formattedSettingValue[settingKey]"}}):e("input-group",{attrs:{"label-text":t.mailerSettingLabels[s],"input-autocomplete":s,"input-name":s,"input-id":s,"input-type":t.getInputType(s)},on:{input:t.onUpdate},model:{value:t.formattedSettingValue[s],callback:function(l){t.$set(t.formattedSettingValue,s,l)},expression:"formattedSettingValue[settingKey]"}})],1)}),e("div",[e("input-group",{staticClass:"mt-4",attrs:{"label-text":"Test Mail Recipient","input-name":"test_mail_recipient","input-id":"test_mail_recipient","input-wrapper-class":"flex flex-row items-center space-x-3"},scopedSlots:t._u([{key:"inputAppend",fn:function(){return[e("button",{staticClass:"button button-primary button-outline",attrs:{type:"button",disabled:!t.testMailRecipient.length},on:{click:function(i){return i.stopPropagation(),t.toggleShowSendTestMailModal.apply(null,arguments)}}},[t._v(" Test ")])]},proxy:!0}]),model:{value:t.testMailRecipient,callback:function(i){t.testMailRecipient=i},expression:"testMailRecipient"}})],1)],2),e("confirmation-modal",{attrs:{"confirm-text":"Send","confirm-type":"success","show-modal":t.showSendTestMailModal,"message-text":`Please confirm that you want to send a test email to ${t.testMailRecipient} with the updated mail settings?`},on:{cancelAction:t.cancelSendTestMail,closeModal:t.cancelSendTestMail,confirmAction:t.sendTestMail}})],1)},b=[],M=o(S,_,b,!1,null,null,null,null);const v=M.exports,x={name:"AdminSettingEdit",components:{MailerSetting:v,ColorsSetting:g,SelectGroup:u,InputGroup:r},layout:"admin-layout",props:{settings:{required:!0,type:Object},settingsGroup:{required:!0,type:String},settingsName:{required:!0,type:String}},data(){return{formData:{}}},created(){n.forEach(this.settings,(a,t)=>{let e=a.value===null?"":a.value;typeof e=="object"&&(e=n.cloneDeep(e)),this.$set(this.formData,t,e)})},methods:{submit(){let a={};n.forEach(this.formData,(t,e)=>{t.trim===""&&(t=null),a[e]=t}),this.$inertia.put(this.$route("admin.settings.update",this.settingsGroup),a,{onSuccess:()=>{window.location.reload()}})}}};var w=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(i){return i.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("settings.edit")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" "+t._s(t.__("settings.edit",{setting:t.settingsName}))+" ")]),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" "+t._s(t.__("form.buttons.save"))+" ")])],1)]):t._e(),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block -mt-4 px-6 w-full"},[t._l(t.settings,function(i,s){return[i.type==="select"?e("select-group",{key:s,staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage(s),"input-autocomplete":"off","input-id":s,"input-name":s,"input-type":i.type,"label-text":i.label,"input-options":i.options},on:{errorHidden:function(l){return t.clearPageErrorMessage(s)}},model:{value:t.formData[s],callback:function(l){t.$set(t.formData,s,l)},expression:"formData[key]"}}):i.type==="colors"?e("colors-setting",{staticClass:"mt-4",attrs:{colors:i.colors,"default-colors":i.defaultColors,title:i.label},model:{value:t.formData[s],callback:function(l){t.$set(t.formData,s,l)},expression:"formData[key]"}}):i.type==="mailer"?e("mailer-setting",{staticClass:"mt-4",attrs:{colors:i.colors,mailers:i.mailers,"mailer-setting-keys":i.mailerSettingKeys,"mailer-setting-labels":i.mailerSettingLabels,"mailer-setting-types":i.mailerSettingTypes,title:i.label},model:{value:t.formData[s],callback:function(l){t.$set(t.formData,s,l)},expression:"formData[key]"}}):e("input-group",{key:s,staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage(s),"input-autocomplete":"off","input-id":s,"input-name":s,"input-type":i.type,"label-text":i.label},on:{errorHidden:function(l){return t.clearPageErrorMessage(s)}},model:{value:t.formData[s],callback:function(l){t.$set(t.formData,s,l)},expression:"formData[key]"}})]})],2)])])},C=[],y=o(x,w,C,!1,null,null,null,null);const O=y.exports;export{O as default}; diff --git a/public/build/assets/Edit.4d42b7d4.js b/public/build/assets/Edit.4d42b7d4.js new file mode 100644 index 00000000..6db18a6b --- /dev/null +++ b/public/build/assets/Edit.4d42b7d4.js @@ -0,0 +1 @@ +import{s as n}from"./vendor.21c2b6f5.js";import{I as r}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";const l={name:"AdminEduLabelUpdate",components:{InputGroup:r},layout:"admin-layout",props:{label:{type:Object,required:!0}},data(){return{autoUpdateSlug:!0,formData:{}}},created(){this.formData={id:this.label.id,name:this.label.name,slug:this.label.slug}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(a){return!a||!a.length?"":n(a,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.edu.labels.update",this.label.id),this.formData)}}};var u=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("labels.edit")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit - "),e("b",[t._v(t._s(t.label.name))])]),t.userCan("labels.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.edu.labels.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save ")])],1)],1):t._e(),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("name"),"input-autocomplete":"name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Label"},on:{errorHidden:function(s){return t.clearPageErrorMessage("name")},input:t.onNameInput},model:{value:t.formData.name,callback:function(s){t.$set(t.formData,"name",s)},expression:"formData.name"}})],1)])},o=[],m=i(l,u,o,!1,null,null,null,null);const c=m.exports;export{c as default}; diff --git a/public/build/assets/Edit.74bf91fc.js b/public/build/assets/Edit.74bf91fc.js new file mode 100644 index 00000000..6d7afce8 --- /dev/null +++ b/public/build/assets/Edit.74bf91fc.js @@ -0,0 +1 @@ +import{_ as s,s as l}from"./vendor.21c2b6f5.js";import{I as o}from"./InputGroup.513e0dd4.js";import{W as n,T as u,F as c}from"./app.c52b09a2.js";import{C as d}from"./CheckboxGroup.7b759576.js";import{S as m}from"./SectionItemsEditor.845c8cbd.js";import{n as p}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";let f=axios.CancelToken,h=f.source();const _={name:"AdminEduLectureEdit",components:{WysiwygField:n,TextAreaGroup:u,SectionItemsEditor:m,InputGroup:o,CheckboxGroup:d,FileManagerFileUploader:c},layout:"admin-layout",props:{lecture:{type:Object,required:!0}},data(){return{autoUpdateSlug:!1,currentDirectory:"/",isLoadingFileUpload:!1,formData:{}}},computed:{uploaderDirectory(){let r="PDFs";return this.currentDirectory!=="/"&&(r+=this.currentDirectory),r}},created(){this.transformSections(),this.formData={id:this.lecture.id,title:this.lecture.title,slug:this.lecture.slug,description:this.lecture.description,can_be_previewed:this.lecture.can_be_previewed,preview_url:this.lecture.preview_url,video_url:this.lecture.video_url,content_length:this.lecture.content_length,index:this.lecture.index,item_type:this.lecture.item_type,section_id:this.lecture.section_id,section:this.lecture.section,files:this.lecture.files,templateField:{type:"wysiwyg"}}},methods:{onFileUploaderFilesAdded(){this.isLoadingFileUpload=!0},onFileUploaderCompleted(){this.isLoadingFileUpload=!1,this.loadFiles()},loadFiles(){if(this.isLoadingFiles)return;this.isLoadingFiles=!0,this.formData.files=[];let r={directory:this.currentDirectory};axios.get(this.$route("admin.api.file-manager.files.show",this.formData.id),{params:r,cancelToken:h.token}).then(e=>{e.data.hasOwnProperty("files")&&(this.formData.files=e.data.files)}).catch(e=>{axios.isCancel(e)||this.$errorToast("Failed to load files")}).finally(()=>{this.isLoadingFiles=!1})},transformSections(){let r=this.lecture.sections;s.forEach(r,(e,t)=>{s.forEach(e.child_items,(i,a)=>{i.child_items=[]})}),this.lecture.sections=r},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(r){return!r||!r.length?"":l(r,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.edu.lectures.update",this.lecture.id),this.formData)}}};var v=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(i){return i.preventDefault(),e.submit.apply(null,arguments)}}},[t("div",{staticClass:"flex flex-row space-x-2 text-sm mb-2"},[t("span",{staticClass:"flex flex-row"},[[t("inertia-link",{staticClass:"text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",attrs:{href:e.$route("admin.edu.courses.edit",e.lecture.section.course.id)}},[e._v(" "+e._s(e.lecture.section.course.name)+" ")]),t("span",{staticClass:"ml-2 text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary"},[e._v(" / "+e._s(e.lecture.section.title)+" ")])]],2)]),e.userCan("lectures.edit")?t("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit - "),t("b",[e._v(e._s(e.lecture.title))])]),e.userCan("lectures.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.lectures.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v("General details")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("title"),"input-autocomplete":"lecture_title","input-id":"title","input-name":"title","input-required":!0,"input-type":"text","label-text":"Title"},on:{errorHidden:function(i){return e.clearPageErrorMessage("title")},input:e.onNameInput},model:{value:e.formData.title,callback:function(i){e.$set(e.formData,"title",i)},expression:"formData.title"}}),t("div",{staticClass:"mt-4"},[t("label",[e._v("Description")]),t("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:e.formData.description,callback:function(i){e.$set(e.formData,"description",i)},expression:"formData.description"}})],1)],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Lecture Preview")]),t("checkbox-group",{staticClass:"mt-4 mb-4",attrs:{"error-message":e.getPageErrorMessage("can_be_previewed"),"input-id":"can_be_previewed","input-name":"can_be_previewed","label-text":"Lecture can be previewed?"},on:{errorHidden:function(i){return e.clearPageErrorMessage("can_be_previewed")}},model:{value:e.formData.can_be_previewed,callback:function(i){e.$set(e.formData,"can_be_previewed",i)},expression:"formData.can_be_previewed"}}),e.formData.can_be_previewed?t("input-group",{staticClass:"mb-4",attrs:{"input-autofocus":!0,"input-id":"lecture_item_preview_url","input-name":"lecture_item_preview_url","input-placeholder":"Preview URL","label-text":"Preview URL"},model:{value:e.formData.preview_url,callback:function(i){e.$set(e.formData,"preview_url",i)},expression:"formData.preview_url"}}):e._e(),e.formData.preview_url?t("div",{staticClass:"mb-4"},[t("h2",{staticClass:"font-weight-bolder"},[e._v("Preview")]),t("div",{staticClass:"px-4 space-y-2"},[t("iframe",{attrs:{src:e.formData.preview_url,width:"540",height:"360",frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})])]):e._e()],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Video details")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("content_length"),"input-autocomplete":"lecture_content_length_video","input-id":"content_length","input-name":"content_length","input-required":!1,"input-type":"text","label-text":"Total content length in hours"},on:{errorHidden:function(i){return e.clearPageErrorMessage("content_length")}},model:{value:e.formData.content_length,callback:function(i){e.$set(e.formData,"content_length",i)},expression:"formData.content_length"}}),t("input-group",{staticClass:"mb-4",attrs:{"input-autofocus":!0,"input-id":"lecture_item_video_url","input-name":"lecture_item_video_url","input-placeholder":"Video URL","label-text":"Video URL"},model:{value:e.formData.video_url,callback:function(i){e.$set(e.formData,"video_url",i)},expression:"formData.video_url"}}),e.formData.video_url?t("section",{staticClass:"px-4 space-y-2"},[t("h2",[e._v("Video")]),t("iframe",{attrs:{src:e.formData.video_url,width:"540",height:"360",frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})]):e._e()],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("File details")]),e.formData.id?t("div",{staticClass:"mt-4 px-4 space-y-2"},[t("label",{attrs:{for:"file-uploader"}},[e._v("Upload lecture PDFs")]),t("file-manager-file-uploader",{staticClass:"mb-4",attrs:{id:"file-uploader",directory:e.uploaderDirectory,url:e.$route("admin.api.file-manager.files.store",{lecture:e.formData.id})},on:{filesAdded:e.onFileUploaderFilesAdded,queueCompleted:e.onFileUploaderCompleted}})],1):e._e(),e.formData.files?t("div",{staticClass:"mb-4 px-4 space-y-2 mt-4"},[t("label",[e._v("Files")]),t("ul",{staticClass:"list-group"},e._l(e.formData.files,function(i){return t("li",{key:"file-"+i.id,staticClass:"flex flex-row items-start justify-between py-2 space-x-4 ease-in-out duration-300 transition-all hover:bg-gray-100"},[t("div",{staticClass:"flex flex-row items-start"},[e._v(" "+e._s(i.file_name)+" ")]),t("div",{staticClass:"flex flex-row items-center space-x-2"},[i.url?t("a",{staticClass:"flex flex-row items-center justify-center rounded text-theme-base-subtle-contrast ease-in-out duration-300 transition-colors focus:text-theme-primary focus:outline-none hover:text-theme-primary",attrs:{href:i.url,rel:"noreferrer noopener nofollow",target:"_blank"},on:{click:function(a){a.stopPropagation()}}},[t("icon-external-link",{staticClass:"w-5"})],1):e._e()])])}),0)]):e._e()])])},g=[],b=p(_,v,g,!1,null,null,null,null);const P=b.exports;export{P as default}; diff --git a/public/build/assets/Edit.79dd354d.js b/public/build/assets/Edit.79dd354d.js new file mode 100644 index 00000000..53bbc917 --- /dev/null +++ b/public/build/assets/Edit.79dd354d.js @@ -0,0 +1 @@ +import{_ as s,s as r}from"./vendor.21c2b6f5.js";import{I as o}from"./InputGroup.513e0dd4.js";import{M as u,U as p}from"./UrlEditor.6a278f5e.js";import{S as d}from"./app.c52b09a2.js";import{n as m}from"./LogoLight.f7426689.js";import"./DateTimePickerGroup.36fef719.js";import"./InlineCheckboxGroup.b3aa2b58.js";import"./checkbox-form-group.99a615f1.js";import"./ConfirmationModal.242a99d0.js";let n=axios.CancelToken,i=n.source();const c={name:"AdminCmsPageEdit",components:{InputGroup:o,MetadataEditor:u,SelectGroup:d,UrlEditor:p},layout:"admin-layout",props:{layouts:{type:Object,required:!0},page:{type:Object,required:!0},parentPages:{type:Object|Array|null,required:!0},templates:{type:Object,required:!0}},data(){return{autoUpdateSlug:!1,formData:{},isInitialisedTemplate:!1,isInitialisedContent:!1,isInitialised_url:!1,isLoadingTemplate:!1,isUrlAvailable:!1,selectedTemplate:null}},computed:{fullPageSlug(){if(!this.formData.slug)return"";let t=this.formData.slug;return this.selectedParentPageUrl&&(t=this.selectedParentPageUrl+"/"+t),t},parentPagesUrls(){try{if(!Object.keys(this.parentPages).length)return null;let t={};return s.forEach(this.parentPages,(e,a)=>{t[a]={id:e.id,label:e.name+" => "+e.url.url_full,url_full:e.url.url_full,url_main:e.url.url_main}}),t}catch{return null}},parentPagesMap(){try{if(!Object.keys(this.parentPages).length)return null;let t={};return s.forEach(this.parentPages,(e,a)=>{t[e.id]=a}),t}catch{return null}},selectedParentPage(){try{return this.formData.parent_id?this.parentPages[this.parentPagesMap[this.formData.parent_id]]:null}catch{return null}},selectedParentPageUrl(){try{return this.selectedParentPage.url.url_full}catch{return null}},selectedTemplateHasFields(){try{return this.selectedTemplate?this.selectedTemplate.template_fields.length:!1}catch{return!1}},selectedTemplateId(){var t;return(t=this.formData.template_id)!=null?t:""}},created(){this.formData={content:{},id:this.page.id,layout_id:this.page.layout_id,metadata:s.cloneDeep(this.page.metadata),name:this.page.name,parent_id:this.page.parent_id,slug:this.page.slug,template_id:this.page.template_id,url:{}},this.selectedTemplate=s.cloneDeep(this.page.template),this.setInitialContent(),this.setInitialUrl()},methods:{cancelLoadTemplate(){this.isLoadingTemplate&&(i.cancel("Template load cancelled"),i=n.source())},doesObjectHaveKeys(t){try{return Object.keys(t).length}catch{return!1}},pageHasContentField(t){try{return this.page.content.hasOwnProperty(t)}catch{return!1}},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSelectedTemplateIdChange:s.debounce(function(){if(!this.isInitialisedTemplate){this.isInitialisedTemplate=!0;return}this.selectedTemplate=null,this.cancelLoadTemplate(),this.selectedTemplateId&&(this.isLoadingTemplate=!0,axios.get(this.$route("admin.api.cms.templates.show",this.selectedTemplateId)).then(t=>{this.selectedTemplate=s.cloneDeep(t.data.data),this.setNewTemplateContent()}).catch(t=>{axios.isCancel(t)||(this.$errorToast("Failed to load selected template"),console.log(t))}).finally(()=>{this.isLoadingTemplate=!1}))},500),onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},onUrlIsAvailableEvent(t){this.isUrlAvailable=t},setInitialContent(){let t={};this.doesObjectHaveKeys(this.page.content)&&(t=s.cloneDeep(this.page.content)),s.forEach(this.selectedTemplate.template_fields,e=>{this.pageHasContentField(e.id)||(t[e.id]={data:"",template_field_id:e.id})}),this.formData.content=s.cloneDeep(t),this.isInitialisedContent=!0},setInitialUrl(){let t={};this.doesObjectHaveKeys(this.page.url)&&(t=s.cloneDeep(this.page.url)),this.formData.url=s.cloneDeep(t),this.isInitialised_url=!0},setNewTemplateContent(){this.selectedTemplateHasFields||(this.formData.content={});let t={};s.forEach(this.selectedTemplate.template_fields,e=>{t[e.id]={data:"",template_field_id:e.id}}),this.$set(this.formData,"content",s.cloneDeep(t))},slugify(t){return!t||!t.length?"":r(t,{lower:!0})},submit(){if(!this.isUrlAvailable){this.$errorToast("Unable to save page. URL is unavailable");return}this.$inertia.put(this.$route("admin.cms.pages.update",this.page.id),this.formData)}},watch:{selectedTemplateId:{handler:"onSelectedTemplateIdChange"}}};var g=function(){var e=this,a=e._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(l){return l.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms.edit")?a("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit Page ")]),e.userCan("cms.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.pages.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1)],1):e._e(),a("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("select-group",{attrs:{"error-message":e.getPageErrorMessage("layout_id"),"label-text":"Layout","input-any-option-enabled":!0,"input-any-option-label":"Please select a Layout","input-autofocus":!0,"input-id":"layout_id","input-name":"layout_id","input-options":e.layouts,"input-option-label-key":"name","input-option-value-key":"id","input-required":!0},on:{errorHidden:function(l){return e.clearPageErrorMessage("layout_id")}},model:{value:e.formData.layout_id,callback:function(l){e.$set(e.formData,"layout_id",l)},expression:"formData.layout_id"}}),a("select-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("template_id"),"label-text":"Template","input-any-option-enabled":!0,"input-any-option-label":"Please select a template","input-id":"template_id","input-name":"template_id","input-options":e.templates,"input-option-label-key":"name","input-option-value-key":"id","input-required":!0},on:{errorHidden:function(l){return e.clearPageErrorMessage("template_id")}},model:{value:e.formData.template_id,callback:function(l){e.$set(e.formData,"template_id",l)},expression:"formData.template_id"}}),e.parentPagesUrls?a("select-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("parent_id"),"label-text":"Parent Page","input-any-option-enabled":!0,"input-any-option-label":"Please select a parent (optional)","input-id":"parent_id","input-name":"parent_id","input-options":e.parentPagesUrls,"input-option-label-key":"label","input-option-value-key":"id"},on:{errorHidden:function(l){return e.clearPageErrorMessage("parent_id")}},model:{value:e.formData.parent_id,callback:function(l){e.$set(e.formData,"parent_id",l)},expression:"formData.parent_id"}}):e._e(),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"page_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Page Name"},on:{errorHidden:function(l){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(l){e.$set(e.formData,"name",l)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"page_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Page Slug"},on:{blur:e.onSlugBlur,errorHidden:function(l){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(l){e.$set(e.formData,"slug",l)},expression:"formData.slug"}}),a("input-group",{staticClass:"mt-4",attrs:{"input-id":"slug","input-name":"full_page_slug","input-disabled":!0,"input-type":"text","label-text":"Full Page Slug"},model:{value:e.fullPageSlug,callback:function(l){e.fullPageSlug=l},expression:"fullPageSlug"}})],1)]),a("div",{staticClass:"bg-white mt-6 overflow-x-hidden px-6 py-6 shadow-subtle rounded-lg"},[a("metadata-editor",{model:{value:e.formData.metadata,callback:function(l){e.$set(e.formData,"metadata",l)},expression:"formData.metadata"}})],1),e.isInitialised_url?a("div",{staticClass:"bg-white mt-6 px-6 py-6 shadow-subtle rounded-lg"},[a("url-editor",{attrs:{"parent-url":e.selectedParentPageUrl},on:{isAvailable:e.onUrlIsAvailableEvent},model:{value:e.formData.url,callback:function(l){e.$set(e.formData,"url",l)},expression:"formData.url"}})],1):e._e(),!this.isLoadingTemplate&&e.selectedTemplateHasFields&&e.isInitialisedContent?a("div",{staticClass:"bg-white mt-6 px-4 py-6 shadow-subtle rounded-lg"},[a("p",{staticClass:"text-lg"},[e._v("Fields")]),a("content-editor",{staticClass:"mt-4",attrs:{"template-fields":e.selectedTemplate.template_fields},model:{value:e.formData.content,callback:function(l){e.$set(e.formData,"content",l)},expression:"formData.content"}})],1):e._e()])},f=[],h=m(c,g,f,!1,null,null,null,null);const I=h.exports;export{I as default}; diff --git a/public/build/assets/Edit.83ddf47c.js b/public/build/assets/Edit.83ddf47c.js new file mode 100644 index 00000000..aec25c18 --- /dev/null +++ b/public/build/assets/Edit.83ddf47c.js @@ -0,0 +1 @@ +import{_ as s,s as i}from"./vendor.21c2b6f5.js";import{I as o}from"./InputGroup.513e0dd4.js";import{W as n,T as u,S as c}from"./app.c52b09a2.js";import{C as l}from"./CheckboxGroup.7b759576.js";import{D as m}from"./DateTimePickerGroup.36fef719.js";import{S as p}from"./SectionItemsEditor.845c8cbd.js";import{n as d}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const g={name:"AdminEduCourseEdit",components:{WysiwygField:n,TextAreaGroup:u,SectionItemsEditor:p,InputGroup:o,CheckboxGroup:l,SelectGroup:c,DateTimePickerGroup:m},layout:"admin-layout",props:{course:{type:Object,required:!0},currencies:{required:!0,type:Object|Array},statuses:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!1,formData:{}}},created(){this.transformSections(),this.formData={id:this.course.id,name:this.course.name,slug:this.course.slug,summary:this.course.summary,description:this.course.description,status:this.course.status,available_from:this.course.available_from,available_to:this.course.available_to,content_length_video:this.course.content_length_video,banner:this.course.banner,primary_image:this.course.primary_image,video_preview:this.course.video_preview,price:this.course.price,discount_price:this.course.discount_price,vat:this.course.vat,price_vat:this.course.price_vat,currency:this.course.currency,languages:this.course.languages,has_webinars:this.course.has_webinars,has_money_back_guarantee:this.course.has_money_back_guarantee,has_certificate:this.course.has_certificate,has_captions:this.course.has_captions,has_lifetime_access:this.course.has_lifetime_access,has_student_discount:this.course.has_student_discount,has_pdfs:this.course.has_pdfs,has_free_seo_exposure:this.course.has_free_seo_exposure,sections:this.course.sections,templateField:{type:"wysiwyg"}}},methods:{transformSections(){let r=this.course.sections;s.forEach(r,(e,a)=>{s.forEach(e.child_items,(t,v)=>{t.child_items=[]})}),this.course.sections=r},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(r){return!r||!r.length?"":i(r,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.edu.courses.update",this.course.id),this.formData)}}};var f=function(){var e=this,a=e._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("courses.edit")?a("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit - "),a("b",[e._v(e._s(e.course.name))])]),e.userCan("courses.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.courses.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),e.userCan("course.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.courses.preview",e.course.id),target:"_blank"}},[a("icon-eye",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Preview ")])],1):e._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Save ")])],1)],1):e._e(),a("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[a("h2",[e._v(" General details "),e.course.status==="PUBLISHED"?a("span",{staticClass:"bg-red-600 p-1 text-white"},[e._v(" "+e._s(e.course.status)+" ")]):e._e()]),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"course_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(t){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"course_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Slug"},on:{blur:e.onSlugBlur,errorHidden:function(t){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(t){e.$set(e.formData,"slug",t)},expression:"formData.slug"}}),e.course.status==="PUBLISHED"?a("select-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Status","input-any-option-enabled":!0,"input-any-option-label":"Status","input-class":"form-control form-control-short","input-id":"status","input-name":"status","input-option-label-key":"name","input-option-value-key":"id","input-options":e.statuses},model:{value:e.formData.status,callback:function(t){e.$set(e.formData,"status",t)},expression:"formData.status"}}):e._e(),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"course_summary","input-id":"summary","input-name":"summary","input-required":!1,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(t){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(t){e.$set(e.formData,"summary",t)},expression:"formData.summary"}}),a("div",{staticClass:"mt-4"},[a("label",[e._v("Description")]),a("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1)],1),a("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[a("h2",[e._v("Availability details")]),a("div",{staticClass:"grid grid-cols-2 gap-2"},[a("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_from"),"input-id":"available_from","input-name":"available_from","label-text":"Available From"},on:{errorHidden:function(t){return e.clearPageErrorMessage("available_from")}},model:{value:e.formData.available_from,callback:function(t){e.$set(e.formData,"available_from",t)},expression:"formData.available_from"}}),a("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_to"),"input-id":"available_to","input-name":"available_to","label-text":"Available To"},on:{errorHidden:function(t){return e.clearPageErrorMessage("available_to")}},model:{value:e.formData.available_to,callback:function(t){e.$set(e.formData,"available_to",t)},expression:"formData.available_to"}})],1)]),a("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[a("h2",[e._v("Image & Video details")]),a("div",{staticClass:"grid grid-cols-2 gap-2"},[a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("content_length_video"),"input-autocomplete":"course_content_length_video","input-id":"content_length_video","input-name":"content_length_video","input-required":!1,"input-type":"text","label-text":"Total content length in hours"},on:{errorHidden:function(t){return e.clearPageErrorMessage("content_length_video")}},model:{value:e.formData.content_length_video,callback:function(t){e.$set(e.formData,"content_length_video",t)},expression:"formData.content_length_video"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("banner"),"input-autocomplete":"banner","input-id":"banner","input-name":"banner","input-required":!1,"input-type":"text","label-text":"Banner"},on:{errorHidden:function(t){return e.clearPageErrorMessage("banner")}},model:{value:e.formData.banner,callback:function(t){e.$set(e.formData,"banner",t)},expression:"formData.banner"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("primary_image"),"input-autocomplete":"primary_image","input-id":"primary_image","input-name":"primary_image","input-required":!1,"input-type":"text","label-text":"Primary Image"},on:{errorHidden:function(t){return e.clearPageErrorMessage("primary_image")}},model:{value:e.formData.primary_image,callback:function(t){e.$set(e.formData,"primary_image",t)},expression:"formData.primary_image"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("video_preview"),"input-autocomplete":"video_preview","input-id":"video_preview","input-name":"video_preview","input-required":!1,"input-type":"text","label-text":"Video Preview"},on:{errorHidden:function(t){return e.clearPageErrorMessage("video_preview")}},model:{value:e.formData.video_preview,callback:function(t){e.$set(e.formData,"video_preview",t)},expression:"formData.video_preview"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("languages"),"input-autocomplete":"languages","input-id":"languages","input-name":"languages","input-required":!1,"input-type":"text","label-text":"The language/s of the content"},on:{errorHidden:function(t){return e.clearPageErrorMessage("languages")}},model:{value:e.formData.languages,callback:function(t){e.$set(e.formData,"languages",t)},expression:"formData.languages"}})],1)]),a("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[a("h2",[e._v("Price details")]),a("div",{staticClass:"grid grid-cols-3 gap-3"},[a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price"),"input-autocomplete":"price","input-id":"price","input-name":"price","input-required":!1,"input-type":"text","label-text":"Price"},on:{errorHidden:function(t){return e.clearPageErrorMessage("price")}},model:{value:e.formData.price,callback:function(t){e.$set(e.formData,"price",t)},expression:"formData.price"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("discount_price"),"input-autocomplete":"discount_price","input-id":"discount_price","input-name":"discount_price","input-required":!1,"input-type":"text","label-text":"Discount Price"},on:{errorHidden:function(t){return e.clearPageErrorMessage("discount_price")}},model:{value:e.formData.discount_price,callback:function(t){e.$set(e.formData,"discount_price",t)},expression:"formData.discount_price"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("vat"),"input-autocomplete":"vat","input-id":"vat","input-name":"vat","input-required":!1,"input-type":"text","label-text":"VAT"},on:{errorHidden:function(t){return e.clearPageErrorMessage("vat")}},model:{value:e.formData.vat,callback:function(t){e.$set(e.formData,"vat",t)},expression:"formData.vat"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price_vat"),"input-autocomplete":"price_vat","input-id":"price_vat","input-name":"price_vat","input-required":!1,"input-type":"text","label-text":"Price VAT"},on:{errorHidden:function(t){return e.clearPageErrorMessage("price_vat")}},model:{value:e.formData.price_vat,callback:function(t){e.$set(e.formData,"price_vat",t)},expression:"formData.price_vat"}}),a("select-group",{staticClass:"mt-4",attrs:{"label-text":"Currency","input-any-option-enabled":!0,"input-any-option-label":"Currency","input-class":"input-group-input","input-id":"currency","input-name":"currency","input-option-label-key":"name","input-option-value-key":"id","input-options":e.currencies},model:{value:e.formData.currency,callback:function(t){e.$set(e.formData,"currency",t)},expression:"formData.currency"}})],1)]),a("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[a("h2",[e._v("Features Offered")]),a("div",{staticClass:"grid grid-cols-4 gap-4"},[a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_webinars"),"input-id":"has_webinars","input-name":"has_webinars","label-text":"Has Webinars?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_webinars")}},model:{value:e.formData.has_webinars,callback:function(t){e.$set(e.formData,"has_webinars",t)},expression:"formData.has_webinars"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_money_back_guarantee"),"input-id":"has_money_back_guarantee","input-name":"has_money_back_guarantee","label-text":"Has Money Back Guarantee?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_money_back_guarantee")}},model:{value:e.formData.has_money_back_guarantee,callback:function(t){e.$set(e.formData,"has_money_back_guarantee",t)},expression:"formData.has_money_back_guarantee"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_certificate"),"input-id":"has_certificate","input-name":"has_certificate","label-text":"Has Certificate?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_certificate")}},model:{value:e.formData.has_certificate,callback:function(t){e.$set(e.formData,"has_certificate",t)},expression:"formData.has_certificate"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_captions"),"input-id":"has_captions","input-name":"has_captions","label-text":"Videos have captions?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_captions")}},model:{value:e.formData.has_captions,callback:function(t){e.$set(e.formData,"has_captions",t)},expression:"formData.has_captions"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_lifetime_access"),"input-id":"has_lifetime_access","input-name":"has_lifetime_access","label-text":"Has Lifetime Access?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_lifetime_access")}},model:{value:e.formData.has_lifetime_access,callback:function(t){e.$set(e.formData,"has_lifetime_access",t)},expression:"formData.has_lifetime_access"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_student_discount"),"input-id":"has_student_discount","input-name":"has_student_discount","label-text":"Has Student Discount?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_student_discount")}},model:{value:e.formData.has_student_discount,callback:function(t){e.$set(e.formData,"has_student_discount",t)},expression:"formData.has_student_discount"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_pdfs"),"input-id":"has_pdfs","input-name":"has_pdfs","label-text":"Has PDFs?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_pdfs")}},model:{value:e.formData.has_pdfs,callback:function(t){e.$set(e.formData,"has_pdfs",t)},expression:"formData.has_pdfs"}}),a("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_free_seo_exposure"),"input-id":"has_free_seo_exposure","input-name":"has_free_seo_exposure","label-text":"Has Free SEO Exposure?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("has_free_seo_exposure")}},model:{value:e.formData.has_free_seo_exposure,callback:function(t){e.$set(e.formData,"has_free_seo_exposure",t)},expression:"formData.has_free_seo_exposure"}})],1)]),a("div",{staticClass:"bg-white mt-6 p-6 shadow-subtle rounded-lg"},[a("section-items-editor",{model:{value:e.formData.sections,callback:function(t){e.$set(e.formData,"sections",t)},expression:"formData.sections"}})],1)])},_=[],h=d(g,f,_,!1,null,null,null,null);const M=h.exports;export{M as default}; diff --git a/public/build/assets/Edit.8c1caf79.js b/public/build/assets/Edit.8c1caf79.js new file mode 100644 index 00000000..e3f9a5a4 --- /dev/null +++ b/public/build/assets/Edit.8c1caf79.js @@ -0,0 +1 @@ +import{_ as l,s as o}from"./vendor.21c2b6f5.js";import{I as r}from"./InputGroup.513e0dd4.js";import{S as u}from"./app.c52b09a2.js";import{n as m}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";let i=axios.CancelToken,n=i.source();const d={name:"AdminCmsLayoutCreate",components:{InputGroup:r,SelectGroup:u},layout:"admin-layout",props:{layout:{type:Object,required:!0},templates:{type:Object,required:!0}},data(){return{autoUpdateSlug:!1,formData:{},isInitialisedTemplate:!1,isInitialisedContent:!1,isLoadingTemplate:!1,selectedTemplate:null}},computed:{selectedTemplateHasFields(){try{return this.selectedTemplate?this.selectedTemplate.template_fields.length:!1}catch{return!1}},selectedTemplateId(){var t;return(t=this.formData.template_id)!=null?t:""}},created(){this.formData={content:{},id:this.layout.id,name:this.layout.name,slug:this.layout.slug,template_id:this.layout.template_id},this.selectedTemplate=l.cloneDeep(this.layout.template),this.setInitialContent()},methods:{cancelLoadTemplate(){this.isLoadingTemplate&&(n.cancel("Template load cancelled"),n=i.source())},doesObjectHaveKeys(t){try{return Object.keys(t).length}catch{return!1}},layoutHasContentField(t){try{return this.layout.content.hasOwnProperty(t)}catch{return!1}},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSelectedTemplateIdChange:l.debounce(function(){if(!this.isInitialisedTemplate){this.isInitialisedTemplate=!0;return}this.selectedTemplate=null,this.cancelLoadTemplate(),this.selectedTemplateId&&(this.isLoadingTemplate=!0,axios.get(this.$route("admin.api.cms.templates.show",this.selectedTemplateId)).then(t=>{this.selectedTemplate=l.cloneDeep(t.data.data),this.setNewTemplateContent()}).catch(t=>{axios.isCancel(t)||(this.$errorToast("Failed to load selected template"),console.log(t))}).finally(()=>{this.isLoadingTemplate=!1}))},500),onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},setInitialContent(){let t={};this.doesObjectHaveKeys(this.layout.content)&&(t=l.cloneDeep(this.layout.content)),l.forEach(this.selectedTemplate.template_fields,e=>{this.layoutHasContentField(e.id)||(t[e.id]={data:"",template_field_id:e.id})}),this.formData.content=l.cloneDeep(t),this.isInitialisedContent=!0},setNewTemplateContent(){this.selectedTemplateHasFields||(this.formData.content={});let t={};l.forEach(this.selectedTemplate.template_fields,e=>{t[e.id]={data:"",template_field_id:e.id}}),this.$set(this.formData,"content",l.cloneDeep(t))},slugify(t){return!t||!t.length?"":o(t,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.cms.layouts.update",this.layout.id),this.formData)}},watch:{selectedTemplateId:{handler:"onSelectedTemplateIdChange"}}};var p=function(){var e=this,a=e._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(s){return s.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms_advanced.edit")?a("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit Layout ")]),e.userCan("cms_advanced.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.layouts.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1)],1):e._e(),a("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("select-group",{attrs:{"error-message":e.getPageErrorMessage("template_id"),"label-text":"Template","input-any-option-enabled":!0,"input-any-option-label":"Please select a template","input-autofocus":!0,"input-id":"template_id","input-name":"template_id","input-options":e.templates,"input-option-label-key":"name","input-option-value-key":"id","input-required":!0},on:{errorHidden:function(s){return e.clearPageErrorMessage("template_id")}},model:{value:e.formData.template_id,callback:function(s){e.$set(e.formData,"template_id",s)},expression:"formData.template_id"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"layout_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Layout Name"},on:{errorHidden:function(s){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(s){e.$set(e.formData,"name",s)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"layout_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Layout Slug"},on:{blur:e.onSlugBlur,errorHidden:function(s){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(s){e.$set(e.formData,"slug",s)},expression:"formData.slug"}})],1)]),!this.isLoadingTemplate&&e.selectedTemplateHasFields&&e.isInitialisedContent?a("div",{staticClass:"bg-white mt-6 px-4 py-6 shadow-subtle rounded-lg"},[a("p",{staticClass:"text-lg"},[e._v("Fields")]),a("content-editor",{staticClass:"mt-4",attrs:{"template-fields":e.selectedTemplate.template_fields},model:{value:e.formData.content,callback:function(s){e.$set(e.formData,"content",s)},expression:"formData.content"}})],1):e._e()])},c=[],f=m(d,p,c,!1,null,null,null,null);const T=f.exports;export{T as default}; diff --git a/public/build/assets/Edit.8d25ca1f.js b/public/build/assets/Edit.8d25ca1f.js new file mode 100644 index 00000000..02acd026 --- /dev/null +++ b/public/build/assets/Edit.8d25ca1f.js @@ -0,0 +1 @@ +import{s}from"./vendor.21c2b6f5.js";import{A as i}from"./ArrayGroup.46c0a3b3.js";import{F as n}from"./FormFieldEditor.e5430ae4.js";import{I as o}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as m}from"./InputGroup.513e0dd4.js";import{T as l}from"./app.c52b09a2.js";import{n as u}from"./LogoLight.f7426689.js";import"./vuedraggable.umd.700457d3.js";import"./CheckboxGroup.7b759576.js";import"./checkbox-form-group.99a615f1.js";import"./ConfirmationModal.242a99d0.js";const c={name:"AdminCrmFormCreate",components:{ArrayGroup:i,FormFieldEditor:n,InlineCheckboxGroup:o,InputGroup:m,TextAreaGroup:l},layout:"admin-layout",props:{crmFormFieldTypes:{type:Object,required:!0},form:{type:Object,required:!0},formFieldSettings:{type:Object,required:!0},standardFormFieldTypes:{type:Object,required:!0}},data(){return{autoUpdateSlug:!0,formData:{}}},created(){this.formData=_.cloneDeep(this.form)},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},slugify(a){return!a||!a.length?"":s(a,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.crm.forms.update",this.form.id),this.formData)}}};var p=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit Form - "+e._s(e.form.name)+" ")]),e.userCan("crm_forms.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.crm.forms.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),e.userCan("crm_forms.edit")?t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"form_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Form Name"},on:{errorHidden:function(r){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(r){e.$set(e.formData,"name",r)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"form_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Form Slug"},on:{blur:e.onSlugBlur,errorHidden:function(r){return e.clearPageErrorMessage("slug")}},model:{value:e.formData.slug,callback:function(r){e.$set(e.formData,"slug",r)},expression:"formData.slug"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("submit_button_text"),"input-id":"submit_button_text","input-name":"submit_button_text","input-type":"text","label-text":"Submit Button Text (Leave blank for default)"},on:{errorHidden:function(r){return e.clearPageErrorMessage("submit_button_text")}},model:{value:e.formData.submit_button_text,callback:function(r){e.$set(e.formData,"submit_button_text",r)},expression:"formData.submit_button_text"}}),t("text-area-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("success_message"),"input-id":"success_message","input-name":"success_message","input-rows":"2","input-type":"text","label-text":"Success Message"},on:{errorHidden:function(r){return e.clearPageErrorMessage("success_message")}},model:{value:e.formData.success_message,callback:function(r){e.$set(e.formData,"success_message",r)},expression:"formData.success_message"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("redirect_url"),"input-id":"redirect_url","input-name":"redirect_url","input-type":"text","label-text":"Redirect Url (Leave blank for no redirect)"},on:{errorHidden:function(r){return e.clearPageErrorMessage("redirect_url")}},model:{value:e.formData.redirect_url,callback:function(r){e.$set(e.formData,"redirect_url",r)},expression:"formData.redirect_url"}}),t("array-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessageFromArrayField("email_recipients"),"input-id":"email_recipients","input-name":"email_recipients","label-text":"Email Recipients"},model:{value:e.formData.email_recipients,callback:function(r){e.$set(e.formData,"email_recipients",r)},expression:"formData.email_recipients"}})],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Marketing Preference Fields ")]),t("div",{staticClass:"space-y-4"},[t("inline-checkbox-group",{attrs:{"input-id":"marketing-email","input-name":"marketing-email","label-text":"Email"},model:{value:e.formData.marketing_email,callback:function(r){e.$set(e.formData,"marketing_email",r)},expression:"formData.marketing_email"}}),t("inline-checkbox-group",{attrs:{"input-id":"marketing-sms","input-name":"marketing-sms","label-text":"SMS"},model:{value:e.formData.marketing_sms,callback:function(r){e.$set(e.formData,"marketing_sms",r)},expression:"formData.marketing_sms"}}),t("inline-checkbox-group",{attrs:{"input-id":"marketing-telephone","input-name":"marketing-telephone","label-text":"Telephone"},model:{value:e.formData.marketing_telephone,callback:function(r){e.$set(e.formData,"marketing_telephone",r)},expression:"formData.marketing_telephone"}})],1)])]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("form-field-editor",{attrs:{"crm-form-field-types":e.crmFormFieldTypes,"form-field-settings":e.formFieldSettings,"is-editing":!0,"standard-form-field-types":e.standardFormFieldTypes},model:{value:e.formData.form_fields,callback:function(r){e.$set(e.formData,"form_fields",r)},expression:"formData.form_fields"}})],1)])])},f=[],d=u(c,p,f,!1,null,null,null,null);const $=d.exports;export{$ as default}; diff --git a/public/build/assets/Edit.91c008d3.js b/public/build/assets/Edit.91c008d3.js new file mode 100644 index 00000000..c27f9712 --- /dev/null +++ b/public/build/assets/Edit.91c008d3.js @@ -0,0 +1 @@ +import{_ as r,s as l}from"./vendor.21c2b6f5.js";import{I as u}from"./InputGroup.513e0dd4.js";import{S as c}from"./app.c52b09a2.js";import{n as p}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";let i=axios.CancelToken,n=i.source(),s=i.source();const m={name:"AdminCrmOrganisationUnitEdit",components:{InputGroup:u,SelectGroup:c},layout:"admin-layout",props:{organisationUnit:{type:Object,required:!0},types:{type:Object,required:!0}},data(){return{autoUpdateSlug:!1,companies:[],formData:{},isLoadingCompanies:!1,isLoadingLocations:!1,locations:[],selected_company_id:null,selected_location_id:null,socials:["facebook","instagram","linkedin","snapchat","tiktok","twitter"]}},computed:{showCompanySelect(){return["location","department"].indexOf(this.formData.type)>-1},showLocationSelect(){return this.formData.type==="department"}},created(){this.formData=r.cloneDeep(this.organisationUnit),this.formData.company_id&&(this.selected_company_id=this.formData.company_id,this.loadCompanies()),this.formData.location_id&&(this.selected_location_id=this.formData.location_id,this.loadLocations()),this.initialiseSocials()},methods:{initialiseSocials(){this.formData.hasOwnProperty("socials")||this.$set(this.formData,"socials",{}),this.socials.forEach(o=>{this.formData.socials.hasOwnProperty(o)||this.$set(this.formData.socials,o,"")})},loadCompanies(){this.isLoadingCompanies&&(n.cancel("Companies load cancelled"),n=i.source()),this.isLoadingCompanies=!0,axios.get(this.$route("admin.api.crm.organisation-units.index"),{params:{organisation_unit_type:"company"}}).then(o=>{this.companies=o.data.data}).catch(o=>{axios.isCancel(o)||this.$errorToast("Failed to load companies")}).finally(()=>{this.isLoadingCompanies=!1})},loadLocations(){this.isLoadingLocations&&(s.cancel("Locations load cancelled"),s=i.source()),this.isLoadingLocations=!0,axios.get(this.$route("admin.api.crm.organisation-units.index"),{params:{organisation_unit_type:"location",organisation_unit_company_id:this.formData.company_id}}).then(o=>{this.locations=o.data.data}).catch(o=>{axios.isCancel(o)||this.$errorToast("Failed to load locations")}).finally(()=>{this.isLoadingLocations=!1})},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1},slugify(o){return!o||!o.length?"":l(o,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.crm.organisation-units.update",this.organisationUnit.id),this.formData)}}};var d=function(){var t=this,a=t._self._c;return a("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("crm_orgamisation_units.create")?a("div",{staticClass:"flex flex-row items-center mb-6"},[a("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit Organisation Unit - "+t._s(t.organisationUnit.name)+" ")]),t.userCan("crm_orgamisation_units.view")?a("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.crm.organisation-units.index")}},[a("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),a("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[a("icon-save",{staticClass:"w-5 md:mr-2"}),a("span",{staticClass:"hidden md:inline"},[t._v(" Save Changes ")])],1)],1):t._e(),a("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("select-group",{attrs:{"error-message":t.getPageErrorMessage("type"),"input-any-option-enabled":!0,"input-any-option-label":"Please select a type","input-disabled":!0,"input-id":"type","input-name":"Type","input-options":t.types,"input-required":!0,"label-text":"Type"},on:{errorHidden:function(e){return t.clearPageErrorMessage("type")}},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}}),t.showCompanySelect?a("select-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("company_id"),"input-any-option-enabled":!0,"input-any-option-label":t.isLoadingCompanies?"Loading...":"Please select a company","input-any-option-value":null,"input-disabled":!0,"input-id":"company_id","input-name":"company_id","input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":t.companies,"input-required":!0,"label-text":"Company"},on:{errorHidden:function(e){return t.clearPageErrorMessage("company_id")}},model:{value:t.formData.company_id,callback:function(e){t.$set(t.formData,"company_id",e)},expression:"formData.company_id"}}):t._e(),t.showLocationSelect?a("select-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("location_id"),"input-any-option-enabled":!0,"input-any-option-label":t.isLoadingLocations?"Loading...":"Please select a location","input-any-option-value":null,"input-disabled":!0,"input-id":"location_id","input-name":"location_id","input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":t.locations,"input-required":!0,"label-text":"Location"},on:{errorHidden:function(e){return t.clearPageErrorMessage("location_id")}},model:{value:t.formData.location_id,callback:function(e){t.$set(t.formData,"location_id",e)},expression:"formData.location_id"}}):t._e()],1)]),a("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("span",{staticClass:"text-lg"},[t._v("Contact Details")]),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("name"),"input-autocomplete":"name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(e){return t.clearPageErrorMessage("name")},input:t.onNameInput},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("slug"),"input-autocomplete":"slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Slug"},on:{blur:t.onSlugBlur,errorHidden:function(e){return t.clearPageErrorMessage("slug")},input:t.onSlugInput},model:{value:t.formData.slug,callback:function(e){t.$set(t.formData,"slug",e)},expression:"formData.slug"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"organisation_unit_email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(e){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("telephone"),"input-autocomplete":"organisation_unit_telephone","input-id":"telephone","input-name":"telephone","input-type":"text","label-text":"Telephone"},on:{errorHidden:function(e){return t.clearPageErrorMessage("telephone")}},model:{value:t.formData.telephone,callback:function(e){t.$set(t.formData,"telephone",e)},expression:"formData.telephone"}})],1)]),a("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[a("div",{staticClass:"block px-6 w-full"},[a("span",{staticClass:"text-lg"},[t._v("Socials")]),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.youtube"),"input-autocomplete":"youtube_account","input-id":"youtube_account","input-name":"youtube_account","input-required":!1,"input-type":"text","label-text":"Youtube"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.youtube")}},model:{value:t.formData.socials.youtube,callback:function(e){t.$set(t.formData.socials,"youtube",e)},expression:"formData.socials.youtube"}})],1),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.facebook"),"input-autocomplete":"facebook_account","input-id":"facebook_account","input-name":"facebook_account","input-required":!1,"input-type":"text","label-text":"Facebook"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.facebook")}},model:{value:t.formData.socials.facebook,callback:function(e){t.$set(t.formData.socials,"facebook",e)},expression:"formData.socials.facebook"}}),a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.instagram"),"input-autocomplete":"instagram_account","input-id":"instagram_account","input-name":"instagram_account","input-required":!1,"input-type":"text","label-text":"Instagram"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.instagram")}},model:{value:t.formData.socials.instagram,callback:function(e){t.$set(t.formData.socials,"instagram",e)},expression:"formData.socials.instagram"}})],1),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.linkedin"),"input-autocomplete":"linkedin_account","input-id":"linkedin_account","input-name":"linkedin_account","input-required":!1,"input-type":"text","label-text":"Linkedin"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.linkedin")}},model:{value:t.formData.socials.linkedin,callback:function(e){t.$set(t.formData.socials,"linkedin",e)},expression:"formData.socials.linkedin"}}),a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.snapchat"),"input-autocomplete":"snapchat_account","input-id":"snapchat_account","input-name":"snapchat_account","input-required":!1,"input-type":"text","label-text":"Snapchat"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.snapchat")}},model:{value:t.formData.socials.snapchat,callback:function(e){t.$set(t.formData.socials,"snapchat",e)},expression:"formData.socials.snapchat"}})],1),a("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.tiktok"),"input-autocomplete":"tiktok_account","input-id":"tiktok_account","input-name":"tiktok_account","input-required":!1,"input-type":"text","label-text":"TikTok"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.tiktok")}},model:{value:t.formData.socials.tiktok,callback:function(e){t.$set(t.formData.socials,"tiktok",e)},expression:"formData.socials.tiktok"}}),a("input-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":t.getPageErrorMessage("socials.twitter"),"input-autocomplete":"twitter_account","input-id":"twitter_account","input-name":"twitter_account","input-required":!1,"input-type":"text","label-text":"Twitter/X"},on:{errorHidden:function(e){return t.clearPageErrorMessage("socials.twitter")}},model:{value:t.formData.socials.twitter,callback:function(e){t.$set(t.formData.socials,"twitter",e)},expression:"formData.socials.twitter"}})],1)])])])},f=[],g=p(m,d,f,!1,null,null,null,null);const k=g.exports;export{k as default}; diff --git a/public/build/assets/Edit.922955c0.js b/public/build/assets/Edit.922955c0.js new file mode 100644 index 00000000..aa35dd2f --- /dev/null +++ b/public/build/assets/Edit.922955c0.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import{n}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const s={name:"AdminProfileIndex",layout:"admin-layout",components:{InputGroup:r},props:{auth:Object,profile:Object},data(){return{formData:{email:null,first_name:null,last_name:null}}},mounted(){this.formData.email=this.profile.email,this.formData.first_name=this.profile.first_name,this.formData.last_name=this.profile.last_name},methods:{submit(){this.$inertia.put(this.$route("landlord.admin.profile.update"),this.formData)}}};var i=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit Profile ")]),t.userCan("profile.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("landlord.admin.profile.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save Changes ")])],1)],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("first_name")}},model:{value:t.formData.first_name,callback:function(a){t.$set(t.formData,"first_name",a)},expression:"formData.first_name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("last_name")}},model:{value:t.formData.last_name,callback:function(a){t.$set(t.formData,"last_name",a)},expression:"formData.last_name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"new_email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(a){t.$set(t.formData,"email",a)},expression:"formData.email"}})],1)])])},l=[],o=n(s,i,l,!1,null,null,null,null);const c=o.exports;export{c as default}; diff --git a/public/build/assets/Edit.978f8d21.js b/public/build/assets/Edit.978f8d21.js new file mode 100644 index 00000000..1ad34ae3 --- /dev/null +++ b/public/build/assets/Edit.978f8d21.js @@ -0,0 +1 @@ +import{s as n}from"./vendor.21c2b6f5.js";import{I as u}from"./InputGroup.513e0dd4.js";import{M as r}from"./MenuItemsEditor.d3626ff3.js";import{n as i}from"./LogoLight.f7426689.js";import"./vuedraggable.umd.700457d3.js";import"./ConfirmationModal.242a99d0.js";const m={name:"AdminCmsMenuEdit",components:{InputGroup:u,MenuItemsEditor:r},layout:"admin-layout",props:{menu:{type:Object,required:!0}},data(){return{autoUpdateSlug:!1,formData:{}}},created(){this.formData={id:this.menu.id,menu_items:this.menu.menu_items?_.cloneDeep(this.menu.menu_items):[],name:this.menu.name,slug:this.menu.slug}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(a){return!a||!a.length?"":n(a,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.cms.menus.update",this.menu.id),this.formData)}}};var o=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("cms.edit")?e("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit Menu - "+t._s(t.menu.name)+" ")]),t.userCan("cms.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.cms.menus.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save Changes ")])],1)],1):t._e(),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("name"),"input-autocomplete":"menu_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Menu Name"},on:{errorHidden:function(s){return t.clearPageErrorMessage("name")},input:t.onNameInput},model:{value:t.formData.name,callback:function(s){t.$set(t.formData,"name",s)},expression:"formData.name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("slug"),"input-autocomplete":"menu_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Menu Slug"},on:{blur:t.onSlugBlur,errorHidden:function(s){return t.clearPageErrorMessage("slug")},input:t.onSlugInput},model:{value:t.formData.slug,callback:function(s){t.$set(t.formData,"slug",s)},expression:"formData.slug"}})],1),e("div",{staticClass:"bg-white mt-6 p-6 shadow-subtle rounded-lg"},[e("menu-items-editor",{model:{value:t.formData.menu_items,callback:function(s){t.$set(t.formData,"menu_items",s)},expression:"formData.menu_items"}})],1)])},l=[],p=i(m,o,l,!1,null,null,null,null);const v=p.exports;export{v as default}; diff --git a/public/build/assets/Edit.a623ba83.js b/public/build/assets/Edit.a623ba83.js new file mode 100644 index 00000000..eda1b54e --- /dev/null +++ b/public/build/assets/Edit.a623ba83.js @@ -0,0 +1 @@ +import{I as s}from"./InputGroup.513e0dd4.js";import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"StudentAdminProfileIndex",layout:"student-admin-layout",components:{InputGroup:s},props:{auth:Object,profile:Object},data(){return{formData:{email:null,first_name:null,last_name:null}}},mounted(){this.formData.email=this.profile.email,this.formData.first_name=this.profile.first_name,this.formData.last_name=this.profile.last_name},methods:{submit(){this.$inertia.put(this.$route("admin.profile.update"),this.formData)}}};var i=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" "+e._s(e.__("messages.edit-profile"))+" ")]),e.userCan("profile.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("student.admin.profile.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" "+e._s(e.__("messages.back"))+" ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" "+e._s(e.__("messages.save-changes"))+" ")])],1)],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":e.__("messages.first-name")},on:{errorHidden:function(a){return e.clearPageErrorMessage("first_name")}},model:{value:e.formData.first_name,callback:function(a){e.$set(e.formData,"first_name",a)},expression:"formData.first_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":e.__("messages.last-name")},on:{errorHidden:function(a){return e.clearPageErrorMessage("last_name")}},model:{value:e.formData.last_name,callback:function(a){e.$set(e.formData,"last_name",a)},expression:"formData.last_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"new_email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":e.__("messages.email")},on:{errorHidden:function(a){return e.clearPageErrorMessage("email")}},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}})],1)])])},l=[],m=r(n,i,l,!1,null,null,null,null);const _=m.exports;export{_ as default}; diff --git a/public/build/assets/Edit.ada03e97.js b/public/build/assets/Edit.ada03e97.js new file mode 100644 index 00000000..477788e2 --- /dev/null +++ b/public/build/assets/Edit.ada03e97.js @@ -0,0 +1 @@ +import{C as a}from"./CheckboxGroup.7b759576.js";import{D as s}from"./DateTimePickerGroup.36fef719.js";import{I as i}from"./InputGroup.513e0dd4.js";import{_ as n}from"./vendor.21c2b6f5.js";import{n as o}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const l={name:"AdminCmsRedirectEdit",components:{CheckboxGroup:a,DateTimePickerGroup:s,InputGroup:i},layout:"admin-layout",props:{redirect:{type:Object,required:!0}},data(){return{formData:{}}},created(){this.formData=n.cloneDeep(this.redirect)},methods:{submit(){this.$inertia.put(this.$route("admin.cms.redirects.update",this.redirect.id),this.formData)}}};var u=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms_advanced.edit")?t("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit Redirect - "+e._s(e.redirect.url_from)+" ")]),e.userCan("cms_advanced.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.redirects.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("url_from"),"input-autocomplete":"url_from","input-id":"url_from","input-name":"url_from","input-required":!0,"input-type":"text","label-text":"URL From"},on:{errorHidden:function(r){return e.clearPageErrorMessage("url_from")}},model:{value:e.formData.url_from,callback:function(r){e.$set(e.formData,"url_from",r)},expression:"formData.url_from"}}),t("p",{staticClass:"mt-4 text-sm"},[e._v("Note: URL From should begin with '/'")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("url_to"),"input-autocomplete":"url_to","input-id":"url_to","input-name":"url_to","input-required":!0,"input-type":"text","label-text":"URL To"},on:{errorHidden:function(r){return e.clearPageErrorMessage("url_to")}},model:{value:e.formData.url_to,callback:function(r){e.$set(e.formData,"url_to",r)},expression:"formData.url_to"}})],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("checkbox-group",{attrs:{"error-message":e.getPageErrorMessage("is_enabled"),"input-id":"is_enabled","input-name":"is_enabled","label-text":"Enabled?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("is_enabled")}},model:{value:e.formData.is_enabled,callback:function(r){e.$set(e.formData,"is_enabled",r)},expression:"formData.is_enabled"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("is_permanent"),"input-id":"is_permanent","input-name":"is_permanent","label-text":"Permanent?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("is_permanent")}},model:{value:e.formData.is_permanent,callback:function(r){e.$set(e.formData,"is_permanent",r)},expression:"formData.is_permanent"}}),t("date-time-picker-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("published_at"),"input-id":"published_at","input-name":"published_at","label-text":"Publish Date"},on:{errorHidden:function(r){return e.clearPageErrorMessage("published_at")}},model:{value:e.formData.published_at,callback:function(r){e.$set(e.formData,"published_at",r)},expression:"formData.published_at"}}),t("date-time-picker-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("expired_at"),"input-id":"expired_at","input-name":"expired_at","label-text":"Expiry Date"},on:{errorHidden:function(r){return e.clearPageErrorMessage("expired_at")}},model:{value:e.formData.expired_at,callback:function(r){e.$set(e.formData,"expired_at",r)},expression:"formData.expired_at"}})],1)])])},m=[],d=o(l,u,m,!1,null,null,null,null);const v=d.exports;export{v as default}; diff --git a/public/build/assets/Edit.b00dcb2a.js b/public/build/assets/Edit.b00dcb2a.js new file mode 100644 index 00000000..35456d87 --- /dev/null +++ b/public/build/assets/Edit.b00dcb2a.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import"./vendor.21c2b6f5.js";import{n}from"./LogoLight.f7426689.js";const s={name:"AdminProfileIndex",layout:"admin-layout",components:{InputGroup:r},props:{auth:Object,profile:Object},data(){return{formData:{email:null,first_name:null,last_name:null}}},mounted(){this.formData.email=this.profile.email,this.formData.first_name=this.profile.first_name,this.formData.last_name=this.profile.last_name},methods:{submit(){this.$inertia.put(this.$route("admin.profile.update"),this.formData)}}};var i=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit Profile ")]),t.userCan("profile.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.profile.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save Changes ")])],1)],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("first_name")}},model:{value:t.formData.first_name,callback:function(a){t.$set(t.formData,"first_name",a)},expression:"formData.first_name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("last_name")}},model:{value:t.formData.last_name,callback:function(a){t.$set(t.formData,"last_name",a)},expression:"formData.last_name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"new_email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(a){t.$set(t.formData,"email",a)},expression:"formData.email"}})],1)])])},l=[],o=n(s,i,l,!1,null,null,null,null);const c=o.exports;export{c as default}; diff --git a/public/build/assets/Edit.c516894b.js b/public/build/assets/Edit.c516894b.js new file mode 100644 index 00000000..33ee90be --- /dev/null +++ b/public/build/assets/Edit.c516894b.js @@ -0,0 +1 @@ +import{_ as n}from"./vendor.21c2b6f5.js";import{I as l}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as o}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const m={name:"AdminUserEdit",components:{InlineCheckboxGroup:l,InputGroup:o},layout:"admin-layout",props:{selectableRoles:{required:!0,type:Object},user:{required:!0,type:Object}},data(){return{formData:null}},computed:{isCurrentUser(){try{return this.user.id===this.$page.props.auth.user.id}catch{return!1}},isSelectableRoles(){try{return Object.keys(this.selectableRoles).length>0}catch{return!1}}},created(){this.formData={email:this.user.email,first_name:this.user.first_name,last_name:this.user.last_name,roles:this.user.roles},Array.isArray(this.formData.roles)&&(this.formData.roles={}),this.initialiseRoles()},methods:{initialiseRoles(){n.forEach(this.selectableRoles,(r,e)=>{this.formData.roles.hasOwnProperty(e)||(this.formData.roles[e]=!1)})},submit(){this.$inertia.put(this.$route("admin.users.update",this.user.id),this.formData)}}};var c=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("users.edit")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit User "),t("span",{staticClass:"ml-2 opacity-75 text-sm"},[e._v(" "+e._s(e.user.name)+" ")])]),e.userCan("users.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.users.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"off","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("first_name")}},model:{value:e.formData.first_name,callback:function(a){e.$set(e.formData,"first_name",a)},expression:"formData.first_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"off","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("last_name")}},model:{value:e.formData.last_name,callback:function(a){e.$set(e.formData,"last_name",a)},expression:"formData.last_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"off","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return e.clearPageErrorMessage("email")}},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}})],1)]),e.isSelectableRoles?t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Roles ")]),t("div",{staticClass:"space-y-3"},e._l(e.selectableRoles,function(a,s){return t("inline-checkbox-group",{key:`user-role-${s}`,attrs:{"input-id":`user-role-${s}`,"input-name":`user-role-${s}`,"label-text":a},model:{value:e.formData.roles[s],callback:function(i){e.$set(e.formData.roles,s,i)},expression:"formData.roles[role_key]"}})}),1)])]):e._e()])},f=[],p=u(m,c,f,!1,null,null,null,null);const v=p.exports;export{v as default}; diff --git a/public/build/assets/Edit.d0258602.js b/public/build/assets/Edit.d0258602.js new file mode 100644 index 00000000..ec817f20 --- /dev/null +++ b/public/build/assets/Edit.d0258602.js @@ -0,0 +1 @@ +import{_ as s,s as i}from"./vendor.21c2b6f5.js";import{I as o}from"./InputGroup.513e0dd4.js";import{T as n,S as u}from"./app.c52b09a2.js";import{C as m}from"./CheckboxGroup.7b759576.js";import{D as l}from"./DateTimePickerGroup.36fef719.js";import{S as c}from"./SectionItemsEditor.845c8cbd.js";import{S as p}from"./SelectMultipleGroup.445aa1ac.js";import{n as g}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const d={name:"AdminEduProgrammeEdit",components:{SelectMultipleGroup:p,TextAreaGroup:n,SectionItemsEditor:c,InputGroup:o,CheckboxGroup:m,SelectGroup:u,DateTimePickerGroup:l},layout:"admin-layout",props:{programme:{type:Object,required:!0},currencies:{required:!0,type:Object|Array},courses:{required:!0,type:Object}},data(){return{autoUpdateSlug:!1,formData:{}}},created(){this.transformSections(),this.formData={id:this.programme.id,name:this.programme.name,slug:this.programme.slug,summary:this.programme.summary,description:this.programme.description,status:this.programme.status,available_from:this.programme.available_from,available_to:this.programme.available_to,content_length_video:this.programme.content_length_video,banner:this.programme.banner,primary_image:this.programme.primary_image,video_preview:this.programme.video_preview,price:this.programme.price,discount_price:this.programme.discount_price,currency:this.programme.currency,languages:this.programme.languages,has_webinars:this.programme.has_webinars,has_money_back_guarantee:this.programme.has_money_back_guarantee,has_certificate:this.programme.has_certificate,has_captions:this.programme.has_captions,has_lifetime_access:this.programme.has_lifetime_access,has_student_discount:this.programme.has_student_discount,has_pdfs:this.programme.has_pdfs,has_free_seo_exposure:this.programme.has_free_seo_exposure,courses:this.programme.courses}},methods:{transformSections(){let r=this.programme.courses;s.forEach(r,(e,t)=>{s.forEach(e.child_items,(a,b)=>{a.child_items=[]})}),this.programme.courses=r},onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(r){return!r||!r.length?"":i(r,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.edu.programmes.update",this.programme.id),this.formData)}}};var f=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("programmes.edit")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit - "),t("b",[e._v(e._s(e.programme.name))])]),e.userCan("programmes.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.programmes.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),e.userCan("programme.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.programmes.preview",e.programme.id)}},[t("icon-eye",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Preview ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v("General details")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"programme_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(a){e.$set(e.formData,"name",a)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"programme_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Slug"},on:{blur:e.onSlugBlur,errorHidden:function(a){return e.clearPageErrorMessage("slug")},input:e.onSlugInput},model:{value:e.formData.slug,callback:function(a){e.$set(e.formData,"slug",a)},expression:"formData.slug"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"programme_summary","input-id":"summary","input-name":"summary","input-required":!1,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(a){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(a){e.$set(e.formData,"summary",a)},expression:"formData.summary"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("description"),"input-autocomplete":"programme_description","input-id":"description","input-name":"description","input-required":!1,"input-type":"text","label-text":"Description"},on:{errorHidden:function(a){return e.clearPageErrorMessage("description")}},model:{value:e.formData.description,callback:function(a){e.$set(e.formData,"description",a)},expression:"formData.description"}})],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Availability details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_from"),"input-id":"available_from","input-name":"available_from","label-text":"Available From"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_from")}},model:{value:e.formData.available_from,callback:function(a){e.$set(e.formData,"available_from",a)},expression:"formData.available_from"}}),t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("available_to"),"input-id":"available_to","input-name":"available_to","label-text":"Available To"},on:{errorHidden:function(a){return e.clearPageErrorMessage("available_to")}},model:{value:e.formData.available_to,callback:function(a){e.$set(e.formData,"available_to",a)},expression:"formData.available_to"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Image & Video details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("content_length_video"),"input-autocomplete":"programme_content_length_video","input-id":"content_length_video","input-name":"content_length_video","input-required":!1,"input-type":"text","label-text":"Total content length in hours"},on:{errorHidden:function(a){return e.clearPageErrorMessage("content_length_video")}},model:{value:e.formData.content_length_video,callback:function(a){e.$set(e.formData,"content_length_video",a)},expression:"formData.content_length_video"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("banner"),"input-autocomplete":"banner","input-id":"banner","input-name":"banner","input-required":!1,"input-type":"text","label-text":"Banner"},on:{errorHidden:function(a){return e.clearPageErrorMessage("banner")}},model:{value:e.formData.banner,callback:function(a){e.$set(e.formData,"banner",a)},expression:"formData.banner"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("primary_image"),"input-autocomplete":"primary_image","input-id":"primary_image","input-name":"primary_image","input-required":!1,"input-type":"text","label-text":"Primary Image"},on:{errorHidden:function(a){return e.clearPageErrorMessage("primary_image")}},model:{value:e.formData.primary_image,callback:function(a){e.$set(e.formData,"primary_image",a)},expression:"formData.primary_image"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("video_preview"),"input-autocomplete":"video_preview","input-id":"video_preview","input-name":"video_preview","input-required":!1,"input-type":"text","label-text":"Video Preview"},on:{errorHidden:function(a){return e.clearPageErrorMessage("video_preview")}},model:{value:e.formData.video_preview,callback:function(a){e.$set(e.formData,"video_preview",a)},expression:"formData.video_preview"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("languages"),"input-autocomplete":"languages","input-id":"languages","input-name":"languages","input-required":!1,"input-type":"text","label-text":"The language/s of the content"},on:{errorHidden:function(a){return e.clearPageErrorMessage("languages")}},model:{value:e.formData.languages,callback:function(a){e.$set(e.formData,"languages",a)},expression:"formData.languages"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Price details")]),t("div",{staticClass:"grid grid-cols-3 gap-3"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("price"),"input-autocomplete":"price","input-id":"price","input-name":"price","input-required":!1,"input-type":"text","label-text":"Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("price")}},model:{value:e.formData.price,callback:function(a){e.$set(e.formData,"price",a)},expression:"formData.price"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("discount_price"),"input-autocomplete":"discount_price","input-id":"discount_price","input-name":"discount_price","input-required":!1,"input-type":"text","label-text":"Discount Price"},on:{errorHidden:function(a){return e.clearPageErrorMessage("discount_price")}},model:{value:e.formData.discount_price,callback:function(a){e.$set(e.formData,"discount_price",a)},expression:"formData.discount_price"}}),t("select-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Currency","input-any-option-enabled":!0,"input-any-option-label":"Currency","input-class":"form-control form-control-short","input-id":"currency","input-name":"currency","input-option-label-key":"name","input-option-value-key":"id","input-options":e.currencies},model:{value:e.formData.currency,callback:function(a){e.$set(e.formData,"currency",a)},expression:"formData.currency"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Features Offered")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_webinars"),"input-id":"has_webinars","input-name":"has_webinars","label-text":"Has Webinars?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_webinars")}},model:{value:e.formData.has_webinars,callback:function(a){e.$set(e.formData,"has_webinars",a)},expression:"formData.has_webinars"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_money_back_guarantee"),"input-id":"has_money_back_guarantee","input-name":"has_money_back_guarantee","label-text":"Has Money Back Guarantee?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_money_back_guarantee")}},model:{value:e.formData.has_money_back_guarantee,callback:function(a){e.$set(e.formData,"has_money_back_guarantee",a)},expression:"formData.has_money_back_guarantee"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_certificate"),"input-id":"has_certificate","input-name":"has_certificate","label-text":"Has Certificate?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_certificate")}},model:{value:e.formData.has_certificate,callback:function(a){e.$set(e.formData,"has_certificate",a)},expression:"formData.has_certificate"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_captions"),"input-id":"has_captions","input-name":"has_captions","label-text":"Videos have captions?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_captions")}},model:{value:e.formData.has_captions,callback:function(a){e.$set(e.formData,"has_captions",a)},expression:"formData.has_captions"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_lifetime_access"),"input-id":"has_lifetime_access","input-name":"has_lifetime_access","label-text":"Has Lifetime Access?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_lifetime_access")}},model:{value:e.formData.has_lifetime_access,callback:function(a){e.$set(e.formData,"has_lifetime_access",a)},expression:"formData.has_lifetime_access"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_student_discount"),"input-id":"has_student_discount","input-name":"has_student_discount","label-text":"Has Student Discount?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_student_discount")}},model:{value:e.formData.has_student_discount,callback:function(a){e.$set(e.formData,"has_student_discount",a)},expression:"formData.has_student_discount"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_pdfs"),"input-id":"has_pdfs","input-name":"has_pdfs","label-text":"Has PDFs?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_pdfs")}},model:{value:e.formData.has_pdfs,callback:function(a){e.$set(e.formData,"has_pdfs",a)},expression:"formData.has_pdfs"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("has_free_seo_exposure"),"input-id":"has_free_seo_exposure","input-name":"has_free_seo_exposure","label-text":"Has Free SEO Exposure?"},on:{errorHidden:function(a){return e.clearPageErrorMessage("has_free_seo_exposure")}},model:{value:e.formData.has_free_seo_exposure,callback:function(a){e.$set(e.formData,"has_free_seo_exposure",a)},expression:"formData.has_free_seo_exposure"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Courses")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("select-multiple-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Courses","input-any-option-enabled":!0,"input-any-option-label":"Courses","input-class":"form-control form-control-short","input-id":"courses","input-name":"courses","input-option-label-key":"name","input-option-value-key":"id","input-options":e.courses},model:{value:e.formData.courses,callback:function(a){e.$set(e.formData,"courses",a)},expression:"formData.courses"}})],1)])])},_=[],h=g(d,f,_,!1,null,null,null,null);const H=h.exports;export{H as default}; diff --git a/public/build/assets/Edit.d160eb80.js b/public/build/assets/Edit.d160eb80.js new file mode 100644 index 00000000..f130907b --- /dev/null +++ b/public/build/assets/Edit.d160eb80.js @@ -0,0 +1 @@ +import{_ as n}from"./vendor.21c2b6f5.js";import{I as l}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as o}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const m={name:"AdminUserEdit",components:{InlineCheckboxGroup:l,InputGroup:o},layout:"admin-layout",props:{selectableRoles:{required:!0,type:Object},user:{required:!0,type:Object}},data(){return{formData:null}},computed:{isCurrentUser(){try{return this.user.id===this.$page.props.auth.user.id}catch{return!1}},isSelectableRoles(){try{return Object.keys(this.selectableRoles).length>0}catch{return!1}}},created(){this.formData={email:this.user.email,first_name:this.user.first_name,last_name:this.user.last_name,roles:this.user.roles},Array.isArray(this.formData.roles)&&(this.formData.roles={}),this.initialiseRoles()},methods:{initialiseRoles(){n.forEach(this.selectableRoles,(r,e)=>{this.formData.roles.hasOwnProperty(e)||(this.formData.roles[e]=!1)})},submit(){this.$inertia.put(this.$route("landlord.admin.users.update",this.user.id),this.formData)}}};var c=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("users.edit")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit User "),t("span",{staticClass:"ml-2 opacity-75 text-sm"},[e._v(" "+e._s(e.user.name)+" ")])]),e.userCan("users.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("landlord.admin.users.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("input-group",{attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"off","input-autofocus":!0,"input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("first_name")}},model:{value:e.formData.first_name,callback:function(a){e.$set(e.formData,"first_name",a)},expression:"formData.first_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"off","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("last_name")}},model:{value:e.formData.last_name,callback:function(a){e.$set(e.formData,"last_name",a)},expression:"formData.last_name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"off","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return e.clearPageErrorMessage("email")}},model:{value:e.formData.email,callback:function(a){e.$set(e.formData,"email",a)},expression:"formData.email"}})],1)]),e.isSelectableRoles?t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[e._v(" Roles ")]),t("div",{staticClass:"space-y-3"},e._l(e.selectableRoles,function(a,s){return t("inline-checkbox-group",{key:`user-role-${s}`,attrs:{"input-id":`user-role-${s}`,"input-name":`user-role-${s}`,"label-text":a},model:{value:e.formData.roles[s],callback:function(i){e.$set(e.formData.roles,s,i)},expression:"formData.roles[role_key]"}})}),1)])]):e._e()])},f=[],p=u(m,c,f,!1,null,null,null,null);const v=p.exports;export{v as default}; diff --git a/public/build/assets/Edit.d1a7952b.js b/public/build/assets/Edit.d1a7952b.js new file mode 100644 index 00000000..568e94c0 --- /dev/null +++ b/public/build/assets/Edit.d1a7952b.js @@ -0,0 +1 @@ +import"./vendor.21c2b6f5.js";import{I as n}from"./InlineCheckboxGroup.b3aa2b58.js";import{I as r}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";import"./checkbox-form-group.99a615f1.js";const s={name:"AdminCrmContactEdit",components:{InlineCheckboxGroup:n,InputGroup:r},layout:"admin-layout",props:{contact:{required:!0,type:Object}},data(){return{formData:null}},created(){this.formData={email:this.contact.email,first_name:this.contact.first_name,last_name:this.contact.last_name,telephone:this.contact.telephone,title:this.contact.title,marketing_email:!!this.contact.marketing_email,marketing_sms:!!this.contact.marketing_sms,marketing_telephone:!!this.contact.marketing_telephone}},methods:{submit(){this.$inertia.put(this.$route("admin.crm.contacts.update",this.contact.id),this.formData)}}};var o=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("crm_contacts.edit")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit Contact "),e("span",{staticClass:"ml-2 opacity-75 text-sm"},[t._v(" "+t._s(t.contact.name_with_title)+" ")])]),t.userCan("crm_contacts.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.crm.contacts.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save Changes ")])],1)],1):t._e(),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("input-group",{attrs:{"error-message":t.getPageErrorMessage("title"),"input-autocomplete":"title","input-autofocus":!0,"input-id":"title","input-name":"title","input-type":"text","label-text":"Title"},on:{errorHidden:function(a){return t.clearPageErrorMessage("title")}},model:{value:t.formData.title,callback:function(a){t.$set(t.formData,"title",a)},expression:"formData.title"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("first_name"),"input-autocomplete":"first_name","input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"text","label-text":"First Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("first_name")}},model:{value:t.formData.first_name,callback:function(a){t.$set(t.formData,"first_name",a)},expression:"formData.first_name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("last_name"),"input-autocomplete":"last_name","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"text","label-text":"Last Name"},on:{errorHidden:function(a){return t.clearPageErrorMessage("last_name")}},model:{value:t.formData.last_name,callback:function(a){t.$set(t.formData,"last_name",a)},expression:"formData.last_name"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"email","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(a){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(a){t.$set(t.formData,"email",a)},expression:"formData.email"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("telephone"),"input-autocomplete":"telephone","input-id":"telephone","input-max-length":"20","input-name":"telephone","input-type":"telephone","label-text":"Telephone"},on:{errorHidden:function(a){return t.clearPageErrorMessage("telephone")}},model:{value:t.formData.telephone,callback:function(a){t.$set(t.formData,"telephone",a)},expression:"formData.telephone"}})],1)]),e("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[e("div",{staticClass:"block px-6 w-full"},[e("p",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[t._v(" Marketing Preferences ")]),e("div",{staticClass:"space-y-4"},[e("inline-checkbox-group",{attrs:{"input-id":"marketing-email","input-name":"marketing-email","label-text":"Email"},model:{value:t.formData.marketing_email,callback:function(a){t.$set(t.formData,"marketing_email",a)},expression:"formData.marketing_email"}}),e("inline-checkbox-group",{attrs:{"input-id":"marketing-sms","input-name":"marketing-sms","label-text":"SMS"},model:{value:t.formData.marketing_sms,callback:function(a){t.$set(t.formData,"marketing_sms",a)},expression:"formData.marketing_sms"}}),e("inline-checkbox-group",{attrs:{"input-id":"marketing-telephone","input-name":"marketing-telephone","label-text":"Telephone"},model:{value:t.formData.marketing_telephone,callback:function(a){t.$set(t.formData,"marketing_telephone",a)},expression:"formData.marketing_telephone"}})],1)])])])},l=[],m=i(s,o,l,!1,null,null,null,null);const _=m.exports;export{_ as default}; diff --git a/public/build/assets/Edit.f1dc4dd8.js b/public/build/assets/Edit.f1dc4dd8.js new file mode 100644 index 00000000..67326b60 --- /dev/null +++ b/public/build/assets/Edit.f1dc4dd8.js @@ -0,0 +1 @@ +import{_ as s,s as i}from"./vendor.21c2b6f5.js";import{I as o}from"./InputGroup.513e0dd4.js";import{W as n,T as u,S as l}from"./app.c52b09a2.js";import{C as m}from"./CheckboxGroup.7b759576.js";import{D as d}from"./DateTimePickerGroup.36fef719.js";import{S as c}from"./SectionItemsEditor.845c8cbd.js";import{n as p}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";import"./vuedraggable.umd.700457d3.js";const f={name:"AdminEduWebinarEdit",components:{WysiwygField:n,TextAreaGroup:u,SectionItemsEditor:c,InputGroup:o,CheckboxGroup:m,SelectGroup:l,DateTimePickerGroup:d},layout:"admin-layout",props:{webinar:{type:Object,required:!0},statuses:{required:!0,type:Object|Array},courses:{required:!0,type:Object|Array}},data(){return{autoUpdateSlug:!1,formData:{},sectionOptions:null}},computed:{courseOptions(){if(!this.courses.length)return;let a={};return s.forEach(this.courses,e=>{a[e.id]=e.name}),a}},created(){this.formData={id:this.webinar.id,name:this.webinar.name,slug:this.webinar.slug,summary:this.webinar.summary,description:this.webinar.description,creator_id:this.webinar.creator_id,course_id:this.webinar.course_id,section_id:this.webinar.section_id,status:this.webinar.status,date_time_from:this.webinar.date_time_from,date_time_to:this.webinar.date_time_to,webinar_url:this.webinar.webinar_url,can_users_reserve:this.webinar.can_users_reserve,is_recorded:this.webinar.is_recorded,recording_url:this.webinar.recording_url,templateField:{type:"wysiwyg"}}},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name),this.computedUrl=this.formData.slug)},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},onSlugInput(){this.autoUpdateSlug=!1,this.computedUrl=this.formData.slug},slugify(a){return!a||!a.length?"":i(a,{lower:!0})},getSectionOptions(){if(!this.courses.length)return;let a={};s.forEach(this.courses,e=>{s.forEach(e.sections,t=>{t.course_id==this.formData.course_id&&(a[t.id]=t.title)})}),this.sectionOptions=a},submit(){this.$inertia.put(this.$route("admin.edu.webinars.update",this.webinar.id),this.formData)}},watch:{["formData.course_id"](a){a!==null&&this.getSectionOptions()}}};var _=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("webinars.edit")?t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit - "),t("b",[e._v(e._s(e.webinar.name))])]),e.userCan("webinars.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.edu.webinars.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save ")])],1)],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h2",[e._v(" Course and Section ")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("select-group",{staticClass:"mt-4 md:flex-1",attrs:{"label-hidden":!0,"label-text":"Course","input-any-option-enabled":!0,"input-any-option-label":"Course","input-class":"form-control form-control-short","input-id":"course","input-name":"course","input-option-label-key":"name","input-option-value-key":"id","input-options":e.courseOptions,"input-required":!0},model:{value:e.formData.course_id,callback:function(r){e.$set(e.formData,"course_id",r)},expression:"formData.course_id"}}),t("select-group",{staticClass:"mt-4 md:flex-1",attrs:{"label-hidden":!0,"label-text":"Section","input-any-option-enabled":!0,"input-any-option-label":"Section","input-class":"form-control form-control-short","input-id":"section","input-name":"section","input-option-label-key":"name","input-option-value-key":"id","input-options":e.sectionOptions},model:{value:e.formData.section_id,callback:function(r){e.$set(e.formData,"section_id",r)},expression:"formData.section_id"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v(" General details ")]),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"webinar_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Name"},on:{errorHidden:function(r){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(r){e.$set(e.formData,"name",r)},expression:"formData.name"}}),t("select-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Status","input-any-option-enabled":!0,"input-any-option-label":"Status","input-class":"form-control form-control-short","input-id":"status","input-name":"status","input-option-label-key":"name","input-option-value-key":"id","input-options":e.statuses},model:{value:e.formData.status,callback:function(r){e.$set(e.formData,"status",r)},expression:"formData.status"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("summary"),"input-autocomplete":"webinar_summary","input-id":"summary","input-name":"summary","input-required":!1,"input-type":"text","label-text":"Summary"},on:{errorHidden:function(r){return e.clearPageErrorMessage("summary")}},model:{value:e.formData.summary,callback:function(r){e.$set(e.formData,"summary",r)},expression:"formData.summary"}}),t("div",{staticClass:"mt-4"},[t("label",[e._v("Description")]),t("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:e.formData.description,callback:function(r){e.$set(e.formData,"description",r)},expression:"formData.description"}})],1)],1),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Availability details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("date_time_from"),"input-id":"date_time_from","input-name":"date_time_from","label-text":"Available From"},on:{errorHidden:function(r){return e.clearPageErrorMessage("date_time_from")}},model:{value:e.formData.date_time_from,callback:function(r){e.$set(e.formData,"date_time_from",r)},expression:"formData.date_time_from"}}),t("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("date_time_to"),"input-id":"date_time_to","input-name":"date_time_to","label-text":"Available To"},on:{errorHidden:function(r){return e.clearPageErrorMessage("date_time_to")}},model:{value:e.formData.date_time_to,callback:function(r){e.$set(e.formData,"date_time_to",r)},expression:"formData.date_time_to"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("More Details")]),t("div",{staticClass:"grid grid-cols-2 gap-2"},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("webinar_url"),"input-autocomplete":"webinar_url","input-id":"webinar_url","input-name":"webinar_url","input-required":!1,"input-type":"text","label-text":"Webinar URL"},on:{errorHidden:function(r){return e.clearPageErrorMessage("webinar_url")}},model:{value:e.formData.webinar_url,callback:function(r){e.$set(e.formData,"webinar_url",r)},expression:"formData.webinar_url"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("recording_url"),"input-autocomplete":"recording_url","input-id":"recording_url","input-name":"recording_url","input-required":!1,"input-type":"text","label-text":"Recording URL"},on:{errorHidden:function(r){return e.clearPageErrorMessage("recording_url")}},model:{value:e.formData.recording_url,callback:function(r){e.$set(e.formData,"recording_url",r)},expression:"formData.recording_url"}})],1)]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Features")]),t("div",{staticClass:"grid grid-cols-4 gap-4"},[t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("is_recorded"),"input-id":"is_recorded","input-name":"is_recorded","label-text":"Is Recorded?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("is_recorded")}},model:{value:e.formData.is_recorded,callback:function(r){e.$set(e.formData,"is_recorded",r)},expression:"formData.is_recorded"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("can_users_reserve"),"input-id":"can_users_reserve","input-name":"can_users_reserve","label-text":"Can users reserve access in advance?"},on:{errorHidden:function(r){return e.clearPageErrorMessage("can_users_reserve")}},model:{value:e.formData.can_users_reserve,callback:function(r){e.$set(e.formData,"can_users_reserve",r)},expression:"formData.can_users_reserve"}})],1)])])},g=[],b=p(f,_,g,!1,null,null,null,null);const S=b.exports;export{S as default}; diff --git a/public/build/assets/Edit.f690a4d6.js b/public/build/assets/Edit.f690a4d6.js new file mode 100644 index 00000000..c818e5c5 --- /dev/null +++ b/public/build/assets/Edit.f690a4d6.js @@ -0,0 +1 @@ +import{I as s}from"./InputGroup.513e0dd4.js";import{W as n,T as r,S as o}from"./app.c52b09a2.js";import{C as i}from"./CheckboxGroup.7b759576.js";import{n as l}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";import"./ConfirmationModal.242a99d0.js";import"./checkbox-form-group.99a615f1.js";const m={name:"AdminEduAnnouncementEdit",components:{WysiwygField:n,TextAreaGroup:r,InputGroup:s,CheckboxGroup:i,SelectGroup:o},layout:"admin-layout",props:{announcement:{type:Object,required:!0},statuses:{required:!0,type:Object|Array}},data(){return{formData:{}}},created(){this.formData={title:this.announcement.title,description:this.announcement.description,platform:this.announcement.platform,email:this.announcement.email,sms:this.announcement.sms,status:this.announcement.status}},methods:{submit(){this.$inertia.put(this.$route("admin.edu.announcements.update",this.announcement.id),this.formData)}}};var u=function(){var t=this,e=t._self._c;return e("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t.userCan("announcements.edit")?e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Edit - "),e("b",[t._v(t._s(t.announcement.title))])]),t.userCan("announcements.view")?e("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:t.$route("admin.edu.announcements.index")}},[e("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Back ")])],1):t._e(),e("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[e("icon-save",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Save ")])],1)],1):t._e(),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[e("h2",[t._v("General details")]),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("title"),"input-autocomplete":"title_name","input-id":"title","input-name":"title","input-required":!0,"input-type":"text","label-text":"Title"},on:{errorHidden:function(a){return t.clearPageErrorMessage("title")}},model:{value:t.formData.title,callback:function(a){t.$set(t.formData,"title",a)},expression:"formData.title"}}),e("div",{staticClass:"mt-4"},[e("label",[t._v("Description")]),e("wysiwyg-field",{attrs:{"input-autofocus":!0},model:{value:t.formData.description,callback:function(a){t.$set(t.formData,"description",a)},expression:"formData.description"}})],1),e("select-group",{staticClass:"mt-4",attrs:{"label-hidden":!0,"label-text":"Status","input-any-option-enabled":!0,"input-any-option-label":"Status","input-class":"form-control form-control-short","input-id":"status","input-name":"status","input-option-label-key":"name","input-option-value-key":"id","input-options":t.statuses},model:{value:t.formData.status,callback:function(a){t.$set(t.formData,"status",a)},expression:"formData.status"}})],1),e("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[e("h2",[t._v("Communication Channels")]),e("div",{staticClass:"grid grid-cols-4 gap-4"},[e("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("platform"),"input-id":"platform","input-name":"platform","label-text":"Show to user on the platform?"},on:{errorHidden:function(a){return t.clearPageErrorMessage("platform")}},model:{value:t.formData.platform,callback:function(a){t.$set(t.formData,"platform",a)},expression:"formData.platform"}}),e("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-id":"email","input-name":"email","label-text":"Send to users via Email?"},on:{errorHidden:function(a){return t.clearPageErrorMessage("email")}},model:{value:t.formData.email,callback:function(a){t.$set(t.formData,"email",a)},expression:"formData.email"}}),e("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("sms"),"input-id":"sms","input-name":"sms","label-text":"Send to users via SMS?"},on:{errorHidden:function(a){return t.clearPageErrorMessage("sms")}},model:{value:t.formData.sms,callback:function(a){t.$set(t.formData,"sms",a)},expression:"formData.sms"}})],1)])])},c=[],p=l(m,u,c,!1,null,null,null,null);const _=p.exports;export{_ as default}; diff --git a/public/build/assets/Edit.f9606cf6.js b/public/build/assets/Edit.f9606cf6.js new file mode 100644 index 00000000..e11eea44 --- /dev/null +++ b/public/build/assets/Edit.f9606cf6.js @@ -0,0 +1 @@ +import{_ as s,s as i}from"./vendor.21c2b6f5.js";import{I as n}from"./InputGroup.513e0dd4.js";import{S as l}from"./app.c52b09a2.js";import{T as o}from"./TemplateFieldEditor.7dee26e3.js";import{n as p}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";import"./vuedraggable.umd.700457d3.js";import"./CheckboxGroup.7b759576.js";import"./checkbox-form-group.99a615f1.js";const u={name:"AdminCmsTemplateEdit",components:{InputGroup:n,SelectGroup:l,TemplateFieldEditor:o},layout:"admin-layout",props:{repeaterTemplateFieldTypes:{type:Object,required:!0},template:{type:Object,required:!0},templateFieldSettings:{type:Object,required:!0},templateFieldTypes:{type:Object,required:!0},templateTypes:{type:Object,required:!0}},data(){return{autoUpdateSlug:!1,formData:{}}},computed:{allowedTemplateFieldTypes(){return this.formData.type==="repeater"?this.repeaterTemplateFieldTypes:this.templateFieldTypes}},created(){this.formData=s.cloneDeep(this.template)},methods:{onNameInput(){!this.autoUpdateSlug||(this.formData.slug=this.slugify(this.formData.name))},onSlugBlur(){this.formData.slug=this.slugify(this.formData.slug)},slugify(r){return!r||!r.length?"":i(r,{lower:!0})},submit(){this.$inertia.put(this.$route("admin.cms.templates.update",this.template.id),this.formData)}}};var m=function(){var e=this,t=e._self._c;return t("form",{staticClass:"max-w-5xl mx-auto",attrs:{autocomplete:"off"},on:{submit:function(a){return a.preventDefault(),e.submit.apply(null,arguments)}}},[e.userCan("cms_advanced.edit")?t("div",{staticClass:"flex flex-row items-center mb-6 sticky-menu"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Edit Template - "+e._s(e.template.name)+" ")]),e.userCan("cms_advanced.view")?t("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center mr-2",attrs:{href:e.$route("admin.cms.templates.index")}},[t("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Back ")])],1):e._e(),t("button",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{type:"submit"}},[t("icon-save",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Save Changes ")])],1)],1):e._e(),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("select-group",{attrs:{"error-message":e.getPageErrorMessage("type"),"label-text":"Template Type","input-any-option-enabled":!0,"input-any-option-label":"Please select a template type","input-autofocus":!0,"input-disabled":!0,"input-id":"type","input-name":"type","input-options":e.templateTypes,"input-required":!0},on:{errorHidden:function(a){return e.clearPageErrorMessage("type")}},model:{value:e.formData.type,callback:function(a){e.$set(e.formData,"type",a)},expression:"formData.type"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("name"),"input-autocomplete":"template_name","input-id":"name","input-name":"name","input-required":!0,"input-type":"text","label-text":"Template Name"},on:{errorHidden:function(a){return e.clearPageErrorMessage("name")},input:e.onNameInput},model:{value:e.formData.name,callback:function(a){e.$set(e.formData,"name",a)},expression:"formData.name"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("slug"),"input-autocomplete":"template_slug","input-id":"slug","input-name":"slug","input-required":!0,"input-type":"text","label-text":"Template Slug"},on:{blur:e.onSlugBlur,errorHidden:function(a){return e.clearPageErrorMessage("slug")}},model:{value:e.formData.slug,callback:function(a){e.$set(e.formData,"slug",a)},expression:"formData.slug"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("description"),"input-autocomplete":"template_description","input-id":"description","input-name":"description","input-type":"text","label-text":"Description"},on:{errorHidden:function(a){return e.clearPageErrorMessage("description")}},model:{value:e.formData.description,callback:function(a){e.$set(e.formData,"description",a)},expression:"formData.description"}})],1)]),t("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t("div",{staticClass:"block px-6 w-full"},[t("template-field-editor",{attrs:{"is-editing":!0,"template-field-settings":e.templateFieldSettings,"template-field-types":e.allowedTemplateFieldTypes},model:{value:e.formData.template_fields,callback:function(a){e.$set(e.formData,"template_fields",a)},expression:"formData.template_fields"}})],1)])])},d=[],c=p(u,m,d,!1,null,null,null,null);const C=c.exports;export{C as default}; diff --git a/public/build/assets/Email.287632b0.js b/public/build/assets/Email.287632b0.js new file mode 100644 index 00000000..2031aba9 --- /dev/null +++ b/public/build/assets/Email.287632b0.js @@ -0,0 +1 @@ +import{I as a}from"./InputGroup.513e0dd4.js";import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const i={name:"StudentAuthPasswordEmail",components:{InputGroup:a},layout:"auth-layout",data(){return{form:{email:""}}},methods:{submit(){this.$inertia.post(this.$route("student.password.email"),this.form)}}};var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"auth-card-container"},[e("div",{staticClass:"auth-card"},[e("h1",{staticClass:"auth-header"},[t._v(" "+t._s(t.__("messages.password-reset"))+" ")]),t.$page.props.flash.status?e("p",{staticClass:"pb-8 px-6 text-center text-green-700"},[t._v(" "+t._s(t.$page.props.flash.status)+" ")]):e("form",{staticClass:"px-6",on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"email","input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":t.__("messages.email")},on:{errorHidden:function(s){return t.clearPageErrorMessage("email")}},model:{value:t.form.email,callback:function(s){t.$set(t.form,"email",s)},expression:"form.email"}}),e("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[e("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[t._v(" "+t._s(t.__("messages.send-password-reset-link"))+" ")])])],1)]),e("div",{staticClass:"flex justify-between mt-4"},[e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("student.login")}},[t._v(" "+t._s(t.__("messages.login"))+" ")]),t.$routeCheck("student.register")?e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("student.register")}},[t._v(" "+t._s(t.__("messages.register"))+" ")]):t._e()],1)])},o=[],l=r(i,n,o,!1,null,null,null,null);const d=l.exports;export{d as default}; diff --git a/public/build/assets/Email.7525ef1b.js b/public/build/assets/Email.7525ef1b.js new file mode 100644 index 00000000..c1cc69fa --- /dev/null +++ b/public/build/assets/Email.7525ef1b.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"AuthPasswordEmail",components:{InputGroup:r},layout:"auth-layout",data(){return{form:{email:""}}},methods:{submit(){this.$inertia.post(this.$route("password.email"),this.form)}}};var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"auth-card-container"},[e("div",{staticClass:"auth-card"},[e("h1",{staticClass:"auth-header"},[t._v(" Password Reset ")]),t.$page.props.flash.status?e("p",{staticClass:"pb-8 px-6 text-center text-green-700"},[t._v(" "+t._s(t.$page.props.flash.status)+" ")]):e("form",{staticClass:"px-6",on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"email","input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(s){return t.clearPageErrorMessage("email")}},model:{value:t.form.email,callback:function(s){t.$set(t.form,"email",s)},expression:"form.email"}}),t._m(0)],1)]),e("div",{staticClass:"flex justify-between mt-4"},[e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("login")}},[t._v(" Login ")]),t.$routeCheck("register")?e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("register")}},[t._v(" Register ")]):t._e()],1)])},l=[function(){var a=this,t=a._self._c;return t("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[t("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[a._v(" Send Password Reset Link ")])])}],u=i(n,o,l,!1,null,null,null,null);const f=u.exports;export{f as default}; diff --git a/public/build/assets/Error.1c1a5db4.js b/public/build/assets/Error.1c1a5db4.js new file mode 100644 index 00000000..57d5e10c --- /dev/null +++ b/public/build/assets/Error.1c1a5db4.js @@ -0,0 +1 @@ +import{n as o}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"WebsiteError",layout:"website-layout",props:{status:{required:!0,type:Number}},computed:{errorButtonClass(){return this.isAllowedError?{403:"bg-theme-warning text-theme-warning-contrast hover:bg-theme-warning-contrast hover:text-theme-warning",404:"bg-theme-info text-theme-info-contrast hover:bg-theme-info-contrast hover:text-theme-info",500:"bg-theme-danger text-theme-danger-contrast hover:bg-theme-danger-contrast hover:text-theme-danger"}[this.status]:"bg-theme-danger text-theme-danger-contrast hover:bg-theme-danger-contrast hover:text-theme-danger"},errorDescription(){return this.isAllowedError?{403:"Sorry, you are forbidden from accessing this page.",404:"Sorry, the page you are looking for could not be found.",500:"Whoops, something went wrong on our servers. We are looking into it.",503:"Sorry, we are doing some maintenance. Please check back soon."}[this.status]:"Whoops, something went wrong on our servers. We are looking into it."},errorTitleCase(){return this.isAllowedError?{403:"text-theme-warning-contrast",404:"text-theme-info-contrast",500:"text-theme-danger-contrast",503:"text-theme-primary"}[this.status]:"text-theme-danger-contrast"},isAllowedError(){return[403,404,500,503].indexOf(this.status)>=0}}};var s=function(){var e=this,t=e._self._c;return t("section",{staticClass:"flex flex-col items-center justify-center h-full min-h-screen p-6"},[t("div",{staticClass:"text-center"},[t("h1",{staticClass:"font-black text-7xl text-center",class:e.errorTitleCase},[e._v(" "+e._s(e.isAllowedError?e.status:"Error")+" ")]),t("p",{staticClass:"font-semibold mt-4 max-w-full text-center text-theme-base-subtle-contrast text-lg w-72"},[e._v(" "+e._s(e.errorDescription)+" ")]),e.status!==503?t("inertia-link",{staticClass:"button font-semibold inline-block mt-8 mx-auto px-12 text-lg",class:e.errorButtonClass,attrs:{href:"/"}},[e._v(" Go Home ")]):e._e()],1)])},a=[],i=o(n,s,a,!1,null,null,null,null);const h=i.exports;export{h as default}; diff --git a/public/build/assets/Error.79c094aa.js b/public/build/assets/Error.79c094aa.js new file mode 100644 index 00000000..82b066f1 --- /dev/null +++ b/public/build/assets/Error.79c094aa.js @@ -0,0 +1 @@ +import{n as o}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const s={name:"AdminError",layout:"admin-layout",props:{status:{required:!0,type:Number}},computed:{errorDescription(){return this.isAllowedError?{403:"Sorry, you are forbidden from accessing this page.",404:"Sorry, the page you are looking for could not be found.",500:"Whoops, something went wrong on our servers. We are looking into it.",503:"Sorry, we are doing some maintenance. Please check back soon."}[this.status]:"Whoops, something went wrong on our servers. We are looking into it."},errorTitleCase(){return this.isAllowedError?{403:"text-theme-warning-contrast",404:"text-theme-info-contrast",500:"text-theme-danger-contrast",503:"text-theme-primary"}[this.status]:"text-theme-danger-contrast"},isAllowedError(){return[403,404,500,503].indexOf(this.status)>=0}}};var n=function(){var e=this,r=e._self._c;return r("section",{staticClass:"flex flex-col items-center justify-center p-6 h-full"},[r("div",[r("h1",{staticClass:"font-black text-7xl text-center",class:e.errorTitleCase},[e._v(" "+e._s(e.isAllowedError?e.status:"Error")+" ")]),r("p",{staticClass:"font-semibold mt-4 max-w-full text-center text-theme-base-subtle-contrast text-lg w-72"},[e._v(" "+e._s(e.errorDescription)+" ")])])])},a=[],i=o(s,n,a,!1,null,null,null,null);const u=i.exports;export{u as default}; diff --git a/public/build/assets/Error.8da45f54.js b/public/build/assets/Error.8da45f54.js new file mode 100644 index 00000000..57d5e10c --- /dev/null +++ b/public/build/assets/Error.8da45f54.js @@ -0,0 +1 @@ +import{n as o}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"WebsiteError",layout:"website-layout",props:{status:{required:!0,type:Number}},computed:{errorButtonClass(){return this.isAllowedError?{403:"bg-theme-warning text-theme-warning-contrast hover:bg-theme-warning-contrast hover:text-theme-warning",404:"bg-theme-info text-theme-info-contrast hover:bg-theme-info-contrast hover:text-theme-info",500:"bg-theme-danger text-theme-danger-contrast hover:bg-theme-danger-contrast hover:text-theme-danger"}[this.status]:"bg-theme-danger text-theme-danger-contrast hover:bg-theme-danger-contrast hover:text-theme-danger"},errorDescription(){return this.isAllowedError?{403:"Sorry, you are forbidden from accessing this page.",404:"Sorry, the page you are looking for could not be found.",500:"Whoops, something went wrong on our servers. We are looking into it.",503:"Sorry, we are doing some maintenance. Please check back soon."}[this.status]:"Whoops, something went wrong on our servers. We are looking into it."},errorTitleCase(){return this.isAllowedError?{403:"text-theme-warning-contrast",404:"text-theme-info-contrast",500:"text-theme-danger-contrast",503:"text-theme-primary"}[this.status]:"text-theme-danger-contrast"},isAllowedError(){return[403,404,500,503].indexOf(this.status)>=0}}};var s=function(){var e=this,t=e._self._c;return t("section",{staticClass:"flex flex-col items-center justify-center h-full min-h-screen p-6"},[t("div",{staticClass:"text-center"},[t("h1",{staticClass:"font-black text-7xl text-center",class:e.errorTitleCase},[e._v(" "+e._s(e.isAllowedError?e.status:"Error")+" ")]),t("p",{staticClass:"font-semibold mt-4 max-w-full text-center text-theme-base-subtle-contrast text-lg w-72"},[e._v(" "+e._s(e.errorDescription)+" ")]),e.status!==503?t("inertia-link",{staticClass:"button font-semibold inline-block mt-8 mx-auto px-12 text-lg",class:e.errorButtonClass,attrs:{href:"/"}},[e._v(" Go Home ")]):e._e()],1)])},a=[],i=o(n,s,a,!1,null,null,null,null);const h=i.exports;export{h as default}; diff --git a/public/build/assets/Error.df4fa7f5.js b/public/build/assets/Error.df4fa7f5.js new file mode 100644 index 00000000..82b066f1 --- /dev/null +++ b/public/build/assets/Error.df4fa7f5.js @@ -0,0 +1 @@ +import{n as o}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const s={name:"AdminError",layout:"admin-layout",props:{status:{required:!0,type:Number}},computed:{errorDescription(){return this.isAllowedError?{403:"Sorry, you are forbidden from accessing this page.",404:"Sorry, the page you are looking for could not be found.",500:"Whoops, something went wrong on our servers. We are looking into it.",503:"Sorry, we are doing some maintenance. Please check back soon."}[this.status]:"Whoops, something went wrong on our servers. We are looking into it."},errorTitleCase(){return this.isAllowedError?{403:"text-theme-warning-contrast",404:"text-theme-info-contrast",500:"text-theme-danger-contrast",503:"text-theme-primary"}[this.status]:"text-theme-danger-contrast"},isAllowedError(){return[403,404,500,503].indexOf(this.status)>=0}}};var n=function(){var e=this,r=e._self._c;return r("section",{staticClass:"flex flex-col items-center justify-center p-6 h-full"},[r("div",[r("h1",{staticClass:"font-black text-7xl text-center",class:e.errorTitleCase},[e._v(" "+e._s(e.isAllowedError?e.status:"Error")+" ")]),r("p",{staticClass:"font-semibold mt-4 max-w-full text-center text-theme-base-subtle-contrast text-lg w-72"},[e._v(" "+e._s(e.errorDescription)+" ")])])])},a=[],i=o(s,n,a,!1,null,null,null,null);const u=i.exports;export{u as default}; diff --git a/public/build/assets/FormFieldEditor.b347e16b.css b/public/build/assets/FormFieldEditor.b347e16b.css new file mode 100644 index 00000000..dbd640e4 --- /dev/null +++ b/public/build/assets/FormFieldEditor.b347e16b.css @@ -0,0 +1 @@ +.ghost[data-v-55efaccb]{opacity:.35}.flip-field-move[data-v-55efaccb]{transition:transform .5s}.no-move[data-v-55efaccb]{transition:transform 0s} diff --git a/public/build/assets/FormFieldEditor.e5430ae4.js b/public/build/assets/FormFieldEditor.e5430ae4.js new file mode 100644 index 00000000..a887cb86 --- /dev/null +++ b/public/build/assets/FormFieldEditor.e5430ae4.js @@ -0,0 +1 @@ +import{_ as l,s as m}from"./vendor.21c2b6f5.js";import{d as u}from"./vuedraggable.umd.700457d3.js";import{C as F}from"./CheckboxGroup.7b759576.js";import{I as d}from"./InputGroup.513e0dd4.js";import{n as s}from"./LogoLight.f7426689.js";import{S as p}from"./app.c52b09a2.js";const n={model:{prop:"fieldSettings"},props:{defaultSettings:{required:!0,type:Array|Object},fieldSettings:{required:!0,type:Array|Object},formField:{required:!0,type:Object}},data(){return{editableFieldSettings:{}}},computed:{isDefaultSettings(){try{return!this.defaultSettings||Array.isArray(this.defaultSettings)?!1:Object.keys(this.defaultSettings).length}catch{return!1}}},mounted(){this.editableFieldSettings=l.cloneDeep(this.fieldSettings),this.initialiseSettings()},methods:{initialiseSettings(){(!this.editableFieldSettings||Array.isArray(this.editableFieldSettings))&&(this.editableFieldSettings={}),this.isDefaultSettings&&l.forEach(this.defaultSettings,(i,e)=>{this.editableFieldSettings.hasOwnProperty(e)||(this.editableFieldSettings[e]=i)})},onEditableSettingsChange(){this.$emit("input",this.editableFieldSettings)},onFieldSettingsChange(){this.editableFieldSettings=l.cloneDeep(this.fieldSettings)}},watch:{fieldSettings:{handler:"onFieldSettingsChange"}}},f={name:"FormFieldNumberSettings",mixins:[n],components:{InputGroup:d}};var c=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`form-field-${e.formField.order}-min`,"input-name":`form-field-${e.formField.order}-min`,"input-type":"number","label-text":"Minimum Value"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.min,callback:function(r){e.$set(e.editableFieldSettings,"min",r)},expression:"editableFieldSettings.min"}}),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`form-field-${e.formField.order}-max`,"input-name":`form-field-${e.formField.order}-max`,"input-type":"number","label-text":"Maximum Value"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.max,callback:function(r){e.$set(e.editableFieldSettings,"max",r)},expression:"editableFieldSettings.max"}})],1)],2)},g=[],b=s(f,c,g,!1,null,null,null,null);const h=b.exports,y={name:"FormFieldTextAreaSettings",mixins:[n],components:{InputGroup:d}};var x=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`form-field-${e.formField.order}-max-length`,"input-name":`form-field-${e.formField.order}-max-length`,"input-type":"number","label-text":"Max Length"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.max_length,callback:function(r){e.$set(e.editableFieldSettings,"max_length",r)},expression:"editableFieldSettings.max_length"}}),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`form-field-${e.formField.order}-rows`,"input-name":`form-field-${e.formField.order}-rows`,"input-type":"text","label-text":"Rows"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.rows,callback:function(r){e.$set(e.editableFieldSettings,"rows",r)},expression:"editableFieldSettings.rows"}})],2)},S=[],v=s(y,x,S,!1,null,null,null,null);const $=v.exports,C={name:"FormFieldTextSettings",mixins:[n],components:{InputGroup:d}};var w=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("input-group",{staticClass:"mt-4",attrs:{"input-id":`form-field-${e.formField.order}-max-length`,"input-name":`form-field-${e.formField.order}-max-length`,"input-type":"number","label-text":"Max Length"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.max_length,callback:function(r){e.$set(e.editableFieldSettings,"max_length",r)},expression:"editableFieldSettings.max_length"}})],2)},E=[],T=s(C,w,E,!1,null,null,null,null);const D=T.exports,q={name:"FormField",components:{CheckboxGroup:F,InputGroup:d,NumberSettings:h,SelectGroup:p,TextAreaSettings:$,TextSettings:D},model:{prop:"formField"},props:{crmFormFieldTypes:{},errorMessageKeyPrefix:{default:"formFields",type:String},formField:{required:!0,type:Object},formFieldSettings:{required:!0,type:Object},formFieldTypes:{required:!0,type:Object},isAutofocusDisabled:{default:!1,type:Boolean},isViewOnly:{default:!1,type:Boolean}},data(){return{autoUpdateSlug:!0,editableFormField:{is_required:!1,name:"",order:0,settings:{},slug:"",type:""}}},computed:{defaultFieldSettings(){if(!this.editableFormField.type)return!1;try{return this.formFieldSettings[this.editableFormField.type]}catch{return{}}},errorMessageKey(){return this.errorMessageKeyPrefix+"."+this.editableFormField.order+"."},isCrmFieldType(){try{return this.editableFormField?Object.keys(this.crmFormFieldTypes).indexOf(this.editableFormField.type)>=0:!1}catch{return!1}},selectableFormFieldTypes(){let i={};return this.isCrmFieldType&&(i[this.editableFormField.type]=this.crmFormFieldTypes[this.editableFormField.type]),i={...i,...this.formFieldTypes},i},settingsComponent(){if(!this.editableFormField.type)return!1;switch(this.editableFormField.type){case"number":return"number-settings";case"text":return"text-settings";case"textarea":return"text-area-settings";default:return!1}}},created(){this.editableFormField=_.cloneDeep(this.formField),this.editableFormField.slug&&this.editableFormField.slug!==""&&(this.autoUpdateSlug=!1)},methods:{clearErrorMessage(i){this.clearPageErrorMessage(this.errorMessageKey+i)},getErrorMessage(i){let e=this.getPageErrorMessage(this.errorMessageKey+i);return e=e.replace(this.errorMessageKey,""),e},onEditableFormFieldUpdate(){this.isCrmFieldType&&this.$set(this.editableFormField,"slug",this.editableFormField.type)},onFormFieldUpdate(){this.editableFormField=_.cloneDeep(this.formField)},onNameInput(){if(!this.autoUpdateSlug||this.isCrmFieldType){this.updateFormField();return}this.editableFormField.slug=this.slugify(this.editableFormField.name),this.updateFormField()},onSlugBlur(){this.editableFormField.slug=this.slugify(this.editableFormField.slug),this.updateFormField()},onSlugInput(){this.autoUpdateSlug=!1},slugify(i){return!i||!i.length?"":m(i,{lower:!0,replacement:"_"})},updateFormField(){this.$emit("input",_.cloneDeep(this.editableFormField))}},watch:{editableFormField:{deep:!0,handler:"onEditableFormFieldUpdate"},formField:{deep:!0,handler:"onFormFieldUpdate"}}};var M=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("select-group",{staticClass:"flex-1",attrs:{"error-message":e.getErrorMessage("type"),"label-text":"Field Type","input-any-option-enabled":!0,"input-any-option-label":"Please select a field type","input-autofocus":!e.isAutofocusDisabled,"input-id":`form-field-${e.formField.order}-type`,"input-name":`form-field-${e.formField.order}-type`,"input-options":e.selectableFormFieldTypes,"input-required":!0},on:{errorHidden:function(r){return e.clearErrorMessage("type")},input:e.updateFormField},model:{value:e.editableFormField.type,callback:function(r){e.$set(e.editableFormField,"type",r)},expression:"editableFormField.type"}}),t("input-group",{staticClass:"flex-1 mt-4 md:mt-0",attrs:{"input-disabled":!0,"input-id":`form-field-${e.formField.order}-order`,"input-name":`form-field-${e.formField.order}-order`,"input-type":"number","label-text":"Order"},on:{input:e.updateFormField},model:{value:e.editableFormField.order,callback:function(r){e.$set(e.editableFormField,"order",r)},expression:"editableFormField.order"}})],1),t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("input-group",{staticClass:"flex-1 mt-4",attrs:{"error-message":e.getErrorMessage("name"),"input-id":`template-field-${e.formField.order}-name`,"input-name":`template-field-${e.formField.order}-name`,"input-required":!0,"input-type":"text","label-text":"Field Name"},on:{errorHidden:function(r){return e.clearErrorMessage("name")},input:e.onNameInput},model:{value:e.editableFormField.name,callback:function(r){e.$set(e.editableFormField,"name",r)},expression:"editableFormField.name"}}),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"error-message":e.getErrorMessage("slug"),"input-disabled":e.isCrmFieldType,"input-id":`template-field-${e.formField.order}-slug`,"input-name":`template-field-${e.formField.order}-slug`,"input-required":!0,"input-type":"text","label-text":"Field Slug"},on:{blur:e.onSlugBlur,input:e.onSlugInput},model:{value:e.editableFormField.slug,callback:function(r){e.$set(e.editableFormField,"slug",r)},expression:"editableFormField.slug"}})],1),t("checkbox-group",{staticClass:"mt-4",attrs:{"input-id":`template-field-${e.formField.order}-is_required`,"input-name":`template-field-${e.formField.order}-is_required`,"error-message":e.getErrorMessage("is_required"),"label-text":"Required?"},on:{input:e.updateFormField},model:{value:e.editableFormField.is_required,callback:function(r){e.$set(e.editableFormField,"is_required",r)},expression:"editableFormField.is_required"}}),e.settingsComponent?t(e.settingsComponent,{tag:"component",attrs:{"default-settings":e.defaultFieldSettings,"form-field":e.editableFormField},on:{input:e.updateFormField},model:{value:e.editableFormField.settings,callback:function(r){e.$set(e.editableFormField,"settings",r)},expression:"editableFormField.settings"}},[t("p",{staticClass:"font-semibold mt-6 text-theme-base-subtle-contrast"},[e._v(" Settings ")])]):e._e()],1)},k=[],O=s(q,M,k,!1,null,null,null,null);const A=O.exports;const j={name:"FormFieldEditor",components:{draggable:u,FormField:A},model:{prop:"formFields"},props:{crmFormFieldTypes:{type:Object,required:!0},formFields:{required:!0,type:Array},formFieldSettings:{type:Object,required:!0},isEditing:{default:!1,type:Boolean},isViewOnly:{default:!1,type:Boolean},standardFormFieldTypes:{type:Object,required:!0}},data(){return{editableFormFields:[],isAutofocusDisabled:!1,isDragging:!1}},computed:{selectedFormFieldTypes(){let i=new Set;return l.forEach(this.editableFormFields,e=>{e.type&&i.add(e.type)}),i},selectableFormFieldTypes(){let i={};return l.forEach(this.crmFormFieldTypes,(e,t)=>{this.selectedFormFieldTypes.has(t)||(i[t]=e)}),{...i,...this.standardFormFieldTypes}}},created(){this.isEditing&&(this.isAutofocusDisabled=!0),this.editableFormFields=l.cloneDeep(this.formFields)},methods:{addFormField(){this.isAutofocusDisabled=!1,this.editableFormFields.push({is_required:!1,name:"",order:this.formFields.length,settings:{},slug:"",type:""}),this.updateFormFields()},deleteFormField(i){try{this.editableFormFields.splice(i,1),this.reorderFormFields()}catch(e){this.$errorToast("Failed to delete field"),console.log(e)}},onDraggableEnd(){this.isDragging=!1,this.reorderFormFields()},onDraggableSort(){this.$page.props.errors={}},onDraggableStart(){this.isDragging=!0},onFormFieldsChange(i){this.editableFormFields=l.cloneDeep(i)},reorderFormFields(){try{if(!this.editableFormFields.length){this.updateFormFields();return}this.editableFormFields.forEach((i,e)=>{this.editableFormFields[e].order=e}),this.updateFormFields()}catch(i){throw"Failed to reorder fields: "+i}},updateFormFields(){this.$emit("input",l.cloneDeep(this.editableFormFields))}},watch:{formFields:{handler:"onFormFieldsChange"}}};var U=function(){var e=this,t=e._self._c;return t("div",[e._m(0),e.editableFormFields.length?t("draggable",{staticClass:"mt-6",attrs:{animation:200,disabled:e.isViewOnly,"ghost-class":"ghost",handle:".draggable-handle"},on:{end:e.onDraggableEnd,sort:e.onDraggableSort,start:e.onDraggableStart},model:{value:e.editableFormFields,callback:function(r){e.editableFormFields=r},expression:"editableFormFields"}},[t("transition-group",{attrs:{name:e.isDragging?null:"flip-field",type:"transition"}},e._l(e.editableFormFields,function(r,a){return t("article",{key:`form-field-${a}`,staticClass:"border-2 border-theme-base-subtle mt-4 overflow-hidden rounded"},[t("header",{staticClass:"draggable-handle bg-theme-base-subtle cursor-move flex flex-row items-center px-4 py-3"},[t("icon-grid-dots",{staticClass:"w-5"}),t("span",{staticClass:"flex-1 pl-4"},[r.name&&r.name.length?[e._v(" "+e._s(r.name)+" ")]:[e._v(" New Form Field ")]],2)],1),t("p",{staticClass:"p-4"},[t("form-field",{attrs:{"crm-form-field-types":e.crmFormFieldTypes,"form-field-types":e.selectableFormFieldTypes,"form-field-settings":e.formFieldSettings,"is-autofocus-disabled":e.isAutofocusDisabled},on:{input:e.updateFormFields},model:{value:e.editableFormFields[a],callback:function(o){e.$set(e.editableFormFields,a,o)},expression:"editableFormFields[index]"}})],1),t("footer",{staticClass:"flex flex-row items-center px-4 py-3"},[t("button",{staticClass:"button button-small bg-transparent border border-theme-base-subtle-contrast flex flex-row items-center ml-auto text-sm text-theme-base-subtle-contrast hover:bg-theme-danger-contrast hover:text-theme-danger hover:border-theme-danger-contrast",attrs:{type:"button"},on:{click:function(o){return e.deleteFormField(a)}}},[t("icon-trash",{staticClass:"h-4 w-4"}),t("span",{staticClass:"pl-2"},[e._v("Delete")])],1)])])}),0)],1):t("p",{staticClass:"bg-theme-base-subtle mt-6 px-4 py-3 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No form fields ")]),t("div",{staticClass:"flex flex-row items-center mt-6"},[t("button",{staticClass:"button button-primary-subtle button-small ml-auto text-sm",attrs:{type:"button"},on:{click:e.addFormField}},[e._v(" Add Field ")])])],1)},N=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"flex flex-row items-center"},[e("span",{staticClass:"font-medium mb-4 text-theme-base-contrast tracking-wider"},[i._v(" Form Fields ")])])}],R=s(j,U,N,!1,null,"55efaccb",null,null);const H=R.exports;export{H as F}; diff --git a/public/build/assets/GenericModal.3f75002a.js b/public/build/assets/GenericModal.3f75002a.js new file mode 100644 index 00000000..8ab27679 --- /dev/null +++ b/public/build/assets/GenericModal.3f75002a.js @@ -0,0 +1 @@ +import{m as a}from"./vendor.21c2b6f5.js";import{n as s}from"./LogoLight.f7426689.js";const l={name:"GenericModal",mixins:[a],props:{componentName:{default:"generic-modal",type:String},showModal:{default:!0,type:Boolean}},methods:{closeModal(){this.$emit("closeModal")},onShowModal(){try{let t=document.getElementsByTagName("body")[0];this.showModal?t.classList.add("overflow-y-hidden"):t.classList.remove("overflow-y-hidden")}catch(t){console.error(t)}}},watch:{showModal:{handler:"onShowModal"}}};var n=function(){var e=this,o=e._self._c;return e.showModal?o("transition",{attrs:{name:"fade"}},[o("div",{staticClass:"bg-gray-800 bg-opacity-75 fixed flex h-full inset-0 items-center justify-center w-full p-4 z-30",class:e.componentName},[o("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeModal,expression:"closeModal"}],staticClass:"bg-theme-card max-h-full max-w-full overflow-y-auto relative rounded shadow-md text-theme-card-contrast w-96"},[o("div",{staticClass:"flex flex-row justify-end p-2"},[o("button",{staticClass:"flex items-center justify-center ml-auto p-1 rounded ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle",attrs:{type:"button"},on:{click:e.closeModal}},[o("icon-close",{staticClass:"h-5 w-5"})],1)]),e._t("default")],2)])]):e._e()},r=[],i=s(l,n,r,!1,null,null,null,null);const m=i.exports;export{m as G}; diff --git a/public/build/assets/Index.17940c7c.js b/public/build/assets/Index.17940c7c.js new file mode 100644 index 00000000..80149750 --- /dev/null +++ b/public/build/assets/Index.17940c7c.js @@ -0,0 +1 @@ +import{n as s}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"AdminHomeIndex",layout:"admin-layout"};var a=function(){var t=this;return t._self._c,t._m(0)},l=[function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Dashboard ")])]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold text-gray-850"},[e._v(" Welcome ")]),t("p",{staticClass:"mt-2"},[e._v(" Let's build something great. ")])])])}],o=s(n,a,l,!1,null,null,null,null);const m=o.exports;export{m as default}; diff --git a/public/build/assets/Index.1c1af3f0.js b/public/build/assets/Index.1c1af3f0.js new file mode 100644 index 00000000..4af4b367 --- /dev/null +++ b/public/build/assets/Index.1c1af3f0.js @@ -0,0 +1 @@ +import{_ as a,O as i}from"./vendor.21c2b6f5.js";import{C as l}from"./ConfirmationModal.242a99d0.js";import{I as o}from"./InputGroup.513e0dd4.js";import{n as r}from"./LogoLight.f7426689.js";const u={name:"AdminCmsPageIndex",components:{ConfirmationModal:l,InputGroup:o},layout:"admin-layout",props:{menus:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{menu_name:"",menu_slug:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,menuToDelete:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.menuToDelete.name+"'?"}catch{return"Do you really want to delete this menu?"}},showPagination(){try{return this.menus.pagination.last_page>1}catch{return!1}},showMenuActions(){return this.userCan("cms.edit")||this.userCan("cms.delete")},menusData(){return!this.menus||!this.menus.data||this.menus.data.length<1?!1:this.menus.data}},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.menuToDelete=null)},checkDelete(n){this.showDeleteModal=!0,this.menuToDelete=n},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one menu at a time.");this.$inertia.delete(this.$route("admin.cms.menus.destroy",this.menuToDelete.id),{only:["flash","menus"]}),this.menuToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:a.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.menusData)||i.get(this.$route("admin.cms.menus.index"),this.editableSearchOptions,{only:["menus"],preserveState:!0})},500),setSearchOptions(n={}){let e={menu_name:"",menu_slug:"",per_page:15};try{a.forEach(n,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=a.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var c=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Menu ")]),e.userCan("cms.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.cms.menus.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Menu ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"menu_name_search","input-class":"form-control form-control-short","input-id":"menu_name","input-name":"menu_name","input-placeholder":"Menu Name","input-type":"text","label-hidden":!0,"label-text":"Menu Name"},model:{value:e.editableSearchOptions.menu_name,callback:function(s){e.$set(e.editableSearchOptions,"menu_name",s)},expression:"editableSearchOptions.menu_name"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"menu_slug_search","input-class":"form-control form-control-short","input-id":"menu_slug","input-name":"menu_slug","input-placeholder":"Menu Slug","input-type":"text","label-hidden":!0,"label-text":"Menu Slug"},model:{value:e.editableSearchOptions.menu_slug,callback:function(s){e.$set(e.editableSearchOptions,"menu_slug",s)},expression:"editableSearchOptions.menu_slug"}})],1)]),e.menusData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Slug")]),e.showMenuActions?t("th"):e._e()])]),t("tbody",e._l(e.menusData,function(s,h){return t("tr",{key:`menu-${s.id}`},[t("td",[e._v(" "+e._s(s.name)+" ")]),t("td",[e._v(" "+e._s(s.slug)+" ")]),e.showMenuActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("cms.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.cms.menus.edit",s.id),title:"Edit Menu"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("cms.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Menu"},on:{click:function(p){return e.checkDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.menus.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No menus ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}})],2)])},m=[],d=r(u,c,m,!1,null,null,null,null);const g=d.exports;export{g as default}; diff --git a/public/build/assets/Index.2e286002.js b/public/build/assets/Index.2e286002.js new file mode 100644 index 00000000..1cd9ec38 --- /dev/null +++ b/public/build/assets/Index.2e286002.js @@ -0,0 +1 @@ +import{_ as i,O as l}from"./vendor.21c2b6f5.js";import{C as n}from"./ConfirmationModal.242a99d0.js";import{I as o}from"./InputGroup.513e0dd4.js";import{S as r}from"./app.c52b09a2.js";import{n as c}from"./LogoLight.f7426689.js";const u={name:"AdminCmsPageIndex",components:{ConfirmationModal:n,InputGroup:o,SelectGroup:r},layout:"admin-layout",props:{layouts:{required:!0,type:Object|Array},pages:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array},templates:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{layout_id:"",per_page:15,page_name:"",page_slug:"",template_id:""},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,pageToDelete:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.pageToDelete.name+"'?"}catch{return"Do you really want to delete this page?"}},isLayouts(){try{return Object.keys(this.layouts).length}catch{return!1}},isTemplates(){try{return Object.keys(this.templates).length}catch{return!1}},showPagination(){try{return this.pages.pagination.last_page>1}catch{return!1}},showPageActions(){return this.userCan("cms.edit")||this.userCan("cms.delete")},pagesData(){return!this.pages||!this.pages.data||this.pages.data.length<1?!1:this.pages.data}},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.pageToDelete=null)},checkDelete(s){this.showDeleteModal=!0,this.pageToDelete=s},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one page at a time.");this.$inertia.delete(this.$route("admin.cms.pages.destroy",this.pageToDelete.id),{only:["flash","pages"]}),this.pageToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:i.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.pagesData)||l.get(this.$route("admin.cms.pages.index"),this.editableSearchOptions,{only:["pages"],preserveState:!0})},500),setSearchOptions(s={}){let e={layout_id:"",per_page:15,page_name:"",page_slug:"",template_type:""};try{i.forEach(s,(t,a)=>{e[a]=t})}catch(t){console.log(t)}this.editableSearchOptions=i.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var p=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Page ")]),e.userCan("cms.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.cms.pages.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Page ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-row flex-wrap items-center -mx-4 -my-2 pt-4 px-6"},[t("div",{staticClass:"my-2 w-full sm:w-1/2 lg:w-1/4"},[t("input-group",{staticClass:"mx-4",attrs:{"input-autocomplete":"page_name_search","input-class":"form-control form-control-short","input-id":"page_name","input-name":"page_name","input-placeholder":"Page Name","input-type":"text","label-hidden":!0,"label-text":"Page Name"},model:{value:e.editableSearchOptions.page_name,callback:function(a){e.$set(e.editableSearchOptions,"page_name",a)},expression:"editableSearchOptions.page_name"}})],1),t("div",{staticClass:"my-2 w-full sm:w-1/2 lg:w-1/4"},[t("input-group",{staticClass:"mx-4",attrs:{"input-autocomplete":"page_slug_search","input-class":"form-control form-control-short","input-id":"page_slug","input-name":"page_slug","input-placeholder":"Page Slug","input-type":"text","label-hidden":!0,"label-text":"Page Slug"},model:{value:e.editableSearchOptions.page_slug,callback:function(a){e.$set(e.editableSearchOptions,"page_slug",a)},expression:"editableSearchOptions.page_slug"}})],1),e.isLayouts?t("div",{staticClass:"my-2 w-full sm:w-1/2 lg:w-1/4"},[t("select-group",{staticClass:"mx-4",attrs:{"label-hidden":!0,"label-text":"Layout","input-any-option-enabled":!0,"input-any-option-label":"Layout","input-class":"form-control form-control-short","input-id":"template_id","input-name":"template_id","input-option-label-key":"name","input-option-value-key":"id","input-options":e.layouts},model:{value:e.editableSearchOptions.layout_id,callback:function(a){e.$set(e.editableSearchOptions,"layout_id",a)},expression:"editableSearchOptions.layout_id"}})],1):e._e(),e.isTemplates?t("div",{staticClass:"my-2 w-full sm:w-1/2 lg:w-1/4"},[t("select-group",{staticClass:"mx-4",attrs:{"label-hidden":!0,"label-text":"Template","input-any-option-enabled":!0,"input-any-option-label":"Template","input-class":"form-control form-control-short","input-id":"template_id","input-name":"template_id","input-option-label-key":"name","input-option-value-key":"id","input-options":e.templates},model:{value:e.editableSearchOptions.template_id,callback:function(a){e.$set(e.editableSearchOptions,"template_id",a)},expression:"editableSearchOptions.template_id"}})],1):e._e()]),e.pagesData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",{staticClass:"indicator-column"}),t("th",[e._v("Name")]),t("th",[e._v("URL")]),t("th",{staticClass:"text-center"},[e._v("Enabled")]),t("th",{staticClass:"text-center"},[e._v("Publish / Expiry Date")]),t("th",[e._v("Layout / Template")]),e.showPageActions?t("th"):e._e()])]),t("tbody",e._l(e.pagesData,function(a,h){return t("tr",{key:`page-${a.id}`},[t("td",{staticClass:"indicator-column"},[t("div",{staticClass:"h-3 rounded-full w-3",class:{"bg-theme-success-contrast":a.url.is_live,"bg-theme-danger-contrast":!a.url.is_live}})]),t("td",[e._v(" "+e._s(a.name)+" "),t("br"),t("span",{staticClass:"text-sm text-theme-base-subtle-contrast"},[e._v(" "+e._s(a.slug)+" ")])]),t("td",{staticClass:"text-sm"},[e._v(" "+e._s(a.url.url_full)+" ")]),t("td",[t("div",{staticClass:"flex flex-row justify-center"},[a.url.is_enabled?t("icon-check",{staticClass:"h-4 w-4"}):t("icon-x",{staticClass:"h-4 w-4"})],1)]),t("td",{staticClass:"text-sm"},[t("div",{staticClass:"flex flex-col opacity-75 space-y-1"},[t("span",{staticClass:"text-center"},[a.url.published_at?[e._v(" "+e._s(e._f("humanFriendlyDateTime")(a.url.published_at))+" ")]:[e._v(" - ")]],2),t("span",{staticClass:"text-center"},[a.url.expired_at?[e._v(" "+e._s(e._f("humanFriendlyDateTime")(a.url.expired_at))+" ")]:[e._v(" - ")]],2)])]),t("td",{staticClass:"text-sm text-theme-base-subtle-contrast"},[e._v(" "+e._s(a.layout.name)+" "),t("br"),e._v(" "+e._s(a.template.name)+" ")]),e.showPageActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("cms.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.cms.pages.edit",a.id),title:"Edit Page"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("cms.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Page"},on:{click:function(f){return e.checkDelete(a)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.pages.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No pages ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}})],2)])},d=[],m=c(u,p,d,!1,null,null,null,null);const v=m.exports;export{v as default}; diff --git a/public/build/assets/Index.2e6ffc28.js b/public/build/assets/Index.2e6ffc28.js new file mode 100644 index 00000000..3d48f9d4 --- /dev/null +++ b/public/build/assets/Index.2e6ffc28.js @@ -0,0 +1 @@ +import{_ as i,O as a}from"./vendor.21c2b6f5.js";import{C as o}from"./ConfirmationModal.242a99d0.js";import{I as n}from"./InputGroup.513e0dd4.js";import{S as l}from"./app.c52b09a2.js";import{n as c}from"./LogoLight.f7426689.js";const d={name:"AdminCmsRedirectsIndex",components:{ConfirmationModal:o,InputGroup:n,SelectGroup:l},layout:"admin-layout",props:{searchOptions:{required:!0,type:Object|Array},redirects:{required:!0,type:Object}},data(){return{editableSearchOptions:{per_page:15,redirects_url_from:"",redirects_url_to:""},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,redirectsToDelete:null}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.redirectsToDelete.url_from+"'?"}catch{return"Do you really want to delete this redirects?"}},showPagination(){try{return this.redirects.pagination.last_page>1}catch{return!1}},showRedirectActions(){return this.userCan("cms_advanced.edit")||this.userCan("cms_advanced.delete")},redirectsData(){return!this.redirects||!this.redirects.data||this.redirects.data.length<1?!1:this.redirects.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.redirectsToDelete=null)},checkDelete(s){this.showDeleteModal=!0,this.redirectsToDelete=s},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one redirects at a time.");this.$inertia.delete(this.$route("admin.cms.redirects.destroy",this.redirectsToDelete.id),{only:["flash","redirects"]}),this.redirectsToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:i.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.redirectsData)||a.get(this.$route("admin.cms.redirects.index"),this.editableSearchOptions,{only:["redirects"],preserveState:!0})},500),setSearchOptions(s={}){let e={per_page:15,redirects_url_from:"",redirects_url_to:""};try{i.forEach(s,(t,r)=>{e[r]=t})}catch(t){console.log(t)}this.editableSearchOptions=i.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var u=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Redirects ")]),e.userCan("cms_advanced.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.cms.redirects.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Redirect ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"redirect_url_from","input-class":"form-control form-control-short","input-id":"redirect_url_from","input-name":"redirect_url_from","input-placeholder":"Redirect From","input-type":"text","label-hidden":!0,"label-text":"Redirect From"},model:{value:e.editableSearchOptions.redirect_url_from,callback:function(r){e.$set(e.editableSearchOptions,"redirect_url_from",r)},expression:"editableSearchOptions.redirect_url_from"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"redirect_url_to","input-class":"form-control form-control-short","input-id":"redirect_url_to","input-name":"redirect_url_to","input-placeholder":"Redirect To","input-type":"text","label-hidden":!0,"label-text":"Redirect To"},model:{value:e.editableSearchOptions.redirect_url_to,callback:function(r){e.$set(e.editableSearchOptions,"redirect_url_to",r)},expression:"editableSearchOptions.redirect_url_to"}})],1)]),e.redirectsData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",{staticClass:"indicator-column"}),t("th",[e._v("From")]),t("th",[e._v("To")]),t("th",[e._v("Enabled")]),t("th",[e._v("Permanent")]),t("th",[e._v("Publish Date")]),t("th",[e._v("Expiry Date")]),e.showRedirectActions?t("th"):e._e()])]),t("tbody",e._l(e.redirectsData,function(r,p){return t("tr",{key:`redirect-${r.id}`},[t("td",{staticClass:"indicator-column"},[t("div",{staticClass:"h-3 rounded-full w-3",class:{"bg-theme-success-contrast":r.is_active,"bg-theme-danger-contrast":!r.is_active}})]),t("td",[e._v(" "+e._s(r.url_from)+" ")]),t("td",[e._v(" "+e._s(r.url_to)+" ")]),t("td",[e._v(" "+e._s(r.is_enabled?"Yes":"No")+" ")]),t("td",[e._v(" "+e._s(r.is_permanent?"Yes":"No")+" ")]),t("td",[r.published_at?[e._v(" "+e._s(e._f("humanFriendlyDateTime")(r.published_at))+" ")]:[e._v(" - ")]],2),t("td",[r.expired_at?[e._v(" "+e._s(e._f("humanFriendlyDateTime")(r.expired_at))+" ")]:[e._v(" - ")]],2),e.showRedirectActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("cms_advanced.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.cms.redirects.edit",r.id),title:"Edit Redirect"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("cms_advanced.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Redirect"},on:{click:function(_){return e.checkDelete(r)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.redirects.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No redirects ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}})],2)])},m=[],h=c(d,u,m,!1,null,null,null,null);const y=h.exports;export{y as default}; diff --git a/public/build/assets/Index.3f6690d4.js b/public/build/assets/Index.3f6690d4.js new file mode 100644 index 00000000..4543790f --- /dev/null +++ b/public/build/assets/Index.3f6690d4.js @@ -0,0 +1 @@ +import{_ as s,O as i}from"./vendor.21c2b6f5.js";import{C as n}from"./ConfirmationModal.242a99d0.js";import{I as o}from"./InputGroup.513e0dd4.js";import{S as r}from"./app.c52b09a2.js";import{n as p}from"./LogoLight.f7426689.js";const m={name:"AdminCmsTemplateIndex",components:{ConfirmationModal:n,InputGroup:o,SelectGroup:r},layout:"admin-layout",props:{searchOptions:{required:!0,type:Object|Array},templates:{required:!0,type:Object},templateTypes:{required:!0,type:Object}},data(){return{editableSearchOptions:{per_page:15,template_name:"",template_slug:"",template_type:""},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,templateToDelete:null}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.templateToDelete.name+"'?"}catch{return"Do you really want to delete this template?"}},showPagination(){try{return this.templates.pagination.last_page>1}catch{return!1}},showTemplateActions(){return this.userCan("cms_advanced.edit")||this.userCan("cms_advanced.delete")},templatesData(){return!this.templates||!this.templates.data||this.templates.data.length<1?!1:this.templates.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.templateToDelete=null)},checkDelete(l){this.showDeleteModal=!0,this.templateToDelete=l},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one template at a time.");this.$inertia.delete(this.$route("admin.cms.templates.destroy",this.templateToDelete.id),{only:["flash","templates"]}),this.templateToDelete=null,this.showDeleteModal=!1},getTemplateTypeLabel(l){try{return this.templateTypes.hasOwnProperty(l)?this.templateTypes[l]:l}catch{return l}},onSearchOptionsUpdate:s.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.templatesData)||i.get(this.$route("admin.cms.templates.index"),this.editableSearchOptions,{only:["templates"],preserveState:!0})},500),setSearchOptions(l={}){let e={per_page:15,template_name:"",template_slug:"",template_type:""};try{s.forEach(l,(t,a)=>{e[a]=t})}catch(t){console.log(t)}this.editableSearchOptions=s.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var c=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Templates ")]),e.userCan("cms_advanced.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.cms.templates.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Template ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"template_name_search","input-class":"form-control form-control-short","input-id":"template_name","input-name":"template_name","input-placeholder":"Template Name","input-type":"text","label-hidden":!0,"label-text":"Template Name"},model:{value:e.editableSearchOptions.template_name,callback:function(a){e.$set(e.editableSearchOptions,"template_name",a)},expression:"editableSearchOptions.template_name"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"template_slug_search","input-class":"form-control form-control-short","input-id":"template_slug","input-name":"template_slug","input-placeholder":"Template Slug","input-type":"text","label-hidden":!0,"label-text":"Template Slug"},model:{value:e.editableSearchOptions.template_slug,callback:function(a){e.$set(e.editableSearchOptions,"template_slug",a)},expression:"editableSearchOptions.template_slug"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("select-group",{attrs:{"label-hidden":!0,"label-text":"Template Type","input-any-option-enabled":!0,"input-any-option-label":"Template Type","input-class":"form-control form-control-short","input-id":"template_type","input-name":"template_type","input-options":e.templateTypes},model:{value:e.editableSearchOptions.template_type,callback:function(a){e.$set(e.editableSearchOptions,"template_type",a)},expression:"editableSearchOptions.template_type"}})],1)]),e.templatesData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Slug")]),t("th",[e._v("Type")]),e.showTemplateActions?t("th"):e._e()])]),t("tbody",e._l(e.templatesData,function(a,h){return t("tr",{key:`template-${a.id}`},[t("td",[e._v(" "+e._s(a.name)+" ")]),t("td",[e._v(" "+e._s(a.slug)+" ")]),t("td",[e._v(" "+e._s(e.getTemplateTypeLabel(a.type))+" ")]),e.showTemplateActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("cms_advanced.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.cms.templates.edit",a.id),title:"Edit Template"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("cms_advanced.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Template"},on:{click:function(f){return e.checkDelete(a)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.templates.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No templates ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}})],2)])},d=[],u=p(m,c,d,!1,null,null,null,null);const v=u.exports;export{v as default}; diff --git a/public/build/assets/Index.4223f71d.js b/public/build/assets/Index.4223f71d.js new file mode 100644 index 00000000..c78ec3d1 --- /dev/null +++ b/public/build/assets/Index.4223f71d.js @@ -0,0 +1 @@ +import{n as e}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const a={name:"AdminProfileIndex",layout:"admin-layout",props:{auth:Object,profile:Object}};var l=function(){var t=this,s=t._self._c;return s("section",{staticClass:"max-w-5xl mx-auto"},[t.userCan("profile.edit")?s("div",{staticClass:"flex flex-row items-center mb-6"},[s("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" My Profile ")]),s("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center",attrs:{href:t.$route("landlord.admin.profile.edit")}},[s("icon-edit",{staticClass:"w-5 md:mr-2"}),s("span",{staticClass:"hidden md:inline"},[t._v(" Edit Profile ")])],1)],1):t._e(),s("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("p",[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" First Name ")]),t._v(" "+t._s(t.profile.first_name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Last Name ")]),t._v(" "+t._s(t.profile.last_name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Email ")]),t._v(" "+t._s(t.profile.email)+" ")])])])])},i=[],n=e(a,l,i,!1,null,null,null,null);const c=n.exports;export{c as default}; diff --git a/public/build/assets/Index.431eb08b.css b/public/build/assets/Index.431eb08b.css new file mode 100644 index 00000000..4f496aad --- /dev/null +++ b/public/build/assets/Index.431eb08b.css @@ -0,0 +1 @@ +.image-container[data-v-b33b6ac8]{aspect-ratio:16/9} diff --git a/public/build/assets/Index.43f325e1.js b/public/build/assets/Index.43f325e1.js new file mode 100644 index 00000000..cb130ea4 --- /dev/null +++ b/public/build/assets/Index.43f325e1.js @@ -0,0 +1 @@ +import{_ as a,O as l}from"./vendor.21c2b6f5.js";import{C as c}from"./ConfirmationModal.242a99d0.js";import{I as u}from"./InputGroup.513e0dd4.js";import{aB as h,aC as d,n as m}from"./LogoLight.f7426689.js";const f={name:"AdminEDUCourseIndex",components:{IconCheck:h,IconSave:d,ConfirmationModal:c,InputGroup:u},layout:"admin-layout",props:{courses:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{course_name:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,isLoadingPublish:!1,showDeleteModal:!1,itemToDelete:null,showConfirmPublishModal:null,itemToPublish:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{publishModalText(){try{return"Do you really want to publish '"+this.itemToPublish.name+"'?"}catch{return"Do you really want to perform this action?"}},deleteModalText(){try{return"Do you really want to delete '"+this.itemToDelete.name+"'?"}catch{return"Do you really want to delete this?"}},showPagination(){try{return this.courses.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("courses.edit")||this.userCan("courses.delete")},coursesData(){return!this.courses||!this.courses.data||this.courses.data.length<1?!1:this.courses.data}},methods:{checkPublishCourse(o){this.showConfirmPublishModal=!0,this.itemToPublish=o},confirmPublish(){if(this.isLoadingPublish)return this.$errorToast("It's only possible to publish one item at a time.");this.$inertia.patch(this.$route("admin.edu.courses.publish",this.itemToPublish.id),{only:["flash","courses"]}),this.itemToPublish=null,this.showConfirmPublishModal=!1},cancelPublish(){this.isLoadingPublish||(this.showConfirmPublishModal=!1,this.itemToPublish=null)},cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.itemToDelete=null)},checkDelete(o){this.showDeleteModal=!0,this.itemToDelete=o},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one item at a time.");this.$inertia.delete(this.$route("admin.edu.courses.destroy",this.itemToDelete.id),{only:["flash","courses"]}),this.itemToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:a.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.coursesData)||l.get(this.$route("admin.edu.courses.index"),this.editableSearchOptions,{only:["courses"],preserveState:!0})},500),setSearchOptions(o={}){let e={course_name:"",per_page:15};try{a.forEach(o,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=a.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var p=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Courses ")]),e.userCan("courses.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.edu.courses.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"course_name_search","input-class":"form-control form-control-short","input-id":"course_name","input-name":"course_name","input-placeholder":"Course Name","input-type":"text","label-hidden":!0,"label-text":"Course Name"},model:{value:e.editableSearchOptions.course_name,callback:function(s){e.$set(e.editableSearchOptions,"course_name",s)},expression:"editableSearchOptions.course_name"}})],1)]),e.coursesData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Image")]),t("th",[e._v("Name")]),t("th",[e._v("Price")]),t("th",[e._v("Status")]),t("th",[e._v("Summary")]),t("th",[e._v("Created By")]),t("th",[e._v("Length")]),t("th",[e._v("Total Sold")]),t("th",[e._v("Total Participants")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.coursesData,function(s,_){var i,r;return t("tr",{key:`item-${s.id}`},[t("td",[t("img",{staticClass:"w-32 square-full",attrs:{src:s.primary_image,alt:s.name}})]),t("td",[e._v(" "+e._s(s.name)+" "),t("br"),t("small",[e._v(e._s(s.slug))])]),t("td",[e._v(" "+e._s(s.price+" "+s.currency)+" ")]),t("td",[e._v(" "+e._s(s.status)+" ")]),t("td",[e._v(" "+e._s(s.summary&&s.summary.length>60?s.summary.substring(0,60)+" ...":"")+" ")]),t("td",[e._v(" "+e._s(s.creator?s.creator.first_name+" "+s.creator.last_name:"")+" ")]),t("td",[e._v(" "+e._s(s.content_length_video)+" ")]),t("td",[e._v(" "+e._s((i=s.total_sold)!=null?i:10)+" ")]),t("td",[e._v(" "+e._s((r=s.total_customers)!=null?r:10)+" ")]),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("courses.publish")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-success hover:text-theme-success-contrast",attrs:{title:"Publish"},on:{click:function(n){return e.checkPublishCourse(s)}}},[t("icon-check",{staticClass:"w-4"})],1):e._e(),e.userCan("courses.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.courses.edit",s.id),title:"Edit"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("courses.view")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.courses.preview",s.id),title:"Preview"}},[t("icon-eye",{staticClass:"w-4"})],1):e._e(),e.userCan("courses.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete"},on:{click:function(n){return e.checkDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.courses.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("confirmation-modal",{attrs:{"confirm-text":"Publish","confirm-type":"success","show-modal":e.showConfirmPublishModal,"message-text":e.publishModalText},on:{cancelAction:e.cancelPublish,closeModal:e.cancelPublish,confirmAction:e.confirmPublish}})],2)])},b=[],x=m(f,p,b,!1,null,null,null,null);const g=x.exports;export{g as default}; diff --git a/public/build/assets/Index.47975f97.js b/public/build/assets/Index.47975f97.js new file mode 100644 index 00000000..5f05f8a4 --- /dev/null +++ b/public/build/assets/Index.47975f97.js @@ -0,0 +1 @@ +import{a as t}from"./app.c52b09a2.js";import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";import"./InputGroup.513e0dd4.js";import"./ConfirmationModal.242a99d0.js";const i={name:"AdminFileManagerIndex",components:{FileManager:t},layout:"admin-layout"};var s=function(){var n=this,a=n._self._c;return a("section",{staticClass:"container mx-auto"},[n._m(0),a("file-manager",{attrs:{initialise:!0}})],1)},o=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"page-header mb-6 text-lg"},[n("h1",[e._v("File Manager")])])}],l=r(i,s,o,!1,null,null,null,null);const p=l.exports;export{p as default}; diff --git a/public/build/assets/Index.4c323bd5.js b/public/build/assets/Index.4c323bd5.js new file mode 100644 index 00000000..01a3b912 --- /dev/null +++ b/public/build/assets/Index.4c323bd5.js @@ -0,0 +1 @@ +import{_ as a,O as o}from"./vendor.21c2b6f5.js";import{C as r}from"./ConfirmationModal.242a99d0.js";import{I as l}from"./InputGroup.513e0dd4.js";import{aB as c,aC as h,n as u}from"./LogoLight.f7426689.js";const d={name:"AdminEDUWebinarIndex",components:{IconCheck:c,IconSave:h,ConfirmationModal:r,InputGroup:l},layout:"admin-layout",props:{webinars:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{webinar_name:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,isLoadingPublish:!1,showDeleteModal:!1,itemToDelete:null,showConfirmPublishModal:null,itemToPublish:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{publishModalText(){try{return"Do you really want to publish '"+this.itemToPublish.name+"'?"}catch{return"Do you really want to perform this action?"}},deleteModalText(){try{return"Do you really want to delete '"+this.itemToDelete.name+"'?"}catch{return"Do you really want to delete this?"}},showPagination(){try{return this.webinars.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("webinars.edit")||this.userCan("webinars.delete")},webinarsData(){return!this.webinars||!this.webinars.data||this.webinars.data.length<1?!1:this.webinars.data}},methods:{checkPublishWebinar(i){this.showConfirmPublishModal=!0,this.itemToPublish=i},confirmPublish(){if(this.isLoadingPublish)return this.$errorToast("It's only possible to publish one item at a time.");this.$inertia.patch(this.$route("admin.edu.webinars.publish",this.itemToPublish.id),{only:["flash","webinars"]}),this.itemToPublish=null,this.showConfirmPublishModal=!1},cancelPublish(){this.isLoadingPublish||(this.showConfirmPublishModal=!1,this.itemToPublish=null)},cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.itemToDelete=null)},checkDelete(i){this.showDeleteModal=!0,this.itemToDelete=i},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one item at a time.");this.$inertia.delete(this.$route("admin.edu.webinars.destroy",this.itemToDelete.id),{only:["flash","webinars"]}),this.itemToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:a.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.webinarsData)||o.get(this.$route("admin.edu.webinars.index"),this.editableSearchOptions,{only:["webinars"],preserveState:!0})},500),setSearchOptions(i={}){let e={webinar_name:"",per_page:15};try{a.forEach(i,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=a.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var m=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Webinars ")]),e.userCan("webinars.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.edu.webinars.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"webinar_name_search","input-class":"form-control form-control-short","input-id":"webinar_name","input-name":"webinar_name","input-placeholder":"Webinar Name","input-type":"text","label-hidden":!0,"label-text":"Webinar Name"},model:{value:e.editableSearchOptions.webinar_name,callback:function(s){e.$set(e.editableSearchOptions,"webinar_name",s)},expression:"editableSearchOptions.webinar_name"}})],1)]),e.webinarsData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Course")]),t("th",[e._v("Status")]),t("th",[e._v("Scheduled At")]),t("th",[e._v("Created By")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.webinarsData,function(s,p){return t("tr",{key:`item-${s.id}`},[t("td",[e._v(" "+e._s(s.name)+" ")]),t("td",[e._v(" "+e._s(s.course?s.course.name:"")+" "),t("br"),s.section?t("small",[t("b",[e._v("Section:")]),e._v(" "+e._s(s.section.title))]):e._e()]),t("td",[e._v(" "+e._s(s.status)+" ")]),t("td",[e._v(" "+e._s(s.date_time_from)+" / "+e._s(s.date_time_to)+" ")]),t("td",[e._v(" "+e._s(s.creator?s.creator.first_name+" "+s.creator.last_name:"")+" ")]),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("webinars.publish")&&s.status!=="PUBLISHED"?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-success hover:text-theme-success-contrast",attrs:{title:"Publish"},on:{click:function(n){return e.checkPublishWebinar(s)}}},[t("icon-check",{staticClass:"w-4"})],1):e._e(),e.userCan("webinars.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.webinars.edit",s.id),title:"Edit"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("webinars.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete"},on:{click:function(n){return e.checkDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.webinars.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("confirmation-modal",{attrs:{"confirm-text":"Publish","confirm-type":"success","show-modal":e.showConfirmPublishModal,"message-text":e.publishModalText},on:{cancelAction:e.cancelPublish,closeModal:e.cancelPublish,confirmAction:e.confirmPublish}})],2)])},b=[],f=u(d,m,b,!1,null,null,null,null);const y=f.exports;export{y as default}; diff --git a/public/build/assets/Index.4c3e42a0.js b/public/build/assets/Index.4c3e42a0.js new file mode 100644 index 00000000..7a9012fe --- /dev/null +++ b/public/build/assets/Index.4c3e42a0.js @@ -0,0 +1 @@ +import{_ as l,O as i}from"./vendor.21c2b6f5.js";import{C as n}from"./ConfirmationModal.242a99d0.js";import{I as o}from"./InputGroup.513e0dd4.js";import{n as r}from"./LogoLight.f7426689.js";const c={name:"AdminEDULabelsIndex",components:{ConfirmationModal:n,InputGroup:o},layout:"admin-layout",props:{labels:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{label_name:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,itemToDelete:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.itemToDelete.name+"'?"}catch{return"Do you really want to delete this?"}},showPagination(){try{return this.labels.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("labels.edit")||this.userCan("labels.delete")},labelsData(){return!this.labels||!this.labels.data||this.labels.data.length<1?!1:this.labels.data}},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.itemToDelete=null)},checkDelete(s){this.showDeleteModal=!0,this.itemToDelete=s},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one item at a time.");this.$inertia.delete(this.$route("admin.edu.labels.destroy",this.itemToDelete.id),{only:["flash","labels"]}),this.itemToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:l.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.labelsData)||i.get(this.$route("admin.edu.labels.index"),this.editableSearchOptions,{only:["labels"],preserveState:!0})},500),setSearchOptions(s={}){let e={label_name:"",per_page:15};try{l.forEach(s,(t,a)=>{e[a]=t})}catch(t){console.log(t)}this.editableSearchOptions=l.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var d=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Labels ")]),e.userCan("labels.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.edu.labels.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"label_name_search","input-class":"form-control form-control-short","input-id":"label_name","input-name":"label_name","input-placeholder":"Name","input-type":"text","label-hidden":!0,"label-text":"Name"},model:{value:e.editableSearchOptions.label_name,callback:function(a){e.$set(e.editableSearchOptions,"label_name",a)},expression:"editableSearchOptions.label_name"}})],1)]),e.labelsData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Label")]),t("th",[e._v("Slug")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.labelsData,function(a,m){return t("tr",{key:`item-${a.id}`},[t("td",[e._v(" "+e._s(a.name)+" ")]),t("td",[e._v(" "+e._s(a.slug)+" ")]),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("labels.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.labels.edit",a.id),title:"Edit"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("labels.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete"},on:{click:function(p){return e.checkDelete(a)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.labels.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}})],2)])},u=[],h=r(c,d,u,!1,null,null,null,null);const g=h.exports;export{g as default}; diff --git a/public/build/assets/Index.5037e854.js b/public/build/assets/Index.5037e854.js new file mode 100644 index 00000000..63d13c4e --- /dev/null +++ b/public/build/assets/Index.5037e854.js @@ -0,0 +1 @@ +import{_ as r,O as a}from"./vendor.21c2b6f5.js";import{C as i}from"./ConfirmationModal.242a99d0.js";import{I as n}from"./InputGroup.513e0dd4.js";import{S as l}from"./app.c52b09a2.js";import{n as m}from"./LogoLight.f7426689.js";const c={name:"AdminCrmFormIndex",components:{ConfirmationModal:i,InputGroup:n,SelectGroup:l},layout:"admin-layout",props:{searchOptions:{required:!0,type:Object|Array},forms:{required:!0,type:Object}},data(){return{editableSearchOptions:{per_page:15,form_name:"",form_slug:""},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,formToDelete:null}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.formToDelete.name+"'?"}catch{return"Do you really want to delete this form?"}},showPagination(){try{return this.forms.pagination.last_page>1}catch{return!1}},showFormActions(){return this.userCan("crm_forms.edit")||this.userCan("crm_forms.delete")},formsData(){return!this.forms||!this.forms.data||this.forms.data.length<1?!1:this.forms.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.formToDelete=null)},checkDelete(o){this.showDeleteModal=!0,this.formToDelete=o},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one form at a time.");this.$inertia.delete(this.$route("admin.crm.forms.destroy",this.formToDelete.id),{only:["flash","forms"]}),this.formToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:r.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.formsData)||a.get(this.$route("admin.crm.forms.index"),this.editableSearchOptions,{only:["forms"],preserveState:!0})},500),setSearchOptions(o={}){let e={per_page:15,form_name:"",form_slug:""};try{r.forEach(o,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=r.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var u=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Forms ")]),e.userCan("crm_forms.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.crm.forms.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create Form ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/2"},[t("input-group",{attrs:{"input-autocomplete":"form_name_search","input-class":"form-control form-control-short","input-id":"form_name","input-name":"form_name","input-placeholder":"Form Name","input-type":"text","label-hidden":!0,"label-text":"Form Name"},model:{value:e.editableSearchOptions.form_name,callback:function(s){e.$set(e.editableSearchOptions,"form_name",s)},expression:"editableSearchOptions.form_name"}})],1),t("div",{staticClass:"w-full md:w-1/2"},[t("input-group",{attrs:{"input-autocomplete":"form_slug_search","input-class":"form-control form-control-short","input-id":"form_slug","input-name":"form_slug","input-placeholder":"Form Slug","input-type":"text","label-hidden":!0,"label-text":"Form Slug"},model:{value:e.editableSearchOptions.form_slug,callback:function(s){e.$set(e.editableSearchOptions,"form_slug",s)},expression:"editableSearchOptions.form_slug"}})],1)]),e.formsData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Slug")]),e.showFormActions?t("th"):e._e()])]),t("tbody",e._l(e.formsData,function(s){return t("tr",{key:`template-${s.id}`},[t("td",[e._v(" "+e._s(s.name)+" ")]),t("td",[e._v(" "+e._s(s.slug)+" ")]),e.showFormActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("crm_forms.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.crm.forms.edit",s.id),title:"Edit Form"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("crm_forms.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Template"},on:{click:function(h){return e.checkDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.forms.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No forms ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}})],2)])},d=[],f=m(c,u,d,!1,null,null,null,null);const w=f.exports;export{w as default}; diff --git a/public/build/assets/Index.58bb9fee.js b/public/build/assets/Index.58bb9fee.js new file mode 100644 index 00000000..b100b0af --- /dev/null +++ b/public/build/assets/Index.58bb9fee.js @@ -0,0 +1 @@ +import{n as e}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const a={name:"StudentAdminProfileIndex",layout:"student-admin-layout",props:{auth:Object,profile:Object},computed:{showRefundButton(){return!0}},methods:{requestRefund(){}}};var l=function(){var t=this,s=t._self._c;return s("section",{staticClass:"max-w-5xl mx-auto"},[t.userCan("profile.edit")?s("div",{staticClass:"flex flex-row items-center mb-6"},[s("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" "+t._s(t.__("messages.my-profile"))+" ")]),s("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center",attrs:{href:t.$route("student.admin.profile.edit")}},[s("icon-edit",{staticClass:"w-5 md:mr-2"}),s("span",{staticClass:"hidden md:inline"},[t._v(" "+t._s(t.__("messages.edit-profile"))+" ")])],1)],1):t._e(),s("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("p",[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" "+t._s(t.__("messages.first-name"))+" ")]),t._v(" "+t._s(t.profile.first_name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" "+t._s(t.__("messages.last-name"))+" ")]),t._v(" "+t._s(t.profile.last_name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Email ")]),t._v(" "+t._s(t.profile.email)+" ")]),s("p",{staticClass:"mt-2"},[t._v(" "+t._s(t.__("messages.request-refund-text"))+" "),s("a",{staticClass:"font-semibold",attrs:{href:"mailto:webmaster@example.com"}},[t._v("info@minducate.us")])])])])])},n=[],i=e(a,l,n,!1,null,null,null,null);const _=i.exports;export{_ as default}; diff --git a/public/build/assets/Index.62203f14.js b/public/build/assets/Index.62203f14.js new file mode 100644 index 00000000..4b8ca601 --- /dev/null +++ b/public/build/assets/Index.62203f14.js @@ -0,0 +1 @@ +import{_ as a,O as o}from"./vendor.21c2b6f5.js";import{C as s}from"./ConfirmationModal.242a99d0.js";import{I as r}from"./InputGroup.513e0dd4.js";import{S as l}from"./app.c52b09a2.js";import{n as u}from"./LogoLight.f7426689.js";const c={name:"AdminCrmOrganisationUnitIndex",components:{ConfirmationModal:s,InputGroup:r,SelectGroup:l},layout:"admin-layout",props:{searchOptions:{required:!0,type:Array|Object},organisationUnits:{required:!0,type:Object},organisationUnitTypes:{required:!0,type:Object}},data(){return{editableSearchOptions:{organisation_unit_email:"",organisation_unit_name:"",organisation_unit_telephone:"",organisation_unit_type:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,organisationUnitToDelete:null}},computed:{organisationUnitsData(){return!this.organisationUnits||!this.organisationUnits.data||this.organisationUnits.data.length<1?!1:this.organisationUnits.data},deleteModalText(){try{return"Do you really want to delete '"+this.organisationUnitToDelete.name+"'?"}catch{return"Do you really want to delete this organisation unit?"}},showOrganisationUnitActions(){return this.userCan("crm_organisation_units.edit")||this.userCan("crm_organisation_units.delete")},showPagination(){try{return this.organisationUnits.pagination.last_page>1}catch{return!1}}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.organisationUnitToDelete=null)},checkDelete(n){this.showDeleteModal=!0,this.organisationUnitToDelete=n},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one organisation unit at a time.");this.$inertia.delete(this.$route("admin.crm.organisation-units.destroy",this.organisationUnitToDelete.id),{only:["flash","organisationUnits"]}),this.organisationUnitToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:a.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.organisationUnitsData)||o.get(this.$route("admin.crm.organisation-units.index"),this.editableSearchOptions,{only:["organisationUnits"],preserveState:!0})},500),setSearchOptions(n={}){let t={organisation_unit_email:"",organisation_unit_name:"",organisation_unit_telephone:"",organisation_unit_type:"",per_page:15};try{a.forEach(n,(e,i)=>{t[i]=e})}catch(e){console.log(e)}this.editableSearchOptions=a.cloneDeep(t)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var p=function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Organisation Units ")]),t.userCan("crm_organisation_units.create")?e("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:t.$route("admin.crm.organisation-units.create")}},[e("icon-plus",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create Organisation Unit ")])],1):t._e()],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("h1",{staticClass:"font-semibold px-6 text-gray-850"},[t._v(" Search "),e("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:t.setSearchOptions}},[t._v(" (Clear) ")])]),e("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[e("div",{staticClass:"w-full md:w-1/4"},[e("select-group",{staticClass:"mx-4",attrs:{"label-hidden":!0,"label-text":"Type","input-any-option-enabled":!0,"input-any-option-label":"Type","input-class":"form-control form-control-short","input-id":"organisation_unit_type","input-name":"organisation_unit_type","input-options":t.organisationUnitTypes},model:{value:t.editableSearchOptions.organisation_unit_type,callback:function(i){t.$set(t.editableSearchOptions,"organisation_unit_type",i)},expression:"editableSearchOptions.organisation_unit_type"}})],1),e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"organisation_unit_name_search","input-class":"form-control form-control-short","input-id":"organisation_unit_name","input-name":"organisation_unit_name","input-placeholder":"Name","input-type":"text","label-hidden":!0,"label-text":"Name"},model:{value:t.editableSearchOptions.organisation_unit_name,callback:function(i){t.$set(t.editableSearchOptions,"organisation_unit_name",i)},expression:"editableSearchOptions.organisation_unit_name"}})],1),e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"organisation_unit_email","input-class":"form-control form-control-short","input-id":"organisation_unit_email","input-name":"organisation_unit_email","input-placeholder":"Email","input-type":"text","label-hidden":!0,"label-text":"Email"},model:{value:t.editableSearchOptions.organisation_unit_email,callback:function(i){t.$set(t.editableSearchOptions,"organisation_unit_email",i)},expression:"editableSearchOptions.organisation_unit_email"}})],1),e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"organisation_unit_telephone_search","input-class":"form-control form-control-short","input-id":"organisation_unit_telephone","input-name":"organisation_unit_telephone","input-placeholder":"Telephone","input-type":"text","label-hidden":!0,"label-text":"Telephone"},model:{value:t.editableSearchOptions.organisation_unit_telephone,callback:function(i){t.$set(t.editableSearchOptions,"organisation_unit_telephone",i)},expression:"editableSearchOptions.organisation_unit_telephone"}})],1)]),t.organisationUnitsData?[e("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[e("table",{staticClass:"table table-hover table-striped w-full"},[e("thead",[e("tr",[e("th",[t._v("Type")]),e("th",[t._v("Name")]),e("th",[t._v("Email")]),e("th",[t._v("Telephone")]),t.showOrganisationUnitActions?e("th"):t._e()])]),e("tbody",t._l(t.organisationUnitsData,function(i,h){return e("tr",{key:`organisation-unit-${i.slug}`},[e("td",[t._v(" "+t._s(t.organisationUnitTypes[i.type])+" ")]),e("td",[t._v(" "+t._s(i.name)+" ")]),e("td",[t._v(" "+t._s(i.email)+" ")]),e("td",[t._v(" "+t._s(i.telephone)+" ")]),t.showOrganisationUnitActions?e("td",[e("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[t.userCan("crm_organisation_units.edit")?e("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:t.$route("admin.crm.organisation-units.edit",i.id),title:"Edit Organisation Unit"}},[e("icon-edit",{staticClass:"w-4"})],1):t._e(),t.userCan("crm_organisation_units.delete")?e("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Organisation Unit"},on:{click:function(_){return t.checkDelete(i)}}},[e("icon-trash",{staticClass:"w-4"})],1):t._e()],1)]):t._e()])}),0)])])]:e("p",{staticClass:"bg-theme-base-subtle mt-6 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[t._v(" No organisation units ")]),t.showPagination?e("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[e("pagination",{attrs:{pagination:t.organisationUnits.pagination}})],1):t._e(),e("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":t.showDeleteModal,"message-text":t.deleteModalText},on:{cancelAction:t.cancelDelete,closeModal:t.cancelDelete,confirmAction:t.confirmDelete}})],2)])},d=[],m=u(c,p,d,!1,null,null,null,null);const v=m.exports;export{v as default}; diff --git a/public/build/assets/Index.6df621a4.js b/public/build/assets/Index.6df621a4.js new file mode 100644 index 00000000..5886872f --- /dev/null +++ b/public/build/assets/Index.6df621a4.js @@ -0,0 +1 @@ +import{_ as s,O as i}from"./vendor.21c2b6f5.js";import{C as o}from"./ConfirmationModal.242a99d0.js";import{I as l}from"./InputGroup.513e0dd4.js";import{n as r}from"./LogoLight.f7426689.js";const c={name:"AdminTenantIndex",components:{ConfirmationModal:o,InputGroup:l},layout:"admin-layout",props:{searchOptions:Array|Object,tenants:Object},data(){return{editableSearchOptions:{per_page:15,tenant_id:""},isInitialised:!1,isLoadingTenantDelete:!1,showDeleteModal:!1,tenantToDelete:null}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.tenantToDelete.id+"'?"}catch{return"Do you really want to delete this tenant?"}},show_tenants_actions(){return this.userCan("tenants.edit")||this.userCan("tenants.delete")},showPagination(){try{return this.tenants.pagination.last_page>1}catch{return!1}},tenantsData(){return!this.tenants||!this.tenants.data||this.tenants.data.length<1?!1:this.tenants.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelTenantDelete(){this.isLoadingTenantDelete||(this.showDeleteModal=!1,this.tenantToDelete=null)},checkTenantDelete(a){this.showDeleteModal=!0,this.tenantToDelete=a},confirmTenantDelete(){if(this.isLoadingTenantDelete)return this.$errorToast("It's only possible to delete one tenant at a time.");this.$inertia.delete(this.$route("landlord.admin.tenants.destroy",this.tenantToDelete.id),{only:["flash","tenants"]}),this.tenantToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:s.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.tenantsData)||i.get(this.$route("landlord.admin.tenants.index"),this.editableSearchOptions,{only:["tenants"],preserveState:!0})},500),setSearchOptions(a={}){let t={per_page:15,tenant_id:""};try{s.forEach(a,(e,n)=>{t[n]=e})}catch(e){console.log(e)}this.editableSearchOptions=s.cloneDeep(t)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var d=function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Tenants ")]),t.userCan("tenants.create")?e("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:t.$route("landlord.admin.tenants.create")}},[e("icon-plus",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create Tenant ")])],1):t._e()],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("h1",{staticClass:"font-semibold px-6 text-gray-850"},[t._v(" Search "),e("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:t.setSearchOptions}},[t._v(" (Clear) ")])]),e("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[e("div",{staticClass:"w-full md:w-1/3"},[e("input-group",{attrs:{"input-autocomplete":"tenant_id_search","input-class":"form-control form-control-short","input-id":"tenant_id","input-name":"tenant_id","input-placeholder":"Tenant ID","input-type":"text","label-hidden":!0,"label-text":"Tenant ID"},model:{value:t.editableSearchOptions.tenant_id,callback:function(n){t.$set(t.editableSearchOptions,"tenant_id",n)},expression:"editableSearchOptions.tenant_id"}})],1)]),t.tenantsData?[e("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[e("table",{staticClass:"table table-hover table-striped w-full"},[e("thead",[e("tr",[e("th",[t._v("ID")]),t.show_tenants_actions?e("th"):t._e()])]),e("tbody",t._l(t.tenantsData,function(n,m){return e("tr",{key:`tenant-${n.id}`},[e("td",[t._v(" "+t._s(n.id)+" ")]),t.show_tenants_actions?e("td",[e("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[t.userCan("tenants.edit")?e("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:t.$route("landlord.admin.tenants.edit",n.id),title:"Edit Tenant"}},[e("icon-edit",{staticClass:"w-4"})],1):t._e(),t.userCan("tenants.delete")?e("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Tenant"},on:{click:function(p){return t.checkTenantDelete(n)}}},[e("icon-trash",{staticClass:"w-4"})],1):t._e()],1)]):t._e()])}),0)])])]:e("p",{staticClass:"bg-theme-base-subtle mt-6 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[t._v(" No tenants ")]),t.showPagination?e("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[e("pagination",{attrs:{pagination:t.tenants.pagination}})],1):t._e(),e("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":t.showDeleteModal,"message-text":t.deleteModalText},on:{cancelAction:t.cancelTenantDelete,closeModal:t.cancelTenantDelete,confirmAction:t.confirmTenantDelete}})],2)])},h=[],u=r(c,d,h,!1,null,null,null,null);const w=u.exports;export{w as default}; diff --git a/public/build/assets/Index.6e120ca2.js b/public/build/assets/Index.6e120ca2.js new file mode 100644 index 00000000..03a5bd13 --- /dev/null +++ b/public/build/assets/Index.6e120ca2.js @@ -0,0 +1 @@ +import{_ as i,O as r}from"./vendor.21c2b6f5.js";import{C as n}from"./ConfirmationModal.242a99d0.js";import{I as l}from"./InputGroup.513e0dd4.js";import{aB as c,aC as u,n as h}from"./LogoLight.f7426689.js";const d={name:"AdminEDUCourseIndex",components:{IconCheck:c,IconSave:u,ConfirmationModal:n,InputGroup:l},layout:"admin-layout",props:{courses:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{course_name:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,isLoadingPublish:!1,showDeleteModal:!1,itemToDelete:null,showConfirmPublishModal:null,itemToPublish:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{publishModalText(){try{return"Do you really want to publish '"+this.itemToPublish.name+"'?"}catch{return"Do you really want to perform this action?"}},deleteModalText(){try{return"Do you really want to delete '"+this.itemToDelete.name+"'?"}catch{return"Do you really want to delete this?"}},showPagination(){try{return this.courses.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("courses.edit")||this.userCan("courses.delete")},coursesData(){return!this.courses||!this.courses.data||this.courses.data.length<1?!1:this.courses.data}},methods:{checkPublishCourse(o){this.showConfirmPublishModal=!0,this.itemToPublish=o},confirmPublish(){if(this.isLoadingPublish)return this.$errorToast("It's only possible to publish one item at a time.");this.$inertia.patch(this.$route("admin.edu.courses.publish",this.itemToPublish.id),{only:["flash","courses"]}),this.itemToPublish=null,this.showConfirmPublishModal=!1},cancelPublish(){this.isLoadingPublish||(this.showConfirmPublishModal=!1,this.itemToPublish=null)},cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.itemToDelete=null)},checkDelete(o){this.showDeleteModal=!0,this.itemToDelete=o},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one item at a time.");this.$inertia.delete(this.$route("admin.edu.courses.destroy",this.itemToDelete.id),{only:["flash","courses"]}),this.itemToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:i.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.coursesData)||r.get(this.$route("admin.edu.courses.index"),this.editableSearchOptions,{only:["courses"],preserveState:!0})},500),setSearchOptions(o={}){let e={course_name:"",per_page:15};try{i.forEach(o,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=i.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var m=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Courses ")]),e.userCan("courses.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.edu.courses.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"course_name_search","input-class":"form-control form-control-short","input-id":"course_name","input-name":"course_name","input-placeholder":"Course Name","input-type":"text","label-hidden":!0,"label-text":"Course Name"},model:{value:e.editableSearchOptions.course_name,callback:function(s){e.$set(e.editableSearchOptions,"course_name",s)},expression:"editableSearchOptions.course_name"}})],1)]),e.coursesData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Image")]),t("th",[e._v("Name")]),t("th",[e._v("Price")]),t("th",[e._v("Status")]),t("th",[e._v("Summary")]),t("th",[e._v("Created By")]),t("th",[e._v("Length")]),t("th",[e._v("Total Sold")]),t("th",[e._v("Total Participants")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.coursesData,function(s,b){return t("tr",{key:`item-${s.id}`},[t("td",[t("img",{staticClass:"w-32 square-full",attrs:{src:s.primary_image,alt:s.name}})]),t("td",[e._v(" "+e._s(s.name)+" ")]),t("td",[e._v(" "+e._s(s.price+" "+s.currency)+" ")]),t("td",[e._v(" "+e._s(s.status)+" ")]),t("td",[e._v(" "+e._s(s.summary&&s.summary.length>60?s.summary.substring(0,60)+" ...":"")+" ")]),t("td",[e._v(" "+e._s(s.creator?s.creator.first_name+" "+s.creator.last_name:"")+" ")]),t("td",[e._v(" "+e._s(s.content_length_video)+" ")]),t("td",[e._v(" "+e._s(s.total_quantity_sold)+" ")]),t("td",[e._v(" "+e._s(s.total_profit)+" ")]),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("courses.publish")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-success hover:text-theme-success-contrast",attrs:{title:"Publish"},on:{click:function(a){return e.checkPublishCourse(s)}}},[t("icon-check",{staticClass:"w-4"})],1):e._e(),e.userCan("courses.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.courses.edit",s.id),title:"Edit"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("courses.view")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.courses.preview",s.id),title:"Preview"}},[t("icon-eye",{staticClass:"w-4"})],1):e._e(),e.userCan("courses.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete"},on:{click:function(a){return e.checkDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.courses.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("confirmation-modal",{attrs:{"confirm-text":"Publish","confirm-type":"success","show-modal":e.showConfirmPublishModal,"message-text":e.publishModalText},on:{cancelAction:e.cancelPublish,closeModal:e.cancelPublish,confirmAction:e.confirmPublish}})],2)])},f=[],p=h(d,m,f,!1,null,null,null,null);const y=p.exports;export{y as default}; diff --git a/public/build/assets/Index.70b9066f.js b/public/build/assets/Index.70b9066f.js new file mode 100644 index 00000000..553364ad --- /dev/null +++ b/public/build/assets/Index.70b9066f.js @@ -0,0 +1 @@ +import{_ as r,O as i}from"./vendor.21c2b6f5.js";import{C as o}from"./ConfirmationModal.242a99d0.js";import{S as n}from"./app.c52b09a2.js";import{I as l}from"./InputGroup.513e0dd4.js";import{aB as c,aC as u,n as p}from"./LogoLight.f7426689.js";const d={name:"AdminEDUCoursePurchaseIndex",components:{IconCheck:c,IconSave:u,ConfirmationModal:o,InputGroup:l,SelectGroup:n},layout:"admin-layout",props:{purchases:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array},statuses:{required:!0,type:Object},types:{required:!0,type:Object}},data(){return{editableSearchOptions:{course_purchase_course_id:"",course_purchase_email_address:"",course_purchase_status:"",course_purchase_type:"",course_purchase_user_id:"",per_page:25},isInitialised:!1}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{showPagination(){try{return this.purchases.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("edu_course_purchases.show")},purchaseData(){return!this.purchases||!this.purchases.data||this.purchases.data.length<1?!1:this.purchases.data}},methods:{onSearchOptionsUpdate:r.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.purchaseData)||i.get(this.$route("admin.edu.course-purchases.index"),this.editableSearchOptions,{only:["purchases"],preserveState:!0})},500),setSearchOptions(a={}){let e={email_address:"",per_page:15};try{r.forEach(a,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=r.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var h=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Purchases ("+e._s(e.purchases.data.length)+") ")])]),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/6"},[t("select-group",{attrs:{"label-hidden":!0,"label-text":"Status","input-any-option-enabled":!0,"input-any-option-label":"Status (All)","input-class":"form-control form-control-short","input-id":"status","input-name":"status","input-option-label-key":"name","input-option-value-key":"id","input-options":e.statuses},model:{value:e.editableSearchOptions.course_purchase_status,callback:function(s){e.$set(e.editableSearchOptions,"course_purchase_status",s)},expression:"editableSearchOptions.course_purchase_status"}})],1),t("div",{staticClass:"w-full md:w-1/6"},[t("select-group",{attrs:{"label-hidden":!0,"label-text":"Type","input-any-option-enabled":!0,"input-any-option-label":"Types (All)","input-class":"form-control form-control-short","input-id":"type","input-name":"type","input-option-label-key":"name","input-option-value-key":"id","input-options":e.types},model:{value:e.editableSearchOptions.course_purchase_type,callback:function(s){e.$set(e.editableSearchOptions,"course_purchase_type",s)},expression:"editableSearchOptions.course_purchase_type"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"email_address_search","input-class":"form-control form-control-short","input-id":"email_address","input-name":"email_address","input-placeholder":"Email Address","input-type":"text","label-hidden":!0,"label-text":"Email Address"},model:{value:e.editableSearchOptions.course_purchase_email_address,callback:function(s){e.$set(e.editableSearchOptions,"course_purchase_email_address",s)},expression:"editableSearchOptions.course_purchase_email_address"}})],1)]),e.purchaseData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Date")]),t("th",[e._v("Course")]),t("th",[e._v("Email")]),t("th",[e._v("Status")]),t("th",[e._v("Type")]),t("th",[e._v("Price Due")]),t("th",[e._v("Price Paid")]),t("th",[e._v("Refundable")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.purchaseData,function(s){return t("tr",{key:`purchase-${s.id}`},[t("td",[e._v(" "+e._s(e._f("humanFriendlyDateTime")(s.created_at))+" ")]),t("td",[e._v(" "+e._s(s.course.name)+" ")]),t("td",[e._v(" "+e._s(s.email_address)+" ")]),t("td",[e._v(" "+e._s(e.statuses.hasOwnProperty(s.status)?e.statuses[s.status]:s.status)+" ")]),t("td",[e._v(" "+e._s(e.types.hasOwnProperty(s.type)?e.types[s.type]:s.type)+" ")]),t("td",[e._v(" "+e._s(e._f("currencySymbol")(s.currency))+" "+e._s(e._f("priceDecimal")(s.total_price_due))+" ")]),t("td",[e._v(" "+e._s(e._f("currencySymbol")(s.currency))+" "+e._s(e._f("priceDecimal")(s.total_price_paid))+" ")]),t("td",[t(s.is_refundable?"icon-check":"icon-close",{tag:"component",staticClass:"w-4"})],1),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("edu_course_purchases.show")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.course-purchases.show",s.id),title:"View"}},[t("icon-eye",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.purchases.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")])],2)])},_=[],m=p(d,h,_,!1,null,null,null,null);const w=m.exports;export{w as default}; diff --git a/public/build/assets/Index.8c47121c.js b/public/build/assets/Index.8c47121c.js new file mode 100644 index 00000000..d27e9d00 --- /dev/null +++ b/public/build/assets/Index.8c47121c.js @@ -0,0 +1 @@ +import{n as o,aD as l}from"./LogoLight.f7426689.js";import{W as i}from"./app.c52b09a2.js";import"./vendor.21c2b6f5.js";import"./InputGroup.513e0dd4.js";import"./ConfirmationModal.242a99d0.js";const n={name:"CourseCard",components:{IconPlus:l},props:{course:{required:!0,type:Object}},computed:{formattedCourseName(){let r=100;return this.course.name.length<=r?this.course.name:this.course.name.substring(0,r-3)+"..."},progress(){return Math.floor(Math.random()*101)}}};var c=function(){var t=this,e=t._self._c;return e("inertia-link",{staticClass:"flex flex-1 flex-col group relative",attrs:{href:t.$route("student.admin.show",t.course.slug),title:`View course: ${t.course.name}`}},[e("article",{staticClass:"flex flex-1 flex-col bg-white inset-0 overflow-hidden rounded-lg shadow-subtle ease-in-out duration-300 transition-colors hover:bg-gray-100"},[e("div",[e("div",{staticClass:"image-container relative w-full"},[e("img",{staticClass:"bg-gray-100 h-full object-cover w-full",attrs:{alt:"Course preview image",src:t.course.primary_image}}),e("div",{staticClass:"absolute flex h-full inset-0 items-center justify-center opacity-0 w-full ease-in-out duration-300 transition-opacity group-hover:opacity-100"},[e("span",{staticClass:"absolute bg-black h-full inset-0 opacity-40 w-full"}),e("icon-player-play-filled",{staticClass:"h-12 relative text-white w-12"})],1)])]),e("section",{staticClass:"px-6 mt-3 mb-3"},[e("h2",{staticClass:"font-semibold group-hover:underline text-xl",attrs:{title:t.course.name}},[t._v(" "+t._s(t.formattedCourseName)+" ")]),e("h3",{staticClass:"opacity-40 text-sm"},[t._v(" "+t._s(t.__("messages.author"))+": "),e("strong",[t._v(t._s(t.course.creator.name))])])])])])},u=[],m=o(n,c,u,!1,null,"b33b6ac8",null,null);const d=m.exports,_={name:"StudentAdminHomeIndex",components:{CourseCard:d,WysiwygField:i},layout:"student-admin-layout",props:{courses:{required:!0,type:Object|Array},announcements:{required:!0,type:Object|Array}},computed:{coursesData(){return this.courses?this.courses:!1}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"max-w-screen-2xl mx-auto"},[t.announcements.length?e("div",t._l(t.announcements,function(s,a){return e("div",{key:"announcement-"+a+"-"+s.slug,staticClass:"bg-white border-t-4 border-light-500 rounded-b text-teal-900 px-4 py-3 mb-5 shadow-md",attrs:{role:"alert"}},[e("div",{staticClass:"flex"},[e("div",{staticClass:"py-1"},[e("svg",{staticClass:"fill-current h-6 w-6 text-teal-500 mr-4",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[e("path",{attrs:{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"}})])]),e("div",[e("p",{staticClass:"font-bold"},[t._v(t._s(s.title))]),e("p",{staticClass:"text-sm",domProps:{innerHTML:t._s(s.description)}})])])])}),0):t._e(),e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-semibold mr-auto text-3xl"},[t._v(" "+t._s(t.__("messages.my-courses"))+" ")])]),t.coursesData?[e("div",{staticClass:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},t._l(t.coursesData,function(s,a){return e("course-card",{key:a+s.slug,attrs:{course:s}})}),1)]:e("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[t._v(" "+t._s(t.__("messages.no-results"))+" ")])],2)},f=[],v=o(_,p,f,!1,null,null,null,null);const y=v.exports;export{y as default}; diff --git a/public/build/assets/Index.8e4e8571.js b/public/build/assets/Index.8e4e8571.js new file mode 100644 index 00000000..e69d611a --- /dev/null +++ b/public/build/assets/Index.8e4e8571.js @@ -0,0 +1 @@ +import{_ as r,O as i}from"./vendor.21c2b6f5.js";import{C as n}from"./ConfirmationModal.242a99d0.js";import{I as l}from"./InputGroup.513e0dd4.js";import{n as o}from"./LogoLight.f7426689.js";const u={name:"AdminUserIndex",components:{ConfirmationModal:n,InputGroup:l},layout:"admin-layout",props:{searchOptions:Array|Object,users:Object},data(){return{editableSearchOptions:{per_page:15,user_first_name:"",user_last_name:"",user_email:""},isInitialised:!1,isLoadingUserDelete:!1,showDeleteModal:!1,userToDelete:null}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.userToDelete.name+"'?"}catch{return"Do you really want to delete this user?"}},show_users_actions(){return this.userCan("users.edit")||this.userCan("users.delete")},showPagination(){try{return this.users.pagination.last_page>1}catch{return!1}},usersData(){return!this.users||!this.users.data||this.users.data.length<1?!1:this.users.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelUserDelete(){this.isLoadingUserDelete||(this.showDeleteModal=!1,this.userToDelete=null)},checkUserDelete(a){this.showDeleteModal=!0,this.userToDelete=a},confirmUserDelete(){if(this.isLoadingUserDelete)return this.$errorToast("It's only possible to delete one user at a time.");this.$inertia.delete(this.$route("admin.users.destroy",this.userToDelete.id),{only:["flash","users"]}),this.userToDelete=null,this.showDeleteModal=!1},isUserCurrent(a){try{return a.id===this.$page.props.auth.user.id}catch{return!1}},onSearchOptionsUpdate:r.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.usersData)||i.get(this.$route("admin.users.index"),this.editableSearchOptions,{only:["users"],preserveState:!0})},500),setSearchOptions(a={}){let e={per_page:15,user_first_name:"",user_last_name:"",user_email:""};try{r.forEach(a,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=r.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var c=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Users ")]),e.userCan("users.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.users.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create User ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"user_first_name_search","input-class":"form-control form-control-short","input-id":"user_first_name","input-name":"user_first_name","input-placeholder":"First Name","input-type":"text","label-hidden":!0,"label-text":"First Name"},model:{value:e.editableSearchOptions.user_first_name,callback:function(s){e.$set(e.editableSearchOptions,"user_first_name",s)},expression:"editableSearchOptions.user_first_name"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"user_last_name_search","input-class":"form-control form-control-short","input-id":"user_last_name","input-name":"user_last_name","input-placeholder":"Last Name","input-type":"text","label-hidden":!0,"label-text":"Last Name"},model:{value:e.editableSearchOptions.user_last_name,callback:function(s){e.$set(e.editableSearchOptions,"user_last_name",s)},expression:"editableSearchOptions.user_last_name"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"user_email_search","input-class":"form-control form-control-short","input-id":"user_email","input-name":"user_email","input-placeholder":"Email","input-type":"text","label-hidden":!0,"label-text":"Email"},model:{value:e.editableSearchOptions.user_email,callback:function(s){e.$set(e.editableSearchOptions,"user_email",s)},expression:"editableSearchOptions.user_email"}})],1)]),e.usersData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Email")]),e.show_users_actions?t("th"):e._e()])]),t("tbody",e._l(e.usersData,function(s,h){return t("tr",{key:`user-${s.id}`},[t("td",[e._v(" "+e._s(s.name)+" ")]),t("td",[e._v(" "+e._s(s.email)+" ")]),e.show_users_actions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("users.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.users.edit",s.id),title:"Edit User"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("users.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{disabled:e.isUserCurrent(s),title:"Delete User"},on:{click:function(p){return e.checkUserDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])])]:t("p",{staticClass:"bg-theme-base-subtle mt-6 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No users ")]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.users.pagination}})],1):e._e(),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelUserDelete,closeModal:e.cancelUserDelete,confirmAction:e.confirmUserDelete}})],2)])},d=[],m=o(u,c,d,!1,null,null,null,null);const w=m.exports;export{w as default}; diff --git a/public/build/assets/Index.ad329ada.js b/public/build/assets/Index.ad329ada.js new file mode 100644 index 00000000..3a4d8515 --- /dev/null +++ b/public/build/assets/Index.ad329ada.js @@ -0,0 +1 @@ +import{n as s}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const a={name:"Index",layout:"website-layout"};var l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-gray-100 flex flex-col min-h-screen min-w-screen"},[t("nav",{staticClass:"flex flex-row justify-end px-6 py-4"},[t("ul",{staticClass:"flex flex-row font-medium space-x-4 text-theme-base-contrast"},[e.$page.props.auth.user?[t("li",[t("a",{staticClass:"hover:text-theme-primary",attrs:{href:e.$route("admin.index")}},[e._v(" Admin ")])])]:[e.$routeCheck("login")?t("li",[t("inertia-link",{staticClass:"hover:text-theme-primary",attrs:{href:e.$route("login")}},[e._v(" Login ")])],1):e._e(),e.$routeCheck("register")?t("li",[t("inertia-link",{staticClass:"hover:text-theme-primary",attrs:{href:e.$route("register")}},[e._v(" Register ")])],1):e._e()]],2)]),t("section",{staticClass:"flex flex-1 flex-col items-center justify-center p-8"},[t("div",{staticClass:"relative"},[t("div",{staticClass:"skewed-logo-bg absolute bg-gradient-to-r from-blue-700 inset-0 to-blue-600 rounded-lg shadow-lg transform"}),t("h1",{staticClass:"bg-theme-base-contrast flex flex-row font-semibold items-center px-8 py-4 relative rounded-lg text-center text-3xl tracking-wide sm:text-6xl"},[t("icon-logo-dark",{staticClass:"w-9 sm:w-16"}),t("span",{staticClass:"ml-3 text-white sm:ml-6"},[e._v(" SIGI - "+e._s(e.$page.props.tenant.id)+" ")])],1)]),e._m(0)])])},i=[function(){var r=this,e=r._self._c;return e("ul",{staticClass:"flex flex-row flex-wrap font-medium justify-center mt-8 pt-4 px-4 space-x-6 text-theme-base-contrast md:text-lg"},[e("li",[e("a",{staticClass:"hover:text-theme-primary",attrs:{href:"https://laravel.com/docs/",rel:"noopener noreferrer",target:"_blank"}},[r._v(" Laravel ")])]),e("li",[e("a",{staticClass:"hover:text-theme-primary",attrs:{href:"https://tailwindcss.com/docs/",rel:"noopener noreferrer",target:"_blank"}},[r._v(" Tailwind ")])]),e("li",[e("a",{staticClass:"hover:text-theme-primary",attrs:{href:"https://vuejs.org/v2/guide/",rel:"noopener noreferrer",target:"_blank"}},[r._v(" Vue.js ")])]),e("li",[e("a",{staticClass:"hover:text-theme-primary",attrs:{href:"https://inertiajs.com/",rel:"noopener noreferrer",target:"_blank"}},[r._v(" Inertia.js ")])])])}],n=s(a,l,i,!1,null,"2a0cf984",null,null);const m=n.exports;export{m as default}; diff --git a/public/build/assets/Index.ba613796.js b/public/build/assets/Index.ba613796.js new file mode 100644 index 00000000..10a9ce25 --- /dev/null +++ b/public/build/assets/Index.ba613796.js @@ -0,0 +1 @@ +import{_ as o,O as s}from"./vendor.21c2b6f5.js";import{C as c}from"./ConfirmationModal.242a99d0.js";import{I as i}from"./InputGroup.513e0dd4.js";import{n as l}from"./LogoLight.f7426689.js";const r={name:"AdminCrmContactIndex",components:{ConfirmationModal:c,InputGroup:i},layout:"admin-layout",props:{searchOptions:{required:!0,type:Array|Object},contacts:{required:!0,type:Object}},data(){return{editableSearchOptions:{contact_email:"",contact_first_name:"",contact_last_name:"",contact_telephone:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,contactToDelete:null}},computed:{contactsData(){return!this.contacts||!this.contacts.data||this.contacts.data.length<1?!1:this.contacts.data},deleteModalText(){try{return"Do you really want to delete '"+this.contactToDelete.name_with_title+"'?"}catch{return"Do you really want to delete this contact?"}},showContactsActions(){return this.userCan("crm_contacts.edit")||this.userCan("crm_contacts.delete")},showPagination(){try{return this.contacts.pagination.last_page>1}catch{return!1}}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.contactToDelete=null)},checkDelete(n){this.showDeleteModal=!0,this.contactToDelete=n},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one contact at a time.");this.$inertia.delete(this.$route("admin.crm.contacts.destroy",this.contactToDelete.id),{only:["flash","contacts"]}),this.contactToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:o.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.contactsData)||s.get(this.$route("admin.crm.contacts.index"),this.editableSearchOptions,{only:["contacts"],preserveState:!0})},500),setSearchOptions(n={}){let t={contact_email:"",contact_first_name:"",contact_last_name:"",contact_telephone:"",per_page:15};try{o.forEach(n,(e,a)=>{t[a]=e})}catch(e){console.log(e)}this.editableSearchOptions=o.cloneDeep(t)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var m=function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Contacts ")]),t.userCan("crm_contacts.create")?e("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:t.$route("admin.crm.contacts.create")}},[e("icon-plus",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create Contact ")])],1):t._e()],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("h1",{staticClass:"font-semibold px-6 text-gray-850"},[t._v(" Search "),e("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:t.setSearchOptions}},[t._v(" (Clear) ")])]),e("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"contact_first_name_search","input-class":"form-control form-control-short","input-id":"contact_first_name","input-name":"contact_first_name","input-placeholder":"First Name","input-type":"text","label-hidden":!0,"label-text":"First Name"},model:{value:t.editableSearchOptions.contact_first_name,callback:function(a){t.$set(t.editableSearchOptions,"contact_first_name",a)},expression:"editableSearchOptions.contact_first_name"}})],1),e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"contact_last_name_search","input-class":"form-control form-control-short","input-id":"contact_last_name","input-name":"contact_last_name","input-placeholder":"Last Name","input-type":"text","label-hidden":!0,"label-text":"Last Name"},model:{value:t.editableSearchOptions.contact_last_name,callback:function(a){t.$set(t.editableSearchOptions,"contact_last_name",a)},expression:"editableSearchOptions.contact_last_name"}})],1),e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"contact_email_search","input-class":"form-control form-control-short","input-id":"contact_email","input-name":"contact_email","input-placeholder":"Email","input-type":"text","label-hidden":!0,"label-text":"Email"},model:{value:t.editableSearchOptions.contact_email,callback:function(a){t.$set(t.editableSearchOptions,"contact_email",a)},expression:"editableSearchOptions.contact_email"}})],1),e("div",{staticClass:"w-full md:w-1/4"},[e("input-group",{attrs:{"input-autocomplete":"contact_telephone_search","input-class":"form-control form-control-short","input-id":"contact_telephone","input-name":"contact_telephone","input-placeholder":"Telephone","input-type":"text","label-hidden":!0,"label-text":"Telephone"},model:{value:t.editableSearchOptions.contact_telephone,callback:function(a){t.$set(t.editableSearchOptions,"contact_telephone",a)},expression:"editableSearchOptions.contact_telephone"}})],1)]),t.contactsData?[e("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[e("table",{staticClass:"table table-hover table-striped w-full"},[e("thead",[e("tr",[e("th",[t._v("Name")]),e("th",[t._v("Email")]),e("th",[t._v("Telephone")]),t.showContactsActions?e("th"):t._e()])]),e("tbody",t._l(t.contactsData,function(a,h){return e("tr",{key:`contact-${a.id}`},[e("td",[t._v(" "+t._s(a.name_with_title)+" ")]),e("td",[t._v(" "+t._s(a.email)+" ")]),e("td",[t._v(" "+t._s(a.telephone)+" ")]),t.showContactsActions?e("td",[e("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[t.userCan("crm_contacts.edit")?e("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:t.$route("admin.crm.contacts.edit",a.id),title:"Edit Contact"}},[e("icon-edit",{staticClass:"w-4"})],1):t._e(),t.userCan("crm_contacts.delete")?e("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Contact"},on:{click:function(u){return t.checkDelete(a)}}},[e("icon-trash",{staticClass:"w-4"})],1):t._e()],1)]):t._e()])}),0)])])]:e("p",{staticClass:"bg-theme-base-subtle mt-6 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[t._v(" No contacts ")]),t.showPagination?e("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[e("pagination",{attrs:{pagination:t.contacts.pagination}})],1):t._e(),e("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":t.showDeleteModal,"message-text":t.deleteModalText},on:{cancelAction:t.cancelDelete,closeModal:t.cancelDelete,confirmAction:t.confirmDelete}})],2)])},d=[],p=l(r,m,d,!1,null,null,null,null);const w=p.exports;export{w as default}; diff --git a/public/build/assets/Index.c6dbc88a.js b/public/build/assets/Index.c6dbc88a.js new file mode 100644 index 00000000..7ffe125c --- /dev/null +++ b/public/build/assets/Index.c6dbc88a.js @@ -0,0 +1 @@ +import{n as e,aB as l}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const i={name:"AstronautOnMoon"};var o=function(){var t=this,C=t._self._c;return C("svg",{attrs:{width:"520",height:"424",viewBox:"0 0 520 424",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[C("path",{attrs:{d:"M48.1572 393.154C47.2258 393.01 46.3608 392.584 45.6792 391.933C44.9975 391.282 44.5321 390.438 44.3457 389.514C43.3473 384.124 54.1788 360.682 54.1788 360.682C54.1788 360.682 48.3835 354.606 51.4203 343.189C52.6657 338.509 62.0413 318.606 68.5309 311.852C72.8833 307.32 80.7508 302.913 87.2508 304.455C87.5108 304.514 85.6544 306.212 98.6622 290.841C112.962 273.941 148.015 245.185 177.588 231.712C208.621 217.573 260.941 205.972 307.328 214.201C369.156 225.186 409.31 260.907 435.097 288.337C445.414 288.194 454.298 296.335 461.097 304.091C471.825 316.311 481.621 330.72 482.297 346.967C482.778 351.648 481.58 356.348 478.917 360.227C481.998 367.647 484.625 375.247 486.782 382.985C486.982 383.758 487.025 384.564 486.906 385.354C486.788 386.144 486.511 386.902 486.093 387.583C485.676 388.264 485.125 388.853 484.474 389.316C483.823 389.779 483.085 390.106 482.305 390.278C449.069 397.644 276.988 431.241 48.1572 393.154Z",fill:"white"}}),C("path",{attrs:{d:"M461.149 320.12C459.875 321.126 477.776 345.407 467.691 346.442C467.542 343.045 466.655 339.721 465.091 336.702C462.202 330.694 449.751 314.582 446.776 311.29C444.148 308.089 440.575 305.801 436.569 304.754C438.3 294.978 451.909 309.379 452.982 307.874C453.44 307.19 443.971 296.114 437.559 298.464C433.919 299.725 431.579 304.624 433.589 310.273C436.8 319.345 457.488 344.427 458.809 345.735C462.22 348.935 465.852 351.138 470.22 349.57C482.849 343.101 462.155 319.311 461.149 320.12ZM452.569 332.181C448.669 327.197 437.055 313.045 436.472 306.727C443.076 308.906 447.252 316.43 454.03 325.346C458.71 331.692 464.544 338.439 465.543 346.099C460.912 344.378 456.214 336.64 452.582 332.181H452.569Z",fill:"black"}}),C("path",{attrs:{d:"M400.431 364.177C399.061 339.477 359.034 326.37 358.535 330.151C358.22 331.469 372.861 334.472 386.048 347.656C398.627 360.412 395.808 371.797 389.948 373.776C391.297 366.387 386.604 359.476 380.786 354.775C372.653 348.174 361.689 345.569 351.481 343.075C337.308 339.739 315.897 335.975 307.128 347.916C301.561 324.75 346.458 331.224 346.832 329.612C347.745 326.602 303.781 319.413 301.213 342.202C300.793 345.966 301.496 349.77 303.232 353.136C304.968 356.503 307.66 359.281 310.97 361.122C319.428 366.322 329.584 365.084 338.918 366.28C362.913 369.122 371.314 378.997 385.086 379.85C395.385 380.346 400.793 373.945 400.431 364.177ZM353.475 363.47C331.248 357.406 316.839 363.285 308.911 351.824C314.311 340.054 338.517 344.742 350.41 347.571C362.968 350.584 380.689 354.697 385.817 367.253C386.791 369.471 387.049 371.939 386.555 374.312C377.187 374.478 368.919 367.679 353.475 363.47V363.47Z",fill:"black"}}),C("path",{attrs:{d:"M292.674 271.201C286.731 260.494 268.627 261.991 268.978 263.785C269.04 264.487 272.509 264.391 277.524 265.92C283.296 267.74 290.732 271.814 289.172 277.698C288.062 282.227 288.626 278.527 278.886 274.534C265.301 268.884 244.026 270.993 237.695 280.561C234.736 274.924 239.156 270.161 244.813 267.355C249.441 265.228 256.773 262.797 250.294 263.102C227.287 264.451 227.848 287.04 243.451 290.019C249.314 291.14 255.484 289.377 264.945 289.38C271.866 289.26 281.845 291.93 288.649 286.286C294.112 281.902 295.225 275.644 292.674 271.201ZM264.94 284.749C251.995 284.749 244.66 287.947 239.322 282.729C244.509 275.249 268.182 270.262 286.533 281.991C281.125 287.154 273.237 284.695 264.94 284.749Z",fill:"black"}}),C("path",{attrs:{d:"M70.993 333.551C65.6084 343.522 61.8618 351.993 60.7308 351.634C59.6908 351.299 61.7708 341.928 67.3478 331.58C72.9248 321.232 79.6718 314.376 80.5272 315.078C81.4398 315.84 76.3802 323.58 70.993 333.551Z",fill:"black"}}),C("path",{attrs:{d:"M201.76 339.24C189.069 323.016 159.146 338.582 160.521 340.74C161.218 341.981 179.954 333.811 191.864 338.278C198.656 341.422 198.825 344.877 195.939 348.678C195.125 349.752 192.249 346.713 181.639 346.835C163.056 346.986 143.159 357.596 133.682 372.549C128.801 370.334 128.029 366.785 130.25 361.889C134.716 352.04 147.36 345.27 146.741 344.024C145.821 341.856 121.576 353.842 123.861 368.865C125.715 377.551 135.221 380.227 144.877 378.838C155.004 377.286 213.743 358.067 201.76 339.24ZM137.004 373.48C149.687 358.088 173.326 347.942 192.988 351.699C183.3 360.136 149.126 375.224 137.004 373.48Z",fill:"black"}}),C("path",{attrs:{d:"M357.053 303.576C352.989 299.364 353.909 295.181 357.453 294.408C362.595 294.154 367.679 295.583 371.935 298.48C376.355 301.34 385.364 307.889 370.677 300.739C362.331 296.676 357.144 298.007 357.976 297.973C357.976 297.973 357.958 297.937 357.994 298.142C357.833 302.775 383.276 315.702 379.67 307.005C378.001 303.508 379.582 304.743 380.869 306.241C383.747 309.585 380.656 318.253 362.528 307.424C360.524 306.417 358.679 305.121 357.053 303.576V303.576Z",fill:"black"}}),C("path",{attrs:{d:"M163.418 293.579C156.84 294.081 145.553 298.368 149.157 303.841C152.298 308.464 161.158 306.92 166.689 305.685C182.226 301.964 181.701 292.456 163.418 293.579ZM174.426 299.645C168.805 303.584 144.381 305.341 155.22 299.242C165.896 293.233 180.7 295.243 174.426 299.645Z",fill:"black"}}),C("path",{attrs:{d:"M235.152 321.212C225.066 330.335 217.012 325.632 218.379 319.982C218.899 317.808 222.053 314.446 220.514 318.422C220.24 318.901 220.084 319.437 220.059 319.988C220.034 320.539 220.14 321.088 220.368 321.59C220.597 322.092 220.941 322.532 221.374 322.874C221.806 323.217 222.313 323.452 222.854 323.559C226.309 324.373 233.87 319.217 234.346 316.786C234.66 314.319 234.679 312.078 227.435 314.428C214.422 318.648 225.875 312.244 230.035 311.074C233.826 310.294 236.959 310.786 237.515 314.628C237.728 315.837 237.622 317.079 237.208 318.234C236.793 319.388 236.085 320.415 235.152 321.212V321.212Z",fill:"black"}}),C("path",{attrs:{d:"M92.716 372.988C88.4104 369.546 93.7872 363.142 99.5228 360.768C104.057 358.896 105.651 360.882 105.316 361.085C103.597 361.207 101.942 361.79 100.526 362.773C94.133 366.756 92.4664 371.997 96.8656 370.495C99.5808 369.364 102.009 367.642 103.974 365.453C104.588 364.926 105.039 364.236 105.277 363.463C105.514 362.69 105.528 361.866 105.316 361.085C105.576 360.383 108.412 362.645 105.768 366.805C103.124 370.965 96.5042 376.02 92.716 372.988Z",fill:"black"}}),C("path",{attrs:{d:"M436.21 375.201C435.689 376.076 434.863 376.728 433.892 377.033C432.92 377.338 431.87 377.274 430.942 376.854C424.793 374.535 421.299 365.763 423.007 363.797C423.644 362.923 423.568 364.182 423.823 364.946C425.025 367.856 426.942 370.415 429.398 372.385C433.298 375.619 435.427 373.989 431.608 368.558C430.321 366.738 427.063 362.991 424.725 363.144C424.013 363.189 423.628 363.633 423.425 363.516C423.262 363.493 423.165 362.611 424.333 361.974C428.54 359.699 438.986 369.483 436.21 375.201Z",fill:"black"}}),C("path",{attrs:{d:"M287.599 355.88C285.059 348.907 285.626 344.227 285.979 344.25C286.967 344.133 288.839 365.354 308.415 373.11C316.979 376.508 326.134 376.516 335.301 378.248C342.454 379.6 346.494 381.823 346.304 382.202C346.104 382.691 341.949 381.36 334.948 380.661C321.201 379.293 296.72 380.897 287.599 355.88Z",fill:"black"}}),C("path",{attrs:{d:"M246.002 299.845C231.416 298.217 223.696 288.769 224.648 288.033C225.516 287.253 231.226 294.988 246.366 296.696C257.891 297.996 270.286 295.677 270.457 296.956C270.592 297.994 256.487 301.02 246.002 299.845Z",fill:"black"}}),C("path",{attrs:{d:"M209.877 360.448C199.956 372.049 179.696 381.121 178.984 379.444C178.516 378.339 196.869 369.504 206.804 357.846C213.166 350.378 213.808 343.678 210.501 336.349C208.421 331.718 205.171 327.558 205.699 327.111C206.393 326.518 225.49 342.194 209.877 360.448Z",fill:"black"}}),C("path",{attrs:{d:"M362.016 316.792C353.639 312.608 348.598 305.737 349.333 305.092C350.069 304.447 355.313 309.878 363.433 313.955C371.553 318.032 379.054 318.812 379.012 319.751C378.966 320.845 370.412 320.986 362.016 316.792Z",fill:"black"}}),C("path",{attrs:{d:"M486.143 372C481.042 356.959 481.286 361.878 483.2 357.729C492.164 337.3 463.762 289.013 435.1 285.342C342.93 175.274 174.593 185.762 87.3262 301.704C69.3524 297.12 48.464 332.904 47.8374 349.164C47.7895 353.411 49.0524 357.569 51.454 361.072C49.6444 365.232 47.9327 369.435 46.319 373.68C43.2562 381.74 42.4788 388.822 43.9556 389.238C46.5192 389.969 52.039 373.786 55.9676 364.637C67.3166 369.47 81.9286 350.815 79.7498 349.359C78.6916 348.652 64.7088 363.233 58.318 359.718C45.318 353.454 62.5638 321.843 71.3934 313.474C76.3334 308.677 85.7818 304.358 88.5534 308.599C92.9266 313.482 88.3792 332.935 89.6974 333.447C91.1222 334.043 95.1236 323.986 95.3472 315.554C159.143 230.921 268.629 203.101 360.851 245.697C379.179 254.121 383.536 257.657 383.789 257.241C383.921 257.036 375.339 251.737 375.128 251.615C285.074 198.892 165.464 219.978 94.9416 310.084C94.5114 307.539 93.1841 305.234 91.2002 303.584C177.068 196.898 334.623 180.942 429.385 285.311C427.418 285.51 425.512 286.101 423.778 287.05C422.044 287.999 420.519 289.286 419.292 290.836C409.25 303.994 429.829 330.369 431.327 329.295C432.83 328.284 416.081 303.329 423.602 294.159C426.403 290.589 431.509 290.259 435.95 291.106C441.675 292.438 447.011 295.087 451.532 298.844C464.867 309.454 477.355 327.917 479.279 347.563C480.207 357.016 474.573 361.753 467.477 361.259C459.828 360.687 453.58 353.927 448.084 348.72C439.033 339.999 428.74 331.596 445.206 351.395C451.277 358.493 457.642 365.75 466.968 366.68C470.626 367.094 474.318 366.27 477.454 364.34C478.653 367.46 479.791 370.605 480.867 373.773C488.02 394.719 490.984 386.178 486.143 372Z",fill:"black"}}),C("path",{attrs:{d:"M145.08 230.04C149.64 225.573 157.266 215.612 156.208 209.362C155.038 202.464 133.929 181.82 112.297 178.526C102.378 165.744 77.2954 150.048 69.056 146.751C61.6928 143.808 51.5918 142.669 45.7314 146.533C34.7048 153.813 38.8414 178.789 38.9714 184.42C39.2938 199.968 51.5736 220.794 51.1368 225.227C50.804 228.625 46.5582 228.43 49.2544 240.991C50.9474 249.268 53.1177 257.441 55.7544 265.467C57.2052 269.744 59.228 274.359 63.349 276.205C69.355 278.889 81.315 275.561 87.4614 272.212C89.5778 271.06 90.6386 270.896 92.4014 273.033C95.8672 277.261 100.032 285.612 107.328 285.04C109.408 284.876 109.928 283.758 109.827 281.707C109.636 277.299 108.466 272.988 106.4 269.089C108.901 268.094 111.16 266.575 113.027 264.635C115.729 267.35 124.556 275.555 128.448 275.834C132.34 276.112 135.018 271.564 134.623 267.709C133.786 263.912 132.216 260.316 130 257.121C128.44 254.235 129.069 254.389 135.309 246.025C139.901 252.197 141.827 255.283 144.669 256.809C145.737 257.455 146.984 257.742 148.226 257.628C149.469 257.513 150.642 257.004 151.575 256.175C155.067 252.392 150.535 245.039 144.248 234.764C143.057 232.827 143.091 231.969 145.08 230.04Z",fill:"#FFC5F6"}}),C("path",{attrs:{d:"M67.652 205.709C67.1715 209.96 68.1411 214.248 70.4036 217.879C72.6661 221.51 76.0887 224.269 80.1164 225.711C82.8489 226.703 85.7985 226.94 88.6545 226.398C91.5106 225.855 94.1676 224.553 96.3459 222.627C98.5241 220.702 100.143 218.225 101.033 215.458C101.922 212.69 102.049 209.734 101.4 206.9C97.7756 189.813 71.175 186.901 67.652 205.709Z",fill:"#92FCFF"}}),C("path",{attrs:{d:"M96.5173 218.86C94.0145 221.934 90.4037 223.901 86.4638 224.336C82.5239 224.771 78.5707 223.64 75.4573 221.187C68.5153 216.172 68.8299 208.967 67.7665 209.027C67.0359 209.061 66.4665 217.711 73.4007 223.732C76.0132 226.095 79.2496 227.658 82.7249 228.234C86.2001 228.811 89.7678 228.376 93.0031 226.983C96.2385 225.589 99.0053 223.295 100.974 220.374C102.943 217.453 104.031 214.028 104.109 210.506C104.221 199.038 93.8913 189.035 82.3395 190.879C73.9857 192.096 68.0395 198.128 67.3921 203.528C66.9735 206.357 67.4597 207.865 67.7353 207.859C68.0915 207.872 68.2553 206.357 69.1315 203.993C71.6067 196.874 82.4175 192.145 90.4255 196.024C98.7637 199.961 102.547 211.32 96.5173 218.86Z",fill:"black"}}),C("path",{attrs:{d:"M89.0864 236.977C111.706 234.959 121.784 208.585 106.145 190.991C101.564 185.781 95.1968 182.475 88.2995 181.727C81.4022 180.978 74.4745 182.84 68.8818 186.945C67.1659 187.979 65.7191 189.405 64.6594 191.105C64.8362 191.29 66.3 189.766 69.4876 187.876C93.4414 173.62 117 197.28 109.426 218.441C103.839 234.546 82.2276 240.37 68.0549 227.136C59.0979 218.878 59.514 208.294 58.7418 208.356C58.2218 208.356 58.0787 220.038 66.6536 228.589C69.5682 231.52 73.0816 233.787 76.9533 235.235C80.825 236.682 84.9637 237.277 89.0864 236.977V236.977Z",fill:"black"}}),C("path",{attrs:{d:"M152.214 198.894C141.528 187.878 128.087 179.924 113.287 175.858C100.573 162.54 85.4796 151.718 68.7856 143.951C26.6656 127.158 28.1294 182.632 47.684 223.03C45.4591 239.668 48.1222 256.593 55.3488 271.744C56.0088 273.743 57.198 275.526 58.7903 276.904C60.3825 278.281 62.3182 279.202 64.3916 279.567C72.397 281.286 83.4106 277.794 90.7712 273.553C92.3312 275.501 97.3102 281.442 99.0184 283.134C106.857 290.908 113.87 283.878 111.023 275.854C107.903 267.014 105.412 272.37 114.101 267.274C118.622 272.227 123.934 279.307 130.203 277.347C131.784 276.803 133.17 275.805 134.187 274.478C135.205 273.151 135.808 271.553 135.923 269.885C136.37 265.353 133.897 260.525 131.355 255.816C130.135 253.549 130.736 256.206 135.356 248.796C140.585 255.151 142.956 258.247 146.7 259.038C148.286 259.309 149.916 258.945 151.236 258.025C152.556 257.104 153.46 255.701 153.754 254.118C154.775 249.896 152.139 244.99 149.594 240.598C143.588 230.302 143.335 237.798 153.205 224.263C163.22 209.934 158.774 205.67 152.214 198.894ZM41.08 182.873C45.0785 181.334 48.9292 179.435 52.585 177.2C56.3134 174.839 58.305 172.933 58.0268 172.52C57.6134 171.875 54.301 173.924 40.5834 179.163C38.8492 164.156 40.7732 145.652 55.8558 146.385C63.011 146.679 71.539 150.995 77.6958 154.648C60.6788 170.079 60.0782 170.44 60.3486 170.866C60.619 171.293 63.6454 169.982 68.0056 167C72.5191 163.805 76.8408 160.347 80.9484 156.644C114.413 177.821 133.024 207.311 135.902 223.464C131.742 226.605 121.789 234.806 117.806 238.412C108.506 232.908 100.422 240.988 101.319 249.194C96.603 251.394 86.1328 256.841 81.5594 259.487C64.922 247.161 46.384 217.893 41.08 182.873ZM61.7188 271.996C58.9576 268.008 51.7582 250.38 51.2876 229.923C59.4828 244.483 74.0142 263.387 90.4124 269.014C83.2 272.745 65.9178 278.059 61.7188 271.996ZM106.27 272.62C107.323 275.087 108.976 278.525 107.968 281.002C105.591 286.839 99.5748 278.387 93.0306 272.162C96.7694 269.742 94.1304 270.478 99.658 271.07C106.808 271.788 104.78 269.102 106.27 272.62V272.62ZM100.084 267.095C94.6545 266.351 89.4371 264.492 84.76 261.635C90.9111 259.274 96.759 256.189 102.18 252.444C103.784 256.308 107.312 259.838 111.587 264.516C108.106 266.529 104.092 267.429 100.084 267.095V267.095ZM131.469 269.357C131.061 272.914 128.229 274.63 124.137 271.159C120.568 267.855 117.209 264.332 114.078 260.611C109.21 255.333 100.732 248.422 107.757 241.685C108.759 240.73 110.028 240.102 111.395 239.885C112.762 239.668 114.163 239.873 115.411 240.471C120.866 243.529 132.101 263.762 131.469 269.357V269.357ZM120.398 240.362C126.246 236.724 131.628 232.387 136.425 227.445C136.803 231.751 136.326 236.089 135.021 240.21C133.716 244.331 131.61 248.153 128.822 251.456C126.435 247.456 123.61 243.735 120.398 240.362V240.362ZM149.289 247.738C151.718 253.487 149.373 255.933 147.3 255.572C144.804 255.192 142.766 252.317 136.674 246.472C137.887 244.158 138.837 241.716 139.508 239.192C140.65 238.152 141.864 237.01 143.122 235.778C145.487 239.598 147.549 243.596 149.289 247.738V247.738ZM140.66 232.419C142.015 215.285 129.449 195.145 118.747 182.098C137.504 190.759 153.587 206.359 153.65 210.332C153.002 217.536 145.413 226.834 140.66 232.419Z",fill:"black"}}),C("path",{attrs:{d:"M336.484 80.9068C344.094 72.1812 344.058 73.71 350.574 76.4582C374.343 86.4812 453.469 127.015 453.729 127.158C467.685 135.192 473.912 135.977 467.857 150.275C461.617 165.022 444.821 197.73 434.923 209.96C430.313 215.161 426.255 220.824 422.812 226.86C417.487 236.951 403.312 244.036 407.636 245.885C425.446 253.484 429.494 261.095 434.244 277.051C434.491 277.88 434.411 278.229 433.55 278.725C430.461 280.514 423.15 284.17 420.129 282.243C417.628 280.644 416.915 274.994 411.983 268.138C409.111 264.419 405.295 261.537 400.932 259.794C396.569 258.05 391.818 257.508 387.174 258.224C378.594 260.138 382.626 260.117 298.774 306.236C275.486 319.043 269.654 316.423 263.219 329.436C258.11 339.763 257.949 351.65 250.513 354.377C247.499 355.482 240.7 354.952 238.033 352.206C233.48 347.526 237.814 331.042 239.702 324.779C241.797 317.829 240.206 319.782 246.873 313.765C252.041 309.101 245.456 305.588 166.291 249.896C165.124 249.276 163.793 249.032 162.482 249.2C153.033 269.89 166.059 284.253 146.767 282.376C143.055 282.017 142.041 281.25 140.787 278.476C131.703 258.235 140.865 232.895 163.667 220.756C175.107 214.666 149.022 229.411 260.941 171.34C290.529 156.005 299.133 123.731 336.484 80.9068Z",fill:"#E2E2E2"}}),C("path",{attrs:{d:"M465.876 131.856C447.541 119.878 424.336 110.656 404.401 99.3042C389.02 90.277 372.003 83.5015 355.82 74.9033C339.685 66.3233 339.591 70.8499 295.321 132.623C271.895 165.417 266.695 164.148 224.861 186.212C164.096 217.82 152.399 221.177 148.2 230.04C133.429 246.818 132.246 273.125 138.84 282.443C141.372 285.87 145.012 286.504 149.266 286.083C166.299 284.058 156.595 275.93 163.623 252.13C182.504 265.291 159.19 246.67 245.159 311.41C236.262 318.102 233.631 330.761 232.664 341.83C232.292 348.278 232.664 354.546 240.828 357.284C247.712 359.686 255.354 356.79 257.756 351.2C259.818 346.403 261.695 330.92 272.605 321.056C278.663 319.441 284.509 317.12 290.025 314.14C294.32 311.982 355.09 278.611 385.107 260.652C388.343 260.067 391.663 260.142 394.869 260.872C398.075 261.602 401.101 262.973 403.764 264.901C417.498 274.963 411.564 292.586 430.893 284.401C435.731 282.355 438.004 280.241 436.613 274.807C432.936 261.063 424.211 249.067 410.491 244.288C433.282 224.611 469.472 156.104 473.429 143.587C475.441 137.116 469.752 134.542 465.876 131.856ZM154.612 272.706C154.185 279.076 154.765 279.224 148.632 279.804C146.619 279.991 145.116 279.989 143.952 278.538C140.244 273.299 140.052 253.549 148.611 238.898C151.88 242.883 155.66 246.42 159.853 249.418C156.828 256.837 155.057 264.707 154.612 272.706V272.706ZM256.698 335.699C253.648 342.961 252.814 347.399 252.184 348.644C250.526 352.518 242.408 353.064 239.671 349.164C237.669 346.84 238.147 322.746 248.929 314.16C253.286 317.361 258.235 319.665 263.489 320.939C268.492 321.937 263.006 320.52 256.698 335.699ZM423.14 260.398C426.581 265.595 429.097 271.349 430.576 277.404C428.75 278.392 426.835 279.204 424.856 279.827C417.433 281.507 422.037 270.174 407.007 260.067C392.496 250.778 387.036 261.318 406.375 247.546C413.14 250.025 418.988 254.509 423.14 260.398V260.398ZM468.351 142.069C465.878 150.516 430.44 222.965 406.211 242.099C395.811 250.471 298.847 303.435 287.466 309.062C275.902 314.769 270.696 316.441 264.711 315.2C256.131 313.422 258.484 313.276 186.93 260.143C175.456 251.844 151.965 238.636 153.774 233.259C155.945 227.019 174.093 219.791 179.99 216.832C288.369 160.412 273.681 175.086 317.27 112.052C321.581 105.846 341.572 76.7077 347.461 77.7659C350.399 78.2859 451.113 129.306 457.891 133.263C468.582 139.706 468.965 140.031 468.351 142.069V142.069Z",fill:"black"}}),C("path",{attrs:{d:"M440.869 111.761C441.032 100.515 438.892 89.3544 434.581 78.9662C430.27 68.5779 423.88 59.1815 415.802 51.355C388.081 23.8288 344.432 41.5244 344.432 41.5244L340.301 46.4384C340.301 46.4384 337.745 41.5244 326.932 43.8852C316.118 46.246 299.465 71.5128 297.487 79.2868C294.733 90.1002 302.552 100.313 302.552 100.313C302.552 100.313 301.681 99.9854 297.398 107.835C293.116 115.684 300.165 138.437 300.165 138.437C300.165 138.437 287.685 119.077 287.495 104.801C287.44 100.547 287.123 86.3406 283.819 83.686C283.072 82.4042 278.938 79.604 280.875 70.4806C282.68 61.6406 290.93 61.3676 294.224 56.7578C295.386 54.8509 295.816 52.5867 295.433 50.3865C295.051 48.1864 293.882 46.2002 292.144 44.7978C279.924 35.5106 269.461 53.6378 268.91 52.8448C265.52 47.6763 261.38 43.0409 256.625 39.0908C245.341 30.6018 235.55 32.9678 233.145 37.367C231.34 40.5754 233.862 43.8488 235.802 47.013C224.991 45.6194 213.351 48.3494 217.56 56.633C218.876 59.233 222.573 59.6048 231.182 63.5854C223.46 65.3742 215.322 66.5728 216.265 72.3708C217.766 80.3762 228.834 76.5802 238.867 82.6616C240.746 83.5517 242.287 85.0257 243.259 86.8636C244.232 88.7014 244.583 90.8045 244.262 92.8588C243.178 100.035 240.729 103.472 247.159 111.501C252.28 117.736 255.829 125.11 257.507 133.003C258.578 140.496 269.552 158.964 269.552 158.964L252.689 171.366L235.269 166.8C235.269 166.8 239.07 146.557 233.724 136.414C228.379 126.271 224.016 120.486 209.945 118.414C195.874 116.342 189.439 117.322 189.548 127.904C189.657 138.486 191.511 177.426 191.729 184.844C191.948 192.262 202.855 194.771 207.217 194.984C226.169 195.933 201.903 191.719 201.357 209.206C200.959 221.964 199.407 247.054 199.407 247.054C191.931 247.265 184.707 249.797 178.734 254.298C168.789 261.82 167.515 274.698 172.494 280.054C177.473 285.41 219.294 286.034 219.294 286.034C219.294 286.034 234.338 287.308 238.547 281.187C242.757 275.067 242.624 255.944 242.624 255.944C242.624 255.944 259.199 273.028 272.332 275.834C285.464 278.639 308.794 267.42 319.631 260.918C330.468 254.415 374.452 216.296 374.452 216.296C374.452 216.296 401.864 218.462 414.866 211.96C427.869 205.457 435.903 192.2 435.776 181.108C435.7 174.43 435.017 167.772 433.735 161.218C450.216 142.233 447.281 116.42 440.869 111.761Z",fill:"white"}}),C("path",{attrs:{d:"M327.036 60.5199C321.68 64.6677 316.621 69.1854 311.896 74.0399C307.386 79.4439 304.58 86.064 303.832 93.0629C303.085 100.062 304.43 107.125 307.697 113.36C309.026 115.791 309.624 118.916 311.191 121.201C320.746 135.119 332.457 148.267 349.151 150.841C361.943 152.81 377.263 148.782 385.414 138.728C387.943 135.608 389.574 132.566 392.215 129.537C402.272 117.988 404.466 100.277 389.246 78.4807C384.468 72.3663 378.921 66.8933 372.744 62.1969C360.004 51.3263 339.027 50.4969 335.53 51.8281C331.24 53.4297 330.53 57.5767 327.036 60.5199Z",fill:"black"}}),C("path",{attrs:{d:"M254.306 248.76C269.849 270.941 290.966 261.947 291.434 263.546C292.505 265.384 266.952 275.311 250.38 251.495C234.676 228.925 248.511 206.474 250.245 208.026C251.586 208.803 239.33 227.404 254.306 248.76Z",fill:"black"}}),C("path",{attrs:{d:"M443.537 113.724C446.982 106.977 440.284 80.813 435.427 72.1758C419.12 43.1832 393.64 31.92 361.013 34.78C348.605 36.86 344.087 37.614 338.949 42.9076C325.231 36.47 312.751 48.0816 303.657 60.273C293.94 73.273 288.977 87.6276 298.896 100.552C292.635 106.574 292.895 114.35 294.694 123.003C286.062 97.804 292.245 93.7662 288.454 84.9964C286.634 80.7064 280.199 71.3984 288.015 65.577C290.995 63.3254 296.293 61.5106 298.178 56.3002C302.5 43.7162 284.076 29.71 269.979 49.6156C252.286 17.8956 224.219 28.1058 228.444 42.5748C213.385 40.682 205.803 56.919 218.202 63.068C216.58 63.5772 215.126 64.5189 213.999 65.7919C212.871 67.0649 212.111 68.6211 211.801 70.2934C210.855 85.1368 230.654 83.0594 236.501 86.5746C244.447 91.1948 235.368 97.1514 238.911 105.245C241.673 111.862 246.836 110.931 252.564 126.105C256.443 136.435 257.689 144.263 266.638 157.859C261.103 160.142 256.011 163.379 251.594 167.422C246.612 165.804 241.539 164.48 236.402 163.454C241.158 146.616 236.787 122.374 217.451 116.524C210.389 114.506 193.752 111.743 188.768 117.304C185.388 121.079 185.934 121.724 186.358 148.546C186.651 167.019 187.455 175.047 188.237 185.206C189.576 193.461 195.593 196.69 203.923 197.686C189.215 212.222 196.677 246.462 194.1 246.54C175.49 247.226 164.533 261.484 166.374 275.03C167.84 289.263 191.212 287.588 204.074 288.774C240.084 291.717 246.277 285.774 245.812 263.133C245.762 260.806 244.907 262.158 252.53 268.411C264.384 278.031 278.317 282.568 292.773 277.396C313.053 270.142 344.833 250.666 375.944 219.388C408.652 222.341 437.759 212.547 438.651 180.648C438.624 173.924 437.938 167.218 436.602 160.628C446.644 147.082 453.877 126.256 443.537 113.724ZM338 54.1916C345.02 51.1028 371.337 58.9158 388.786 84.0474C395.546 93.8364 399.727 103.027 395.59 114.116C389.961 129.735 376.982 146.356 360.526 148.673C341.198 151.793 312.601 132.121 306.249 100.352C307.549 96.0802 306.459 84.2476 322.655 68.2082C330.2 60.8138 333.694 59.3084 338 54.1916ZM299.374 83.92C300.864 72.2876 319.805 42.983 335.668 46.74C325.72 59.2798 304.785 69.0844 300.971 94.9752C299.416 91.5118 298.863 87.6819 299.374 83.92V83.92ZM218.92 52.1714C220.425 49.5896 225.42 48.066 228.423 48.4898C235.271 49.6676 233.119 50.2136 238.183 53.0346C243.412 55.8946 247.845 58.4946 251.519 60.9464C241.758 69.061 249.244 69.3184 240.422 65.759C237.757 64.745 240.209 65.4288 224.211 58.6506C222.399 58.1432 220.729 57.222 219.333 55.9596C218.566 54.5244 218.179 53.5 218.92 52.1714ZM246.696 106.082C241.613 100.469 246.074 98.3006 246.191 91.7174C255.866 93.6206 263.887 89.9598 263.57 89.0108C263.214 87.872 255.385 90.3524 245.63 87.8018C242.902 79.331 230.168 77.2718 222.006 75.9016C214.321 72.441 218.122 66.955 228.506 67.0382C242.754 72.4254 243.539 71.3724 243.116 72.5528C242.219 75.0592 242.141 76.7414 242.596 76.9104C243.604 77.2666 246.275 71.687 251.29 66.2504C256.23 60.741 261.526 57.556 261.074 56.5836C260.866 56.1416 259.197 56.3756 256.786 57.5092C253.487 59.0458 258.5 58.8092 241.228 48.0452C227.448 38.9972 237.297 32.6168 247.759 36.223C255.962 39.0388 262.426 46.8128 267.379 53.903C263.679 61.2298 263.479 67.0954 264.259 67.0772C264.911 67.1266 265.639 61.144 271.071 53.6482C280.823 40.3622 290.113 42.9882 292.984 48.846C297.375 57.5794 285.644 58.206 281.167 65.1064C279.91 66.9665 279.087 69.0854 278.759 71.3064C278.432 73.5274 278.607 75.7936 279.274 77.9374C278.596 79.4918 277.544 80.8541 276.211 81.9024C271.97 85.1056 263.851 87.7576 264.189 88.8002C264.488 89.744 276.752 87.4092 280.922 82.1728C283.223 87.0374 284.531 86.3068 284.266 94.6346C276.9 104.538 257.436 110.053 246.696 106.082ZM266.617 110.37C273.355 108.808 279.487 105.307 284.258 100.3C284.433 106.028 285.423 111.702 287.199 117.151C278.043 121.531 268.405 124.82 258.482 126.95C250.739 101.907 244.941 116.111 266.617 110.37ZM259.077 128.9C269.235 127.68 279.037 124.394 287.877 119.244C288.605 121.425 289.526 123.924 290.454 126.173C281.129 130.657 271.31 134.03 261.199 136.224C260.502 133.905 259.828 131.453 259.069 128.9H259.077ZM238.961 272.259C237.401 287.113 216.471 282.456 190.601 281.85C184.696 281.647 173.628 280.769 172.058 275.067C201.669 278.325 229.297 277.42 229.286 276.232C229.276 275.043 205.572 275.067 171.753 271.188C171.857 268.817 172.335 266.477 173.17 264.256C178.399 251.708 195.205 247.379 207.36 251.802C214.258 254.314 216.908 258.026 217.381 257.548C217.901 257.111 212.612 249.353 201.289 247.127C201.354 235.568 199.82 213.925 206.736 204.612C210.311 199.799 216.762 196.973 222.318 199.295C238.191 205.935 240.149 261.635 238.953 272.259H238.961ZM348.855 214.749C348.772 215.995 368.571 218.59 369.936 218.753C348.338 237.359 317.088 261.393 290.612 271.245C273.712 277.542 257.917 268.159 245.552 255.044C241.912 169.335 211.44 198.957 197.192 188.864C196.478 188.391 195.883 187.761 195.451 187.022C195.02 186.282 194.764 185.454 194.704 184.6C193.924 174.504 193.144 166.863 192.852 148.416C192.439 122.247 192.252 122.577 193.783 121.558C195.422 120.809 197.203 120.425 199.004 120.432C200.551 141.097 199.815 181.727 201.591 181.685C202.61 181.662 204.373 141.721 202.842 120.489C207.18 120.795 211.487 121.453 215.719 122.457C234.377 127.714 237.206 155.833 229.307 173.157C227.157 177.666 225.501 180 225.888 180.331C226.499 180.851 231.182 175.911 234.039 169.84C252.104 173.292 271.479 180.671 283.652 194.755C294.367 207.001 311.472 246.495 314.616 244.657C315.424 244.194 312.967 238.038 308.929 228.082C308.066 225.953 307.692 227.141 316.282 232.242C327.649 238.906 327.938 237.268 318.217 229.468C302.877 216.676 304.957 218.187 301.272 210.66C292.079 191.979 282.727 179.584 258.539 169.923C262.526 167.742 266.184 165.007 269.404 161.8C271.305 164.367 277.394 171.621 278.153 170.934C279.084 170.123 269.888 160.399 262.675 140.847C260.954 135.977 260.824 140.192 276.497 134.867C298.384 127.457 286.029 122.486 298.951 142.311C305.809 152.755 319.47 169.127 334.916 176.631C342.378 180.195 346.954 180.843 347.032 180.531C347.552 178.971 327.717 174.59 312.117 151.471C306.322 142.919 301.891 131.451 303.241 133.674C309.393 144.563 318.583 153.425 329.688 159.18C345.886 167.5 367.848 169.335 383.011 160.443C388.462 157.083 393.257 152.761 397.163 147.688C395.244 155.644 395.021 164.367 400.044 170.744C389.802 176.436 378.519 180.007 366.868 181.243C356.398 182.187 349.869 180.414 349.64 181.316C349.224 182.231 365.57 189.737 390.79 180.822C390.612 182.769 390.04 184.659 389.111 186.378C387.122 190.146 352.838 189.758 352.778 191.625C352.711 193.877 377.723 194.16 384.043 193.185C386.322 197.863 389.696 201.921 393.88 205.015C398.063 208.108 402.933 210.146 408.073 210.953C385.099 218.79 349.066 211.349 348.847 214.749H348.855ZM412.396 209.24C407.059 208.652 401.924 206.867 397.374 204.016C392.824 201.165 388.977 197.323 386.121 192.777C388.19 192.407 390.136 191.531 391.786 190.229C400.359 198.187 411.724 202.444 423.415 202.077C420.155 205.05 416.43 207.47 412.389 209.24H412.396ZM425.396 200.036C413.675 199.879 402.33 195.879 393.102 188.651C393.92 187.226 394.478 185.667 394.748 184.046C396.17 176.379 392.332 181.423 404.544 174.592C413.408 179.46 424.198 174.369 431.683 166.506C433.103 178.703 433.373 190.946 425.383 200.036H425.396ZM443.95 129.54C442.598 144.62 426.475 170.57 411.473 169.941C393.609 169.195 402.922 128.364 426.691 111.961C430.102 109.764 432.531 109.678 432.513 109.143C432.695 108.35 425.664 106.517 413.728 118.149C419.567 98.9688 411.848 86.5538 411.341 86.7904C409.357 87.5392 424.679 105.708 397.093 141.497C386.155 155.618 375.955 162.479 357.274 161.751C319.207 160.474 297.656 123.45 300.204 109.091C300.813 107.391 301.868 105.887 303.259 104.736C311.922 144.061 360.573 177.855 392.054 132.896C406.476 111.758 405.712 98.9714 393.076 81.0262C378.092 59.9844 355.165 49.1164 341.819 49.4388C343.197 47.6259 344.884 46.0713 346.804 44.8472C351.877 43.9637 357.096 44.5186 361.871 46.4488C392.688 57.4052 410.387 86.3744 411.011 86.078C413.655 85.246 394.961 53.3336 363.392 42.0756C360.643 41.1188 360.698 41.4022 361.85 41.2072C398.208 38.0378 422.952 54.8 433.42 83.8628C435.518 90.1392 438.482 104.678 438.001 109.566C438.001 109.754 435.289 108.828 435.154 109.447C434.881 110.323 445.492 113.399 443.937 129.54H443.95Z",fill:"black"}}),C("path",{attrs:{d:"M183.851 64.6409C180.448 81.2471 180.453 80.9533 180.508 81.2159C181.028 83.8159 188.997 73.8891 198.026 72.8959C194.205 77.6677 191.24 83.0665 189.264 88.8521L201.484 86.4757C204.955 85.7997 208.159 86.8137 207.046 88.1111C201.179 92.5378 195.619 97.358 190.406 102.538C168.784 123.713 169.606 127.472 166.163 132.259C164.405 134.29 162.762 136.417 161.242 138.632C159.016 142.597 158.363 148.821 153.2 146.827C148.447 144.991 138.949 143.496 138.609 137.048C138.107 127.641 153.234 89.1199 183.851 64.6409Z",fill:"#E2E2E2"}}),C("path",{attrs:{d:"M127.197 138.642C124.106 131.864 139.064 137.22 140.4 137.233C144.56 137.256 145.613 132.228 152.498 129.085C156.187 127.4 155.561 141.182 156.936 143.158C157.414 143.741 158.013 144.213 158.691 144.542C161.697 146.29 164.56 148.276 167.25 150.48C168.891 151.824 168.394 152.953 166.553 153.925C159.071 157.874 156.039 158.264 155.418 158.972C155.074 159.364 155.241 159.06 151.798 172.208C150.896 175.658 144.69 167.648 142.129 164.741C141.68 164.038 141.016 163.498 140.237 163.2C139.458 162.902 138.604 162.861 137.8 163.085C136.105 163.249 126.326 164.211 125.245 162.892C123.373 160.615 131.771 151.77 131.906 149.336C132.046 146.999 127.197 140.86 127.197 138.642Z",fill:"#FDFE1F"}}),C("path",{attrs:{d:"M207.964 87.1934C208.465 85.7608 197.4 83.6288 189.901 88.0098C190.083 87.7498 200.681 71.4218 199.984 70.8498C199.412 69.5238 186.576 75.483 181.1 81.3954C181.472 80.3008 185.78 64.2354 184.506 63.835C184.148 63.3592 155.906 80.2306 140.358 123.008C138.875 126.815 137.828 130.778 137.238 134.82C131.178 133.455 127.694 131.776 125.538 135.145C123.828 137.818 125.193 139.201 130.039 149.705C124.155 159.614 122.52 161.036 124.16 163.927C126.071 167.284 128.939 166.051 139.831 164.764L147.371 173.344C147.911 173.956 148.611 174.404 149.392 174.639C150.173 174.874 151.004 174.887 151.792 174.675C152.58 174.463 153.293 174.035 153.851 173.44C154.409 172.845 154.789 172.106 154.95 171.306L157.175 160.1L167.671 155.581C168.421 155.258 169.065 154.732 169.531 154.062C169.998 153.391 170.267 152.604 170.309 151.789C170.351 150.974 170.165 150.163 169.77 149.448C169.376 148.734 168.789 148.144 168.077 147.745L160.42 143.46C182.203 105.318 209.243 88.704 207.964 87.1934ZM166.218 152.178C153.299 157.739 153.962 157.321 153.865 157.815C151.195 171.415 151.45 171.127 150.667 171.127C149.76 171.127 141.937 160.768 140.99 160.893C129.654 162.375 128.25 162.432 127.975 162.432C126.295 162.432 127.748 160.838 134.051 150.212C134.311 149.775 134.519 150.537 128.63 137.766C128.576 137.653 128.556 137.526 128.571 137.402C128.586 137.277 128.635 137.16 128.714 137.062C128.793 136.964 128.897 136.891 129.016 136.85C129.134 136.809 129.262 136.802 129.384 136.83C139.123 138.996 141.97 139.711 142.236 139.711C142.618 139.711 141.955 140.207 152.251 130.689C152.343 130.604 152.457 130.546 152.58 130.523C152.703 130.499 152.83 130.51 152.947 130.555C153.064 130.6 153.165 130.677 153.241 130.777C153.317 130.877 153.363 130.996 153.374 131.12C154.697 145.16 154.479 144.365 154.918 144.609C164.736 150.111 168.064 151.385 166.218 152.178ZM158.036 141.292L157.063 130.785C156.965 129.698 156.463 128.688 155.655 127.954C154.848 127.219 153.794 126.815 152.703 126.82C150.314 126.82 149.932 127.803 141.346 135.743L140.265 135.499C140.931 131.615 142.022 127.816 143.52 124.171C154.284 95.9788 165.1 83.6938 183.136 65.5562C179.683 72.389 178.976 82.7838 180.242 82.854C180.692 83.4338 185.097 80.7376 190.489 77.4512C199.384 71.9756 196.339 72.896 192.53 78.8942C189.225 84.05 188.006 88.9718 188.682 89.1954C188.96 89.9 193.164 88.7326 198.354 88.1138C202.072 87.6172 205.309 87.7238 206.913 87.5626C195.299 93.6726 172.136 114.826 158.036 141.292Z",fill:"black"}})])},c=[],d=e(i,o,c,!1,null,null,null,null);const s=d.exports,p={name:"BannerBlock",props:{header:{type:String,required:!0},content:{type:String,required:!1}}};var f=function(){var t=this,C=t._self._c;return C("div",{staticClass:"bg-black p-8 md:px-20 md:py-20 mx-auto max-w-5xl rounded-lg flex flex-col items-center text-center"},[C("h2",{staticClass:"text-white text-4xl md:text-6xl tracking-tight"},[t._v(" "+t._s(t.header)+" ")]),t.content?C("p",{staticClass:"text-white mt-4 text-lg md:text-xl"},[t._v(" "+t._s(t.content)+" ")]):t._e(),t._t("ctas")],2)},_=[],u=e(p,f,_,!1,null,null,null,null);const h=u.exports,m={name:"BannerGrid",components:{IconCheck:l},props:{content:{type:Array,default:()=>[{header:"Build and manage your website",description:"All your online presence managed in one place."},{header:"SEO Enabled",description:"Full SEO tooling to set and update meta for all web pages."},{header:"Sell Online Courses",description:"Manage, publish, and sell courses with ease. Video, audio, and text lessons."},{header:"Online Ads",description:"Our experts will help you create and manage online ads."},{header:"Multiple Payment Options",description:"Yur customers can pay with credit card, PayPal, and more."},{header:"24/7 Support",description:"Our team is here to help you with any questions you may have."}]}}};var g=function(){var t=this,C=t._self._c;return C("div",{staticClass:"grid sm:grid-cols-2 md:grid-cols-3 gap-16"},t._l(t.content,function(n,r){return C("div",{key:`cell-${r}`,staticClass:"flex gap-4 items-start"},[C("div",[C("div",{staticClass:"mt-1 bg-black rounded-full w-5 h-5 p-0.5"},[C("icon-check",{staticClass:"h-full text-white w-full"})],1)]),C("div",[C("h3",{staticClass:"font-semibold text-lg"},[t._v(t._s(n.header))]),C("p",{staticClass:"text-slate-500 mt-2 leading-relaxed"},[t._v(t._s(n.description))])])])}),0)},x=[],v=e(m,g,x,!1,null,null,null,null);const b=v.exports,M={name:"BannerTechnologies",data(){return{icons:["icon-brand-laravel","icon-brand-inertia","icon-brand-vue","icon-brand-tailwind"]}}};var Z=function(){var t=this,C=t._self._c;return C("div",[C("h2",{staticClass:"font-semibold text-center text-lg text-slate-500"},[t._v("Built with future-proof technologies")]),C("div",{staticClass:"flex gap-8 md:gap-20 items-center justify-center mt-10 flex-wrap"},t._l(t.icons,function(n){return C(n,{key:n,tag:"component",staticClass:"h-full w-8 md:w-12",attrs:{"stroke-width":"1.5"}})}),1)])},k=[],y=e(M,Z,k,!1,null,null,null,null);const w=y.exports,$={components:{AstronautOnMoon:s},props:{header:{type:String,required:!0},content:{type:String,required:!1}}};var S=function(){var t=this,C=t._self._c;return C("section",{staticClass:"grid lg:grid-cols-2 place-items-center pt-16 pb-8 md:pt-12 md:pb-24"},[C("div",{staticClass:"py-6 md:order-1 hidden md:block"},[C("picture",[t._t("svg")],2)]),C("div",[C("h1",{staticClass:"text-5xl lg:text-6xl xl:text-7xl font-bold lg:tracking-tight xl:tracking-tighter"},[t._v(" "+t._s(t.header)+" ")]),t.content?C("p",{staticClass:"text-lg mt-4 text-slate-600 max-w-xl"},[t._v(" "+t._s(t.content)+" ")]):t._e(),C("div",{staticClass:"mt-6 flex flex-col sm:flex-row gap-3"},[t._t("ctas")],2)])])},F=[],V=e($,S,F,!1,null,null,null,null);const B=V.exports,E={name:"SimpleBanner",props:{header:{type:String,required:!0},content:{type:String,required:!1}}};var L=function(){var t=this,C=t._self._c;return C("div",[C("h2",{staticClass:"text-4xl lg:text-5xl font-bold lg:tracking-tight"},[t._v(" "+t._s(t.header)+" ")]),t.content?C("p",{staticClass:"text-lg mt-4 text-slate-600"},[t._v(" "+t._s(t.content)+" ")]):t._e()])},O=[],H=e(E,L,O,!1,null,null,null,null);const I=H.exports,q={name:"Index",components:{AstronautOnMoon:s,BannerBlock:h,BannerGrid:b,BannerTechnologies:w,HeroWithSvg:B,SimpleBanner:I},layout:"website-layout"};var G=function(){var t=this,C=t._self._c;return C("div",{staticClass:"max-w-screen-xl mx-auto px-5"},[C("hero-with-svg",{attrs:{header:"We digitalise your business.",content:"SIGI is the only tool you'll need to manage your entire web presence, including: Website, Email Campaigns, Video Courses, and more..."},scopedSlots:t._u([{key:"svg",fn:function(){return[C("astronaut-on-moon")]},proxy:!0},{key:"ctas",fn:function(){return[C("a",{staticClass:"rounded text-center transition border-2 border-transparent flex gap-1 items-center justify-center ring-offset-2 ring-gray-200 px-5 py-2.5 bg-black text-white focus-visible:ring-2 hover:bg-gray-800",attrs:{href:"https://formie.io/form/9eece8a5-d9c0-428e-b447-562cf332d492"}},[t._v(" Get Started ")])]},proxy:!0}])}),C("simple-banner",{staticClass:"mt-16 md:mt-0",attrs:{header:"Everything you need to start selling courses",content:"SIGI comes batteries included. It takes the best parts of state-of-the-art tools and adds its own innovations, allowing you to create & sell courses with ease."}}),C("banner-grid",{staticClass:"mt-16"}),C("banner-technologies",{staticClass:"mt-24"}),C("banner-block",{staticClass:"mt-20",attrs:{header:"What are you waiting for?",content:"Get started now and kick off your online platform!"},scopedSlots:t._u([{key:"ctas",fn:function(){return[C("div",{staticClass:"flex mt-5"},[C("a",{staticClass:"rounded text-center transition focus-visible:ring-2 ring-offset-2 ring-gray-200 px-5 py-2.5 bg-white text-black border-2 border-transparent",attrs:{href:"https://formie.io/form/9eece8a5-d9c0-428e-b447-562cf332d492"}},[t._v(" Get Started ")])])]},proxy:!0}])})],1)},R=[],A=e(q,G,R,!1,null,null,null,null);const j=A.exports;export{j as default}; diff --git a/public/build/assets/Index.cecb4ae3.js b/public/build/assets/Index.cecb4ae3.js new file mode 100644 index 00000000..63f44007 --- /dev/null +++ b/public/build/assets/Index.cecb4ae3.js @@ -0,0 +1 @@ +import{_ as r,O as i}from"./vendor.21c2b6f5.js";import{C as n}from"./ConfirmationModal.242a99d0.js";import{I as l}from"./InputGroup.513e0dd4.js";import{n as o}from"./LogoLight.f7426689.js";const u={name:"AdminUserIndex",components:{ConfirmationModal:n,InputGroup:l},layout:"admin-layout",props:{searchOptions:Array|Object,users:Object},data(){return{editableSearchOptions:{per_page:15,user_first_name:"",user_last_name:"",user_email:""},isInitialised:!1,isLoadingUserDelete:!1,showDeleteModal:!1,userToDelete:null}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.userToDelete.name+"'?"}catch{return"Do you really want to delete this user?"}},show_users_actions(){return this.userCan("users.edit")||this.userCan("users.delete")},showPagination(){try{return this.users.pagination.last_page>1}catch{return!1}},usersData(){return!this.users||!this.users.data||this.users.data.length<1?!1:this.users.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{cancelUserDelete(){this.isLoadingUserDelete||(this.showDeleteModal=!1,this.userToDelete=null)},checkUserDelete(a){this.showDeleteModal=!0,this.userToDelete=a},confirmUserDelete(){if(this.isLoadingUserDelete)return this.$errorToast("It's only possible to delete one user at a time.");this.$inertia.delete(this.$route("landlord.admin.users.destroy",this.userToDelete.id),{only:["flash","users"]}),this.userToDelete=null,this.showDeleteModal=!1},isUserCurrent(a){try{return a.id===this.$page.props.auth.user.id}catch{return!1}},onSearchOptionsUpdate:r.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.usersData)||i.get(this.$route("landlord.admin.users.index"),this.editableSearchOptions,{only:["users"],preserveState:!0})},500),setSearchOptions(a={}){let e={per_page:15,user_first_name:"",user_last_name:"",user_email:""};try{r.forEach(a,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=r.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var c=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Users ")]),e.userCan("users.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("landlord.admin.users.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create User ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"user_first_name_search","input-class":"form-control form-control-short","input-id":"user_first_name","input-name":"user_first_name","input-placeholder":"First Name","input-type":"text","label-hidden":!0,"label-text":"First Name"},model:{value:e.editableSearchOptions.user_first_name,callback:function(s){e.$set(e.editableSearchOptions,"user_first_name",s)},expression:"editableSearchOptions.user_first_name"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"user_last_name_search","input-class":"form-control form-control-short","input-id":"user_last_name","input-name":"user_last_name","input-placeholder":"Last Name","input-type":"text","label-hidden":!0,"label-text":"Last Name"},model:{value:e.editableSearchOptions.user_last_name,callback:function(s){e.$set(e.editableSearchOptions,"user_last_name",s)},expression:"editableSearchOptions.user_last_name"}})],1),t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"user_email_search","input-class":"form-control form-control-short","input-id":"user_email","input-name":"user_email","input-placeholder":"Email","input-type":"text","label-hidden":!0,"label-text":"Email"},model:{value:e.editableSearchOptions.user_email,callback:function(s){e.$set(e.editableSearchOptions,"user_email",s)},expression:"editableSearchOptions.user_email"}})],1)]),e.usersData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Email")]),e.show_users_actions?t("th"):e._e()])]),t("tbody",e._l(e.usersData,function(s,h){return t("tr",{key:`user-${s.id}`},[t("td",[e._v(" "+e._s(s.name)+" ")]),t("td",[e._v(" "+e._s(s.email)+" ")]),e.show_users_actions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("users.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("landlord.admin.users.edit",s.id),title:"Edit User"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("users.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{disabled:e.isUserCurrent(s),title:"Delete User"},on:{click:function(p){return e.checkUserDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])])]:t("p",{staticClass:"bg-theme-base-subtle mt-6 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No users ")]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.users.pagination}})],1):e._e(),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelUserDelete,closeModal:e.cancelUserDelete,confirmAction:e.confirmUserDelete}})],2)])},d=[],m=o(u,c,d,!1,null,null,null,null);const w=m.exports;export{w as default}; diff --git a/public/build/assets/Index.d2ba76f2.js b/public/build/assets/Index.d2ba76f2.js new file mode 100644 index 00000000..f5b0c5d3 --- /dev/null +++ b/public/build/assets/Index.d2ba76f2.js @@ -0,0 +1 @@ +import{_ as a,O as o}from"./vendor.21c2b6f5.js";import{I as r}from"./InputGroup.513e0dd4.js";import{S as n}from"./app.c52b09a2.js";import{n as m}from"./LogoLight.f7426689.js";import"./ConfirmationModal.242a99d0.js";const l={name:"AdminCrmFormSubmissionIndex",components:{InputGroup:r,SelectGroup:n},layout:"admin-layout",props:{searchOptions:{required:!0,type:Object|Array},formSubmissions:{required:!0,type:Object},forms:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{per_page:15,form_id:""},isInitialised:!1}},computed:{showPagination(){try{return this.formSubmissions.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("cms_advanced.edit")||this.userCan("cms_advanced.delete")},formSubmissionsData(){return!this.formSubmissions||!this.formSubmissions.data||this.formSubmissions.data.length<1?!1:this.formSubmissions.data}},mounted(){this.setSearchOptions(this.searchOptions)},methods:{onSearchOptionsUpdate:a.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.formSubmissionsData)||o.get(this.$route("admin.crm.form-submissions.index"),this.editableSearchOptions,{only:["formSubmissions"],preserveState:!0})},500),setSearchOptions(i={}){let t={per_page:15,form_id:""};try{a.forEach(i,(e,s)=>{t[s]=e})}catch(e){console.log(e)}this.editableSearchOptions=a.cloneDeep(t)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var c=function(){var t=this,e=t._self._c;return e("section",[t._m(0),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("h1",{staticClass:"font-semibold px-6 text-gray-850"},[t._v(" Search "),e("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:t.setSearchOptions}},[t._v(" (Clear) ")])]),e("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[e("div",{staticClass:"w-full md:w-1/2"},[e("select-group",{attrs:{"label-hidden":!0,"label-text":"Form","input-any-option-enabled":!0,"input-any-option-label":"Form","input-class":"form-control form-control-short","input-id":"form_id","input-name":"form_id","input-option-label-key":"name","input-option-value-key":"id","input-options":t.forms},model:{value:t.editableSearchOptions.form_id,callback:function(s){t.$set(t.editableSearchOptions,"form_id",s)},expression:"editableSearchOptions.form_id"}})],1)]),t.formSubmissionsData?[e("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[e("table",{staticClass:"table table-hover table-striped w-full"},[e("thead",[e("tr",[e("th",[t._v("Contact")]),e("th",[t._v("Form")]),e("th",[t._v("Submitted At")]),t.showActions?e("th"):t._e()])]),e("tbody",t._l(t.formSubmissionsData,function(s){return e("tr",{key:`template-${s.id}`},[e("td",[s.contact_id?s.contact.name_with_title?e("div",[e("span",[t._v(t._s(s.contact.name_with_title))]),e("br"),e("span",{staticClass:"text-sm text-theme-base-subtle-contrast"},[t._v(" "+t._s(s.contact.email)+" ")])]):e("div",[t._v(" "+t._s(s.contact.email)+" ")]):e("div",[t._v(" - ")])]),e("td",[t._v(" "+t._s(s.form.name?s.form.name:s.form_id)+" ")]),e("td",[t._v(" "+t._s(t._f("humanFriendlyDateTime")(s.submitted_at))+" ")]),t.showActions?e("td",[e("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[t.userCan("crm_form_submissions.view")?e("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:t.$route("admin.crm.form-submissions.show",s.id),title:"View Submission"}},[e("icon-eye",{staticClass:"w-4"})],1):t._e()],1)]):t._e()])}),0)])]),t.showPagination?e("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[e("pagination",{attrs:{pagination:t.formSubmissions.pagination}})],1):t._e()]:e("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[t._v(" No form submissions ")])],2)])},d=[function(){var i=this,t=i._self._c;return t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[i._v(" Form Submissions ")])])}],u=m(l,c,d,!1,null,null,null,null);const x=u.exports;export{x as default}; diff --git a/public/build/assets/Index.d696434d.js b/public/build/assets/Index.d696434d.js new file mode 100644 index 00000000..5c685376 --- /dev/null +++ b/public/build/assets/Index.d696434d.js @@ -0,0 +1 @@ +import{_ as l,O as o}from"./vendor.21c2b6f5.js";import{C as i}from"./ConfirmationModal.242a99d0.js";import{I as n}from"./InputGroup.513e0dd4.js";import{S as r}from"./app.c52b09a2.js";import{n as u}from"./LogoLight.f7426689.js";const c={name:"AdminCmsLayoutIndex",components:{ConfirmationModal:i,InputGroup:n,SelectGroup:r},layout:"admin-layout",props:{layouts:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array},templates:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{per_page:15,layout_name:"",layout_slug:"",template_id:""},isInitialised:!1,isLoadingDelete:!1,showDeleteModal:!1,layoutToDelete:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.layoutToDelete.name+"'?"}catch{return"Do you really want to delete this layout?"}},isTemplates(){try{return Object.keys(this.templates).length}catch{return!1}},showPagination(){try{return this.layouts.pagination.last_page>1}catch{return!1}},showLayoutActions(){return this.userCan("cms_advanced.edit")||this.userCan("cms_advanced.delete")},layoutsData(){return!this.layouts||!this.layouts.data||this.layouts.data.length<1?!1:this.layouts.data}},methods:{cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.layoutToDelete=null)},checkDelete(s){this.showDeleteModal=!0,this.layoutToDelete=s},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one layouts at a time.");this.$inertia.delete(this.$route("admin.cms.layouts.destroy",this.layoutToDelete.id),{only:["flash","layouts"]}),this.layoutToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:l.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.layoutsData)||o.get(this.$route("admin.cms.layouts.index"),this.editableSearchOptions,{only:["layouts"],preserveState:!0})},500),setSearchOptions(s={}){let t={per_page:15,layout_name:"",layout_slug:"",template_type:""};try{l.forEach(s,(e,a)=>{t[a]=e})}catch(e){console.log(e)}this.editableSearchOptions=l.cloneDeep(t)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var d=function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"flex flex-row items-center mb-6"},[e("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Layout ")]),t.userCan("cms_advanced.create")?e("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:t.$route("admin.cms.layouts.create")}},[e("icon-plus",{staticClass:"w-5 md:mr-2"}),e("span",{staticClass:"hidden md:inline"},[t._v(" Create Layout ")])],1):t._e()],1),e("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[e("h1",{staticClass:"font-semibold px-6 text-gray-850"},[t._v(" Search "),e("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:t.setSearchOptions}},[t._v(" (Clear) ")])]),e("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[e("div",{staticClass:"w-full md:w-1/3"},[e("input-group",{attrs:{"input-autocomplete":"layout_name_search","input-class":"form-control form-control-short","input-id":"layout_name","input-name":"layout_name","input-placeholder":"Layout Name","input-type":"text","label-hidden":!0,"label-text":"Layout Name"},model:{value:t.editableSearchOptions.layout_name,callback:function(a){t.$set(t.editableSearchOptions,"layout_name",a)},expression:"editableSearchOptions.layout_name"}})],1),e("div",{staticClass:"w-full md:w-1/3"},[e("input-group",{attrs:{"input-autocomplete":"layout_slug_search","input-class":"form-control form-control-short","input-id":"layout_slug","input-name":"layout_slug","input-placeholder":"Layout Slug","input-type":"text","label-hidden":!0,"label-text":"Layout Slug"},model:{value:t.editableSearchOptions.layout_slug,callback:function(a){t.$set(t.editableSearchOptions,"layout_slug",a)},expression:"editableSearchOptions.layout_slug"}})],1),t.isTemplates?e("div",{staticClass:"w-full md:w-1/3"},[e("select-group",{attrs:{"label-hidden":!0,"label-text":"Template","input-any-option-enabled":!0,"input-any-option-label":"Template","input-class":"form-control form-control-short","input-id":"template_id","input-name":"template_id","input-option-label-key":"name","input-option-value-key":"id","input-options":t.templates},model:{value:t.editableSearchOptions.template_id,callback:function(a){t.$set(t.editableSearchOptions,"template_id",a)},expression:"editableSearchOptions.template_id"}})],1):t._e()]),t.layoutsData?[e("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[e("table",{staticClass:"table table-hover table-striped w-full"},[e("thead",[e("tr",[e("th",[t._v("Name")]),e("th",[t._v("Slug")]),e("th",[t._v("Template")]),t.showLayoutActions?e("th"):t._e()])]),e("tbody",t._l(t.layoutsData,function(a,h){return e("tr",{key:`layout-${a.id}`},[e("td",[t._v(" "+t._s(a.name)+" ")]),e("td",[t._v(" "+t._s(a.slug)+" ")]),e("td",[t._v(" "+t._s(a.template.name)+" ")]),t.showLayoutActions?e("td",[e("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[t.userCan("cms_advanced.edit")?e("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:t.$route("admin.cms.layouts.edit",a.id),title:"Edit Layout"}},[e("icon-edit",{staticClass:"w-4"})],1):t._e(),t.userCan("cms_advanced.delete")?e("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Layout"},on:{click:function(y){return t.checkDelete(a)}}},[e("icon-trash",{staticClass:"w-4"})],1):t._e()],1)]):t._e()])}),0)])]),t.showPagination?e("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[e("pagination",{attrs:{pagination:t.layouts.pagination}})],1):t._e()]:e("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[t._v(" No layouts ")]),e("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":t.showDeleteModal,"message-text":t.deleteModalText},on:{cancelAction:t.cancelDelete,closeModal:t.cancelDelete,confirmAction:t.confirmDelete}})],2)])},m=[],p=u(c,d,m,!1,null,null,null,null);const v=p.exports;export{v as default}; diff --git a/public/build/assets/Index.d8a5dc92.js b/public/build/assets/Index.d8a5dc92.js new file mode 100644 index 00000000..80149750 --- /dev/null +++ b/public/build/assets/Index.d8a5dc92.js @@ -0,0 +1 @@ +import{n as s}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"AdminHomeIndex",layout:"admin-layout"};var a=function(){var t=this;return t._self._c,t._m(0)},l=[function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Dashboard ")])]),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold text-gray-850"},[e._v(" Welcome ")]),t("p",{staticClass:"mt-2"},[e._v(" Let's build something great. ")])])])}],o=s(n,a,l,!1,null,null,null,null);const m=o.exports;export{m as default}; diff --git a/public/build/assets/Index.e94fc6a9.css b/public/build/assets/Index.e94fc6a9.css new file mode 100644 index 00000000..deb25d94 --- /dev/null +++ b/public/build/assets/Index.e94fc6a9.css @@ -0,0 +1 @@ +.skewed-logo-bg[data-v-2a0cf984]{--tw-rotate: -18deg;--tw-skew-y: 12deg } diff --git a/public/build/assets/Index.ebf74275.js b/public/build/assets/Index.ebf74275.js new file mode 100644 index 00000000..9d41c451 --- /dev/null +++ b/public/build/assets/Index.ebf74275.js @@ -0,0 +1 @@ +import{n as i}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const o={name:"AdminEmailPreviewIndex",layout:"admin-layout",props:{mailables:{type:Object,required:!0}}};var _=function(){var t=this,e=t._self._c;return e("div",[t._m(0),t._l(t.mailables,function(a,n){return e("div",{key:n,staticClass:"bg-white p-6 mt-4 shadow-subtle rounded-lg"},[e("h2",{staticClass:"font-medium mr-auto text-lg"},[t._v(" "+t._s(n)+" ")]),e("ul",{staticClass:"mt-2 space-y-1"},t._l(a,function(s,l){return e("li",{key:`${n}-${l}`},[e("a",{attrs:{href:s.url,rel:"noopener noreferrer",target:"_blank"}},[t._v(" "+t._s(s.name)+" ")])])}),0)])})],2)},c=[function(){var r=this,t=r._self._c;return t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[r._v(" Email Preview ")])])}],m=i(o,_,c,!1,null,null,null,null);const d=m.exports;export{d as default}; diff --git a/public/build/assets/Index.efc25151.js b/public/build/assets/Index.efc25151.js new file mode 100644 index 00000000..a9627ffa --- /dev/null +++ b/public/build/assets/Index.efc25151.js @@ -0,0 +1 @@ +import{_ as r,O as m}from"./vendor.21c2b6f5.js";import{C as c}from"./ConfirmationModal.242a99d0.js";import{I as u}from"./InputGroup.513e0dd4.js";import{n as h}from"./LogoLight.f7426689.js";const d={name:"AdminEDUProgrammeIndex",components:{ConfirmationModal:c,InputGroup:u},layout:"admin-layout",props:{programmes:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{programme_name:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,isLoadingPublish:!1,showDeleteModal:!1,itemToDelete:null,showConfirmPublishModal:null,itemToPublish:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{publishModalText(){try{return"Do you really want to publish '"+this.itemToPublish.name+"'?"}catch{return"Do you really want to perform this action?"}},deleteModalText(){try{return"Do you really want to delete '"+this.itemToDelete.name+"'?"}catch{return"Do you really want to delete this?"}},showPagination(){try{return this.programmes.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("programmes.edit")||this.userCan("programmes.delete")},programmeData(){return!this.programmes||!this.programmes.data||this.programmes.data.length<1?!1:this.programmes.data}},methods:{checkPublishCourse(a){this.showConfirmPublishModal=!0,this.itemToPublish=a},confirmPublish(){if(this.isLoadingPublish)return this.$errorToast("It's only possible to publish one item at a time.");this.$inertia.patch(this.$route("admin.edu.programmes.publish",this.itemToPublish.id),{only:["flash","programmes"]}),this.itemToPublish=null,this.showConfirmPublishModal=!1},cancelPublish(){this.isLoadingPublish||(this.showConfirmPublishModal=!1,this.itemToPublish=null)},cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.itemToDelete=null)},checkDelete(a){this.showDeleteModal=!0,this.itemToDelete=a},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one item at a time.");this.$inertia.delete(this.$route("admin.edu.programmes.destroy",this.itemToDelete.id),{only:["flash","programmes"]}),this.itemToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:r.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.programmeData)||m.get(this.$route("admin.edu.programmes.index"),this.editableSearchOptions,{only:["programmes"],preserveState:!0})},500),setSearchOptions(a={}){let e={programme_name:"",per_page:15};try{r.forEach(a,(t,s)=>{e[s]=t})}catch(t){console.log(t)}this.editableSearchOptions=r.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var p=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Programme ")]),e.userCan("programmes.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.edu.programmes.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"programme_name_search","input-class":"form-control form-control-short","input-id":"programme_name","input-name":"programme_name","input-placeholder":"Programme Name","input-type":"text","label-hidden":!0,"label-text":"Programme Name"},model:{value:e.editableSearchOptions.programme_name,callback:function(s){e.$set(e.editableSearchOptions,"programme_name",s)},expression:"editableSearchOptions.programme_name"}})],1)]),e.programmeData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Price")]),t("th",[e._v("Status")]),t("th",[e._v("Summary")]),t("th",[e._v("Created By")]),t("th",[e._v("Length")]),t("th",[e._v("Total Courses")]),t("th",[e._v("Total Participants")]),t("th",[e._v("Total Sold")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.programmeData,function(s,b){var o,i,n;return t("tr",{key:`item-${s.id}`},[t("td",[e._v(" "+e._s(s.name)+" "),t("br"),t("small",[e._v(e._s(s.slug))])]),t("td",[e._v(" "+e._s(s.price+" "+s.currency)+" ")]),t("td",[e._v(" "+e._s(s.status)+" ")]),t("td",[e._v(" "+e._s(s.summary&&s.summary.length>60?s.summary.substring(0,60)+" ...":"")+" ")]),t("td",[e._v(" "+e._s(s.creator?s.creator.first_name+" "+s.creator.last_name:"")+" ")]),t("td",[e._v(" "+e._s(s.content_length_video)+" ")]),t("td",[e._v(" "+e._s((o=s.courses_count)!=null?o:0)+" ")]),t("td",[e._v(" "+e._s((i=s.participants_count)!=null?i:0)+" ")]),t("td",[e._v(" "+e._s((n=s.total_sold)!=null?n:0)+" ")]),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("programmes.publish")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-success hover:text-theme-success-contrast",attrs:{title:"Publish"},on:{click:function(l){return e.checkPublishProgramme(s)}}},[t("icon-check",{staticClass:"w-4"})],1):e._e(),e.userCan("programmes.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.programmes.edit",s.id),title:"Edit"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("programmes.view")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.programmes.preview",s.id),title:"Preview"}},[t("icon-eye",{staticClass:"w-4"})],1):e._e(),e.userCan("programmes.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete"},on:{click:function(l){return e.checkDelete(s)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.programmes.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("confirmation-modal",{attrs:{"confirm-text":"Publish","confirm-type":"success","show-modal":e.showConfirmPublishModal,"message-text":e.publishModalText},on:{cancelAction:e.cancelPublish,closeModal:e.cancelPublish,confirmAction:e.confirmPublish}})],2)])},f=[],g=h(d,p,f,!1,null,null,null,null);const y=g.exports;export{y as default}; diff --git a/public/build/assets/Index.f2c6fdf5.js b/public/build/assets/Index.f2c6fdf5.js new file mode 100644 index 00000000..a39184a5 --- /dev/null +++ b/public/build/assets/Index.f2c6fdf5.js @@ -0,0 +1 @@ +import{_ as i,O as a}from"./vendor.21c2b6f5.js";import{C as l}from"./ConfirmationModal.242a99d0.js";import{I as r}from"./InputGroup.513e0dd4.js";import{aB as c,aC as u,n as h}from"./LogoLight.f7426689.js";const m={name:"AdminEDUAnnouncementIndex",components:{IconCheck:c,IconSave:u,ConfirmationModal:l,InputGroup:r},layout:"admin-layout",props:{announcements:{required:!0,type:Object},searchOptions:{required:!0,type:Object|Array}},data(){return{editableSearchOptions:{announcement_title:"",per_page:15},isInitialised:!1,isLoadingDelete:!1,isLoadingPublish:!1,showDeleteModal:!1,itemToDelete:null,showConfirmPublishModal:null,itemToPublish:null}},mounted(){this.setSearchOptions(this.searchOptions)},computed:{publishModalText(){try{return"Do you really want to publish '"+this.itemToPublish.title+"'?"}catch{return"Do you really want to perform this action?"}},deleteModalText(){try{return"Do you really want to delete '"+this.itemToDelete.title+"'?"}catch{return"Do you really want to delete this?"}},showPagination(){try{return this.announcements.pagination.last_page>1}catch{return!1}},showActions(){return this.userCan("announcements.edit")||this.userCan("announcements.delete")},announcementData(){return!this.announcements||!this.announcements.data||this.announcements.data.length<1?!1:this.announcements.data}},methods:{checkPublishAnnouncement(s){this.showConfirmPublishModal=!0,this.itemToPublish=s},confirmPublish(){if(this.isLoadingPublish)return this.$errorToast("It's only possible to publish one item at a time.");this.$inertia.patch(this.$route("admin.edu.announcements.publish",this.itemToPublish.id),{only:["flash","announcements"]}),this.itemToPublish=null,this.showConfirmPublishModal=!1},cancelPublish(){this.isLoadingPublish||(this.showConfirmPublishModal=!1,this.itemToPublish=null)},cancelDelete(){this.isLoadingDelete||(this.showDeleteModal=!1,this.itemToDelete=null)},checkDelete(s){this.showDeleteModal=!0,this.itemToDelete=s},confirmDelete(){if(this.isLoadingDelete)return this.$errorToast("It's only possible to delete one item at a time.");this.$inertia.delete(this.$route("admin.edu.announcements.destroy",this.itemToDelete.id),{only:["flash","announcements"]}),this.itemToDelete=null,this.showDeleteModal=!1},onSearchOptionsUpdate:i.debounce(function(){!this.isInitialised&&(this.isInitialised=!0,this.announcementData)||a.get(this.$route("admin.edu.announcements.index"),this.editableSearchOptions,{only:["announcements"],preserveState:!0})},500),setSearchOptions(s={}){let e={announcement_title:"",per_page:15};try{i.forEach(s,(t,n)=>{e[n]=t})}catch(t){console.log(t)}this.editableSearchOptions=i.cloneDeep(e)}},watch:{editableSearchOptions:{deep:!0,handler:"onSearchOptionsUpdate"}}};var d=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-row items-center mb-6"},[t("h1",{staticClass:"font-medium mr-auto text-lg"},[e._v(" Announcements ")]),e.userCan("announcements.create")?t("inertia-link",{staticClass:"button button-default-responsive button-primary flex flex-row items-center",attrs:{href:e.$route("admin.edu.announcements.create")}},[t("icon-plus",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Create ")])],1):e._e()],1),t("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[t("h1",{staticClass:"font-semibold px-6 text-gray-850"},[e._v(" Search "),t("button",{staticClass:"text-sm text-theme-base-subtle-contrast focus:outline-none focus:text-theme-primary hover:text-theme-primary",on:{click:e.setSearchOptions}},[e._v(" (Clear) ")])]),t("div",{staticClass:"flex flex-col items-center mt-4 px-6 space-y-4 md:flex-row md:space-y-0 md:space-x-8"},[t("div",{staticClass:"w-full md:w-1/3"},[t("input-group",{attrs:{"input-autocomplete":"announcement_title_search","input-class":"form-control form-control-short","input-id":"announcement_title","input-name":"announcement_title","input-placeholder":"Announcement Title","input-type":"text","label-hidden":!0,"label-text":"Announcement Title"},model:{value:e.editableSearchOptions.announcement_title,callback:function(n){e.$set(e.editableSearchOptions,"announcement_title",n)},expression:"editableSearchOptions.announcement_title"}})],1)]),e.announcementData?[t("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[t("table",{staticClass:"table table-hover table-striped w-full"},[t("thead",[t("tr",[t("th",[e._v("Title")]),t("th",[e._v("Description")]),t("th",[e._v("Created By")]),t("th",[e._v("Status")]),t("th",[e._v("Platform")]),t("th",[e._v("Email")]),t("th",[e._v("SMS")]),e.showActions?t("th"):e._e()])]),t("tbody",e._l(e.announcementData,function(n,b){return t("tr",{key:`item-${n.id}`},[t("td",[e._v(" "+e._s(n.title)+" ")]),t("td",[t("span",{domProps:{innerHTML:e._s(n.description)}})]),t("td",[e._v(" "+e._s(n.creator?n.creator.first_name+" "+n.creator.last_name:"")+" ")]),t("td",[e._v(" "+e._s(n.status)+" ")]),t("td",[e._v(" "+e._s(n.platform?"Yes":"No")+" ")]),t("td",[e._v(" "+e._s(n.email?"Yes":"No")+" ")]),t("td",[e._v(" "+e._s(n.sms?"Yes":"No")+" ")]),e.showActions?t("td",[t("div",{staticClass:"flex flex-row items-center justify-end -mx-1"},[e.userCan("announcements.publish")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-success hover:text-theme-success-contrast",attrs:{title:"Publish"},on:{click:function(o){return e.checkPublishAnnouncement(n)}}},[t("icon-check",{staticClass:"w-4"})],1):e._e(),e.userCan("announcements.edit")?t("inertia-link",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.announcements.edit",n.id),title:"Edit"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),e.userCan("announcements.delete")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete"},on:{click:function(o){return e.checkDelete(n)}}},[t("icon-trash",{staticClass:"w-4"})],1):e._e()],1)]):e._e()])}),0)])]),e.showPagination?t("div",{staticClass:"flex flex-row justify-center mt-12 px-6"},[t("pagination",{attrs:{pagination:e.announcements.pagination}})],1):e._e()]:t("p",{staticClass:"bg-theme-base-subtle mt-8 mx-6 px-6 py-4 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No results ")]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("confirmation-modal",{attrs:{"confirm-text":"Publish","confirm-type":"success","show-modal":e.showConfirmPublishModal,"message-text":e.publishModalText},on:{cancelAction:e.cancelPublish,closeModal:e.cancelPublish,confirmAction:e.confirmPublish}})],2)])},f=[],p=h(m,d,f,!1,null,null,null,null);const y=p.exports;export{y as default}; diff --git a/public/build/assets/Index.f652474a.js b/public/build/assets/Index.f652474a.js new file mode 100644 index 00000000..0e3b87cc --- /dev/null +++ b/public/build/assets/Index.f652474a.js @@ -0,0 +1 @@ +import{n as i}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const a={name:"Index",layout:"home-layout",props:{courses:{type:Array}},data(){return{isLoading:!0}}};var r=function(){var t=this,e=t._self._c;return t.isLoading?t._e():e("div",{staticClass:"bg-gray-100 flex flex-col min-h-screen min-w-screen"},[e("nav",{staticClass:"bg-white py-3"},[e("div",{staticClass:"container flex flex-row justify-between mx-auto px-4"},[e("inertia-link",{staticClass:"font-semibold hover:text-theme-primary-hover",attrs:{href:"/"}},[t._v(" Home ")]),e("ul",{staticClass:"flex flex-row space-x-4"},[t.$page.props.auth.user?[t.userCan("admin.view")?e("li",[e("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:t.$route("admin.index")}},[t._v(" Lecturer Admin ")])],1):t._e(),t.userCan("student_admin.view")?e("li",[e("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:t.$route("student.admin.index")}},[t._v(" Student Admin ")])],1):t._e()]:[t.$routeCheck("student.login")?e("li",[e("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:t.$route("student.login")}},[t._v(" Student Login ")])],1):t._e(),t.$routeCheck("student.register")?e("li",[e("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:t.$route("student.register")}},[t._v(" Student Register ")])],1):t._e()]],2)],1)]),e("section",{staticClass:"container mt-4 mx-auto px-4"},[e("h1",{staticClass:"font-semibold text-xl"},[t._v(" Welcome to "+t._s(t.$page.props.tenant.id)+" ")])]),t.courses&&t.courses.length?e("section",{staticClass:"container mt-4 mx-auto px-4"},[e("h1",{staticClass:"font-semibold text-lg"},[t._v(" Featured Courses ")]),e("div",{staticClass:"grid gap-4 mt-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},t._l(t.courses,function(s){return e("div",[e("inertia-link",{staticClass:"flex flex-1 flex-col group h-full relative",attrs:{href:t.$route("website.edu.courses.show",s.slug),title:`View course: ${s.name}`}},[e("article",{staticClass:"flex flex-1 flex-col bg-white inset-0 overflow-hidden rounded-lg shadow-subtle ease-in-out duration-300 transition-colors hover:bg-gray-100"},[e("div",[e("div",{staticClass:"aspect-ratio-16-9 relative w-full"},[e("img",{staticClass:"bg-gray-100 h-full object-cover w-full",attrs:{alt:"Course preview image",src:s.primary_image}}),e("div",{staticClass:"absolute flex h-full inset-0 items-center justify-center opacity-0 w-full ease-in-out duration-300 transition-opacity group-hover:opacity-100"},[e("span",{staticClass:"absolute bg-black h-full inset-0 opacity-40 w-full"}),e("icon-player-play-filled",{staticClass:"h-12 relative text-white w-12"})],1)])]),e("section",{staticClass:"pb-3 px-6 mt-3"},[e("h3",{staticClass:"font-semibold text-sm group-hover:underline",attrs:{title:s.name}},[t._v(" "+t._s(s.name)+" ")])])])])],1)}),0)]):t._e()])},l=[],n=i(a,r,l,!1,null,null,null,null);const d=n.exports;export{d as default}; diff --git a/public/build/assets/Index.f7839a10.js b/public/build/assets/Index.f7839a10.js new file mode 100644 index 00000000..52a86023 --- /dev/null +++ b/public/build/assets/Index.f7839a10.js @@ -0,0 +1 @@ +import{n as e}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const a={name:"AdminProfileIndex",layout:"admin-layout",props:{auth:Object,profile:Object}};var l=function(){var t=this,s=t._self._c;return s("section",{staticClass:"max-w-5xl mx-auto"},[t.userCan("profile.edit")?s("div",{staticClass:"flex flex-row items-center mb-6"},[s("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" My Profile ")]),s("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center",attrs:{href:t.$route("admin.profile.edit")}},[s("icon-edit",{staticClass:"w-5 md:mr-2"}),s("span",{staticClass:"hidden md:inline"},[t._v(" Edit Profile ")])],1)],1):t._e(),s("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("p",[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" First Name ")]),t._v(" "+t._s(t.profile.first_name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Last Name ")]),t._v(" "+t._s(t.profile.last_name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Email ")]),t._v(" "+t._s(t.profile.email)+" ")])])])])},i=[],n=e(a,l,i,!1,null,null,null,null);const c=n.exports;export{c as default}; diff --git a/public/build/assets/InlineCheckboxGroup.b3aa2b58.js b/public/build/assets/InlineCheckboxGroup.b3aa2b58.js new file mode 100644 index 00000000..ad969103 --- /dev/null +++ b/public/build/assets/InlineCheckboxGroup.b3aa2b58.js @@ -0,0 +1 @@ +import{b as o,F as u}from"./InputGroup.513e0dd4.js";import{c}from"./checkbox-form-group.99a615f1.js";import{n as p}from"./LogoLight.f7426689.js";const d={name:"InlineCheckboxGroup",mixins:[o,c],components:{FormFieldError:u},props:{inputClass:{default:"cursor-pointer form-checkbox h-5 mr-2 rounded text-theme-primary w-5 focus:border-theme-primary focus:outline-none focus:ring focus:ring-primary",type:String},labelClass:{default:"cursor-pointer flex-1 font-medium select-none text-theme-base-contrast text-sm tracking-wider",type:String}}};var m=function(){var e=this,r=e._self._c;return r("div",{staticClass:"flex flex-col"},[r("div",{staticClass:"flex flex-row"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.editableValue,expression:"editableValue"}],ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,"false-value":e.inputValueFalse,name:e.inputName,required:e.inputRequired,"true-value":e.inputValueTrue,type:"checkbox"},domProps:{checked:Array.isArray(e.editableValue)?e._i(e.editableValue,null)>-1:e._q(e.editableValue,e.inputValueTrue)},on:{change:[function(a){var t=e.editableValue,s=a.target,i=s.checked?e.inputValueTrue:e.inputValueFalse;if(Array.isArray(t)){var n=null,l=e._i(t,n);s.checked?l<0&&(e.editableValue=t.concat([n])):l>-1&&(e.editableValue=t.slice(0,l).concat(t.slice(l+1)))}else e.editableValue=i},e.onInput],keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)}}}),r("label",{class:e.labelClass,attrs:{for:e.inputId}},[r("span",{staticClass:"flex flex-row items-baseline"},[r("span",[e._v(e._s(e.labelText))]),e.inputRequired?r("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])])]),r("form-field-error",{attrs:{"error-class":e.errorClass,"error-message":e.errorMessage,"is-error":e.isError}})],1)},f=[],b=p(d,m,f,!1,null,null,null,null);const k=b.exports;export{k as I}; diff --git a/public/build/assets/InputGroup.513e0dd4.js b/public/build/assets/InputGroup.513e0dd4.js new file mode 100644 index 00000000..f080e86c --- /dev/null +++ b/public/build/assets/InputGroup.513e0dd4.js @@ -0,0 +1 @@ +import{n as s}from"./LogoLight.f7426689.js";const i={model:{prop:"inputValue"},props:{errorClass:{default:"input-group-error",type:String},errorHideOnInput:{default:!0,type:Boolean},errorMessage:{default:"",type:String},inputAutofocus:{default:!1,type:Boolean},inputClass:{default:"input-group-input",type:String},inputDisabled:{default:!1,type:Boolean},inputId:{required:!0,type:String},inputName:{required:!0,type:String},inputRequired:{default:!1,type:Boolean},inputValue:{default:"",type:String|Number},inputWrapperClass:{default:"",type:String},labelClass:{default:"input-group-label",type:String},labelHidden:{default:!1,type:Boolean},labelText:{required:!0,type:String}},data(){return{hideError:!1}},computed:{formattedInputClass(){return this.isError?this.inputClass+" error":this.inputClass},formattedLabelClass(){let r=this.labelClass;return this.labelHidden&&(r+=" hidden"),r},isError(){return!!(!this.hideError&&this.errorMessage&&this.errorMessage!=="")}},methods:{autofocus(){this.inputAutofocus&&this.$refs[this.inputId]&&this.$nextTick(()=>{this.$refs[this.inputId].focus()})},blurInput(){this.$refs[this.inputId]&&this.$nextTick(()=>{this.$refs[this.inputId].blur()})},onErrorMessageChange(){this.hideError=!1},onInput(){this.$emit("input",this.$refs[this.inputId].value),this.errorHideOnInput&&(this.hideError=!0,this.$emit("errorHidden"))},onInputBlur(){this.$emit("blur")}},watch:{errorMessage:{handler:"onErrorMessageChange"}}},u={name:"FormFieldError",props:{errorClass:{required:!0,type:String},errorMessage:{required:!0,type:String},isError:{required:!0,type:Boolean},transitionName:{default:"slide-down-fade",type:String}}};var a=function(){var e=this,t=e._self._c;return t("div",[t("transition",{attrs:{name:e.transitionName}},[e.isError?t("p",{class:e.errorClass},[e._v(" "+e._s(e.errorMessage)+" ")]):e._e()])],1)},l=[],p=s(u,a,l,!1,null,null,null,null);const o=p.exports,d={name:"InputGroup",mixins:[i],components:{FormFieldError:o},props:{inputAutocomplete:{default:"",type:String},inputMax:{default:"",type:String|Number},inputMaxLength:{default:"",type:String|Number},inputMin:{default:"",type:String|Number},inputMinLength:{default:"",type:String|Number},inputPlaceholder:{default:"",type:String},inputType:{default:"text",type:String}},mounted(){this.autofocus()}};var f=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col"},[t("label",{class:e.formattedLabelClass,attrs:{for:e.inputId}},[e._t("default",function(){return[t("span",{staticClass:"flex flex-row items-baseline"},[t("span",[e._v(e._s(e.labelText))]),e.inputRequired?t("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])]})],2),t("div",{class:e.inputWrapperClass},[e._t("inputPrepend"),t("input",{ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,autocomplete:e.inputAutocomplete,disabled:e.inputDisabled,max:e.inputMax,maxlength:e.inputMaxLength,min:e.inputMin,minlength:e.inputMinLength,name:e.inputName,placeholder:e.inputPlaceholder,required:e.inputRequired,type:e.inputType},domProps:{value:e.inputValue},on:{blur:e.onInputBlur,input:e.onInput,keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)}}}),e._t("inputAppend")],2),t("form-field-error",{attrs:{"error-class":e.errorClass,"error-message":e.errorMessage,"is-error":e.isError}})],1)},c=[],m=s(d,f,c,!1,null,null,null,null);const g=m.exports;export{o as F,g as I,i as b}; diff --git a/public/build/assets/Login.364765db.js b/public/build/assets/Login.364765db.js new file mode 100644 index 00000000..acef045f --- /dev/null +++ b/public/build/assets/Login.364765db.js @@ -0,0 +1 @@ +import{I as m}from"./InputGroup.513e0dd4.js";import{n as l}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const u={name:"AuthLogin",components:{InputGroup:m},layout:"auth-layout",data(){return{form:{email:"",password:"",remember:null}}},methods:{submit(){this.$inertia.post(this.$route("login"),this.form)}}};var c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"auth-card-container"},[t("div",{staticClass:"auth-card"},[t("h1",{staticClass:"auth-header"},[e._v(" Welcome back ")]),t("form",{staticClass:"px-6",on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"email","input-autofocus":!0,"input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(r){return e.clearPageErrorMessage("email")}},model:{value:e.form.email,callback:function(r){e.$set(e.form,"email",r)},expression:"form.email"}}),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"current-password","input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(r){return e.clearPageErrorMessage("password")}},model:{value:e.form.password,callback:function(r){e.$set(e.form,"password",r)},expression:"form.password"}}),t("div",{staticClass:"mt-6"},[t("label",{staticClass:"cursor-pointer flex font-medium inline-block items-center text-theme-base-contrast"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.remember,expression:"form.remember"}],staticClass:"leading-tight mr-2 rounded focus:outline-none focus:ring focus:ring-primary",attrs:{id:"remember",name:"remember",type:"checkbox"},domProps:{checked:Array.isArray(e.form.remember)?e._i(e.form.remember,null)>-1:e.form.remember},on:{change:function(r){var s=e.form.remember,o=r.target,n=!!o.checked;if(Array.isArray(s)){var i=null,a=e._i(s,i);o.checked?a<0&&e.$set(e.form,"remember",s.concat([i])):a>-1&&e.$set(e.form,"remember",s.slice(0,a).concat(s.slice(a+1)))}else e.$set(e.form,"remember",n)}}}),t("span",{staticClass:"select-none text-sm"},[e._v(" Remember Me ")])])]),t("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[t("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[e._v(" Sign In ")]),t("inertia-link",{staticClass:"text-gray-900 hover:text-theme-primary transition-all ease-in-out duration-300",attrs:{href:e.$route("password.request")}},[e._v(" Forgot Password? ")])],1)],1)]),t("div",{staticClass:"flex justify-end mt-4"},[e.$routeCheck("register")?t("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:e.$route("register")}},[e._v(" Create a new account ")]):e._e()],1)])},p=[],d=l(u,c,p,!1,null,null,null,null);const v=d.exports;export{v as default}; diff --git a/public/build/assets/Login.3e5bd779.js b/public/build/assets/Login.3e5bd779.js new file mode 100644 index 00000000..4a4b9318 --- /dev/null +++ b/public/build/assets/Login.3e5bd779.js @@ -0,0 +1 @@ +import{I as m}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const l={name:"StudentAuthLogin",components:{InputGroup:m},layout:"auth-layout",data(){return{form:{email:"",password:"",remember:null}}},methods:{submit(){this.$inertia.post(this.$route("student.login"),this.form)}}};var c=function(){var e=this,r=e._self._c;return r("div",{staticClass:"auth-card-container"},[r("div",{staticClass:"auth-card"},[r("h1",{staticClass:"auth-header"},[e._v(" "+e._s(e.__("messages.welcome-general"))+" ")]),r("form",{staticClass:"px-6",on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"email","input-autofocus":!0,"input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(t){return e.clearPageErrorMessage("email")}},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"current-password","input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":e.__("messages.password")},on:{errorHidden:function(t){return e.clearPageErrorMessage("password")}},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),r("div",{staticClass:"mt-6"},[r("label",{staticClass:"cursor-pointer flex font-medium inline-block items-center text-theme-base-contrast"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.remember,expression:"form.remember"}],staticClass:"leading-tight mr-2 rounded focus:outline-none focus:ring focus:ring-primary",attrs:{id:"remember",name:"remember",type:"checkbox"},domProps:{checked:Array.isArray(e.form.remember)?e._i(e.form.remember,null)>-1:e.form.remember},on:{change:function(t){var s=e.form.remember,o=t.target,i=!!o.checked;if(Array.isArray(s)){var n=null,a=e._i(s,n);o.checked?a<0&&e.$set(e.form,"remember",s.concat([n])):a>-1&&e.$set(e.form,"remember",s.slice(0,a).concat(s.slice(a+1)))}else e.$set(e.form,"remember",i)}}}),r("span",{staticClass:"select-none text-sm"},[e._v(" "+e._s(e.__("messages.remember-me"))+" ")])])]),r("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[r("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[e._v(" "+e._s(e.__("messages.sign-in"))+" ")]),r("inertia-link",{staticClass:"text-gray-900 hover:text-theme-primary transition-all ease-in-out duration-300",attrs:{href:e.$route("student.password.request")}},[e._v(" "+e._s(e.__("messages.forgot-password"))+" ")])],1)],1)])])},p=[],d=u(l,c,p,!1,null,null,null,null);const b=d.exports;export{b as default}; diff --git a/public/build/assets/Login.b6f91a43.js b/public/build/assets/Login.b6f91a43.js new file mode 100644 index 00000000..e48166d7 --- /dev/null +++ b/public/build/assets/Login.b6f91a43.js @@ -0,0 +1 @@ +import{I as l}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const c={name:"AuthLogin",components:{InputGroup:l},layout:"auth-layout",data(){return{form:{email:"",password:"",remember:null}}},methods:{submit(){this.$inertia.post(this.$route("login"),this.form)}}};var p=function(){var e=this,r=e._self._c;return r("div",{staticClass:"auth-card-container"},[r("div",{staticClass:"auth-card"},[r("h1",{staticClass:"auth-header"},[e._v(" Welcome back ")]),r("form",{staticClass:"px-6",on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"email","input-autofocus":!0,"input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(t){return e.clearPageErrorMessage("email")}},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"current-password","input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(t){return e.clearPageErrorMessage("password")}},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),r("div",{staticClass:"mt-6"},[r("label",{staticClass:"cursor-pointer flex font-medium inline-block items-center text-theme-base-contrast"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.remember,expression:"form.remember"}],staticClass:"leading-tight mr-2 rounded focus:outline-none focus:ring focus:ring-primary",attrs:{id:"remember",name:"remember",type:"checkbox"},domProps:{checked:Array.isArray(e.form.remember)?e._i(e.form.remember,null)>-1:e.form.remember},on:{change:function(t){var s=e.form.remember,n=t.target,m=!!n.checked;if(Array.isArray(s)){var i=null,a=e._i(s,i);n.checked?a<0&&e.$set(e.form,"remember",s.concat([i])):a>-1&&e.$set(e.form,"remember",s.slice(0,a).concat(s.slice(a+1)))}else e.$set(e.form,"remember",m)}}}),r("span",{staticClass:"select-none text-sm"},[e._v(" Remember Me ")])])]),e._m(0)],1)])])},d=[function(){var o=this,e=o._self._c;return e("div",{staticClass:"flex flex-row items-center justify-start mt-4 py-6"},[e("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[o._v(" Sign In ")])])}],f=u(c,p,d,!1,null,null,null,null);const v=f.exports;export{v as default}; diff --git a/public/build/assets/LogoLight.f7426689.js b/public/build/assets/LogoLight.f7426689.js new file mode 100644 index 00000000..bab6ccdd --- /dev/null +++ b/public/build/assets/LogoLight.f7426689.js @@ -0,0 +1,35 @@ +import{V as l,c as m,T as b,D as x,e as M,i as y,d as w,_ as v,C as $,t as j}from"./vendor.21c2b6f5.js";const I="modulepreload",C=function(n){return"/build/"+n},g={},qa=function(e,t,o){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(_=>{if(_=C(_),_ in g)return;g[_]=!0;const c=_.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!o)for(let d=s.length-1;d>=0;d--){const h=s[d];if(h.href===_&&(!c||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${f}`))return;const a=document.createElement("link");if(a.rel=c?"stylesheet":I,c||(a.as="script",a.crossOrigin=""),a.href=_,document.head.appendChild(a),c)return new Promise((d,h)=>{a.addEventListener("load",d),a.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${_}`)))})})).then(()=>e())};l.use(m);const Ua=new m.Store({state:{isFileManagerModalOpen:!1,fileManagerModalCallback:null,isMobileSideMenuOpen:!1},mutations:{closeFileManagerModal(n){n.isFileManagerModalOpen=!1,n.fileManagerModalCallback=null},openFileManagerModel(n,e=null){n.isFileManagerModalOpen=!0,n.fileManagerModalCallback=e},hideMobileSideMenu(n){n.isMobileSideMenuOpen=!1},showMobileSideMenu(n){n.isMobileSideMenuOpen=!0},toggleMobileSideMenu(n){n.isMobileSideMenuOpen=!n.isMobileSideMenuOpen}},getters:{isFileManagerOpen:n=>n.isFileManagerModalOpen,isMobileSideMenuOpen:n=>n.isMobileSideMenuOpen}});l.use(b);l.toasted.register("error",n=>{let e="Oops.. Something went wrong";return n.message&&(e=n.message),n.showIcon?`
+ + + + + + `+e+` +
`:e},{type:"error",duration:3e3});l.prototype.$errorToast=(n=null,e=!0)=>l.toasted.global.error({message:n,showIcon:e});l.toasted.register("success",n=>{let e="Success";return n.message&&(e=n.message),n.showIcon?`
+ + + + + + `+e+` +
`:e},{type:"success",duration:3e3});l.prototype.$successToast=(n=null,e=!0)=>l.toasted.global.success({message:n,showIcon:e});l.component("date-picker",x);l.use(M);l.use(y);l.prototype.$route=(...n)=>route(...n);l.prototype.$routeCheck=(...n)=>route().check(...n);l.prototype.$routeCurrent=(...n)=>route().current(...n);l.mixin({methods:{userCan(n=""){try{return this.$page.props.auth.user.super?!0:!!n.split(".").reduce(function(t,o){return t?t[o]:null},this.$page.props.auth.user.permissions||self)}catch{return!1}},userCanAll(n=[]){try{if(n.length===0)return!0;let e=!0;return n.forEach(t=>{this.userCan(t)||(e=!1)}),e}catch{return!1}},userCanAny(n=[]){try{if(n.length===0)return!0;let e=!1;return n.forEach(t=>{this.userCan(t)&&(e=!0)}),e}catch{return!1}}}});l.filter("humanFriendlyDateTime",function(n){if(!n)return n;try{return w(n).format("D MMMM YYYY HH:mm")}catch{return n}});l.filter("humanFriendlyDate",function(n){if(!n)return n;try{return w(n).format("D MMM YYYY")}catch{return n}});l.mixin({methods:{clearPageErrorMessage(n){try{this.$page.props.errors[n]=null}catch{return""}},getPageErrorMessage(n){try{let e=this.$page.props.errors[n];return e?Array.isArray(e)?e[0]:e:""}catch{return""}},getPageErrorMessageFromArrayField(n,e=!0){try{let t=[];return v.forEach(this.$page.props.errors,(o,s)=>{s.indexOf(n+".")===0&&t.indexOf(o)<0&&t.push(o)}),e&&(t=t.join(", ")),t}catch{return""}}}});function r(n,e,t,o,s,_,c,f){var i=typeof n=="function"?n.options:n;e&&(i.render=e,i.staticRenderFns=t,i._compiled=!0),o&&(i.functional=!0),_&&(i._scopeId="data-v-"+_);var a;if(c?(a=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__<"u"&&(u=__VUE_SSR_CONTEXT__),s&&s.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(c)},i._ssrRegister=a):s&&(a=f?function(){s.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(i.functional){i._injectStyles=a;var d=i.render;i.render=function(k,p){return a.call(p),d(k,p)}}else{var h=i.beforeCreate;i.beforeCreate=h?[].concat(h,a):[a]}return{exports:n,options:i}}const S={name:"IconAlertTriangle"};var O=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12 9v2m0 4v.01"}}),t("path",{attrs:{d:"M5 19h14a2 2 0 0 0 1.84 -2.75l-7.1 -12.25a2 2 0 0 0 -3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75"}})])},z=[],F=r(S,O,z,!1,null,null,null,null);const T=F.exports,Ya=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),P={name:"IconAlertVideo"};var B=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"}}),t("path",{attrs:{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"}})])},R=[],H=r(P,B,R,!1,null,null,null,null);const L=H.exports,Ga=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})),A={name:"IconAppWindow"};var D=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}}),t("path",{attrs:{d:"M6 8h.01"}}),t("path",{attrs:{d:"M9 8h.01"}})])},E=[],V=r(A,D,E,!1,null,null,null,null);const W=V.exports,Xa=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),N={name:"IconArrowBarLeft"};var q=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"4",y1:"12",x2:"14",y2:"12"}}),t("line",{attrs:{x1:"4",y1:"12",x2:"8",y2:"16"}}),t("line",{attrs:{x1:"4",y1:"12",x2:"8",y2:"8"}}),t("line",{attrs:{x1:"20",y1:"4",x2:"20",y2:"20"}})])},U=[],Y=r(N,q,U,!1,null,null,null,null);const G=Y.exports,Qa=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"})),X={name:"IconArrowBarUp"};var Q=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"12",y1:"4",x2:"12",y2:"14"}}),t("line",{attrs:{x1:"12",y1:"4",x2:"16",y2:"8"}}),t("line",{attrs:{x1:"12",y1:"4",x2:"8",y2:"8"}}),t("line",{attrs:{x1:"4",y1:"20",x2:"20",y2:"20"}})])},J=[],K=r(X,Q,J,!1,null,null,null,null);const Z=K.exports,Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"})),tt={name:"IconArrowsShuffle"};var et=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{d:"M18 4l3 3l-3 3"}}),t("path",{attrs:{d:"M18 20l3 -3l-3 -3"}}),t("path",{attrs:{d:"M3 7h3a5 5 0 0 1 5 5a5 5 0 0 0 5 5h5"}}),t("path",{attrs:{d:"M21 7h-5a4.978 4.978 0 0 0 -3 1m-4 8a4.984 4.984 0 0 1 -3 1h-3"}})])},nt=[],rt=r(tt,et,nt,!1,null,null,null,null);const ot=rt.exports,Ka=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"})),st={name:"IconBadgeCc"};var lt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"}}),t("path",{attrs:{d:"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}}),t("path",{attrs:{d:"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"}})])},at=[],it=r(st,lt,at,!1,null,null,null,null);const _t=it.exports,Za=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"})),ct={name:"IconBookDownload"};var ut=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12v5"}}),t("path",{attrs:{d:"M13 16h-7a2 2 0 0 0 -2 2"}}),t("path",{attrs:{d:"M15 19l3 3l3 -3"}}),t("path",{attrs:{d:"M18 22v-9"}})])},dt=[],ht=r(ct,ut,dt,!1,null,null,null,null);const vt=ht.exports,ti=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"})),ft={name:"IconBoxMultiple"};var pt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"}}),t("path",{attrs:{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"}})])},gt=[],mt=r(ft,pt,gt,!1,null,null,null,null);const wt=mt.exports,ei=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"})),kt={name:"IconBrandInertia"};var bt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12.5 8l4 4l-4 4h4.5l4 -4l-4 -4z"}}),t("path",{attrs:{d:"M3.5 8l4 4l-4 4h4.5l4 -4l-4 -4z"}})])},xt=[],Mt=r(kt,bt,xt,!1,null,null,null,null);const yt=Mt.exports,ni=Object.freeze(Object.defineProperty({__proto__:null,default:yt},Symbol.toStringTag,{value:"Module"})),$t={name:"IconBrandLaravel"};var jt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M3 17l8 5l7 -4v-8l-4 -2.5l4 -2.5l4 2.5v4l-11 6.5l-4 -2.5v-7.5l-4 -2.5z"}}),t("path",{attrs:{d:"M11 18v4"}}),t("path",{attrs:{d:"M7 15.5l7 -4"}}),t("path",{attrs:{d:"M14 7.5v4"}}),t("path",{attrs:{d:"M14 11.5l4 2.5"}}),t("path",{attrs:{d:"M11 13v-7.5l-4 -2.5l-4 2.5"}}),t("path",{attrs:{d:"M7 8l4 -2.5"}}),t("path",{attrs:{d:"M18 10l4 -2.5"}})])},It=[],Ct=r($t,jt,It,!1,null,null,null,null);const St=Ct.exports,ri=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"})),Ot={name:"IconBrandTailwind"};var zt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M11.667 6c-2.49 0 -4.044 1.222 -4.667 3.667c.933 -1.223 2.023 -1.68 3.267 -1.375c.71 .174 1.217 .68 1.778 1.24c.916 .912 2 1.968 4.288 1.968c2.49 0 4.044 -1.222 4.667 -3.667c-.933 1.223 -2.023 1.68 -3.267 1.375c-.71 -.174 -1.217 -.68 -1.778 -1.24c-.916 -.912 -1.975 -1.968 -4.288 -1.968zm-4 6.5c-2.49 0 -4.044 1.222 -4.667 3.667c.933 -1.223 2.023 -1.68 3.267 -1.375c.71 .174 1.217 .68 1.778 1.24c.916 .912 1.975 1.968 4.288 1.968c2.49 0 4.044 -1.222 4.667 -3.667c-.933 1.223 -2.023 1.68 -3.267 1.375c-.71 -.174 -1.217 -.68 -1.778 -1.24c-.916 -.912 -1.975 -1.968 -4.288 -1.968z"}})])},Ft=[],Tt=r(Ot,zt,Ft,!1,null,null,null,null);const Pt=Tt.exports,oi=Object.freeze(Object.defineProperty({__proto__:null,default:Pt},Symbol.toStringTag,{value:"Module"})),Bt={name:"IconBrandVue"};var Rt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M16.5 4l-4.5 8l-4.5 -8"}}),t("path",{attrs:{d:"M3 4l9 16l9 -16"}})])},Ht=[],Lt=r(Bt,Rt,Ht,!1,null,null,null,null);const At=Lt.exports,si=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"})),Dt={name:"IconBuilding"};var Et=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M3 21l18 0"}}),t("path",{attrs:{d:"M9 8l1 0"}}),t("path",{attrs:{d:"M9 12l1 0"}}),t("path",{attrs:{d:"M9 16l1 0"}}),t("path",{attrs:{d:"M14 8l1 0"}}),t("path",{attrs:{d:"M14 12l1 0"}}),t("path",{attrs:{d:"M14 16l1 0"}}),t("path",{attrs:{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"}})])},Vt=[],Wt=r(Dt,Et,Vt,!1,null,null,null,null);const Nt=Wt.exports,li=Object.freeze(Object.defineProperty({__proto__:null,default:Nt},Symbol.toStringTag,{value:"Module"})),qt={name:"IconCameraCheck"};var Ut=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M11 20h-6a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v4"}}),t("path",{attrs:{d:"M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}}),t("path",{attrs:{d:"M15 19l2 2l4 -4"}})])},Yt=[],Gt=r(qt,Ut,Yt,!1,null,null,null,null);const Xt=Gt.exports,ai=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Qt={name:"IconCaretLeft"};var Jt=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M18 15l-6-6l-6 6h12",transform:"rotate(270 12 12)"}})])},Kt=[],Zt=r(Qt,Jt,Kt,!1,null,null,null,null);const te=Zt.exports,ii=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"})),ee={name:"IconCertificate"};var ne=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}}),t("path",{attrs:{d:"M13 17.5v4.5l2 -1.5l2 1.5v-4.5"}}),t("path",{attrs:{d:"M10 19h-5a2 2 0 0 1 -2 -2v-10c0 -1.1 .9 -2 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -1 1.73"}}),t("path",{attrs:{d:"M6 9l12 0"}}),t("path",{attrs:{d:"M6 12l3 0"}}),t("path",{attrs:{d:"M6 15l2 0"}})])},re=[],oe=r(ee,ne,re,!1,null,null,null,null);const se=oe.exports,_i=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"})),le={name:"IconChalkboard"};var ae=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M8 19h-3a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v11a1 1 0 0 1 -1 1"}}),t("path",{attrs:{d:"M11 16m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v1a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"}})])},ie=[],_e=r(le,ae,ie,!1,null,null,null,null);const ce=_e.exports,ci=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"})),ue={name:"IconCheck"};var de=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M5 12l5 5l10 -10"}})])},he=[],ve=r(ue,de,he,!1,null,null,null,null);const fe=ve.exports,ui=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"})),pe={name:"IconChevronLeft"};var ge=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("polyline",{attrs:{points:"15 6 9 12 15 18"}})])},me=[],we=r(pe,ge,me,!1,null,null,null,null);const ke=we.exports,di=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"})),be={name:"IconChevronRight"};var xe=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("polyline",{attrs:{points:"9 6 15 12 9 18"}})])},Me=[],ye=r(be,xe,Me,!1,null,null,null,null);const $e=ye.exports,hi=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"})),je={name:"IconChevronsLeft"};var Ie=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("polyline",{attrs:{points:"11 7 6 12 11 17"}}),t("polyline",{attrs:{points:"17 7 12 12 17 17"}})])},Ce=[],Se=r(je,Ie,Ce,!1,null,null,null,null);const Oe=Se.exports,vi=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"})),ze={name:"IconChevronsRight"};var Fe=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("polyline",{attrs:{points:"7 7 12 12 7 17"}}),t("polyline",{attrs:{points:"13 7 18 12 13 17"}})])},Te=[],Pe=r(ze,Fe,Te,!1,null,null,null,null);const Be=Pe.exports,fi=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"})),Re={name:"IconClose"};var He=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),t("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])},Le=[],Ae=r(Re,He,Le,!1,null,null,null,null);const De=Ae.exports,pi=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),Ee={name:"IconColumns"};var Ve=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("line",{attrs:{x1:"4",y1:"6",x2:"9.5",y2:"6"}}),t("line",{attrs:{x1:"4",y1:"10",x2:"9.5",y2:"10"}}),t("line",{attrs:{x1:"4",y1:"14",x2:"9.5",y2:"14"}}),t("line",{attrs:{x1:"4",y1:"18",x2:"9.5",y2:"18"}}),t("line",{attrs:{x1:"14.5",y1:"6",x2:"20",y2:"6"}}),t("line",{attrs:{x1:"14.5",y1:"10",x2:"20",y2:"10"}}),t("line",{attrs:{x1:"14.5",y1:"14",x2:"20",y2:"14"}}),t("line",{attrs:{x1:"14.5",y1:"18",x2:"20",y2:"18"}})])},We=[],Ne=r(Ee,Ve,We,!1,null,null,null,null);const qe=Ne.exports,gi=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Ue={name:"IconCornerUpLeft"};var Ye=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M18 18v-6a3 3 0 0 0 -3 -3h-10l5 -5m0 10l-5 -5"}})])},Ge=[],Xe=r(Ue,Ye,Ge,!1,null,null,null,null);const Qe=Xe.exports,mi=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"})),Je={name:"IconDeviceMobile"};var Ke=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}}),t("path",{attrs:{d:"M11 4h2"}}),t("path",{attrs:{d:"M12 17v.01"}})])},Ze=[],tn=r(Je,Ke,Ze,!1,null,null,null,null);const en=tn.exports,wi=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"})),nn={name:"IconDiscount"};var rn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M5 7.2a2.2 2.2 0 0 1 2.2 -2.2h1a2.2 2.2 0 0 0 1.55 -.64l.7 -.7a2.2 2.2 0 0 1 3.12 0l.7 .7c.412 .41 .97 .64 1.55 .64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58 .23 1.138 .64 1.55l.7 .7a2.2 2.2 0 0 1 0 3.12l-.7 .7a2.2 2.2 0 0 0 -.64 1.55v1a2.2 2.2 0 0 1 -2.2 2.2h-1a2.2 2.2 0 0 0 -1.55 .64l-.7 .7a2.2 2.2 0 0 1 -3.12 0l-.7 -.7a2.2 2.2 0 0 0 -1.55 -.64h-1a2.2 2.2 0 0 1 -2.2 -2.2v-1a2.2 2.2 0 0 0 -.64 -1.55l-.7 -.7a2.2 2.2 0 0 1 0 -3.12l.7 -.7a2.2 2.2 0 0 0 .64 -1.55v-1"}}),t("path",{attrs:{d:"M9 12l2 2l4 -4"}})])},on=[],sn=r(nn,rn,on,!1,null,null,null,null);const ln=sn.exports,ki=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"})),an={name:"IconDownload"};var _n=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"}}),t("path",{attrs:{d:"M7 11l5 5l5 -5"}}),t("path",{attrs:{d:"M12 4l0 12"}})])},cn=[],un=r(an,_n,cn,!1,null,null,null,null);const dn=un.exports,bi=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"})),hn={name:"IconEdit"};var vn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M9 7 h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3"}}),t("path",{attrs:{d:"M9 15h3l8.5 -8.5a1.5 1.5 0 0 0 -3 -3l-8.5 8.5v3"}}),t("line",{attrs:{x1:"16",y1:"5",x2:"19",y2:"8"}})])},fn=[],pn=r(hn,vn,fn,!1,null,null,null,null);const gn=pn.exports,xi=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),mn={name:"IconExternalLink"};var wn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5"}}),t("line",{attrs:{x1:"10",y1:"14",x2:"20",y2:"4"}}),t("polyline",{attrs:{points:"15 4 20 4 20 9"}})])},kn=[],bn=r(mn,wn,kn,!1,null,null,null,null);const xn=bn.exports,Mi=Object.freeze(Object.defineProperty({__proto__:null,default:xn},Symbol.toStringTag,{value:"Module"})),Mn={name:"IconEye"};var yn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("circle",{attrs:{cx:"12",cy:"12",r:"2"}}),t("path",{attrs:{d:"M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"}})])},$n=[],jn=r(Mn,yn,$n,!1,null,null,null,null);const In=jn.exports,yi=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),Cn={name:"IconFacebook"};var Sn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3"}})])},On=[],zn=r(Cn,Sn,On,!1,null,null,null,null);const Fn=zn.exports,$i=Object.freeze(Object.defineProperty({__proto__:null,default:Fn},Symbol.toStringTag,{value:"Module"})),Tn={name:"IconFile"};var Pn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M14 3v4a1 1 0 0 0 1 1h4"}}),t("path",{attrs:{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}})])},Bn=[],Rn=r(Tn,Pn,Bn,!1,null,null,null,null);const Hn=Rn.exports,ji=Object.freeze(Object.defineProperty({__proto__:null,default:Hn},Symbol.toStringTag,{value:"Module"})),Ln={name:"IconFileDownload"};var An=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M14 3v4a1 1 0 0 0 1 1h4"}}),t("path",{attrs:{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}}),t("path",{attrs:{d:"M12 17v-6"}}),t("path",{attrs:{d:"M9.5 14.5l2.5 2.5l2.5 -2.5"}})])},Dn=[],En=r(Ln,An,Dn,!1,null,null,null,null);const Vn=En.exports,Ii=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"})),Wn={name:"IconFileText"};var Nn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M14 3v4a1 1 0 0 0 1 1h4"}}),t("path",{attrs:{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}}),t("line",{attrs:{x1:"9",y1:"9",x2:"10",y2:"9"}}),t("line",{attrs:{x1:"9",y1:"13",x2:"15",y2:"13"}}),t("line",{attrs:{x1:"9",y1:"17",x2:"15",y2:"17"}})])},qn=[],Un=r(Wn,Nn,qn,!1,null,null,null,null);const Yn=Un.exports,Ci=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Gn={name:"IconFolder"};var Xn=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"}})])},Qn=[],Jn=r(Gn,Xn,Qn,!1,null,null,null,null);const Kn=Jn.exports,Si=Object.freeze(Object.defineProperty({__proto__:null,default:Kn},Symbol.toStringTag,{value:"Module"})),Zn={name:"IconFolders"};var tr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M9 4h3l2 2h5a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"}}),t("path",{attrs:{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2h2"}})])},er=[],nr=r(Zn,tr,er,!1,null,null,null,null);const rr=nr.exports,Oi=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),or={name:"IconForms"};var sr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12 3a3 3 0 0 0 -3 3v12a3 3 0 0 0 3 3"}}),t("path",{attrs:{d:"M6 3a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3"}}),t("path",{attrs:{d:"M13 7h7a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-7"}}),t("path",{attrs:{d:"M5 7h-1a1 1 0 0 0 -1 1v8a1 1 0 0 0 1 1h1"}}),t("path",{attrs:{d:"M17 12h.01"}}),t("path",{attrs:{d:"M13 12h.01"}})])},lr=[],ar=r(or,sr,lr,!1,null,null,null,null);const ir=ar.exports,zi=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),_r={name:"IconGridDots"};var cr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("circle",{attrs:{cx:"5",cy:"5",r:"1"}}),t("circle",{attrs:{cx:"12",cy:"5",r:"1"}}),t("circle",{attrs:{cx:"19",cy:"5",r:"1"}}),t("circle",{attrs:{cx:"5",cy:"12",r:"1"}}),t("circle",{attrs:{cx:"12",cy:"12",r:"1"}}),t("circle",{attrs:{cx:"19",cy:"12",r:"1"}}),t("circle",{attrs:{cx:"5",cy:"19",r:"1"}}),t("circle",{attrs:{cx:"12",cy:"19",r:"1"}}),t("circle",{attrs:{cx:"19",cy:"19",r:"1"}})])},ur=[],dr=r(_r,cr,ur,!1,null,null,null,null);const hr=dr.exports,Fi=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),vr={name:"IconHamburgerMenu"};var fr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"4",y1:"6",x2:"20",y2:"6"}}),t("line",{attrs:{x1:"4",y1:"12",x2:"20",y2:"12"}}),t("line",{attrs:{x1:"4",y1:"18",x2:"20",y2:"18"}})])},pr=[],gr=r(vr,fr,pr,!1,null,null,null,null);const mr=gr.exports,Ti=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),wr={name:"IconHeadphones"};var kr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M21 18a3 3 0 0 1 -2.824 2.995l-.176 .005h-1a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-3a3 3 0 0 1 2.824 -2.995l.176 -.005h1c.351 0 .688 .06 1 .171v-.171a7 7 0 0 0 -13.996 -.24l-.004 .24v.17c.25 -.088 .516 -.144 .791 -.163l.209 -.007h1a3 3 0 0 1 2.995 2.824l.005 .176v3a3 3 0 0 1 -2.824 2.995l-.176 .005h-1a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-6a9 9 0 0 1 17.996 -.265l.004 .265v6z","stroke-width":"0",fill:"currentColor"}})])},br=[],xr=r(wr,kr,br,!1,null,null,null,null);const Mr=xr.exports,Pi=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"})),yr={name:"IconHierarchy"};var $r=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M6.5 17.5l5.5 -4.5l5.5 4.5"}}),t("path",{attrs:{d:"M12 7l0 6"}})])},jr=[],Ir=r(yr,$r,jr,!1,null,null,null,null);const Cr=Ir.exports,Bi=Object.freeze(Object.defineProperty({__proto__:null,default:Cr},Symbol.toStringTag,{value:"Module"})),Sr={name:"IconHierarchyThree"};var Or=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M12 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M20 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M4 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M5 17l2 -3"}}),t("path",{attrs:{d:"M9 10l2 -3"}}),t("path",{attrs:{d:"M13 7l2 3"}}),t("path",{attrs:{d:"M17 14l2 3"}}),t("path",{attrs:{d:"M15 14l-2 3"}}),t("path",{attrs:{d:"M9 14l2 3"}})])},zr=[],Fr=r(Sr,Or,zr,!1,null,null,null,null);const Tr=Fr.exports,Ri=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"})),Pr={name:"IconHome"};var Br=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("polyline",{attrs:{points:"5 12 3 12 12 3 21 12 19 12"}}),t("path",{attrs:{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}}),t("path",{attrs:{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"}})])},Rr=[],Hr=r(Pr,Br,Rr,!1,null,null,null,null);const Lr=Hr.exports,Hi=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),Ar={name:"IconId"};var Dr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"3",y:"4",width:"18",height:"16",rx:"3"}}),t("circle",{attrs:{cx:"9",cy:"10",r:"2"}}),t("line",{attrs:{x1:"15",y1:"8",x2:"17",y2:"8"}}),t("line",{attrs:{x1:"15",y1:"12",x2:"17",y2:"12"}}),t("line",{attrs:{x1:"7",y1:"16",x2:"17",y2:"16"}})])},Er=[],Vr=r(Ar,Dr,Er,!1,null,null,null,null);const Wr=Vr.exports,Li=Object.freeze(Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),Nr={name:"IconInbox"};var qr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"2"}}),t("path",{attrs:{d:"M4 13h3l3 3h4l3 -3h3"}})])},Ur=[],Yr=r(Nr,qr,Ur,!1,null,null,null,null);const Gr=Yr.exports,Ai=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"})),Xr={name:"IconInfinity"};var Qr=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M9.828 9.172a4 4 0 1 0 0 5.656a10 10 0 0 0 2.172 -2.828a10 10 0 0 1 2.172 -2.828a4 4 0 1 1 0 5.656a10 10 0 0 1 -2.172 -2.828a10 10 0 0 0 -2.172 -2.828"}})])},Jr=[],Kr=r(Xr,Qr,Jr,!1,null,null,null,null);const Zr=Kr.exports,Di=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),to={name:"IconInfoSquare"};var eo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("line",{attrs:{x1:"12",y1:"8",x2:"12.01",y2:"8"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"2"}}),t("polyline",{attrs:{points:"11 12 12 12 12 16 13 16"}})])},no=[],ro=r(to,eo,no,!1,null,null,null,null);const oo=ro.exports,Ei=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),so={name:"IconInstagram"};var lo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M4 4m0 4a4 4 0 0 1 4 -4h8a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4z"}}),t("path",{attrs:{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}}),t("path",{attrs:{d:"M16.5 7.5l0 .01"}})])},ao=[],io=r(so,lo,ao,!1,null,null,null,null);const _o=io.exports,Vi=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"})),co={name:"IconLanguage"};var uo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M4 5h7"}}),t("path",{attrs:{d:"M9 3v2c0 4.418 -2.239 8 -5 8"}}),t("path",{attrs:{d:"M5 9c0 2.144 2.952 3.908 6.7 4"}}),t("path",{attrs:{d:"M12 20l4 -9l4 9"}}),t("path",{attrs:{d:"M19.1 18h-6.2"}})])},ho=[],vo=r(co,uo,ho,!1,null,null,null,null);const fo=vo.exports,Wi=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),po={name:"IconLayout"};var go=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"4",y:"4",width:"6",height:"5",rx:"2"}}),t("rect",{attrs:{x:"4",y:"13",width:"6",height:"7",rx:"2"}}),t("rect",{attrs:{x:"14",y:"4",width:"6",height:"16",rx:"2"}})])},mo=[],wo=r(po,go,mo,!1,null,null,null,null);const ko=wo.exports,Ni=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),bo={name:"IconLayoutNavbar"};var xo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"2"}}),t("line",{attrs:{x1:"4",y1:"9",x2:"20",y2:"9"}})])},Mo=[],yo=r(bo,xo,Mo,!1,null,null,null,null);const $o=yo.exports,qi=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"})),jo={name:"IconLinkedIn"};var Io=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icons-tabler-outline icon-tabler-brand-linkedin",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}}),t("path",{attrs:{d:"M8 11l0 5"}}),t("path",{attrs:{d:"M8 8l0 .01"}}),t("path",{attrs:{d:"M12 16l0 -5"}}),t("path",{attrs:{d:"M16 16v-3a2 2 0 0 0 -4 0"}})])},Co=[],So=r(jo,Io,Co,!1,null,null,null,null);const Oo=So.exports,Ui=Object.freeze(Object.defineProperty({__proto__:null,default:Oo},Symbol.toStringTag,{value:"Module"})),zo={name:"IconLoader"};var Fo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"3"}}),t("line",{attrs:{x1:"16.25",y1:"7.75",x2:"18.4",y2:"5.6"}}),t("line",{attrs:{x1:"18",y1:"12",x2:"21",y2:"12"}}),t("line",{attrs:{x1:"16.25",y1:"16.25",x2:"18.4",y2:"18.4"}}),t("line",{attrs:{x1:"12",y1:"18",x2:"12",y2:"21"}}),t("line",{attrs:{x1:"7.75",y1:"16.25",x2:"5.6",y2:"18.4"}}),t("line",{attrs:{x1:"6",y1:"12",x2:"3",y2:"12"}}),t("line",{attrs:{x1:"7.75",y1:"7.75",x2:"5.6",y2:"5.6"}})])},To=[],Po=r(zo,Fo,To,!1,null,null,null,null);const Bo=Po.exports,Yi=Object.freeze(Object.defineProperty({__proto__:null,default:Bo},Symbol.toStringTag,{value:"Module"})),Ro={name:"IconLoaderCircle"};var Ho=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"}},[t("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t("path",{staticClass:"opacity-75",attrs:{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"}})])},Lo=[],Ao=r(Ro,Ho,Lo,!1,null,null,null,null);const Do=Ao.exports,Gi=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),Eo={name:"IconLoaderQuarter"};var Vo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"3"}}),t("line",{attrs:{x1:"6",y1:"12",x2:"3",y2:"12"}}),t("line",{attrs:{x1:"7.75",y1:"7.75",x2:"5.6",y2:"5.6"}})])},Wo=[],No=r(Eo,Vo,Wo,!1,null,null,null,null);const qo=No.exports,Xi=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Uo={name:"IconLogoDark"};var Yo=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 193 179"}},[t("path",{attrs:{d:"M127 19H20M100.876 159.42l-81-140.296M132.124 106.124l-31 53.694",stroke:"#FFFFFF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"28"}}),t("path",{attrs:{d:"M174 20h-1",stroke:"#1C64F1","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"28"}})])},Go=[],Xo=r(Uo,Yo,Go,!1,null,null,null,null);const Qo=Xo.exports,Qi=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),Jo={name:"IconLogoLight"};var Ko=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 193 179"}},[t("path",{attrs:{d:"M127 19H20M100.876 159.42l-81-140.296M132.124 106.124l-31 53.694",stroke:"#1F243A","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"28"}}),t("path",{attrs:{d:"M174 20h-1",stroke:"#1C64F1","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"28"}})])},Zo=[],ts=r(Jo,Ko,Zo,!1,null,null,null,null);const es=ts.exports,Ji=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"})),ns={name:"IconMail"};var rs=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"}}),t("path",{attrs:{d:"M3 7l9 6l9 -6"}})])},os=[],ss=r(ns,rs,os,!1,null,null,null,null);const ls=ss.exports,Ki=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),as={name:"IconMinus"};var is=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M5 12l14 0"}})])},_s=[],cs=r(as,is,_s,!1,null,null,null,null);const us=cs.exports,Zi=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),ds={name:"IconMoneybag"};var hs=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M9.5 3h5a1.5 1.5 0 0 1 1.5 1.5a3.5 3.5 0 0 1 -3.5 3.5h-1a3.5 3.5 0 0 1 -3.5 -3.5a1.5 1.5 0 0 1 1.5 -1.5z"}}),t("path",{attrs:{d:"M4 17v-1a8 8 0 1 1 16 0v1a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4z"}})])},vs=[],fs=r(ds,hs,vs,!1,null,null,null,null);const ps=fs.exports,t_=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),gs={name:"IconPhoto"};var ms=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("line",{attrs:{x1:"15",y1:"8",x2:"15.01",y2:"8"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"3"}}),t("path",{attrs:{d:"M4 15l4 -4a3 5 0 0 1 3 0l5 5"}}),t("path",{attrs:{d:"M14 14l1 -1a3 5 0 0 1 3 0l2 2"}})])},ws=[],ks=r(gs,ms,ws,!1,null,null,null,null);const bs=ks.exports,e_=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),xs={name:"IconTrash"};var Ms=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z","stroke-width":"0",fill:"currentColor"}})])},ys=[],$s=r(xs,Ms,ys,!1,null,null,null,null);const js=$s.exports,n_=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Is={name:"IconPlus"};var Cs=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("line",{attrs:{x1:"12",y1:"5",x2:"12",y2:"19"}}),t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})])},Ss=[],Os=r(Is,Cs,Ss,!1,null,null,null,null);const zs=Os.exports,r_=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Fs={name:"IconReceiptRefund"};var Ts=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"}}),t("path",{attrs:{d:"M15 14v-2a2 2 0 0 0 -2 -2h-4l2 -2m0 4l-2 -2"}})])},Ps=[],Bs=r(Fs,Ts,Ps,!1,null,null,null,null);const Rs=Bs.exports,o_=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Hs={name:"IconSave"};var Ls=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"}}),t("circle",{attrs:{cx:"12",cy:"14",r:"2"}}),t("polyline",{attrs:{points:"14 4 14 8 8 8 8 4"}})])},As=[],Ds=r(Hs,Ls,As,!1,null,null,null,null);const Es=Ds.exports,s_=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),Vs={name:"IconSettings"};var Ws=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}}),t("circle",{attrs:{cx:"12",cy:"12",r:"3"}})])},Ns=[],qs=r(Vs,Ws,Ns,!1,null,null,null,null);const Us=qs.exports,l_=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys={name:"IconShoppingCart"};var Gs=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icon-tabler-shopping-cart",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}}),t("path",{attrs:{d:"M17 17h-11v-14h-2"}}),t("path",{attrs:{d:"M6 5l14 1l-1 7h-13"}})])},Xs=[],Qs=r(Ys,Gs,Xs,!1,null,null,null,null);const Js=Qs.exports,a_=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Ks={name:"IconSitemap"};var Zs=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"3",y:"15",width:"6",height:"6",rx:"2"}}),t("rect",{attrs:{x:"15",y:"15",width:"6",height:"6",rx:"2"}}),t("rect",{attrs:{x:"9",y:"3",width:"6",height:"6",rx:"2"}}),t("path",{attrs:{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1"}}),t("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"12"}})])},tl=[],el=r(Ks,Zs,tl,!1,null,null,null,null);const nl=el.exports,i_=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),rl={name:"IconSnapchat"};var ol=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icons-tabler-outline icon-tabler-brand-snapchat",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M16.882 7.842a4.882 4.882 0 0 0 -9.764 0c0 4.273 -.213 6.409 -4.118 8.118c2 .882 2 .882 3 3c3 0 4 2 6 2s3 -2 6 -2c1 -2.118 1 -2.118 3 -3c-3.906 -1.709 -4.118 -3.845 -4.118 -8.118zm-13.882 8.119c4 -2.118 4 -4.118 1 -7.118m17 7.118c-4 -2.118 -4 -4.118 -1 -7.118"}})])},sl=[],ll=r(rl,ol,sl,!1,null,null,null,null);const al=ll.exports,__=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),il={name:"IconSpeakerPhone"};var _l=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M18 8a3 3 0 0 1 0 6"}}),t("path",{attrs:{d:"M10 8v11a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1v-5"}}),t("path",{attrs:{d:"M12 8h0l4.524 -3.77a.9 .9 0 0 1 1.476 .692v12.156a.9 .9 0 0 1 -1.476 .692l-4.524 -3.77h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h8"}})])},cl=[],ul=r(il,_l,cl,!1,null,null,null,null);const dl=ul.exports,c_=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),hl={name:"IconSquareCheck"};var vl=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"2"}}),t("path",{attrs:{d:"M9 12l2 2l4 -4"}})])},fl=[],pl=r(hl,vl,fl,!1,null,null,null,null);const gl=pl.exports,u_=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),ml={name:"IconSquareCheckFilled"};var wl=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icon-tabler-square-check-filled",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005 .195v12.666c0 1.96 -1.537 3.56 -3.472 3.662l-.195 .005h-12.666a3.667 3.667 0 0 1 -3.662 -3.472l-.005 -.195v-12.666c0 -1.96 1.537 -3.56 3.472 -3.662l.195 -.005h12.666zm-2.626 7.293a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z","stroke-width":"0",fill:"currentColor"}})])},kl=[],bl=r(ml,wl,kl,!1,null,null,null,null);const xl=bl.exports,d_=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),Ml={name:"IconSquarePlus"};var yl=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"2"}}),t("line",{attrs:{x1:"9",y1:"12",x2:"15",y2:"12"}}),t("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"15"}})])},$l=[],jl=r(Ml,yl,$l,!1,null,null,null,null);const Il=jl.exports,h_=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Cl={name:"IconTags"};var Sl=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icon-tabler-tags",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z"}}),t("path",{attrs:{d:"M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592"}}),t("path",{attrs:{d:"M7 10h-.01"}})])},Ol=[],zl=r(Cl,Sl,Ol,!1,null,null,null,null);const Fl=zl.exports,v_=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),Tl={name:"IconTemplate"};var Pl=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("rect",{attrs:{x:"4",y:"4",width:"16",height:"4",rx:"1"}}),t("rect",{attrs:{x:"4",y:"12",width:"6",height:"8",rx:"1"}}),t("line",{attrs:{x1:"14",y1:"12",x2:"20",y2:"12"}}),t("line",{attrs:{x1:"14",y1:"16",x2:"20",y2:"16"}}),t("line",{attrs:{x1:"14",y1:"20",x2:"20",y2:"20"}})])},Bl=[],Rl=r(Tl,Pl,Bl,!1,null,null,null,null);const Hl=Rl.exports,f_=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"})),Ll={name:"IconTiktok"};var Al=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icons-tabler-outline icon-tabler-brand-tiktok",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917z"}})])},Dl=[],El=r(Ll,Al,Dl,!1,null,null,null,null);const Vl=El.exports,p_=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),Wl={name:"IconTrash"};var Nl=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("line",{attrs:{x1:"4",y1:"7",x2:"20",y2:"7"}}),t("line",{attrs:{x1:"10",y1:"11",x2:"10",y2:"17"}}),t("line",{attrs:{x1:"14",y1:"11",x2:"14",y2:"17"}}),t("path",{attrs:{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}}),t("path",{attrs:{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"}})])},ql=[],Ul=r(Wl,Nl,ql,!1,null,null,null,null);const Yl=Ul.exports,g_=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),Gl={name:"IconTwitter"};var Xl=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icons-tabler-outline icon-tabler-brand-x",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M4 4l11.733 16h4.267l-11.733 -16z"}}),t("path",{attrs:{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"}})])},Ql=[],Jl=r(Gl,Xl,Ql,!1,null,null,null,null);const Kl=Jl.exports,m_=Object.freeze(Object.defineProperty({__proto__:null,default:Kl},Symbol.toStringTag,{value:"Module"})),Zl={name:"IconUsers"};var ta=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("circle",{attrs:{cx:"9",cy:"7",r:"4"}}),t("path",{attrs:{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}}),t("path",{attrs:{d:"M16 3.13a4 4 0 0 1 0 7.75"}}),t("path",{attrs:{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"}})])},ea=[],na=r(Zl,ta,ea,!1,null,null,null,null);const ra=na.exports,w_=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),oa={name:"IconX"};var sa=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),t("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])},la=[],aa=r(oa,sa,la,!1,null,null,null,null);const ia=aa.exports,k_=Object.freeze(Object.defineProperty({__proto__:null,default:ia},Symbol.toStringTag,{value:"Module"})),_a={name:"IconYoutube"};var ca=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"icon icon-tabler icons-tabler-outline icon-tabler-brand-youtube",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z"}}),t("path",{attrs:{d:"M10 9l5 3l-5 3z"}})])},ua=[],da=r(_a,ca,ua,!1,null,null,null,null);const ha=da.exports,b_=Object.freeze(Object.defineProperty({__proto__:null,default:ha},Symbol.toStringTag,{value:"Module"}));const va={name:"PageAlerts",data(){return{isClosedError:!1,isClosedSuccess:!1,isClosedWarning:!1}},computed:{alertError(){try{return this.$page.props.flash.error}catch{return!1}},alertSuccess(){try{return this.$page.props.flash.success}catch{return!1}},alertWarning(){try{return this.$page.props.flash.warning}catch{return!1}},isVisibleAlerts(){try{return this.isVisibleError||this.isVisibleSuccess||this.isVisibleWarning}catch{return!1}},isVisibleError(){return this.alertError&&!this.isClosedError},isVisibleSuccess(){return this.alertSuccess&&!this.isClosedSuccess},isVisibleWarning(){return this.alertWarning&&!this.isClosedWarning}},methods:{onAlertsChange(){this.isClosedError=!1,this.isClosedSuccess=!1,this.isClosedWarning=!1},closeError(){this.isClosedError=!0,this.$page.props.flash.error=null},closeSuccess(){this.isClosedSuccess=!0,this.$page.props.flash.success=null},closeWarning(){this.isClosedWarning=!0,this.$page.props.flash.warning=null}},watch:{alertError(){this.isClosedError=!1},alertSuccess(){this.isClosedSuccess=!1},alertWarning(){this.isClosedWarning=!1}}};var fa=function(){var e=this,t=e._self._c;return e.isVisibleAlerts?t("section",[t("transition-group",{staticClass:"flex flex-col space-y-4",attrs:{name:"fade",tag:"div"}},[e.isVisibleSuccess?t("div",{key:"alert-success",staticClass:"bg-theme-success flex flex-row items-center px-4 py-4 relative shadow-subtle text-theme-success-contrast"},[t("span",{staticClass:"flex-1"},[e._v(" "+e._s(e.alertSuccess)+" ")]),t("button",{staticClass:"ml-2",attrs:{type:"button"},on:{click:e.closeSuccess}},[t("icon-close",{staticClass:"w-5 hover:text-theme-success-hover-contrast"})],1)]):e._e(),e.isVisibleWarning?t("div",{key:"alert-warning",staticClass:"bg-theme-warning flex flex-row items-center px-4 py-4 relative shadow-subtle text-theme-warning-contrast"},[t("span",{staticClass:"flex-1"},[e._v(" "+e._s(e.alertWarning)+" ")]),t("button",{staticClass:"ml-2",attrs:{type:"button"},on:{click:e.closeWarning}},[t("icon-close",{staticClass:"w-5 hover:text-theme-warning-hover-contrast"})],1)]):e._e(),e.isVisibleError?t("div",{key:"alert-error",staticClass:"bg-theme-danger flex flex-row items-center px-4 py-4 relative shadow-subtle text-theme-danger-contrast"},[t("span",{staticClass:"flex-1"},[e._v(" "+e._s(e.alertError)+" ")]),t("button",{staticClass:"ml-2",attrs:{type:"button"},on:{click:e.closeError}},[t("icon-close",{staticClass:"w-5 hover:text-theme-danger-hover-contrast"})],1)]):e._e()])],1):e._e()},pa=[],ga=r(va,fa,pa,!1,null,null,null,null);const x_=ga.exports,ma={name:"SideMenuItem",components:{"collapse-transition":$},props:{menuItem:{type:Object,required:!0},menuItemKey:{type:String,required:!0},menuItemLevel:{type:Number,default:1},toggledItems:{type:Object,default:()=>({})}},computed:{hasChildren(){return this.menuItem.children?Object.keys(this.menuItem.children).length>0:!1},isActive(){let n=[];this.menuItem.activeRoutes&&(Array.isArray(this.menuItem.activeRoutes)?n=v.clone(this.menuItem.activeRoutes):n.push(this.menuItem.activeRoutes)),this.menuItem.route&&n.push(this.menuItem.route);let e=!1;return v.forEach(n,t=>{Array.isArray(t)?this.$routeCurrent(t[0],t[1])&&(e=!0):this.$routeCurrent(t)&&(e=!0)}),e},isToggled(){return!!this.toggledItems[this.menuItemKey]},routeHref(){try{return Array.isArray(this.menuItem.route)?this.$route(this.menuItem.route[0],this.menuItem.route[1]):this.$route(this.menuItem.route)}catch{return this.menuItem.route}},preserveState(){let n=!1;try{return this.menuItem.hasOwnProperty("preserveState")?!!this.menuItem.preserveState:n}catch{return n}}},mounted(){this.isActive&&this.openItem(this.menuItemKey)},methods:{onChildOpened(n){this.openItem(n),this.openItem(this.menuItemKey)},onChildToggled(n){this.toggleItem(n)},openItem(n){this.$emit("openItem",n)},toggleItem(n){this.$emit("toggleItem",n)}}};var wa=function(){var e=this,t=e._self._c;return t("li",{staticClass:"menu-item",class:`menu-item-level-${e.menuItemLevel}`},[e.hasChildren?t("button",{staticClass:"menu-link-parent",class:{"menu-link-active":e.isActive,toggled:e.isToggled},on:{click:function(o){return e.toggleItem(e.menuItemKey)}}},[e.menuItem.icon?t(e.menuItem.icon,{tag:"component",staticClass:"h-5 w-5"}):t("div",{staticClass:"h-5 w-5"}),t("span",{staticClass:"ml-2"},[e._v(" "+e._s(e.menuItem.label)+" ")]),t("icon-chevron-right",{staticClass:"indicator h-5 w-5"})],1):e.routeHref?t("inertia-link",{staticClass:"menu-link",class:{"menu-link-active":e.isActive},attrs:{href:e.routeHref,"preserve-state":e.preserveState}},[e.menuItem.icon?t(e.menuItem.icon,{tag:"component",staticClass:"h-5 w-5"}):t("div",{staticClass:"h-5 w-5"}),t("span",{staticClass:"ml-2"},[e._v(" "+e._s(e.menuItem.label)+" ")])],1):e._e(),[t("collapse-transition",{attrs:{dimension:"height"}},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.isToggled,expression:"isToggled"}],staticClass:"sub-menu"},e._l(e.menuItem.children,function(o,s){return t("side-menu-item",{key:`${e.menuItemKey}.${s}`,staticClass:"sub-menu-item",attrs:{"menu-item":o,"menu-item-key":`${e.menuItemKey}.${s}`,"menu-item-level":e.menuItemLevel+1,"toggled-items":e.toggledItems},on:{openItem:e.onChildOpened,toggleItem:e.onChildToggled}})}),1)])]],2)},ka=[],ba=r(ma,wa,ka,!1,null,null,null,null);const xa=ba.exports,Ma={name:"SideMenu",components:{SideMenuItem:xa},props:{url:String,menu:{type:Object,required:!0}},data(){return{mountedItems:{},toggledItems:{}}},computed:{isMobileSideMenuOpen(){return this.$store.getters.isMobileSideMenuOpen},lastMenuSection(){let n=Object.keys(this.visibleMenu);return n[n.length-1]},visibleMenu(){let n={};return v.forEach(this.menu,(e,t)=>{let o=this.getVisibleMenuWithChildren(e);o&&(n[t]=o)}),n}},methods:{canViewMenu(n){if(n.route&&n.route.length){if(Array.isArray(n.route)&&!this.$routeCheck(n.route[0],n.route[1]))return!1;if(!Array.isArray(n.route)&&!this.$routeCheck(n.route))return!1}return this.userCanAny(n.requiresAnyPermissions)&&this.userCanAll(n.requiresAllPermissions)},getVisibleMenuWithChildren(n){if(!n||!this.canViewMenu(n))return!1;if(!n.children)return n;let e=v.cloneDeep(n);return e.children={},v.forEach(n.children,(t,o)=>{t=this.getVisibleMenuWithChildren(t),t&&(e.children[o]=t)}),e},hideMobileSideMenu(){this.$store.commit("hideMobileSideMenu")},onMenuItemOpened(n){this.$set(this.toggledItems,n,!0)},onMenuItemToggled(n){this.toggledItems[n]?this.$set(this.toggledItems,n,!1):this.$set(this.toggledItems,n,!0)}}};var ya=function(){var e=this,t=e._self._c;return t("nav",{key:e.url,staticClass:"side-menu",class:{"side-menu-open":e.isMobileSideMenuOpen}},[t("div",{staticClass:"relative"},[t("div",{staticClass:"absolute flex flex-row items-center justify-start bottom-0 left-0 top-0 transition-default transition-colors lg:hidden"},[t("button",{staticClass:"menu-toggle",attrs:{type:"button"},on:{click:e.hideMobileSideMenu}},[t("icon-close")],1)]),t("inertia-link",{staticClass:"logo",attrs:{href:e.$route("admin.index")}},[t("logo-light",{staticClass:"mr-2 w-6"}),t("span",[e._v("SIGI")])],1)],1),e._l(e.visibleMenu,function(o,s){return t("div",{key:s,staticClass:"menu-section"},[o.showLabel?t("p",{staticClass:"menu-subheading"},[e._v(" "+e._s(o.label)+" ")]):e._e(),t("ul",{staticClass:"root-menu"},e._l(o.children,function(_,c){return t("side-menu-item",{key:`${s}.${c}`,staticClass:"root-menu-item",attrs:{"menu-item":_,"menu-item-key":`${s}.${c}`,"toggled-items":e.toggledItems},on:{openItem:e.onMenuItemOpened,toggleItem:e.onMenuItemToggled}})}),1),s!==e.lastMenuSection?t("div",{staticClass:"menu-separator"}):e._e()])})],2)},$a=[],ja=r(Ma,ya,$a,!1,null,null,null,null);const M_=ja.exports,Ia={name:"TopMenu",data(){return{userDropDown:null}},mounted(){this.initialiseUserDropdown()},methods:{closeUserDropdown(){try{Array.isArray(this.userDropDown)?this.userDropDown.forEach(n=>{n.hide()}):this.userDropDown.hide()}catch(n){console.log(n)}},initialiseUserDropdown(){let n=this.$refs.userDropdownMenu;n.style.display="block",this.userDropDown=j("#userDropdownButton",{animation:"shift-away-extreme",content:n,interactive:!0,theme:"dropdown",trigger:"click"})},showMobileSideMenu(){this.$store.commit("showMobileSideMenu")}}};var Ca=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"top-menu"},[t("button",{staticClass:"menu-link lg:hidden focus:outline-none",attrs:{type:"button"},on:{click:e.showMobileSideMenu}},[t("icon-hamburger-menu")],1),t("div",{staticClass:"ml-auto select-none"},[t("button",{staticClass:"menu-link",attrs:{id:"userDropdownButton"}},[e._v(" "+e._s(e.$page.props.auth.user.first_name)+" ")])]),t("div",{ref:"userDropdownMenu",staticClass:"flex flex-col py-2 focus:outline-none"},[t("p",{staticClass:"dropdown-subheading mb-2"},[e._v(" Hello, "+e._s(e.$page.props.auth.user.first_name)+" ")]),t("inertia-link",{staticClass:"dropdown-link",attrs:{href:e.$route("website.index")}},[e._v(" Homepage ")]),e.userCan("profile.view")?t("inertia-link",{staticClass:"dropdown-link",attrs:{href:e.$route("admin.profile.index")},on:{click:e.closeUserDropdown}},[e._v(" Profile ")]):e._e(),t("div",{staticClass:"dropdown-separator"}),t("inertia-link",{staticClass:"dropdown-link",attrs:{as:"button",href:e.$route("logout"),method:"post"}},[e._v(" Logout ")])],1)])},Sa=[],Oa=r(Ia,Ca,Sa,!1,null,null,null,null);const y_=Oa.exports,za={name:"PaginationLink",props:{forceDisabled:{default:!1,type:Boolean},link:{required:!0,type:Object},linkClass:{default:"",type:String|Array}},computed:{isDisabled(){return this.forceDisabled||this.link.url===null},isClickable(){return!this.isDisabled&&!this.link.active}}};var Fa=function(){var e=this,t=e._self._c;return e.isClickable?t("inertia-link",{class:e.linkClass,attrs:{href:e.link.url}},[e._t("default",function(){return[e._v(" "+e._s(e.link.label)+" ")]})],2):t("div",{class:e.linkClass},[e._t("default",function(){return[e._v(" "+e._s(e.link.label)+" ")]})],2)},Ta=[],Pa=r(za,Fa,Ta,!1,null,null,null,null);const Ba=Pa.exports,Ra={name:"Pagination",components:{"pagination-link":Ba},props:{customIconMap:{default:null,type:Object},pagination:{default:null,type:Object},showFirstLastLinks:{default:!1,type:Boolean},showIcons:{default:!0,type:Boolean},showInactiveLinks:{default:!0,type:Boolean},showNumberLinks:{default:!0,type:Boolean},showPrevNextLinks:{default:!0,type:Boolean},showSliders:{default:!0,type:Boolean},showWhenNoPages:{default:!1,type:Boolean}},data(){return{iconMap:{First:"icon-chevrons-left",Last:"icon-chevrons-right",Next:"icon-chevron-right",Previous:"icon-chevron-left"}}},computed:{allowedTextLinks(){let n=[];return this.showPrevNextLinks&&n.push("Previous","Next"),this.showFirstLastLinks&&n.push("First","Last"),this.showSliders&&n.push("..."),n},isVisibleLinks(){return Array.isArray(this.visibleLinks)&&this.visibleLinks.length>0},showPagination(){return!(!this.isVisibleLinks||this.pagination.last_page<2&&!this.showWhenNoPages)},visibleLinks(){return!this.pagination||!this.pagination.links?!1:this.pagination.links.filter(n=>!this.showInactiveLinks&&!n.url?!1:this.isNumberLink(n)?this.showNumberLinks:this.allowedTextLinks.indexOf(n.label)>=0)}},mounted(){this.customIconMap&&(this.iconMap=this.customIconMap)},methods:{getLinkClass(n){let e=["pagination-link"];return n.label==="..."?e.push("pagination-link-slider"):n.url===null?e.push("pagination-link-disabled"):e.push("pagination-link-enabled"),n.active?e.push("pagination-link-active"):e.push("pagination-link-inactive"),e},getLinkIcon(n){return this.showIcons&&this.iconMap.hasOwnProperty(n.label)?this.iconMap[n.label]:!1},isActiveLink(n){return n.active},isEllipsisLink(n){return n.label==="..."},isFirstLink(n){return n.label===1},isLastLink(n){return n.label===this.pagination.last_page},isNumberLink(n){return parseInt(n.label)>0}}};var Ha=function(){var e=this,t=e._self._c;return e.showPagination?t("nav",{staticClass:"pagination"},e._l(e.visibleLinks,function(o,s){return t("div",{key:`pagination-link-${s}`,staticClass:"pagination-link-container",class:{"pagination-link-container-active":e.isActiveLink(o),"pagination-link-container-first":e.isFirstLink(o),"pagination-link-container-ellipsis":e.isEllipsisLink(o),"pagination-link-container-last":e.isLastLink(o),"pagination-link-container-numeric":e.isNumberLink(o)}},[t("pagination-link",{attrs:{link:o,"link-class":e.getLinkClass(o)}},[e.getLinkIcon(o)?[t(e.getLinkIcon(o),{tag:"component",staticClass:"h-5"})]:e._e()],2)],1)}),0):e._e()},La=[],Aa=r(Ra,Ha,La,!1,null,null,null,null);const $_=Aa.exports,Da={name:"LogoLight"};var Ea=function(){var e=this,t=e._self._c;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 193 179"}},[t("path",{attrs:{stroke:"#1F243A","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"28",d:"M127 19H20M100.876 159.42l-81-140.296M132.124 106.124l-31 53.694"}}),t("path",{attrs:{stroke:"#1C64F1","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"28",d:"M174 20h-1"}})])},Va=[],Wa=r(Da,Ea,Va,!1,null,null,null,null);const j_=Wa.exports;export{Di as $,mi as A,wi as B,ki as C,bi as D,xi as E,Mi as F,yi as G,$i as H,ji as I,Ii as J,Ci as K,j_ as L,Si as M,Oi as N,zi as O,x_ as P,Fi as Q,Ti as R,M_ as S,y_ as T,Pi as U,Bi as V,Ri as W,Hi as X,Li as Y,Ai as Z,Ya as _,$_ as a,Ei as a0,Vi as a1,Wi as a2,Ni as a3,qi as a4,Ui as a5,Yi as a6,Gi as a7,Xi as a8,Qi as a9,qa as aA,fe as aB,Es as aC,zs as aD,gl as aE,xl as aF,$e as aG,Mr as aH,L as aI,vt as aJ,Ji as aa,Ki as ab,Zi as ac,t_ as ad,e_ as ae,n_ as af,r_ as ag,o_ as ah,s_ as ai,l_ as aj,a_ as ak,i_ as al,__ as am,c_ as an,u_ as ao,d_ as ap,h_ as aq,v_ as ar,f_ as as,p_ as at,g_ as au,m_ as av,w_ as aw,k_ as ax,b_ as ay,Ua as az,Ga as b,Xa as c,Qa as d,Ja as e,Ka as f,Za as g,ti as h,ei as i,ni as j,ri as k,oi as l,si as m,r as n,li as o,ai as p,ii as q,_i as r,ci as s,ui as t,di as u,hi as v,vi as w,fi as x,pi as y,gi as z}; diff --git a/public/build/assets/LogoLight.fab1a1ae.css b/public/build/assets/LogoLight.fab1a1ae.css new file mode 100644 index 00000000..6237b854 --- /dev/null +++ b/public/build/assets/LogoLight.fab1a1ae.css @@ -0,0 +1 @@ +.tippy-box[data-animation=shift-away-extreme][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=top]{transform:translateY(20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=bottom]{transform:translateY(-20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=left]{transform:translate(20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=right]{transform:translate(-20px)} diff --git a/public/build/assets/MenuItemsEditor.ac46952f.css b/public/build/assets/MenuItemsEditor.ac46952f.css new file mode 100644 index 00000000..b6ace996 --- /dev/null +++ b/public/build/assets/MenuItemsEditor.ac46952f.css @@ -0,0 +1 @@ +.ghost[data-v-d664c19d]{opacity:.35}.flip-field-move[data-v-d664c19d]{transition:transform .5s}.no-move[data-v-d664c19d]{transition:transform 0s}.inner-draggable[data-v-d664c19d]{min-height:18px} diff --git a/public/build/assets/MenuItemsEditor.d3626ff3.js b/public/build/assets/MenuItemsEditor.d3626ff3.js new file mode 100644 index 00000000..3389d71f --- /dev/null +++ b/public/build/assets/MenuItemsEditor.d3626ff3.js @@ -0,0 +1 @@ +import{m,_ as a}from"./vendor.21c2b6f5.js";import{d as u}from"./vuedraggable.umd.700457d3.js";import{C as c}from"./ConfirmationModal.242a99d0.js";import{I as d}from"./InputGroup.513e0dd4.js";import{n as i}from"./LogoLight.f7426689.js";const h={name:"MenuItemModal",mixins:[m],components:{InputGroup:d},props:{isCreate:{default:!0,type:Boolean},menuItem:{default:()=>({custom_class:"",child_items:[],href:"",label:"",rel:"",target:""})},resetOnClose:{default:!1,type:Boolean},showModal:{default:!0,type:Boolean}},data(){return{defaultMenuItem:{custom_class:"",child_items:[],href:"",label:"",rel:"",target:""},editableMenuItem:{custom_class:"",child_items:[],href:"",label:"",rel:"",target:""}}},computed:{confirmText(){return this.isCreate?"Add":"Update"},isMenuItemValid(){try{return this.editableMenuItem.label.length}catch{return!1}},headerText(){return this.isCreate?"Add Menu Item":"Update Menu Item"}},methods:{cancelAction(){this.$emit("cancelAction")},closeModal(){this.$emit("closeModal")},confirmAction(n=!0){if(!this.isMenuItemValid){n&&this.$errorToast("Menu item data is invalid.");return}this.$emit("confirmAction",this.editableMenuItem),this.editableMenuItem=a.cloneDeep(this.defaultMenuItem)},onMenuItemChange(){this.editableMenuItem=a.cloneDeep(this.menuItem);try{a.forEach(this.defaultMenuItem,(n,e)=>{this.editableMenuItem.hasOwnProperty(e)||this.$set(this.editableMenuItem,e,this.defaultMenuItem[e])})}catch{this.editableMenuItem=a.cloneDeep(defaultMenuItem)}},onShowModal(){try{let n=document.getElementsByTagName("body")[0];this.showModal?n.classList.add("overflow-y-hidden"):(n.classList.remove("overflow-y-hidden"),this.resetOnClose&&(this.editableMenuItem=a.cloneDeep(this.defaultMenuItem)))}catch(n){console.error(n)}}},watch:{menuItem:{handler:"onMenuItemChange",deep:!0},showModal:{handler:"onShowModal"}}};var f=function(){var e=this,t=e._self._c;return e.showModal?t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"absolute bg-gray-800 bg-opacity-75 flex h-full inset-0 items-center justify-center w-full p-4 z-30",on:{keypress:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),s.stopPropagation(),e.confirmAction(!1))}}},[t("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeModal,expression:"closeModal"}],staticClass:"bg-theme-card max-h-full max-w-full overflow-y-auto relative rounded shadow-md text-theme-card-contrast w-160"},[t("div",{staticClass:"flex flex-row justify-end p-2"},[t("button",{staticClass:"flex items-center justify-center ml-auto p-1 rounded ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle",attrs:{type:"button"},on:{click:e.closeModal}},[t("icon-close",{staticClass:"h-5 w-5"})],1)]),t("div",{staticClass:"px-4"},[t("h2",{staticClass:"font-semibold text-center text-lg"},[e._v(" "+e._s(e.headerText)+"s ")]),e.editableMenuItem?t("div",{staticClass:"mt-6"},[t("input-group",{attrs:{"input-autofocus":!0,"input-id":"menu_item_label","input-name":"menu_item_label","input-placeholder":"Label","label-text":"Label"},model:{value:e.editableMenuItem.label,callback:function(s){e.$set(e.editableMenuItem,"label",s)},expression:"editableMenuItem.label"}}),t("input-group",{staticClass:"mt-4",attrs:{"input-id":"menu_item_href","input-name":"menu_item_href","input-placeholder":"URL/Href","label-text":"URL/Href"},model:{value:e.editableMenuItem.href,callback:function(s){e.$set(e.editableMenuItem,"href",s)},expression:"editableMenuItem.href"}}),t("input-group",{staticClass:"mt-4",attrs:{"input-id":"menu_item_custom_class","input-name":"menu_item_custom_class","input-placeholder":"Custom Class","label-text":"Custom Class"},model:{value:e.editableMenuItem.custom_class,callback:function(s){e.$set(e.editableMenuItem,"custom_class",s)},expression:"editableMenuItem.custom_class"}}),t("input-group",{staticClass:"mt-4",attrs:{"input-id":"menu_item_target","input-name":"menu_item_target","input-placeholder":"Target","label-text":"Target"},model:{value:e.editableMenuItem.target,callback:function(s){e.$set(e.editableMenuItem,"target",s)},expression:"editableMenuItem.target"}}),t("input-group",{staticClass:"mt-4",attrs:{"input-id":"menu_item_rel","input-name":"menu_item_rel","input-placeholder":"Rel","label-text":"Rel"},model:{value:e.editableMenuItem.rel,callback:function(s){e.$set(e.editableMenuItem,"rel",s)},expression:"editableMenuItem.rel"}})],1):e._e()]),t("div",{staticClass:"flex flex-col items-center justify-end mb-4 mt-8 px-4 space-y-2 sm:flex-row sm:space-x-3 sm:space-y-0"},[t("button",{staticClass:"bg-theme-base-subtle min-w-24 px-4 py-2 rounded text-center text-theme-base-subtle-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle-contrast hover:text-theme-base-subtle",attrs:{type:"button"},on:{click:e.cancelAction}},[e._v(" Cancel ")]),t("button",{staticClass:"bg-theme-primary border border-theme-primary flex flex-row items-center justify-center px-4 py-2 min-w-24 px-4 py-2 rounded text-center text-theme-primary-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:border-theme-primary-hover hover:text-theme-primary-hover-contrast",attrs:{disabled:!e.isMenuItemValid,type:"button"},on:{click:e.confirmAction}},[e._v(" "+e._s(e.confirmText)+" ")])])])])]):e._e()},p=[],b=i(h,f,p,!1,null,null,null,null);const r=b.exports;const g={name:"MenuItemDraggable",components:{ConfirmationModal:c,draggable:u,MenuItemModal:r},props:{menuItems:{required:!0,type:Array}},data(){return{isDragging:!1,isEditingMenuItem:!1,menuItemIndexToDelete:null,menuItemIndexToEdit:null,showDeleteModal:!1,showEditModal:!1}},computed:{deleteModalText(){try{return"Do you really want to delete the '"+this.menuItemToDelete.label+"' menu item?"}catch{return"Do you really want to delete this menu item?"}},isMenuItems(){try{return this.menuItems.length}catch{return!1}},menuItemToDelete(){try{return this.menuItems[this.menuItemIndexToDelete]}catch{return!1}},menuItemToEdit(){try{return this.isEditingMenuItem?this.menuItems[this.menuItemIndexToEdit]:{}}catch{return{}}}},methods:{addMenuItem(n){this.isEditingMenuItem=!1,this.showEditModal=!0,this.menuItemIndexToEdit=n},cancelDelete(){this.showDeleteModal=!1,this.menuItemIndexToDelete=null},cancelEdit(){this.showEditModal=!1,this.menuItemIndexToEdit=!1},checkDelete(n){this.menuItemIndexToDelete=n,this.showDeleteModal=!0},confirmEdit(n){this.isEditingMenuItem?this.$set(this.menuItems,this.menuItemIndexToEdit,a.cloneDeep(n)):this.menuItems[this.menuItemIndexToEdit].child_items.push(a.cloneDeep(n)),this.showEditModal=!1,this.isEditingMenuItem=!1,this.menuItemIndexToEdit=!1},confirmDelete(){try{this.$delete(this.menuItems,this.menuItemIndexToDelete)}catch(n){this.$errorToast("Failed to delete menu item."),console.log(n)}finally{this.showDeleteModal=!1,this.menuItemIndexToDelete=null}},editMenuItem(n){this.menuItemIndexToEdit=n,this.isEditingMenuItem=!0,this.showEditModal=!0},onDraggableEnd(){this.isDragging=!1},onDraggableSort(){this.$page.props.errors={}},onDraggableStart(){this.isDragging=!0}}};var I=function(){var e=this,t=e._self._c;return t("div",[t("draggable",{attrs:{animation:"200","ghost-class":"ghost",group:{name:"menu-item-draggable"},handle:".draggable-handle",list:e.menuItems},on:{end:e.onDraggableEnd,sort:e.onDraggableSort,start:e.onDraggableStart}},e._l(e.menuItems,function(s,l){return t("div",{key:`menu-item-${l}`},[t("div",{staticClass:"border-2 border-theme-base-subtle flex flex-row items-center px-4 py-1 rounded"},[t("div",{staticClass:"draggable-handle cursor-move"},[t("icon-grid-dots",{staticClass:"w-5"})],1),t("span",{staticClass:"font-semibold ml-4 mr-auto"},[e._v(" "+e._s(s.label)+" ")]),t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-primary-subtle hover:text-theme-primary-subtle-contrast",attrs:{title:"Add Child Menu Item",type:"button"},on:{click:function(o){return e.addMenuItem(l)}}},[t("icon-plus",{staticClass:"w-4"})],1),t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{title:"Edit Menu Item",type:"button"},on:{click:function(o){return e.editMenuItem(l)}}},[t("icon-edit",{staticClass:"w-4"})],1),t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete Menu Item",type:"button"},on:{click:function(o){return e.checkDelete(l)}}},[t("icon-trash",{staticClass:"w-4"})],1)]),t("div",[t("menu-item-draggable",{staticClass:"inner-draggable pl-4",class:{"mt-4":s.child_items.length},attrs:{"menu-items":s.child_items}})],1)])}),0),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("menu-item-modal",{attrs:{"is-create":!e.isEditingMenuItem,"menu-item":e.menuItemToEdit,"show-modal":e.showEditModal},on:{cancelAction:e.cancelEdit,closeModal:e.cancelEdit,confirmAction:e.confirmEdit}})],1)},M=[],x=i(g,I,M,!1,null,"d664c19d",null,null);const _=x.exports,v={name:"MenuItemsEditor",components:{MenuItemDraggable:_,MenuItemModal:r},model:{prop:"menuItems"},props:{menuItems:{required:!0,type:Array}},data(){return{isDragging:!1,newMenuItem:{},showCreateModal:!1}},methods:{addMenuItem(){this.showCreateModal=!0},cancelCreate(){this.showCreateModal=!1},confirmCreate(n){this.showCreateModal=!1,this.menuItems.push(a.cloneDeep(n)),this.newMenuItem={}}}};var y=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-row items-center"},[t("span",{staticClass:"text-lg"},[e._v("Menu Items")]),t("button",{staticClass:"button button-primary-subtle button-small ml-auto text-sm",attrs:{type:"button"},on:{click:e.addMenuItem}},[e._v(" Add Menu Item ")])]),e.menuItems.length?t("div",[t("menu-item-draggable",{staticClass:"mt-6",attrs:{"menu-items":e.menuItems}})],1):t("p",{staticClass:"bg-theme-base-subtle mt-6 px-4 py-3 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No template fields ")]),t("menu-item-modal",{attrs:{"menu-item":e.newMenuItem,"show-modal":e.showCreateModal},on:{cancelAction:e.cancelCreate,closeModal:e.cancelCreate,confirmAction:e.confirmCreate}})],1)},w=[],C=i(v,y,w,!1,null,null,null,null);const A=C.exports;export{A as M}; diff --git a/public/build/assets/Preview.605dcace.js b/public/build/assets/Preview.605dcace.js new file mode 100644 index 00000000..a0d4909d --- /dev/null +++ b/public/build/assets/Preview.605dcace.js @@ -0,0 +1 @@ +import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const c={name:"EduCourseShow",layout:"website-layout",props:{course:{type:Object,required:!0}},data(){return{showCourseJson:!1,isLoadingCheckout:!1,checkoutErrors:null,checkoutResponse:null,purchaseSelection:null}},mounted(){this.getCheckoutResponse()},methods:{getCheckoutResponse(){try{let e=new URLSearchParams(window.location.search).get("checkout");if(!["cancel","success"].includes(e))return;this.checkoutResponse=e}catch{}},purchaseCourse(){this.checkoutErrors=null,this.isLoadingCheckout=!0,axios.post(this.$route("api.edu.courses.checkout",this.course.id)).then(s=>{if(!s.data.url){this.checkoutErrors="No checkout URL returned from server.";return}window.location.href=s.data.url}).catch(s=>{var e,t;this.checkoutErrors=((t=(e=s==null?void 0:s.response)==null?void 0:e.data)==null?void 0:t.message)||s}).finally(()=>{this.isLoadingCheckout=!1})},toggleCourseJson(){this.showCourseJson=!this.showCourseJson},purchaseSelectionClass(s){let e="cursor-pointer border flex flex-col px-8 py-2 rounded space-y-1 w-full items-center justify-center";return s===this.purchaseSelection?e+" border-theme-primary text-theme-primary":e+" border-gray-200 bg-grey-100 text-gray-500 hover:bg-gray-100"}}};var o=function(){var e=this,t=e._self._c;return t("section",{staticClass:"bg-white"},[e.checkoutResponse==="success"?t("div",{staticClass:"bg-theme-success text-theme-success-contrast px-4 py-2 text-center"},[e._v(" Successfully purchased course ")]):e.checkoutResponse==="cancel"?t("div",{staticClass:"bg-theme-warning text-theme-warning-contrast px-4 py-2 text-center"},[e._v(" Course purchase cancelled ")]):e._e(),t("h1",{staticClass:"bg-yellow-100 px-4 py-2 text-center text-3xl bold"},[e._v("PREVIEW")]),t("header",{staticClass:"bg-gray-800 px-4 py-12"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("div",{staticClass:"flex flex-col items-center md:flex-row md:items-start"},[t("img",{staticClass:"rounded-lg w-48",attrs:{src:e.course.primary_image,alt:"Course image preview"}}),t("section",{staticClass:"mt-8 text-center md:ml-8 md:mt-0 md:text-left"},[t("h1",{staticClass:"text-3xl font-bold text-white md:text-4xl"},[e._v(e._s(e.course.name))]),t("p",{staticClass:"mt-4 text-gray-400"},[e._v(e._s(e.course.summary))]),e._m(0)])])])]),t("section",{staticClass:"px-4 py-6"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("p",{staticClass:"opacity-50"},[e._v(" Course/Programme Selection ")]),t("div",{staticClass:"flex flex-row mt-2 space-x-4"},[t("button",{class:e.purchaseSelectionClass("standalone"),attrs:{type:"button"},on:{click:function(a){e.purchaseSelection="standalone"}}},[t("span",[e._v("Standalone")]),t("span",{staticClass:"text-sm"},[e._v("Start now!")])]),t("button",{class:e.purchaseSelectionClass("programme_1"),attrs:{type:"button"},on:{click:function(a){e.purchaseSelection="programme_1"}}},[t("span",[e._v("Programme 1")]),t("span",{staticClass:"text-sm"},[e._v("Start date: 01/11/2023")])]),t("button",{class:e.purchaseSelectionClass("programme_2"),attrs:{type:"button"},on:{click:function(a){e.purchaseSelection="programme_2"}}},[t("span",[e._v("Programme 2")]),t("span",{staticClass:"text-sm"},[e._v("Start date: 01/12/2023")])])]),t("div",{staticClass:"flex flex-row justify-center"},[t("button",{staticClass:"button button-primary flex flex-row justify-center mt-6 text-xl",staticStyle:{"min-width":"300px"},attrs:{disabled:!e.purchaseSelection||e.isLoadingCheckout},on:{click:e.purchaseCourse}},[e._v(" \xA3"+e._s(e.course.price)+" | Purchase "),e.isLoadingCheckout?t("icon-loader-circle",{staticClass:"animate-spin-slow ml-2 w-5"}):e._e()],1)])])]),t("section",{staticClass:"bg-white px-4 py-6 shadow-subtle mt-4"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("div",{staticClass:"text-center"},[t("iframe",{attrs:{src:e.course.video_preview,width:"640",height:"360",frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})])])]),t("section",{staticClass:"bg-white px-4 py-6 shadow-subtle"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("div",{staticClass:"text-center"},[t("p",[e._v(" "+e._s(e.course.description)+" ")])])])])])},i=[function(){var s=this,e=s._self._c;return e("div",{staticClass:"text-white"},[e("ul",[e("li",[s._v("Feature 1")]),e("li",[s._v("Feature 2")]),e("li",[s._v("Feature 3")]),e("li",[s._v("Feature 3")])])])}],l=r(c,o,i,!1,null,null,null,null);const m=l.exports;export{m as default}; diff --git a/public/build/assets/Preview.72090992.js b/public/build/assets/Preview.72090992.js new file mode 100644 index 00000000..09ab4b20 --- /dev/null +++ b/public/build/assets/Preview.72090992.js @@ -0,0 +1 @@ +import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const i={name:"EduCourseShow",layout:"website-layout",props:{course:{type:Object,required:!0}},data(){return{showCourseJson:!1,isLoadingCheckout:!1,checkoutErrors:null,checkoutResponse:null,purchaseSelection:null}},mounted(){this.getCheckoutResponse()},methods:{getCheckoutResponse(){try{let s=new URLSearchParams(window.location.search).get("checkout");if(!["cancel","success"].includes(s))return;this.checkoutResponse=s}catch{}},purchaseCourse(){this.checkoutErrors=null,this.isLoadingCheckout=!0,axios.post(this.$route("api.edu.courses.checkout",this.course.id)).then(t=>{if(!t.data.url){this.checkoutErrors="No checkout URL returned from server.";return}window.location.href=t.data.url}).catch(t=>{var s,e;this.checkoutErrors=((e=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:e.message)||t}).finally(()=>{this.isLoadingCheckout=!1})},toggleCourseJson(){this.showCourseJson=!this.showCourseJson},purchaseSelectionClass(t){let s="cursor-pointer border flex flex-col px-8 py-2 rounded space-y-1 w-full items-center justify-center";return t===this.purchaseSelection?s+" border-theme-primary text-theme-primary":s+" border-gray-200 bg-grey-100 text-gray-500 hover:bg-gray-100"}}};var l=function(){var s=this,e=s._self._c;return e("section",{staticClass:"bg-white"},[s.checkoutResponse==="success"?e("div",{staticClass:"bg-theme-success text-theme-success-contrast px-4 py-2 text-center"},[s._v(" Successfully purchased course ")]):s.checkoutResponse==="cancel"?e("div",{staticClass:"bg-theme-warning text-theme-warning-contrast px-4 py-2 text-center"},[s._v(" Course purchase cancelled ")]):s._e(),e("h1",{staticClass:"bg-yellow-100 px-4 py-2 text-center text-3xl bold"},[s._v("PREVIEW")]),e("header",{staticClass:"bg-gray-800 px-4 py-12"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"flex flex-col items-center md:flex-row md:items-start"},[e("img",{staticClass:"rounded-lg w-48",attrs:{src:s.course.primary_image,alt:"Course image preview"}}),e("section",{staticClass:"mt-8 text-center md:ml-8 md:mt-0 md:text-left"},[e("h1",{staticClass:"text-3xl font-bold text-white md:text-4xl"},[s._v(s._s(s.course.name))]),e("p",{staticClass:"mt-4 text-gray-400"},[s._v(s._s(s.course.summary))]),e("div",{staticClass:"text-white"},[e("ul",{staticClass:"py-3"},[e("li",{staticClass:"flex flex-row items-center"},[e("icon-device-mobile",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.access-on-mobile"))+" ")],1),s.course.has_webinars?e("li",{staticClass:"flex flex-row items-center"},[e("icon-camera-check",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.webinars"))+" ")],1):s._e(),s.course.has_money_back_guarantee?e("li",{staticClass:"flex flex-row items-center"},[e("icon-moneybag",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.money-back-gurantee"))+" ")],1):s._e(),s.course.has_cerfiticate?e("li",{staticClass:"flex flex-row items-center"},[e("icon-certificate",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.certificate"))+" ")],1):s._e(),s.course.has_captions?e("li",{staticClass:"flex flex-row items-center"},[e("icon-badge-cc",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.captions"))+" ")],1):s._e(),s.course.has_lifetime_access?e("li",{staticClass:"flex flex-row items-center"},[e("icon-check",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.lifetime-access"))+" ")],1):s._e(),s.course.has_student_discount?e("li",{staticClass:"flex flex-row items-center"},[e("icon-discount",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.student-discount"))+" ")],1):s._e(),s.course.has_pdfs?e("li",{staticClass:"flex flex-row items-center"},[e("icon-book-download",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.resources-pdfs"))+" ")],1):s._e(),s.course.has_seo?e("li",{staticClass:"flex flex-row items-center"},[e("icon-speaker-phone",{staticClass:"w-5 md:mr-2"}),s._v(" "+s._s(s.__("messages.seo-exposure"))+" ")],1):s._e()])])])])])]),e("section",{staticClass:"px-4 py-6"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"flex flex-row justify-center"},[e("button",{staticClass:"button button-primary flex flex-row justify-center mt-6 text-xl",staticStyle:{"min-width":"300px"},attrs:{disabled:s.isLoadingCheckout},on:{click:s.purchaseCourse}},[s.course.currency==="GBP"?e("span",[s._v(" "+s._s(s.course.currency+" "+s.course.price)+" ")]):s.course.currency==="Lei"?e("span",[s._v(" "+s._s(s.course.price+" "+s.course.currency)+" ")]):s.course.currency==="EUR"?e("span",[s._v(" "+s._s(s.course.price+" Euro")+" ")]):s._e(),s.isLoadingCheckout?e("icon-loader-circle",{staticClass:"animate-spin-slow ml-2 w-5"}):s._e()],1)])])]),e("section",{staticClass:"bg-white px-4 py-6 shadow-subtle mt-4"},[e("div",{staticClass:"container max-w-screen-lg mx-auto flex flex-row justify-center"},[e("div",{staticClass:"text-center"},[e("iframe",{attrs:{src:s.course.video_preview,width:"640",height:"360",frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})])])]),e("section",{staticClass:"bg-white px-4 py-6 shadow-subtle"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"text-center"},[e("p",{domProps:{innerHTML:s._s(s.course.description)}})])])]),e("section",{staticClass:"px-4 py-6 shadow-subtle"},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("ul",{staticClass:"divide-y divide-gray-300 max-w-sm mt-6 mb-6 mx-auto px-4 border"},[e("li",{staticClass:"py-4"},[e("div",{staticClass:"flex items-center space-x-4"},[e("span",{staticClass:"text-lg font-bold"},[s._v(s._s(s.__("messages.course-content")))])]),e("ul",{staticClass:"divide-y divide-gray-300 bg-gray-50 rounded-md px-4 py-2 mt-4"},s._l(s.course.sections,function(a){return e("li",{key:"section-"+a.title,staticClass:"py-2"},[e("div",{staticClass:"flex items-center space-x-4"},[e("strong",[s._v(s._s(a.title))]),e("small",{staticClass:"mr-2 ml-auto"},[a.lecture_count?e("span",[s._v(" "+s._s(a.child_items?a.child_items.length+" "+s.__("messages.lectures")+" | ":"")+" ")]):s._e(),s._v(" "+s._s(a.content_length?a.content_length+" mins":"")+" ")])]),e("ul",{staticClass:"divide-y divide-gray-300 bg-gray-100 rounded-md px-4 py-2 mt-2"},s._l(a.child_items,function(c){return e("li",{key:"lecture-"+c.title,staticClass:"py-2"},[e("div",{staticClass:"flex items-center space-x-4"},[e("span",{staticClass:"text-sm font-medium"},[s._v(" "+s._s(c.title)+" "),e("small",{staticClass:"mr-2 ml-auto"},[s._v(" "+s._s(c.content_length?c.content_length+" mins":"")+" ")])])])])}),0)])}),0)])])])])])},o=[],n=r(i,l,o,!1,null,null,null,null);const _=n.exports;export{_ as default}; diff --git a/public/build/assets/Preview.8fb72e53.js b/public/build/assets/Preview.8fb72e53.js new file mode 100644 index 00000000..401aa85e --- /dev/null +++ b/public/build/assets/Preview.8fb72e53.js @@ -0,0 +1 @@ +import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const c={name:"EduProgrammeShow",layout:"website-layout",props:{programme:{type:Object,required:!0}},data(){return{showCourseJson:!1,isLoadingCheckout:!1,checkoutErrors:null,checkoutResponse:null,purchaseSelection:null}},mounted(){this.getCheckoutResponse()},methods:{getCheckoutResponse(){try{let e=new URLSearchParams(window.location.search).get("checkout");if(!["cancel","success"].includes(e))return;this.checkoutResponse=e}catch{}},purchaseCourse(){this.checkoutErrors=null,this.isLoadingCheckout=!0,axios.post(this.$route("api.edu.courses.checkout",this.course.id)).then(s=>{if(!s.data.url){this.checkoutErrors="No checkout URL returned from server.";return}window.location.href=s.data.url}).catch(s=>{var e,t;this.checkoutErrors=((t=(e=s==null?void 0:s.response)==null?void 0:e.data)==null?void 0:t.message)||s}).finally(()=>{this.isLoadingCheckout=!1})},toggleCourseJson(){this.showCourseJson=!this.showCourseJson},purchaseSelectionClass(s){let e="cursor-pointer border flex flex-col px-8 py-2 rounded space-y-1 w-full items-center justify-center";return s===this.purchaseSelection?e+" border-theme-primary text-theme-primary":e+" border-gray-200 bg-grey-100 text-gray-500 hover:bg-gray-100"}}};var o=function(){var e=this,t=e._self._c;return t("section",{staticClass:"bg-white"},[e.checkoutResponse==="success"?t("div",{staticClass:"bg-theme-success text-theme-success-contrast px-4 py-2 text-center"},[e._v(" Successfully purchased course ")]):e.checkoutResponse==="cancel"?t("div",{staticClass:"bg-theme-warning text-theme-warning-contrast px-4 py-2 text-center"},[e._v(" Programme purchase cancelled ")]):e._e(),t("h1",{staticClass:"bg-yellow-100 px-4 py-2 text-center text-3xl bold"},[e._v("PREVIEW")]),t("header",{staticClass:"bg-gray-800 px-4 py-12"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("div",{staticClass:"flex flex-col items-center md:flex-row md:items-start"},[t("img",{staticClass:"rounded-lg w-48",attrs:{src:e.programme.primary_image,alt:"Programme image preview"}}),t("section",{staticClass:"mt-8 text-center md:ml-8 md:mt-0 md:text-left"},[t("h1",{staticClass:"text-3xl font-bold text-white md:text-4xl"},[e._v(e._s(e.programme.name))]),t("p",{staticClass:"mt-4 text-gray-400"},[e._v(e._s(e.programme.summary))]),e._m(0)])])])]),t("section",{staticClass:"px-4 py-6"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("p",{staticClass:"opacity-50"},[e._v(" Course/Programme Selection ")]),t("div",{staticClass:"flex flex-row mt-2 space-x-4"},[t("button",{class:e.purchaseSelectionClass("standalone"),attrs:{type:"button"},on:{click:function(a){e.purchaseSelection="standalone"}}},[t("span",[e._v("Standalone")]),t("span",{staticClass:"text-sm"},[e._v("Start now!")])]),t("button",{class:e.purchaseSelectionClass("programme_1"),attrs:{type:"button"},on:{click:function(a){e.purchaseSelection="programme_1"}}},[t("span",[e._v("Programme 1")]),t("span",{staticClass:"text-sm"},[e._v("Start date: 01/11/2023")])]),t("button",{class:e.purchaseSelectionClass("programme_2"),attrs:{type:"button"},on:{click:function(a){e.purchaseSelection="programme_2"}}},[t("span",[e._v("Programme 2")]),t("span",{staticClass:"text-sm"},[e._v("Start date: 01/12/2023")])])]),t("div",{staticClass:"flex flex-row justify-center"},[t("button",{staticClass:"button button-primary flex flex-row justify-center mt-6 text-xl",staticStyle:{"min-width":"300px"},attrs:{disabled:!e.purchaseSelection||e.isLoadingCheckout},on:{click:e.purchaseCourse}},[e._v(" \xA3"+e._s(e.programme.price)+" | Purchase "),e.isLoadingCheckout?t("icon-loader-circle",{staticClass:"animate-spin-slow ml-2 w-5"}):e._e()],1)])])]),t("section",{staticClass:"bg-white px-4 py-6 shadow-subtle mt-4"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("div",{staticClass:"text-center"},[t("iframe",{attrs:{src:e.programme.video_preview,width:"640",height:"360",frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:""}})])])]),t("section",{staticClass:"bg-white px-4 py-6 shadow-subtle"},[t("div",{staticClass:"container max-w-screen-lg mx-auto"},[t("div",{staticClass:"text-center"},[t("p",[e._v(" "+e._s(e.programme.description)+" ")])])])])])},i=[function(){var s=this,e=s._self._c;return e("div",{staticClass:"text-white"},[e("ul",[e("li",[s._v("Feature 1")]),e("li",[s._v("Feature 2")]),e("li",[s._v("Feature 3")]),e("li",[s._v("Feature 3")])])])}],l=r(c,o,i,!1,null,null,null,null);const m=l.exports;export{m as default}; diff --git a/public/build/assets/Register.2d4e8bdb.js b/public/build/assets/Register.2d4e8bdb.js new file mode 100644 index 00000000..1a70889c --- /dev/null +++ b/public/build/assets/Register.2d4e8bdb.js @@ -0,0 +1 @@ +import{I as s}from"./InputGroup.513e0dd4.js";import{n as a}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"StudentAuthRegister",components:{InputGroup:s},layout:"auth-layout",data(){return{form:{email:"",first_name:"",last_name:"",password:"",password_confirmation:""}}},methods:{submit(){this.$inertia.post(this.$route("student.register"),this.form)}}};var i=function(){var e=this,r=e._self._c;return r("div",{staticClass:"auth-card-container"},[r("div",{staticClass:"auth-card"},[r("h1",{staticClass:"auth-header"},[e._v(" "+e._s(e.__("messages.welcome-general"))+" ")]),r("form",{staticClass:"px-6",on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[r("div",{staticClass:"flex flex-col md:flex-row md:space-x-2"},[r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"given-name","input-autofocus":!0,"input-class":"auth-input","input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"first_name","label-text":e.__("messages.first-name")},on:{errorHidden:function(t){return e.clearPageErrorMessage("first_name")}},model:{value:e.form.first_name,callback:function(t){e.$set(e.form,"first_name",t)},expression:"form.first_name"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"family-name","input-class":"auth-input","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"last_name","label-text":e.__("messages.last-name")},on:{errorHidden:function(t){return e.clearPageErrorMessage("last_name")}},model:{value:e.form.last_name,callback:function(t){e.$set(e.form,"last_name",t)},expression:"form.last_name"}})],1),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"email","input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":e.__("messages.email")},on:{errorHidden:function(t){return e.clearPageErrorMessage("email")}},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"new-password","input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":e.__("messages.password")},on:{errorHidden:function(t){return e.clearPageErrorMessage("password")}},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password_confirmation"),"input-autocomplete":"new-password","input-class":"auth-input","input-id":"password_confirmation","input-name":"password_confirmation","input-required":!0,"input-type":"password","label-text":e.__("messages.confirm-password")},on:{errorHidden:function(t){return e.clearPageErrorMessage("password_confirmation")}},model:{value:e.form.password_confirmation,callback:function(t){e.$set(e.form,"password_confirmation",t)},expression:"form.password_confirmation"}}),r("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[r("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[e._v(" "+e._s(e.__("messages.register"))+" ")]),r("inertia-link",{staticClass:"text-gray-900 hover:text-theme-primary transition-all ease-in-out duration-300",attrs:{href:e.$route("student.login")}},[e._v(" "+e._s(e.__("messages.already-registered"))+" ")])],1)],1)])])},o=[],u=a(n,i,o,!1,null,null,null,null);const d=u.exports;export{d as default}; diff --git a/public/build/assets/Register.724812d1.js b/public/build/assets/Register.724812d1.js new file mode 100644 index 00000000..adb0451c --- /dev/null +++ b/public/build/assets/Register.724812d1.js @@ -0,0 +1 @@ +import{I as a}from"./InputGroup.513e0dd4.js";import{n as s}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const n={name:"AuthRegister",components:{InputGroup:a},layout:"auth-layout",data(){return{form:{email:"",first_name:"",last_name:"",password:"",password_confirmation:""}}},methods:{submit(){this.$inertia.post(this.$route("register"),this.form)}}};var i=function(){var e=this,r=e._self._c;return r("div",{staticClass:"auth-card-container"},[r("div",{staticClass:"auth-card"},[r("h1",{staticClass:"auth-header"},[e._v(" Welcome ")]),r("form",{staticClass:"px-6",on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[r("div",{staticClass:"flex flex-col md:flex-row md:space-x-2"},[r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("first_name"),"input-autocomplete":"given-name","input-autofocus":!0,"input-class":"auth-input","input-id":"first_name","input-name":"first_name","input-required":!0,"input-type":"first_name","label-text":"First Name"},on:{errorHidden:function(t){return e.clearPageErrorMessage("first_name")}},model:{value:e.form.first_name,callback:function(t){e.$set(e.form,"first_name",t)},expression:"form.first_name"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("last_name"),"input-autocomplete":"family-name","input-class":"auth-input","input-id":"last_name","input-name":"last_name","input-required":!0,"input-type":"last_name","label-text":"Last Name"},on:{errorHidden:function(t){return e.clearPageErrorMessage("last_name")}},model:{value:e.form.last_name,callback:function(t){e.$set(e.form,"last_name",t)},expression:"form.last_name"}})],1),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("email"),"input-autocomplete":"email","input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(t){return e.clearPageErrorMessage("email")}},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password"),"input-autocomplete":"new-password","input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(t){return e.clearPageErrorMessage("password")}},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),r("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("password_confirmation"),"input-autocomplete":"new-password","input-class":"auth-input","input-id":"password_confirmation","input-name":"password_confirmation","input-required":!0,"input-type":"password","label-text":"Confirm Password"},on:{errorHidden:function(t){return e.clearPageErrorMessage("password_confirmation")}},model:{value:e.form.password_confirmation,callback:function(t){e.$set(e.form,"password_confirmation",t)},expression:"form.password_confirmation"}}),r("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[r("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[e._v(" Register ")]),r("inertia-link",{staticClass:"text-gray-900 hover:text-theme-primary transition-all ease-in-out duration-300",attrs:{href:e.$route("login")}},[e._v(" Already registered? ")])],1)],1)])])},o=[],u=s(n,i,o,!1,null,null,null,null);const d=u.exports;export{d as default}; diff --git a/public/build/assets/Reset.4c08c7e2.js b/public/build/assets/Reset.4c08c7e2.js new file mode 100644 index 00000000..a867786f --- /dev/null +++ b/public/build/assets/Reset.4c08c7e2.js @@ -0,0 +1 @@ +import{I as a}from"./InputGroup.513e0dd4.js";import{n as o}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const i={name:"AuthPasswordReset",components:{InputGroup:a},layout:"auth-layout",props:{email:{default:"",type:String},token:{default:"",type:String}},data(){return{form:{email:"",password:"",password_confirmation:"",token:""}}},mounted(){this.form.email=this.email,this.form.token=this.token},methods:{submit(){this.$inertia.post(this.$route("password.update"),this.form)}}};var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"auth-card-container"},[e("div",{staticClass:"auth-card"},[e("h1",{staticClass:"auth-header"},[t._v(" Password Reset3232 ")]),e("form",{staticClass:"px-6",on:{submit:function(r){return r.preventDefault(),t.submit.apply(null,arguments)}}},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"email","input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":"Email"},on:{errorHidden:function(r){return t.clearPageErrorMessage("email")}},model:{value:t.form.email,callback:function(r){t.$set(t.form,"email",r)},expression:"form.email"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("password"),"input-autocomplete":"new-password","input-autofocus":!0,"input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":"Password"},on:{errorHidden:function(r){return t.clearPageErrorMessage("password")}},model:{value:t.form.password,callback:function(r){t.$set(t.form,"password",r)},expression:"form.password"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("password_confirmation"),"input-autocomplete":"new-password","input-class":"auth-input","input-id":"password_confirmation","input-name":"password_confirmation","input-required":!0,"input-type":"password","label-text":"Confirm Password"},on:{errorHidden:function(r){return t.clearPageErrorMessage("password_confirmation")}},model:{value:t.form.password_confirmation,callback:function(r){t.$set(t.form,"password_confirmation",r)},expression:"form.password_confirmation"}}),t._m(0)],1)]),e("div",{staticClass:"flex justify-between mt-4"},[e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("login")}},[t._v(" Login ")]),t.$routeCheck("register")?e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("register")}},[t._v(" Register ")]):t._e()],1)])},u=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[t("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[s._v(" Send Password Reset Link ")])])}],m=o(i,n,u,!1,null,null,null,null);const d=m.exports;export{d as default}; diff --git a/public/build/assets/Reset.97ac2872.js b/public/build/assets/Reset.97ac2872.js new file mode 100644 index 00000000..8ccf0669 --- /dev/null +++ b/public/build/assets/Reset.97ac2872.js @@ -0,0 +1 @@ +import{I as r}from"./InputGroup.513e0dd4.js";import{n as a}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const o={name:"StudentAuthPasswordReset",components:{InputGroup:r},layout:"auth-layout",props:{email:{default:"",type:String},token:{default:"",type:String}},data(){return{form:{email:"",password:"",password_confirmation:"",token:""}}},mounted(){this.form.email=this.email,this.form.token=this.token},methods:{submit(){this.$inertia.post(this.$route("student.password.update"),this.form)}}};var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"auth-card-container"},[e("div",{staticClass:"auth-card"},[e("h1",{staticClass:"auth-header"},[t._v(" "+t._s(t.__("messages.password-reset"))+" ")]),e("form",{staticClass:"px-6",on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)}}},[e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("email"),"input-autocomplete":"email","input-class":"auth-input","input-id":"email","input-name":"email","input-required":!0,"input-type":"email","label-text":t.__("messages.email")},on:{errorHidden:function(s){return t.clearPageErrorMessage("email")}},model:{value:t.form.email,callback:function(s){t.$set(t.form,"email",s)},expression:"form.email"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("password"),"input-autocomplete":"new-password","input-autofocus":!0,"input-class":"auth-input","input-id":"password","input-name":"password","input-required":!0,"input-type":"password","label-text":t.__("messages.password")},on:{errorHidden:function(s){return t.clearPageErrorMessage("password")}},model:{value:t.form.password,callback:function(s){t.$set(t.form,"password",s)},expression:"form.password"}}),e("input-group",{staticClass:"mt-4",attrs:{"error-message":t.getPageErrorMessage("password_confirmation"),"input-autocomplete":"new-password","input-class":"auth-input","input-id":"password_confirmation","input-name":"password_confirmation","input-required":!0,"input-type":"password","label-text":t.__("messages.confirm-password")},on:{errorHidden:function(s){return t.clearPageErrorMessage("password_confirmation")}},model:{value:t.form.password_confirmation,callback:function(s){t.$set(t.form,"password_confirmation",s)},expression:"form.password_confirmation"}}),e("div",{staticClass:"flex flex-row items-center justify-between mt-4 py-6"},[e("button",{staticClass:"bg-theme-primary px-4 py-2 rounded shadow text-theme-primary-contrast focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:shadow-lg transition-all ease-in-out duration-300",attrs:{type:"submit"}},[t._v(" "+t._s(t.__("messages.password-reset"))+" ")])])],1)]),e("div",{staticClass:"flex justify-between mt-4"},[e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("student.login")}},[t._v(" "+t._s(t.__("messages.login"))+" ")]),t.$routeCheck("student.register")?e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{href:t.$route("student.register")}},[t._v(" "+t._s(t.__("messages.register"))+" ")]):t._e()],1)])},i=[],u=a(o,n,i,!1,null,null,null,null);const c=u.exports;export{c as default}; diff --git a/public/build/assets/SectionItemsEditor.28200d00.css b/public/build/assets/SectionItemsEditor.28200d00.css new file mode 100644 index 00000000..399d3a7d --- /dev/null +++ b/public/build/assets/SectionItemsEditor.28200d00.css @@ -0,0 +1 @@ +.ghost[data-v-d0e577a6]{opacity:.35}.flip-field-move[data-v-d0e577a6]{transition:transform .5s}.no-move[data-v-d0e577a6]{transition:transform 0s}.inner-draggable[data-v-d0e577a6]{min-height:18px} diff --git a/public/build/assets/SectionItemsEditor.845c8cbd.js b/public/build/assets/SectionItemsEditor.845c8cbd.js new file mode 100644 index 00000000..0a0f1067 --- /dev/null +++ b/public/build/assets/SectionItemsEditor.845c8cbd.js @@ -0,0 +1 @@ +import{m as r,_ as o}from"./vendor.21c2b6f5.js";import{d as u}from"./vuedraggable.umd.700457d3.js";import{C as m}from"./ConfirmationModal.242a99d0.js";import{I as c}from"./InputGroup.513e0dd4.js";import{F as h,W as f}from"./app.c52b09a2.js";import{n as a}from"./LogoLight.f7426689.js";let p=axios.CancelToken,b=p.source();const _={name:"SectionItemModal",mixins:[r],components:{InputGroup:c,FileManagerFileUploader:h},props:{isCreate:{default:!0,type:Boolean},sectionItem:{default:()=>({title:"",lecture_count:"",content_length:"",child_items:[]})},resetOnClose:{default:!1,type:Boolean},showModal:{default:!0,type:Boolean}},data(){return{currentDirectory:"/",isLoadingFileUpload:!1,defaultSectionItem:{title:"",lecture_count:"",content_length:"",child_items:[]},editableSectionItem:{title:"",lecture_count:"",content_length:"",child_items:[]}}},computed:{confirmText(){return this.isCreate?"Add":"Update"},isSectionItemValid(){try{return this.editableSectionItem.title.length}catch{return!1}},headerText(){return this.isCreate?"Add Section":"Update Section"},showFileUploader(){return this.canUploadFiles&&this.userCan("file_manager.edit")},uploaderDirectory(){let i="PDFs";return this.currentDirectory!=="/"&&(i+=this.currentDirectory),i}},methods:{onFileUploaderFilesAdded(){this.isLoadingFileUpload=!0},onFileUploaderCompleted(){this.isLoadingFileUpload=!1,this.loadFiles()},loadFiles(){if(this.isLoadingFiles)return;this.isLoadingFiles=!0,this.formData.files=[];let i={directory:this.currentDirectory};axios.get(this.$route("admin.api.file-manager.files.show",this.formData.id),{params:i,cancelToken:b.token}).then(e=>{e.data.hasOwnProperty("files")&&(this.formData.files=e.data.files)}).catch(e=>{axios.isCancel(e)||this.$errorToast("Failed to load files")}).finally(()=>{this.isLoadingFiles=!1})},cancelAction(){this.$emit("cancelAction")},closeModal(){this.$emit("closeModal")},confirmAction(i=!0){if(!this.isSectionItemValid){i&&this.$errorToast("Section data is invalid.");return}this.$emit("confirmAction",this.editableSectionItem),this.editableSectionItem=o.cloneDeep(this.defaultSectionItem)},onSectionItemChange(){this.editableSectionItem=o.cloneDeep(this.sectionItem);try{o.forEach(this.defaultSectionItem,(i,e)=>{this.editableSectionItem.hasOwnProperty(e)||this.$set(this.editableSectionItem,e,this.defaultSectionItem[e])})}catch{this.editableSectionItem=o.cloneDeep(defaultSectionItem)}},onShowModal(){try{let i=document.getElementsByTagName("body")[0];this.showModal?i.classList.add("overflow-y-hidden"):(i.classList.remove("overflow-y-hidden"),this.resetOnClose&&(this.editableSectionItem=o.cloneDeep(this.defaultSectionItem)))}catch(i){console.error(i)}}},watch:{sectionItem:{handler:"onSectionItemChange",deep:!0},showModal:{handler:"onShowModal"}}};var x=function(){var e=this,t=e._self._c;return e.showModal?t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"fixed bg-gray-800 bg-opacity-75 flex h-full inset-0 items-center justify-center w-full p-4 z-30",on:{keypress:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),s.stopPropagation(),e.confirmAction(!1))}}},[t("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeModal,expression:"closeModal"}],staticClass:"bg-theme-card max-h-full max-w-full overflow-y-auto relative rounded shadow-md text-theme-card-contrast w-160"},[t("div",{staticClass:"flex flex-row justify-end p-2"},[t("button",{staticClass:"flex items-center justify-center ml-auto p-1 rounded ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle",attrs:{type:"button"},on:{click:e.closeModal}},[t("icon-close",{staticClass:"h-5 w-5"})],1)]),t("div",{staticClass:"px-4"},[t("h2",{staticClass:"font-semibold text-center text-lg"},[e._v(" "+e._s(e.headerText)+" ")]),e.editableSectionItem?t("div",{staticClass:"mt-6"},[t("input-group",{attrs:{"input-autofocus":!0,"input-id":"section_item_title","input-name":"section_item_title","input-placeholder":"Title","label-text":"Title"},model:{value:e.editableSectionItem.title,callback:function(s){e.$set(e.editableSectionItem,"title",s)},expression:"editableSectionItem.title"}}),t("input-group",{staticClass:"mt-4",attrs:{"input-id":"section_item_lecture_count","input-name":"section_item_lecture_count","input-placeholder":"Total Number of Lectures","label-text":"Total Number of Lectures"},model:{value:e.editableSectionItem.lecture_count,callback:function(s){e.$set(e.editableSectionItem,"lecture_count",s)},expression:"editableSectionItem.lecture_count"}}),t("input-group",{staticClass:"mt-4",attrs:{"input-id":"section_item_content_length","input-name":"section_item_content_length","input-placeholder":"Total Length in minutes","label-text":"Total Length in minutes"},model:{value:e.editableSectionItem.content_length,callback:function(s){e.$set(e.editableSectionItem,"content_length",s)},expression:"editableSectionItem.content_length"}})],1):e._e(),t("div",{staticClass:"bg-white p-6 shadow-subtle rounded-lg mt-4"},[t("h2",[e._v("Files details")]),e.editableSectionItem.id?t("div",{staticClass:"mt-4 px-4 space-y-2"},[t("label",{attrs:{for:"file-uploader"}},[e._v("Upload resources (PDFs, etc...)")]),t("file-manager-file-uploader",{staticClass:"mb-4",attrs:{id:"file-uploader",directory:e.uploaderDirectory,url:e.$route("admin.api.file-manager.files.store",{section:e.editableSectionItem.id})},on:{filesAdded:e.onFileUploaderFilesAdded,queueCompleted:e.onFileUploaderCompleted}})],1):e._e(),e.editableSectionItem.files?t("div",{staticClass:"mb-4 px-4 space-y-2 mt-4"},[t("label",[e._v("Files")]),t("ul",{staticClass:"list-group"},e._l(e.editableSectionItem.files,function(s){return t("li",{key:"file-"+s.id,staticClass:"flex flex-row items-start justify-between py-2 space-x-4 ease-in-out duration-300 transition-all hover:bg-gray-100"},[t("div",{staticClass:"flex flex-row items-start"},[e._v(" "+e._s(s.file_name)+" ")]),t("div",{staticClass:"flex flex-row items-center space-x-2"},[s.url?t("a",{staticClass:"flex flex-row items-center justify-center rounded text-theme-base-subtle-contrast ease-in-out duration-300 transition-colors focus:text-theme-primary focus:outline-none hover:text-theme-primary",attrs:{href:s.url,rel:"noreferrer noopener nofollow",target:"_blank"},on:{click:function(n){n.stopPropagation()}}},[t("icon-external-link",{staticClass:"w-5"})],1):e._e()])])}),0)]):e._e()])]),t("div",{staticClass:"flex flex-col items-center justify-end mb-4 mt-8 px-4 space-y-2 sm:flex-row sm:space-x-3 sm:space-y-0"},[t("button",{staticClass:"bg-theme-base-subtle min-w-24 px-4 py-2 rounded text-center text-theme-base-subtle-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle-contrast hover:text-theme-base-subtle",attrs:{type:"button"},on:{click:e.cancelAction}},[e._v(" Cancel ")]),t("button",{staticClass:"bg-theme-primary border border-theme-primary flex flex-row items-center justify-center px-4 py-2 min-w-24 px-4 py-2 rounded text-center text-theme-primary-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:border-theme-primary-hover hover:text-theme-primary-hover-contrast",attrs:{disabled:!e.isSectionItemValid,type:"button"},on:{click:e.confirmAction}},[e._v(" "+e._s(e.confirmText)+" ")])])])])]):e._e()},g=[],y=a(_,x,g,!1,null,null,null,null);const d=y.exports,w={name:"LectureItemModal",mixins:[r],components:{WysiwygField:f,InputGroup:c},props:{lectureItem:{default:()=>({id:"",title:"",description:"",can_be_previewed:!1,preview_url:"",video_url:"",content_length:"",item_type:"lecture",child_items:[],templateField:{type:"wysiwyg"},section_id:null})},resetOnClose:{default:!1,type:Boolean},showModal:{default:!0,type:Boolean}},data(){return{currentDirectory:"/",isLoadingFileUpload:!1,defaultLectureItem:{id:"",title:"",description:"",can_be_previewed:!1,preview_url:"",video_url:"",content_length:"",item_type:"lecture",child_items:[],section_id:null},editableLectureItem:{id:"",title:"",description:"",can_be_previewed:!1,preview_url:"",video_url:"",content_length:"",item_type:"lecture",child_items:[],section_id:null}}},computed:{confirmText(){return"Add"},isLectureItemValid(){try{return this.editableLectureItem.title.length}catch{return!1}},headerText(){return"Add Lecture"}},methods:{cancelAction(){this.$emit("cancelAction")},closeModal(){this.$emit("closeModal")},confirmAction(i=!0){if(!this.isLectureItemValid){i&&this.$errorToast("Lecture data is invalid.");return}this.$emit("confirmAction",this.editableLectureItem),this.editableLectureItem=o.cloneDeep(this.defaultLectureItem)},onLectureItemChange(){this.editableLectureItem=o.cloneDeep(this.lectureItem);try{o.forEach(this.defaultLectureItem,(i,e)=>{this.editableLectureItem.hasOwnProperty(e)||this.$set(this.editableLectureItem,e,this.defaultLectureItem[e])})}catch{this.editableLectureItem=o.cloneDeep(this.defaultLectureItem)}},onShowModal(){try{let i=document.getElementsByTagName("body")[0];this.showModal?i.classList.add("overflow-y-hidden"):(i.classList.remove("overflow-y-hidden"),this.resetOnClose&&(this.editableLectureItem=o.cloneDeep(this.defaultLectureItem)))}catch(i){console.error(i)}}},watch:{lectureItem:{handler:"onLectureItemChange",deep:!0},showModal:{handler:"onShowModal"}}};var I=function(){var e=this,t=e._self._c;return e.showModal?t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"fixed bg-gray-800 bg-opacity-75 flex h-full inset-0 items-center justify-center w-full p-4 z-30",on:{keypress:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),s.stopPropagation(),e.confirmAction(!1))}}},[t("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeModal,expression:"closeModal"}],staticClass:"bg-theme-card max-h-full max-w-full overflow-y-auto relative rounded shadow-md text-theme-card-contrast w-160"},[t("div",{staticClass:"flex flex-row justify-end p-2"},[t("button",{staticClass:"flex items-center justify-center ml-auto p-1 rounded ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle",attrs:{type:"button"},on:{click:e.closeModal}},[t("icon-close",{staticClass:"h-5 w-5"})],1)]),t("div",{staticClass:"px-4"},[t("h2",{staticClass:"font-semibold text-center text-lg"},[e._v(" "+e._s(e.headerText)+" ")]),e.editableLectureItem?t("div",{staticClass:"mt-6"},[t("input-group",{staticClass:"mb-4",attrs:{"input-autofocus":!0,"input-id":"lecture_item_title","input-name":"lecture_item_title","input-placeholder":"Title","label-text":"Title"},model:{value:e.editableLectureItem.title,callback:function(s){e.$set(e.editableLectureItem,"title",s)},expression:"editableLectureItem.title"}}),t("wysiwyg-field",{staticClass:"mb-4",attrs:{"input-autofocus":!0},model:{value:e.editableLectureItem.description,callback:function(s){e.$set(e.editableLectureItem,"description",s)},expression:"editableLectureItem.description"}})],1):e._e()]),t("div",{staticClass:"flex flex-col items-center justify-end mb-4 mt-8 px-4 space-y-2 sm:flex-row sm:space-x-3 sm:space-y-0"},[t("button",{staticClass:"bg-theme-base-subtle min-w-24 px-4 py-2 rounded text-center text-theme-base-subtle-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle-contrast hover:text-theme-base-subtle",attrs:{type:"button"},on:{click:e.cancelAction}},[e._v(" Cancel ")]),t("button",{staticClass:"bg-theme-primary border border-theme-primary flex flex-row items-center justify-center px-4 py-2 min-w-24 px-4 py-2 rounded text-center text-theme-primary-contrast w-full ease-in-out duration-300 transition-colors sm:w-auto focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary-hover hover:border-theme-primary-hover hover:text-theme-primary-hover-contrast",attrs:{disabled:!e.isLectureItemValid,type:"button"},on:{click:e.confirmAction}},[e._v(" "+e._s(e.confirmText)+" ")])])])])]):e._e()},v=[],C=a(w,I,v,!1,null,null,null,null);const S=C.exports;const D={name:"SectionItemDraggable",components:{ConfirmationModal:m,draggable:u,SectionItemModal:d,LectureItemModal:S},props:{sectionItems:{required:!0,type:Array}},data(){return{isDragging:!1,isEditingSectionItem:!1,sectionItemIndexToDelete:null,sectionItemIndexToEdit:null,showDeleteModal:!1,showEditModal:!1,showLectureModal:!1}},computed:{deleteModalText(){try{return"Do you really want to delete '"+this.sectionItemToDelete.title+"'? This action cannot be reversed!"}catch{return"Do you really want to delete this section item? This action cannot be reversed!"}},sectionItemToDelete(){try{return this.sectionItems[this.sectionItemIndexToDelete]}catch{return!1}},sectionItemToEdit(){try{return this.isEditingSectionItem?this.sectionItems[this.sectionItemIndexToEdit]:{}}catch{return{}}}},methods:{addItem(i){this.isEditingSectionItem=!1,this.showEditModal=!1,this.showLectureModal=!0,this.sectionItemIndexToEdit=i},cancelDelete(){this.showDeleteModal=!1,this.sectionItemIndexToDelete=null},cancelEdit(){this.showEditModal=!1,this.sectionItemIndexToEdit=!1},cancelLectureEdit(){this.showLectureModal=!1,this.sectionItemIndexToEdit=!1},checkDelete(i){this.sectionItemIndexToDelete=i,this.showDeleteModal=!0},confirmEdit(i){this.isEditingSectionItem?this.$set(this.sectionItems,this.sectionItemIndexToEdit,o.cloneDeep(i)):this.sectionItems[this.sectionItemIndexToEdit].child_items.push(o.cloneDeep(i)),this.showEditModal=!1,this.isEditingSectionItem=!1,this.sectionItemIndexToEdit=!1},confirmEditLecture(i){this.isEditingSectionItem?this.$set(this.sectionItems,this.sectionItemIndexToEdit,o.cloneDeep(i)):this.sectionItems[this.sectionItemIndexToEdit].child_items.push(o.cloneDeep(i)),this.showLectureModal=!1,this.isEditingSectionItem=!1,this.sectionItemIndexToEdit=!1},confirmDelete(){try{let i=this.sectionItems[this.sectionItemIndexToDelete];this.$delete(this.sectionItems,this.sectionItemIndexToDelete),i.hasOwnProperty("course_id")&&i.id&&this.$inertia.delete(this.$route("admin.edu.sections.destroy",i.id)),i.hasOwnProperty("section_id")&&i.id&&this.$inertia.delete(this.$route("admin.edu.lectures.destroy",i.id))}catch(i){this.$errorToast("Failed to delete section item."),console.log(i)}finally{this.showDeleteModal=!1,this.sectionItemIndexToDelete=null}},editItem(i,e){this.sectionItemIndexToEdit=i,this.isEditingSectionItem=!0,e.hasOwnProperty("section_id")?this.showLectureModal=!0:this.showEditModal=!0},onDraggableEnd(){this.isDragging=!1},onDraggableSort(){this.$page.props.errors={}},onDraggableStart(){this.isDragging=!0}}};var L=function(){var e=this,t=e._self._c;return t("div",[t("draggable",{attrs:{animation:"200","ghost-class":"ghost",group:{name:"section-item-draggable"},handle:".draggable-handle",list:e.sectionItems},on:{end:e.onDraggableEnd,sort:e.onDraggableSort,start:e.onDraggableStart}},e._l(e.sectionItems,function(s,n){return t("div",{key:`section-item-${s.title}-${n}`},[t("div",{staticClass:"border-2 border-theme-base-subtle flex flex-row items-center px-4 py-1 rounded"},[t("div",{staticClass:"draggable-handle cursor-move"},[t("icon-grid-dots",{staticClass:"w-5"})],1),t("span",{staticClass:"font-semibold ml-4 mr-auto"},[e._v(" "+e._s(s.title)+" ")]),t("small",{staticClass:"mr-2 ml-auto"},[s.lecture_count?t("span",[e._v(" "+e._s(s.child_items?s.child_items.length+" lectures | ":"")+" ")]):e._e(),e._v(" "+e._s(s.content_length?s.content_length+" mins":"")+" ")]),s.hasOwnProperty("lecture_count")&&!s.hasOwnProperty("section_id")?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-primary-subtle hover:text-theme-primary-subtle-contrast",attrs:{title:"Add",type:"button"},on:{click:function(l){return e.addItem(n)}}},[t("icon-plus",{staticClass:"w-4"})],1):e._e(),s.hasOwnProperty("section_id")?e._e():t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{title:"Edit",type:"button"},on:{click:function(l){return e.editItem(n,s)}}},[t("icon-edit",{staticClass:"w-4"})],1),s.hasOwnProperty("section_id")&&s.id?t("a",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{href:e.$route("admin.edu.lectures.edit",s.id),target:"_blank"}},[t("icon-edit",{staticClass:"w-4"})],1):e._e(),s.hasOwnProperty("section_id")&&!s.id?t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-info hover:text-theme-info-contrast",attrs:{title:"Save Course before you can edit",type:"button",disabled:""}},[t("icon-edit",{staticClass:"w-4"}),e._v(" DRAFT ")],1):e._e(),t("button",{staticClass:"flex flex-row items-center inline-flex mx-1 px-2 py-1 rounded text-theme-base-subtle-contrast text-sm tracking-wide focus:outline-none focus:ring hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{title:"Delete",type:"button"},on:{click:function(l){return e.checkDelete(n)}}},[t("icon-trash",{staticClass:"w-4"})],1)]),t("div",[t("section-item-draggable",{staticClass:"inner-draggable pl-4",class:{"mt-4":s.child_items.length},attrs:{"section-items":s.child_items}})],1)])}),0),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":e.deleteModalText},on:{cancelAction:e.cancelDelete,closeModal:e.cancelDelete,confirmAction:e.confirmDelete}}),t("section-item-modal",{attrs:{"is-create":!e.isEditingSectionItem,"section-item":e.sectionItemToEdit,"show-modal":e.showEditModal},on:{cancelAction:e.cancelEdit,closeModal:e.cancelEdit,confirmAction:e.confirmEdit}}),t("lecture-item-modal",{attrs:{"lecture-item":e.sectionItemToEdit,"show-modal":e.showLectureModal},on:{cancelAction:e.cancelLectureEdit,closeModal:e.cancelLectureEdit,confirmAction:e.confirmEditLecture}})],1)},M=[],T=a(D,L,M,!1,null,"d0e577a6",null,null);const E=T.exports,k={name:"SectionItemsEditor",components:{SectionItemDraggable:E,SectionItemModal:d},model:{prop:"sectionItems"},props:{sectionItems:{required:!0,type:Array}},data(){return{isDragging:!1,newSectionItem:{},newLectureItem:{},showCreateModal:!1}},methods:{addSectionItem(){this.showCreateModal=!0},cancelCreate(){this.showCreateModal=!1},confirmCreate(i){this.showCreateModal=!1,this.sectionItems.push(o.cloneDeep(i)),this.newSectionItem={},this.newLectureItem={}}}};var $=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-row items-center"},[t("span",{staticClass:"text-lg"},[e._v("Sections")]),t("button",{staticClass:"button button-primary-subtle button-small ml-auto text-sm",attrs:{type:"button"},on:{click:e.addSectionItem}},[e._v(" Add Section ")])]),e.sectionItems.length?t("div",[t("section-item-draggable",{staticClass:"mt-6",attrs:{"section-items":e.sectionItems}})],1):t("p",{staticClass:"bg-theme-base-subtle mt-6 px-4 py-3 rounded text-center text-theme-base-subtle-contrast"},[e._v(" Nothing found ")]),t("section-item-modal",{attrs:{"section-item":e.newSectionItem,"show-modal":e.showCreateModal},on:{cancelAction:e.cancelCreate,closeModal:e.cancelCreate,confirmAction:e.confirmCreate}})],1)},A=[],F=a(k,$,A,!1,null,null,null,null);const V=F.exports;export{V as S}; diff --git a/public/build/assets/SelectMultipleGroup.445aa1ac.js b/public/build/assets/SelectMultipleGroup.445aa1ac.js new file mode 100644 index 00000000..ea4b46a6 --- /dev/null +++ b/public/build/assets/SelectMultipleGroup.445aa1ac.js @@ -0,0 +1 @@ +import{_ as r}from"./vendor.21c2b6f5.js";import{b as l,F as a}from"./InputGroup.513e0dd4.js";import{n as u}from"./LogoLight.f7426689.js";const p={name:"SelectMultipleGroup",mixins:[l],components:{FormFieldError:a},props:{inputAnyOptionEnabled:{default:!1,type:Boolean},inputAnyOptionLabel:{default:"Any",type:String},inputAnyOptionClass:{default:"",type:String},inputAnyOptionValue:{default:""},inputClass:{default:"border border-theme-base-subtle cursor-pointer font-medium form-select px-3 py-2 rounded w-full focus:border-theme-primary focus:outline-none focus:ring-0 focus:shadow-none",type:String},inputOptionExact:{default:!1,type:Boolean},inputOptionForceFormatting:{default:!1,type:Boolean},inputOptionLabelKey:{default:!1,type:Boolean|String|Number},inputOptionValueKey:{default:!1,type:Boolean|String|Number},inputOptions:{required:!0,type:Array|Object}},computed:{formattedOptions(){let t={};return Array.isArray(this.inputOptions)&&!this.inputOptionForceFormatting?r.forEach(this.inputOptions,e=>{t[e]={label:e,value:e}}):r.forEach(this.inputOptions,(e,n)=>{let i=e,s=n;this.inputOptionLabelKey!==!1&&e.hasOwnProperty(this.inputOptionLabelKey)&&(i=e[this.inputOptionLabelKey]),this.inputOptionValueKey!==!1&&e.hasOwnProperty(this.inputOptionValueKey)&&(s=e[this.inputOptionValueKey]),t[n]={label:i,value:s}}),t},formattedInputClass(){let t=this.inputClass;return this.isError&&(t+=" error"),this.isAnyOptionSelected&&(t+=" "+this.inputAnyOptionClass),t},isAnyOptionSelected(){return this.inputValue===this.inputAnyOptionValue||this.inputValue===null}},mounted(){this.autofocus()},methods:{isOptionDisabled(t){return this.inputRequired?t==="":!1},isOptionSelected(t){return this.inputOptionExact?t===this.inputValue:t==this.inputValue}}};var o=function(){var e=this,n=e._self._c;return n("div",{staticClass:"relative flex w-full"},[n("label",{class:e.formattedLabelClass,attrs:{for:e.inputId}},[e._t("default",function(){return[n("span",{staticClass:"flex flex-row items-baseline"},[n("span",[e._v(e._s(e.labelText))]),e.inputRequired?n("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])]})],2),n("select",{ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,name:e.inputName,required:e.inputRequired,multiple:""},on:{change:e.onInput,keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)}}},[e.inputAnyOptionEnabled?n("option",{attrs:{disabled:e.isOptionDisabled(e.inputAnyOptionValue)},domProps:{selected:e.isOptionSelected(e.inputAnyOptionValue),value:e.inputAnyOptionValue}},[e._v(" "+e._s(e.inputAnyOptionLabel)+" ")]):e._e(),e._l(e.formattedOptions,function(i,s){return n("option",{key:`${e.inputId}-option-${i.value}`,attrs:{disabled:e.isOptionDisabled(i.value)},domProps:{selected:e.isOptionSelected(i.value),value:i.value}},[e._v(" "+e._s(i.label)+" ")])})],2),n("form-field-error",{attrs:{"error-class":e.errorClass,"error-message":e.errorMessage,"is-error":e.isError}})],1)},d=[],f=u(p,o,d,!1,null,null,null,null);const O=f.exports;export{O as S}; diff --git a/public/build/assets/Show.0629b321.js b/public/build/assets/Show.0629b321.js new file mode 100644 index 00000000..bb4dddf9 --- /dev/null +++ b/public/build/assets/Show.0629b321.js @@ -0,0 +1 @@ +import{n as a}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const r={name:"PageShow",props:{page:{required:!0,type:Object}},computed:{content(){try{return this.page.data.content}catch{return null}},layout(){try{return this.page.data.layout}catch{return null}},layoutComponent(){},layoutSlug(){try{return this.layout.slug}catch{return null}},template(){try{return this.page.data.template}catch{return null}},templateComponent(){},templateSlug(){try{return this.template.slug}catch{return null}}},methods:{getContentFieldData(e,t=null){try{return this.content[e].data?this.content[e].data:t}catch{return t}}}};var o=function(){var t=this,n=t._self._c;return t.layoutComponent?n(t.layoutComponent,{tag:"component",attrs:{layout:t.layout}},[t.templateComponent?n(t.templateComponent,{tag:"component",attrs:{page:t.page}}):t._e()],1):t._e()},l=[],u=a(r,o,l,!1,null,null,null,null);const m=u.exports;export{m as default}; diff --git a/public/build/assets/Show.90bc0a44.js b/public/build/assets/Show.90bc0a44.js new file mode 100644 index 00000000..ab5286cb --- /dev/null +++ b/public/build/assets/Show.90bc0a44.js @@ -0,0 +1 @@ +import{F as r,A as o,T as t,C as a,P as u,a as c,V as n,b as i,c as l,d as p}from"./CourseFooter.585c86a3.js";import{n as m}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const _={name:"EduCourseShow",components:{Faq:r,AboutAuthor:o,Testimonials:t,CourseContent:a,Purchase:u,CourseDescription:c,VideoPreview:n,CourseFeatures:i,CourseHeader:l,CourseFooter:p},layout:"website-layout",props:{course:{type:Object,required:!0}}};var d=function(){var s=this,e=s._self._c;return e("section",{staticClass:"bg-white"},[e("course-header",{attrs:{course:s.course}}),e("course-features",{attrs:{course:s.course}}),e("video-preview",{attrs:{course:s.course}}),e("course-description",{attrs:{course:s.course}}),e("purchase",{attrs:{course:s.course}}),e("course-content",{attrs:{course:s.course}}),e("testimonials"),e("course-footer")],1)},f=[],C=m(_,d,f,!1,null,null,null,null);const F=C.exports;export{F as default}; diff --git a/public/build/assets/Show.ab6aa26a.js b/public/build/assets/Show.ab6aa26a.js new file mode 100644 index 00000000..2cf7d26e --- /dev/null +++ b/public/build/assets/Show.ab6aa26a.js @@ -0,0 +1,86 @@ +import{C as R,_ as M}from"./vendor.21c2b6f5.js";import{n as W,aE as N,aF as $,aG as F,aH as B,aI as z,aD as q,aJ as j}from"./LogoLight.f7426689.js";import{C as H}from"./ConfirmationModal.242a99d0.js";import{Z as V}from"./app.c52b09a2.js";import"./InputGroup.513e0dd4.js";const G={name:"SideMenuItem",components:{IconSquareCheck:N,IconSquareCheckFilled:$,"collapse-transition":R,IconChevronRight:F},props:{menuItem:{type:Object,required:!0},menuItemKey:{type:String,required:!0},selectedLecture:{type:Object,required:!1},menuItemLevel:{type:Number,default:1},toggledItems:{type:Object,default:()=>({})}},computed:{isActive(){if(!this.selectedLecture)return!1;let n=!1;return this.selectedLecture.index==this.menuItemKey&&(n=!0),n},isToggled(){return!!this.toggledItems[this.menuItemKey]},preserveState(){let n=!1;try{return this.menuItem.hasOwnProperty("preserveState")?!!this.menuItem.preserveState:n}catch{return n}}},mounted(){this.isActive&&this.openItem(this.menuItemKey)},methods:{onChildToggled(n){this.toggleItem(n)},openItem(n){this.$emit("openItem",n)},toggleItem(n){this.$emit("toggleItem",n)}}};var U=function(){var e=this,t=e._self._c;return t("li",{staticClass:"menu-item hover:bg-blue-50 hover:underline",class:`menu-item-level-${e.menuItemLevel}`},[t("button",{staticClass:"menu-link-parent font-weight-lighter text-sm",class:{"menu-link-active":e.isActive,toggled:e.isToggled},on:{click:function(i){return e.toggleItem(e.menuItemKey)}}},[e.menuItem.completed?t("icon-square-check-filled",{staticClass:"w-5 md:mr-2 text-green-600"}):t("icon-square-check",{staticClass:"w-5 md:mr-2 text-green-600"}),e.menuItem.video_url?t("span",[t("icon-alert-video",{tag:"component",staticClass:"h-5 w-5"})],1):t("span",{staticClass:"h-5 w-5"}),t("span",{staticClass:"ml-2"},[e._v(" "+e._s(e.menuItem.title)+" "),t("small",{staticClass:"font-weight-light"},[e._v(" "+e._s(e.menuItem.content_length)+" "+e._s(e.__("messages.minutes"))+" ")])]),t("icon-chevron-right",{staticClass:"indicator h-5 w-5"})],1)])},X=[],K=W(G,U,X,!1,null,null,null,null);const Y=K.exports;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function g(n,e,t,i){return new(t||(t=Promise))(function(s,r){function o(c){try{h(i.next(c))}catch(a){r(a)}}function l(c){try{h(i.throw(c))}catch(a){r(a)}}function h(c){var a;c.done?s(c.value):(a=c.value,a instanceof t?a:new t(function(m){m(a)})).then(o,l)}h((i=i.apply(n,e||[])).next())})}class P{constructor(){this.listeners={}}on(e,t,i){if(this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(t),i==null?void 0:i.once){const s=()=>{this.un(e,s),this.un(e,t)};return this.on(e,s),s}return()=>this.un(e,t)}un(e,t){var i;(i=this.listeners[e])===null||i===void 0||i.delete(t)}once(e,t){return this.on(e,t,{once:!0})}unAll(){this.listeners={}}emit(e,...t){this.listeners[e]&&this.listeners[e].forEach(i=>i(...t))}}const A={decode:function(n,e){return g(this,void 0,void 0,function*(){const t=new AudioContext({sampleRate:e});return t.decodeAudioData(n).finally(()=>t.close())})},createBuffer:function(n,e){return typeof n[0]=="number"&&(n=[n]),function(t){const i=t[0];if(i.some(s=>s>1||s<-1)){const s=i.length;let r=0;for(let o=0;or&&(r=l)}for(const o of t)for(let l=0;ln==null?void 0:n[t],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function O(n,e){const t=e.xmlns?document.createElementNS(e.xmlns,n):document.createElement(n);for(const[i,s]of Object.entries(e))if(i==="children")for(const[r,o]of Object.entries(e))typeof o=="string"?t.appendChild(document.createTextNode(o)):t.appendChild(O(r,o));else i==="style"?Object.assign(t.style,s):i==="textContent"?t.textContent=s:t.setAttribute(i,s.toString());return t}function I(n,e,t){const i=O(n,e||{});return t==null||t.appendChild(i),i}var Z=Object.freeze({__proto__:null,createElement:I,default:I});const J={fetchBlob:function(n,e,t){return g(this,void 0,void 0,function*(){const i=yield fetch(n,t);if(i.status>=400)throw new Error(`Failed to fetch ${n}: ${i.status} (${i.statusText})`);return function(s,r){g(this,void 0,void 0,function*(){if(!s.body||!s.headers)return;const o=s.body.getReader(),l=Number(s.headers.get("Content-Length"))||0;let h=0;const c=m=>g(this,void 0,void 0,function*(){h+=(m==null?void 0:m.length)||0;const u=Math.round(h/l*100);r(u)}),a=()=>g(this,void 0,void 0,function*(){let m;try{m=yield o.read()}catch{return}m.done||(c(m.value),yield a())});a()})}(i.clone(),e),i.blob()})}};class Q extends P{constructor(e){super(),this.isExternalMedia=!1,e.media?(this.media=e.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),e.mediaControls&&(this.media.controls=!0),e.autoplay&&(this.media.autoplay=!0),e.playbackRate!=null&&this.onceMediaEvent("canplay",()=>{e.playbackRate!=null&&(this.media.playbackRate=e.playbackRate)})}onMediaEvent(e,t,i){return this.media.addEventListener(e,t,i),()=>this.media.removeEventListener(e,t)}onceMediaEvent(e,t){return this.onMediaEvent(e,t,{once:!0})}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const e=this.getSrc();e.startsWith("blob:")&&URL.revokeObjectURL(e)}canPlayType(e){return this.media.canPlayType(e)!==""}setSrc(e,t){if(this.getSrc()===e)return;this.revokeSrc();const i=t instanceof Blob&&this.canPlayType(t.type)?URL.createObjectURL(t):e;this.media.src=i}destroy(){this.media.pause(),this.isExternalMedia||(this.media.remove(),this.revokeSrc(),this.media.src="",this.media.load())}setMediaElement(e){this.media=e}play(){return this.media.play()}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(e){this.media.currentTime=e}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(e){this.media.volume=e}getMuted(){return this.media.muted}setMuted(e){this.media.muted=e}getPlaybackRate(){return this.media.playbackRate}setPlaybackRate(e,t){t!=null&&(this.media.preservesPitch=t),this.media.playbackRate=e}getMediaElement(){return this.media}setSinkId(e){return this.media.setSinkId(e)}}class L extends P{constructor(e,t){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.options=e;const i=this.parentFromOptionsContainer(e.container);this.parent=i;const[s,r]=this.initHtml();i.appendChild(s),this.container=s,this.scrollContainer=r.querySelector(".scroll"),this.wrapper=r.querySelector(".wrapper"),this.canvasWrapper=r.querySelector(".canvases"),this.progressWrapper=r.querySelector(".progress"),this.cursor=r.querySelector(".cursor"),t&&r.appendChild(t),this.initEvents()}parentFromOptionsContainer(e){let t;if(typeof e=="string"?t=document.querySelector(e):e instanceof HTMLElement&&(t=e),!t)throw new Error("Container not found");return t}initEvents(){const e=i=>{const s=this.wrapper.getBoundingClientRect(),r=i.clientX-s.left,o=i.clientX-s.left;return[r/s.width,o/s.height]};this.wrapper.addEventListener("click",i=>{const[s,r]=e(i);this.emit("click",s,r)}),this.wrapper.addEventListener("dblclick",i=>{const[s,r]=e(i);this.emit("dblclick",s,r)}),this.options.dragToSeek&&this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:i,scrollWidth:s,clientWidth:r}=this.scrollContainer,o=i/s,l=(i+r)/s;this.emit("scroll",o,l)});const t=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{t().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}onContainerResize(){const e=this.parent.clientWidth;e===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=e,this.reRender())}initDrag(){(function(e,t,i,s,r=3,o=0){if(!e)return()=>{};let l=()=>{};const h=c=>{if(c.button!==o)return;c.preventDefault(),c.stopPropagation();let a=c.clientX,m=c.clientY,u=!1;const f=d=>{d.preventDefault(),d.stopPropagation();const w=d.clientX,y=d.clientY,_=w-a,x=y-m;if(u||Math.abs(_)>r||Math.abs(x)>r){const D=e.getBoundingClientRect(),{left:k,top:S}=D;u||(i==null||i(a-k,m-S),u=!0),t(_,x,w-k,y-S),a=w,m=y}},p=()=>{u&&(s==null||s()),l()},b=d=>{d.relatedTarget&&d.relatedTarget!==document.documentElement||p()},C=d=>{u&&(d.stopPropagation(),d.preventDefault())},v=d=>{u&&d.preventDefault()};document.addEventListener("pointermove",f),document.addEventListener("pointerup",p),document.addEventListener("pointerout",b),document.addEventListener("pointercancel",b),document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("click",C,{capture:!0}),l=()=>{document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p),document.removeEventListener("pointerout",b),document.removeEventListener("pointercancel",b),document.removeEventListener("touchmove",v),setTimeout(()=>{document.removeEventListener("click",C,{capture:!0})},10)}};e.addEventListener("pointerdown",h)})(this.wrapper,(e,t,i)=>{this.emit("drag",Math.max(0,Math.min(1,i/this.wrapper.getBoundingClientRect().width)))},()=>this.isDragging=!0,()=>this.isDragging=!1)}getHeight(e){return e==null?128:isNaN(Number(e))?e==="auto"&&this.parent.clientHeight||128:Number(e)}initHtml(){const e=document.createElement("div"),t=e.attachShadow({mode:"open"});return t.innerHTML=` + + +
+
+
+
+
+
+
+ `,[e,t]}setOptions(e){if(this.options.container!==e.container){const t=this.parentFromOptionsContainer(e.container);t.appendChild(this.container),this.parent=t}e.dragToSeek&&!this.options.dragToSeek&&this.initDrag(),this.options=e,this.reRender()}getWrapper(){return this.wrapper}getScroll(){return this.scrollContainer.scrollLeft}destroy(){var e;this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect()}createDelay(e=10){let t,i;const s=()=>{t&&clearTimeout(t),i&&i()};return this.timeouts.push(s),()=>new Promise((r,o)=>{s(),i=o,t=setTimeout(()=>{t=void 0,i=void 0,r()},e)})}convertColorValues(e){if(!Array.isArray(e))return e||"";if(e.length<2)return e[0]||"";const t=document.createElement("canvas"),i=t.getContext("2d"),s=t.height*(window.devicePixelRatio||1),r=i.createLinearGradient(0,0,0,s),o=1/(e.length-1);return e.forEach((l,h)=>{const c=h*o;r.addColorStop(c,l)}),r}renderBarWaveform(e,t,i,s){const r=e[0],o=e[1]||e[0],l=r.length,{width:h,height:c}=i.canvas,a=c/2,m=window.devicePixelRatio||1,u=t.barWidth?t.barWidth*m:1,f=t.barGap?t.barGap*m:t.barWidth?u/2:0,p=t.barRadius||0,b=h/(u+f)/l,C=p&&"roundRect"in i?"roundRect":"rect";i.beginPath();let v=0,d=0,w=0;for(let y=0;y<=l;y++){const _=Math.round(y*b);if(_>v){const k=Math.round(d*a*s),S=k+Math.round(w*a*s)||1;let E=a-k;t.barAlign==="top"?E=0:t.barAlign==="bottom"&&(E=c-S),i[C](v*(u+f),E,u,S,p),v=_,d=0,w=0}const x=Math.abs(r[y]||0),D=Math.abs(o[y]||0);x>d&&(d=x),D>w&&(w=D)}i.fill(),i.closePath()}renderLineWaveform(e,t,i,s){const r=o=>{const l=e[o]||e[0],h=l.length,{height:c}=i.canvas,a=c/2,m=i.canvas.width/h;i.moveTo(0,a);let u=0,f=0;for(let p=0;p<=h;p++){const b=Math.round(p*m);if(b>u){const v=a+(Math.round(f*a*s)||1)*(o===0?-1:1);i.lineTo(u,v),u=b,f=0}const C=Math.abs(l[p]||0);C>f&&(f=C)}i.lineTo(u,a)};i.beginPath(),r(0),r(1),i.fill(),i.closePath()}renderWaveform(e,t,i){if(i.fillStyle=this.convertColorValues(t.waveColor),t.renderFunction)return void t.renderFunction(e,i);let s=t.barHeight||1;if(t.normalize){const r=Array.from(e[0]).reduce((o,l)=>Math.max(o,Math.abs(l)),0);s=r?1/r:1}t.barWidth||t.barGap||t.barAlign?this.renderBarWaveform(e,t,i,s):this.renderLineWaveform(e,t,i,s)}renderSingleCanvas(e,t,i,s,r,o,l,h){const c=window.devicePixelRatio||1,a=document.createElement("canvas"),m=e[0].length;a.width=Math.round(i*(o-r)/m),a.height=s*c,a.style.width=`${Math.floor(a.width/c)}px`,a.style.height=`${s}px`,a.style.left=`${Math.floor(r*i/c/m)}px`,l.appendChild(a);const u=a.getContext("2d");if(this.renderWaveform(e.map(f=>f.slice(r,o)),t,u),a.width>0&&a.height>0){const f=a.cloneNode(),p=f.getContext("2d");p.drawImage(a,0,0),p.globalCompositeOperation="source-in",p.fillStyle=this.convertColorValues(t.progressColor),p.fillRect(0,0,a.width,a.height),h.appendChild(f)}}renderChannel(e,t,i){return g(this,void 0,void 0,function*(){const s=document.createElement("div"),r=this.getHeight(t.height);s.style.height=`${r}px`,this.canvasWrapper.style.minHeight=`${r}px`,this.canvasWrapper.appendChild(s);const o=s.cloneNode();this.progressWrapper.appendChild(o);const l=e[0].length,h=(v,d)=>{this.renderSingleCanvas(e,t,i,r,Math.max(0,v),Math.min(d,l),s,o)};if(!this.isScrollable)return void h(0,l);const{scrollLeft:c,scrollWidth:a,clientWidth:m}=this.scrollContainer,u=l/a;let f=Math.min(L.MAX_CANVAS_WIDTH,m);if(t.barWidth||t.barGap){const v=t.barWidth||.5,d=v+(t.barGap||v/2);f%d!=0&&(f=Math.floor(f/d)*d)}const p=Math.floor(Math.abs(c)*u),b=Math.floor(p+f*u),C=b-p;h(p,b),yield Promise.all([(()=>g(this,void 0,void 0,function*(){if(p===0)return;const v=this.createDelay();for(let d=p;d>=0;d-=C)yield v(),h(Math.max(0,d-C),d)}))(),(()=>g(this,void 0,void 0,function*(){if(b===l)return;const v=this.createDelay();for(let d=b;dl()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const t=window.devicePixelRatio||1,i=this.scrollContainer.clientWidth,s=Math.ceil(e.duration*(this.options.minPxPerSec||0));this.isScrollable=s>i;const r=this.options.fillParent&&!this.isScrollable,o=(r?i:s)*t;this.wrapper.style.width=r?"100%":`${s}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=e,this.emit("render");try{if(this.options.splitChannels)yield Promise.all(Array.from({length:e.numberOfChannels}).map((l,h)=>{var c;const a=Object.assign(Object.assign({},this.options),(c=this.options.splitChannels)===null||c===void 0?void 0:c[h]);return this.renderChannel([e.getChannelData(h)],a,o)}));else{const l=[e.getChannelData(0)];e.numberOfChannels>1&&l.push(e.getChannelData(1)),yield this.renderChannel(l,this.options,o)}}catch{return}this.emit("rendered")})}reRender(){if(!this.audioData)return;const{scrollWidth:e}=this.scrollContainer,t=this.progressWrapper.clientWidth;if(this.render(this.audioData),this.isScrollable&&e!==this.scrollContainer.scrollWidth){const i=this.progressWrapper.clientWidth;this.scrollContainer.scrollLeft+=i-t}}zoom(e){this.options.minPxPerSec=e,this.reRender()}scrollIntoView(e,t=!1){const{scrollLeft:i,scrollWidth:s,clientWidth:r}=this.scrollContainer,o=e*s,l=i,h=i+r,c=r/2;if(this.isDragging)o+30>h?this.scrollContainer.scrollLeft+=30:o-30h)&&(this.scrollContainer.scrollLeft=o-(this.options.autoCenter?c:0));const a=o-i-c;t&&this.options.autoCenter&&a>0&&(this.scrollContainer.scrollLeft+=Math.min(a,10))}{const a=this.scrollContainer.scrollLeft,m=a/s,u=(a+r)/s;this.emit("scroll",m,u)}}renderProgress(e,t){if(isNaN(e))return;const i=100*e;this.canvasWrapper.style.clipPath=`polygon(${i}% 0, 100% 0, 100% 100%, ${i}% 100%)`,this.progressWrapper.style.width=`${i}%`,this.cursor.style.left=`${i}%`,this.cursor.style.marginLeft=Math.round(i)===100?`-${this.options.cursorWidth}px`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(e,t)}exportImage(e,t,i){return g(this,void 0,void 0,function*(){const s=this.canvasWrapper.querySelectorAll("canvas");if(!s.length)throw new Error("No waveform data");if(i==="dataURL"){const r=Array.from(s).map(o=>o.toDataURL(e,t));return Promise.resolve(r)}return Promise.all(Array.from(s).map(r=>new Promise((o,l)=>{r.toBlob(h=>{h?o(h):l(new Error("Could not export image"))},e,t)})))})}}L.MAX_CANVAS_WIDTH=4e3;class ee extends P{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class te extends P{constructor(e=new AudioContext){super(),this.bufferNode=null,this.autoplay=!1,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=e,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return g(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(e){if(this.currentSrc=e,!e)return this.buffer=null,void this.emit("emptied");fetch(e).then(t=>t.arrayBuffer()).then(t=>this.currentSrc!==e?null:this.audioContext.decodeAudioData(t)).then(t=>{this.currentSrc===e&&(this.buffer=t,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){var e;this.paused&&(this.paused=!1,(e=this.bufferNode)===null||e===void 0||e.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.bufferNode.buffer=this.buffer,this.bufferNode.connect(this.gainNode),this.playedDuration>=this.duration&&(this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,this.playedDuration),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))})}_pause(){var e;this.paused||(this.paused=!0,(e=this.bufferNode)===null||e===void 0||e.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime)}play(){return g(this,void 0,void 0,function*(){this._play(),this.emit("play")})}pause(){this._pause(),this.emit("pause")}stopAt(e){var t,i;const s=e-this.currentTime;(t=this.bufferNode)===null||t===void 0||t.stop(this.audioContext.currentTime+s),(i=this.bufferNode)===null||i===void 0||i.addEventListener("ended",()=>{this.bufferNode=null,this.pause()},{once:!0})}setSinkId(e){return g(this,void 0,void 0,function*(){return this.audioContext.setSinkId(e)})}get playbackRate(){var e,t;return(t=(e=this.bufferNode)===null||e===void 0?void 0:e.playbackRate.value)!==null&&t!==void 0?t:1}set playbackRate(e){this.bufferNode&&(this.bufferNode.playbackRate.value=e)}get currentTime(){return this.paused?this.playedDuration:this.playedDuration+this.audioContext.currentTime-this.playStartTime}set currentTime(e){this.emit("seeking"),this.paused?this.playedDuration=e:(this._pause(),this.playedDuration=e,this._play()),this.emit("timeupdate")}get duration(){var e;return((e=this.buffer)===null||e===void 0?void 0:e.duration)||0}get volume(){return this.gainNode.gain.value}set volume(e){this.gainNode.gain.value=e,this.emit("volumechange")}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(e){return/^(audio|video)\//.test(e)}getGainNode(){return this.gainNode}getChannelData(){const e=[];if(!this.buffer)return e;const t=this.buffer.numberOfChannels;for(let i=0;i{this.emit("init");const s=this.options.url||this.getSrc()||"";(s||this.options.peaks&&this.options.duration)&&this.load(s,this.options.peaks,this.options.duration)})}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{const e=this.getCurrentTime();this.renderer.renderProgress(e/this.getDuration(),!0),this.emit("timeupdate",e),this.emit("audioprocess",e)}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const e=this.getCurrentTime();this.renderer.renderProgress(e/this.getDuration(),this.isPlaying()),this.emit("timeupdate",e)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop()}),this.onMediaEvent("emptied",()=>{this.timer.stop()}),this.onMediaEvent("ended",()=>{this.emit("finish")}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(e,t)=>{this.options.interact&&(this.seekTo(e),this.emit("interaction",e*this.getDuration()),this.emit("click",e,t))}),this.renderer.on("dblclick",(e,t)=>{this.emit("dblclick",e,t)}),this.renderer.on("scroll",(e,t)=>{const i=this.getDuration();this.emit("scroll",e*i,t*i)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}));{let e;this.subscriptions.push(this.renderer.on("drag",t=>{this.options.interact&&(this.renderer.renderProgress(t),clearTimeout(e),e=setTimeout(()=>{this.seekTo(t)},this.isPlaying()?0:200),this.emit("interaction",t*this.getDuration()),this.emit("drag",t))}))}}initPlugins(){var e;!((e=this.options.plugins)===null||e===void 0)&&e.length&&this.options.plugins.forEach(t=>{this.registerPlugin(t)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(e=>e()),this.mediaSubscriptions=[]}setOptions(e){this.options=Object.assign({},this.options,e),this.renderer.setOptions(this.options),e.audioRate&&this.setPlaybackRate(e.audioRate),e.mediaControls!=null&&(this.getMediaElement().controls=e.mediaControls)}registerPlugin(e){return e._init(this),this.plugins.push(e),this.subscriptions.push(e.once("destroy",()=>{this.plugins=this.plugins.filter(t=>t!==e)})),e}getWrapper(){return this.renderer.getWrapper()}getScroll(){return this.renderer.getScroll()}getActivePlugins(){return this.plugins}loadAudio(e,t,i,s){return g(this,void 0,void 0,function*(){if(this.emit("load",e),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,!t&&!i){const o=l=>this.emit("loading",l);t=yield J.fetchBlob(e,o,this.options.fetchParams)}this.setSrc(e,t);const r=s||this.getDuration()||(yield new Promise(o=>{this.onceMediaEvent("loadedmetadata",()=>o(this.getDuration()))}));if(i)this.decodedData=A.createBuffer(i,r||0);else if(t){const o=yield t.arrayBuffer();this.decodedData=yield A.decode(o,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(e,t,i){return g(this,void 0,void 0,function*(){yield this.loadAudio(e,void 0,t,i)})}loadBlob(e,t,i){return g(this,void 0,void 0,function*(){yield this.loadAudio("blob",e,t,i)})}zoom(e){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(e),this.emit("zoom",e)}getDecodedData(){return this.decodedData}exportPeaks({channels:e=2,maxLength:t=8e3,precision:i=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const s=Math.min(e,this.decodedData.numberOfChannels),r=[];for(let o=0;oMath.abs(u)&&(u=p)}h.push(Math.round(u*i)/i)}r.push(h)}return r}getDuration(){let e=super.getDuration()||0;return e!==0&&e!==1/0||!this.decodedData||(e=this.decodedData.duration),e}toggleInteraction(e){this.options.interact=e}seekTo(e){const t=this.getDuration()*e;this.setTime(t)}playPause(){return g(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(e){this.setTime(this.getCurrentTime()+e)}empty(){this.load("",[[0]],.001)}setMediaElement(e){this.unsubscribePlayerEvents(),super.setMediaElement(e),this.initPlayerEvents()}exportImage(e="image/png",t=1,i="dataURL"){return g(this,void 0,void 0,function*(){return this.renderer.exportImage(e,t,i)})}destroy(){this.emit("destroy"),this.plugins.forEach(e=>e.destroy()),this.subscriptions.forEach(e=>e()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}T.BasePlugin=class extends P{constructor(n){super(),this.subscriptions=[],this.options=n}onInit(){}_init(n){this.wavesurfer=n,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(n=>n())}},T.dom=Z;const se={name:"Wavesurfer",props:{audioUrl:{type:String,required:!1},containerIdOverride:{type:String,default:null},cursorColor:{type:String,default:"#111"},cursorWidth:{type:Number,default:0},barGap:{type:[Number,NaN],default:0},barRadius:{type:[Number,NaN],default:50},barWidth:{type:[Number,NaN],default:3},height:{type:[String,Number],default:"8em"},media:{type:String,required:!1},mediaControls:{type:Boolean,default:!1},normalize:{type:Boolean,default:!1},progressColor:{type:String,default:"#555"},splitChannels:{type:Boolean,default:!1},theme:{type:String,default:"base"},waveColor:{type:String,default:"#999"},width:{type:[String,Number],default:"100%"}},data(){return{containerId:"",wavesurfer:null}},computed:{wavesurferOptions(){let n={barGap:this.barGap,barRadius:this.barRadius,barWidth:this.barWidth,container:"#"+this.containerId,cursorWidth:this.cursorWidth,height:this.height,mediaControls:this.mediaControls,normalize:this.normalize,splitChannels:this.splitChannels,width:this.width};return this.media?n.media=this.media:this.audioUrl?n.url=this.audioUrl:console.error("No valid url or media source set"),n=Object.assign(n,this.getColorOptions()),n}},created(){this.containerIdOverride?this.containerId=this.containerIdOverride:this.containerId="wavesurfer_"+new Date().getTime()},mounted(){this.$nextTick(()=>{this.wavesurfer=T.create(this.wavesurferOptions)})},methods:{getColorOptions(){let n={cursorColor:this.cursorColor,progressColor:this.progressColor,waveColor:this.waveColor};if(!this.theme)return n;switch(this.theme){case"primary":return{cursorColor:"#1D4ED8",progressColor:"#2563EB",waveColor:"#666666"};case"base":default:return n}}}};var ne=function(){var e=this,t=e._self._c;return t("section",[t("div",{attrs:{id:e.containerId}})])},re=[],oe=W(se,ne,re,!1,null,null,null,null);const ae=oe.exports,le={name:"StudentAdminCourseShow",layout:"student-admin-layout",components:{IconHeadphones:B,IconVideo:z,IconPlus:q,IconBookDownload:j,IconSquareCheckFilled:$,IconSquareCheck:N,CourseSideMenuItem:Y,CollapseTransition:R,ConfirmationModal:H,Wavesurfer:ae,Zora:V},props:{course:{required:!0,type:Object|Array}},data(){return{activeSection:0,activeSectionLecture:0,toggledSections:{0:!1},mountedItems:{},toggledItems:{},lecture:null,section:null,isCourseContentToggled:!0,isLoadingLecture:!1,isLoadingMarkComplete:!1,showConfirmMarkCompleteModal:null,itemToMarkComplete:null,showPDFPanel:!1,lectureToViewId:null,showAudioPanel:!1}},computed:{isToggled(){return!!this.toggledItems[this.menuItemKey]},markCompleteModalText(){var n,e;try{return((n=this.itemToMarkComplete)==null?void 0:n.index)==="0"?["messages.mark-course-lecture-complete-refund-warning",this.itemToMarkComplete.title]:["messages.mark-course-lecture-complete-default",(e=this.itemToMarkComplete)==null?void 0:e.title]}catch{return["messages.perform-action-check"]}},courseWebinars(){return this.course?this.course.webinars:[]},lectureWebinarsFromSection(){return this.courseWebinars.filter(n=>n.section_id==this.lecture.section.id)}},mounted(){this.determineActiveLecture(),this.hideToggledSectionsOnMobile()},methods:{determineActiveLecture(){this.isLoadingLecture=!0;let n=!1;M.forEach(this.course.sections,(e,t)=>{if(!n&&(M.forEach(e.child_items,(i,s)=>{if(!n&&!i.completed){console.log("not completed"),this.setActiveLecture(t,s,i,e),n=!0;return}}),n))return console.log("found",n),!0}),this.isLoadingLecture=!1},hideToggledSectionsOnMobile(){try{window.innerWidth<1024&&M.forEach(this.toggledSections,(n,e)=>{this.$set(this.toggledSections,e,!1)})}catch(n){console.log(n)}},toggleCourseContent(){console.log("here"),this.isCourseContentToggled=!this.isCourseContentToggled},toggleSection(n){this.$set(this.toggledSections,n,!this.toggledSections[n])},isLectureActive(n,e){return this.activeSection===n&&this.activeSectionLecture===e},setActiveLecture(n,e,t,i){this.activeSection=n,this.section=M.cloneDeep(i),this.activeSectionLecture=e,this.lecture=M.cloneDeep(t),this.showPDFPanel=!1,this.showAudioPanel=!1,this.$set(this.toggledSections,n,!0),this.isLoadingLecture=!0,setTimeout(()=>{this.isLoadingLecture=!1},300)},onMenuItemOpened(n,e){this.$set(this.toggledItems,e,!0)},onMenuItemToggled(n,e){this.isLoadingLecture=!0,this.toggledItems[e]?this.$set(this.toggledItems,e,!1):this.$set(this.toggledItems,e,!0),this.lecture=n,this.isLoadingLecture=!1},checkMarkComplete(n){n.completed||(this.showConfirmMarkCompleteModal=!0,this.itemToMarkComplete=n)},confirmMarkComplete(){if(this.isLoadingMarkComplete)return this.$errorToast("It's only possible to mark it complete once.");this.$inertia.patch(this.$route("student.admin.lectures.complete",this.itemToMarkComplete.id),{only:["flash","course"]}),this.lecture.completed=!0,this.itemToMarkComplete=null,this.showConfirmMarkCompleteModal=!1},cancelMarkComplete(){this.showConfirmMarkCompleteModal=!1,this.itemToMarkComplete=null},downloadPDFs(n){this.lectureToViewId=n.id,this.showPDFPanel=!this.showPDFPanel},showAudioOnly(n){this.lectureToViewId=n.id,this.showAudioPanel=!this.showAudioPanel}}};var ce=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mb-4"},[t("h1",{staticClass:"font-semibold mr-auto text-lg md:text-3xl"},[e._v(" "+e._s(e.course.name)+" ")]),t("small",[e._v(e._s(e.__("messages.created-by"))+" "),t("b",[e._v(e._s(e.course.creator.name))])])]),t("transition",{attrs:{name:"slide-right"}},[e.section&&e.lecture&&!e.isLoadingLecture?t("div",{staticClass:"mb-6 w-full lg:hidden"},[e.showAudioPanel?e._e():t("div",{staticClass:"bg-white overflow-hidden relative rounded-lg shadow-subtle"},[t("iframe",{staticClass:"aspect-ratio-16-9 w-full",attrs:{src:e.lecture.video_url,allowfullscreen:"",allow:"autoplay; fullscreen; picture-in-picture",frameborder:"0"}})]),e.showAudioPanel&&e.lecture.audio_url?t("div",{staticClass:"bg-white overflow-hidden relative rounded-lg shadow-subtle"},[t("Wavesurfer",{attrs:{"audio-url":e.lecture.audio_url,"media-controls":!0}})],1):e._e()]):e._e()]),t("div",{staticClass:"flex flex-col overflow-x-hidden space-y-6 lg:flex-row lg:space-x-4 lg:space-y-0"},[t("div",{staticClass:"overflow-hidden relative w-full z-10 lg:max-w-sm"},[t("div",{staticClass:"bg-white rounded-xl shadow-subtle"},[t("div",{staticClass:"bg-white cursor-pointer flex flex-row items-center justify-between px-6 py-3 relative rounded-xl z-10",on:{click:e.toggleCourseContent}},[t("h2",{staticClass:"font-semibold"},[e._v(" "+e._s(e.__("messages.course-content"))+" ")]),t(e.isCourseContentToggled?"icon-minus":"icon-plus",{tag:"component",staticClass:"w-5"})],1),t("transition",{attrs:{name:"slide-down"}},[e.isCourseContentToggled?t("div",e._l(e.course.sections,function(i,s){return t("div",{key:`section-${s}`,staticClass:"border-t"},[t("div",{staticClass:"cursor-pointer px-6 py-3 hover:bg-theme-primary-subtle-hover",class:{"bg-theme-primary-subtle-hover":s===e.activeSection},on:{click:function(r){return e.toggleSection(s)}}},[t("div",{staticClass:"flex flex-1 flex-row items-center justify-between"},[t("h3",{staticClass:"font-bold"},[e._v(" "+e._s(s+1)+". "+e._s(i.title)+" ")]),t(e.toggledSections[s]?"icon-minus":"icon-plus",{tag:"component",staticClass:"w-5"})],1),t("p",{staticClass:"text-sm"},[e._v(" 0/"+e._s(i.child_items.length)+" | "+e._s(i.content_length)+" min ")])]),t("transition",{attrs:{name:"slide-left"}},[e.toggledSections[s]?t("div",e._l(i.child_items,function(r,o){return t("div",{key:`lecture-${o}`,staticClass:"cursor-pointer flex flex-row px-6 py-1 space-x-1 hover:bg-theme-primary-subtle-hover",class:{"bg-theme-primary-subtle-hover":e.isLectureActive(s,o)}},[t("button",{attrs:{type:"button"},on:{click:function(l){return e.checkMarkComplete(r)}}},[t(r.completed?"icon-square-check-filled":"icon-square-check",{tag:"component",staticClass:"w-5",class:{"text-theme-success-contrast":r.completed}})],1),t("div",{on:{click:function(l){return e.setActiveLecture(s,o,r,i)}}},[t("p",{staticClass:"text-sm"},[e._v(e._s(o+1)+". "+e._s(r.title))]),t("p",{staticClass:"text-xs"},[e._v(e._s(r.content_length)+" min")])])])}),0):e._e()])],1)}),0):e._e()])],1)]),t("transition",{attrs:{name:"slide-right"}},[e.section&&e.lecture&&!e.isLoadingLecture?t("div",{staticClass:"w-full"},[t("div",{staticClass:"hidden lg:block"},[e.showAudioPanel?e._e():t("div",{staticClass:"bg-white overflow-hidden relative rounded-lg shadow-subtle"},[t("iframe",{staticClass:"aspect-ratio-16-9 w-full",attrs:{src:e.lecture.video_url,allowfullscreen:"",allow:"autoplay; fullscreen; picture-in-picture",frameborder:"0"}})]),e.showAudioPanel&&e.lecture.audio_url?t("div",{staticClass:"bg-white overflow-hidden relative rounded-lg shadow-subtle"},[t("Wavesurfer",{attrs:{"audio-url":e.lecture.audio_url,"media-controls":!0}})],1):e._e()]),t("div",{staticClass:"bg-white p-6 overflow-hidden relative rounded-lg shadow-subtle lg:mt-4"},[t("div",{staticClass:"flex items-center justify-content-between space-x-6"},[t("h2",{staticClass:"flex-1 font-semibold text-lg"},[e._v(" "+e._s(e.lecture.title)+" ")]),e.section.files&&e.section.files.le||e.lecture.files&&e.lecture.files.length?t("button",{staticClass:"button button-primary-subtle button-small flex flex-row items-center text-sm",attrs:{title:"Audio Only"},on:{click:function(i){return e.showAudioOnly(e.lecture)}}},[e.showAudioPanel?t("span",{staticClass:"flex flex-row items-center"},[t("icon-video",{staticClass:"w-5 md:mr-auto"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Video ")])],1):t("span",{staticClass:"flex flex-row items-center"},[t("icon-headphones",{staticClass:"w-5 md:mr-auto"}),t("span",{staticClass:"hidden md:inline"},[e._v(" Audio ")])],1)]):e._e(),e.section.files&&e.section.files.length||e.lecture.files&&e.lecture.files.length?t("button",{staticClass:"button button-primary-subtle button-small flex flex-row items-center text-sm",attrs:{title:e.__("messages.resources-pdfs")},on:{click:function(i){return e.downloadPDFs(e.lecture)}}},[t("icon-book-download",{staticClass:"w-5 md:mr-2"}),t("span",{staticClass:"hidden md:inline"},[e._v(" "+e._s(e.showPDFPanel?e.__("messages.course"):e.__("messages.resources-pdfs"))+" ")])],1):e._e()]),t("transition-group",{staticClass:"mt-4",attrs:{name:"slide-left",tag:"div"}},[e.showPDFPanel?t("div",{key:"downloads"},[t("h3",{staticClass:"font-semibold mb-2"},[e._v(e._s(e.__("messages.files")))]),t("ul",e._l(e.section.files,function(i,s){return t("li",{key:`file-${s}`,staticClass:"mt-1"},[i.url?t("a",{staticClass:"flex flex-row items-center space-x-2 text-theme-primary hover:text-theme-primary-hover",attrs:{href:i.url,rel:"noreferrer noopener nofollow",target:"_blank"},on:{click:function(r){r.stopPropagation()}}},[t("icon-external-link",{staticClass:"w-4"}),t("p",{staticClass:"text-sm font-semibold"},[e._v(e._s(i.file_name))])],1):e._e()])}),0),t("ul",e._l(e.lecture.files,function(i,s){return t("li",{key:`file-${s}`,staticClass:"mt-1"},[i.url?t("a",{staticClass:"flex flex-row items-center space-x-2 text-theme-primary hover:text-theme-primary-hover",attrs:{href:i.url,rel:"noreferrer noopener nofollow",target:"_blank"},on:{click:function(r){r.stopPropagation()}}},[t("icon-external-link",{staticClass:"w-4"}),t("p",{staticClass:"text-sm font-semibold"},[e._v(e._s(i.file_name))])],1):e._e()])}),0)]):t("div",{key:"description"},[e.lectureWebinarsFromSection.length?t("div",{staticClass:"bg-gray-200 rounded-xl shadow-subtle p-2"},e._l(e.lectureWebinarsFromSection,function(i){return t("div",[t("b",{staticClass:"flex flex-row"},[t("icon-speaker-phone",{staticClass:"w-5 mr-1"}),t("a",{staticClass:"page-link",attrs:{href:i.webinar_url,target:"_blank"}},[e._v(e._s(i.name))])],1),t("p",{staticClass:"pt-1"},[t("strong",[e._v(e._s(e.__("messages.dates"))+":")]),e._v(" "+e._s(e._f("humanFriendlyDateTime")(i.date_time_from))+" "+e._s(e.__("messages.to"))+" "+e._s(e._f("humanFriendlyDateTime")(i.date_time_to))+" ")]),t("p",{staticClass:"pt-1"},[e._v(e._s(i.summary))])])}),0):e._e(),t("br"),t("p",{staticClass:"mt-2",domProps:{innerHTML:e._s(e.lecture.description)}})])])],1)]):e._e()])],1),t("confirmation-modal",{attrs:{"confirm-text":e.__("messages.mark-complete"),"cancel-text":e.__("messages.cancel"),"message-title":e.__("messages.are-you-sure")+"?","confirm-type":"success","show-modal":e.showConfirmMarkCompleteModal,"message-text":e.__(e.markCompleteModalText[0],{name:e.markCompleteModalText[1]})},on:{cancelAction:e.cancelMarkComplete,closeModal:e.cancelMarkComplete,confirmAction:e.confirmMarkComplete}})],1)},he=[],de=W(le,ce,he,!1,null,null,null,null);const ve=de.exports;export{ve as default}; diff --git a/public/build/assets/Show.b9570225.js b/public/build/assets/Show.b9570225.js new file mode 100644 index 00000000..c5c10da5 --- /dev/null +++ b/public/build/assets/Show.b9570225.js @@ -0,0 +1 @@ +import{_ as i}from"./vendor.21c2b6f5.js";import{n as o}from"./LogoLight.f7426689.js";import{a as m,C as p,P as d,V as _,b as g,c as h,F as f,A as y,T as v,d as b}from"./CourseFooter.585c86a3.js";import{I as x}from"./InputGroup.513e0dd4.js";import{T as C}from"./app.c52b09a2.js";import"./ConfirmationModal.242a99d0.js";const u={metaInfo(){return{title:this.metaTitle,meta:[{name:"description",vmid:"description",content:this.metaDescription},{name:"keywords",vmid:"keywords",content:this.getMetaField("keywords")},{name:"og:description",vmid:"og:description",content:this.getMetaField("og_description",this.metaDescription)},{name:"og:title",vmid:"og:title",content:this.getMetaField("og_title",this.metaTitle)},{name:"og:image",vmid:"og:image",content:this.getMetaField("og_image")},{name:"og:type",vmid:"og:type",content:this.getMetaField("og_type")},{name:"og:url",vmid:"og:url",content:this.getMetaField("og_url")}]}},props:{page:{required:!0,type:Object}},computed:{content(){try{return this.page.data.content}catch{return null}},layout(){try{return this.page.data.layout}catch{return null}},layoutComponent(){switch(this.layoutSlug){case"basic-layout":return"basic-layout";case"course-layout":return"course-layout"}console.log("No layout found")},layoutSlug(){try{return this.layout.slug}catch{return null}},meta(){try{return this.page.data.metadata}catch{return{}}},metaDescription(){return this.getMetaField("description")},metaTitle(){try{return this.getMetaField("title")?this.getMetaField("title"):this.page.data.name}catch{return""}},template(){try{return this.page.data.template}catch{return null}},templateComponent(){switch(this.templateSlug){case"course-template":case"course-page":return"course-page";case"basic-page":return"basic-page"}console.log("No template found")},templateSlug(){try{return this.template.slug}catch{return null}}},methods:{formatRepeaterFieldData(r){try{let t=[];return i.forEach(r,e=>{let a={};i.forEach(e,s=>{a[s.template_field_slug]={slug:s.template_field_slug,order:s.template_field_order,type:s.template_field_type,data:s.data}}),t.push(a)}),t}catch(t){return console.error("Error parsing repeater data",t),null}},getContentFieldData(r,t=null){try{return this.content[r].data?this.content[r].data:t}catch{return t}},getLayoutFieldData(r,t=null){var e;try{return(e=this.layout)!=null&&e.content[r].data?this.layout.content[r].data:t}catch{return t}},getMetaField(r,t=""){try{return this.meta[r]?this.meta[r]:t}catch{return t}}}},F={name:"BasicLayout",props:{layout:{required:!0,type:Object}},computed:{isStickyHeader(){return!0}}};var D=function(){var t=this,e=t._self._c;return e("div",[e("main",{staticClass:"bg-theme-base min-h-screen",attrs:{id:"basic-layout"}},[e("nav",{staticClass:"bg-white px-4 py-3",class:{"shadow-lg sticky top-0 z-50":t.isStickyHeader}},[e("div",{staticClass:"container flex flex-row items-center justify-between mx-auto"},[e("inertia-link",{staticClass:"font-semibold hover:text-theme-primary-hover",attrs:{href:"/"}},[t._v(" "+t._s(t.__("messages.homepage"))+" ")])],1)]),e("div",{staticClass:"container max-w-screen-lg mx-auto pt-12"},[t._t("default")],2)])])},$=[],w=o(F,D,$,!1,null,null,null,null);const T=w.exports,L={name:"BasicPage",mixins:[u],props:{page:{required:!0,type:Object}},computed:{mainContent(){return this.getContentFieldData("main-content")}}};var M=function(){var t=this,e=t._self._c;return e("main",{staticClass:"bg-theme-base px-4 text-theme-base-contrast"},[e("div",{staticClass:"prose",domProps:{innerHTML:t._s(t.mainContent)}})])},S=[],q=o(L,M,S,!1,null,null,null,null);const k=q.exports,P={name:"CourseLayout",props:{page:{required:!0,type:Object},layout:{required:!0,type:Object}},computed:{content(){try{return this.page.data.content}catch{return null}},course(){return this.getContentFieldData("course")},logoUrl(){try{return this.page.data.logo_url}catch{return null}},isStickyHeader(){return!0}},methods:{getContentFieldData(r,t=null){try{return this.content[r].data?this.content[r].data:t}catch{return t}}}};var I=function(){var t=this,e=t._self._c;return e("div",[e("main",{attrs:{id:"course-layout"}},[e("nav",{staticClass:"bg-white px-4 py-3",class:{"shadow-lg sticky top-0 z-50":t.isStickyHeader}},[e("div",{staticClass:"container flex flex-row items-center justify-between mx-auto"},[t.logoUrl?e("inertia-link",{staticClass:"logo",attrs:{href:"/"}},[e("img",{staticClass:"mr-2 w-12",attrs:{src:t.logoUrl}})]):e("inertia-link",{staticClass:"font-semibold hover:text-theme-primary-hover",attrs:{href:"/"}},[t._v(" "+t._s(t.__("messages.homepage"))+" ")]),t.course.status==="PUBLISHED"?e("a",{staticClass:"animate-bg-primary-to-secondary button button-primary font-semibold rounded-full",attrs:{href:"#purchase"}},[t._v(" "+t._s(t.__("messages.sign-up"))+" ")]):e("a",{staticClass:"animate-bg-primary-to-secondary button button-primary font-semibold rounded-full",attrs:{href:"#interest-form"}},[t._v(" "+t._s(t.transWithFallback("messages.register_interest","Register Interest"))+" ")])],1)]),t._t("default")],2)])},O=[],j=o(P,I,O,!1,null,null,null,null);const B=j.exports,H={name:"StandardForm",components:{TextAreaGroup:C,InputGroup:x},props:{buttonClass:{default:"button button-primary ml-auto",type:String},form:{required:!0,type:Object},formClass:{default:"gap-6 grid grid-cols-1",type:String},formDataOverrides:{default:()=>({}),type:Object},titleClass:{default:"font-bold text-lg",type:String},titleOverride:{default:null,type:String|null}},data(){return{error:!1,formData:{},isLoading:!1,successMessage:!1}},computed:{submitButtonText(){let r=this.form.submit_button_text?this.form.submit_button_text:"Submit",t="form.buttons."+this.formatTransKey(r);return this.transWithFallback(t,r)}},created(){i.forEach(this.form.form_fields,r=>{this.$set(this.formData,r.slug,"")}),i.forEach(this.formDataOverrides,(r,t)=>{this.$set(this.formData,t,r)})},methods:{getInputType(r){switch(r.type){case"crm_first_name":case"crm_last_name":case"crm_title":case"crm_telephone":return"text";case"crm_email":return"email";default:return r.type}},submit(){this.isLoading=!0,this.error=!1,axios.post(this.$route("api.form-submission.store",this.form.id),this.formData).then(r=>{var t,e;this.isLoading=!1,this.successMessage=(t=r.data)==null?void 0:t.message,(e=r.data)!=null&&e.redirect_url&&setTimeout(()=>{var a;window.location.href=(a=r.data)==null?void 0:a.redirect_url},1e3)}).catch(r=>{this.isLoading=!1,this.error=this.transWithFallback("messages.form_submission_failed","Failed to submit form. Please try again.")})}}};var R=function(){var t=this,e=t._self._c;return e("section",[t._t("title",function(){return[e("h2",{class:t.titleClass},[t._v(" "+t._s(t.titleOverride?t.titleOverride:t.form.name)+" ")])]}),t.successMessage?e("div",[t._v(" "+t._s(t.successMessage)+" ")]):e("form",{class:t.formClass,on:{submit:function(a){return a.preventDefault(),t.submit.apply(null,arguments)}}},[t._l(t.form.form_fields,function(a){var s,l;return e("div",{key:a.slug},[t.getInputType(a)==="hidden"?e("input",{directives:[{name:"model",rawName:"v-model",value:t.formData[a.slug],expression:"formData[field.slug]"}],attrs:{name:a.slug,type:"hidden"},domProps:{value:t.formData[a.slug]},on:{input:function(n){n.target.composing||t.$set(t.formData,a.slug,n.target.value)}}}):t.getInputType(a)==="text"||t.getInputType(a)==="email"?e("input-group",{attrs:{"input-id":a.slug,"input-name":a.slug,"input-required":a.is_required,"input-type":t.getInputType(a),"label-text":a.name},on:{errorHidden:function(n){return t.clearPageErrorMessage(a.slug)}},model:{value:t.formData[a.slug],callback:function(n){t.$set(t.formData,a.slug,n)},expression:"formData[field.slug]"}}):t.getInputType(a)==="textarea"?e("text-area-group",{attrs:{"input-id":a.slug,"input-max-length":(s=a.settings)==null?void 0:s.max_length,"input-name":a.slug,"input-required":a.is_required,"input-rows":(l=a.settings)==null?void 0:l.rows,"label-text":a.name},on:{errorHidden:function(n){return t.clearPageErrorMessage(a.slug)}},model:{value:t.formData[a.slug],callback:function(n){t.$set(t.formData,a.slug,n)},expression:"formData[field.slug]"}}):t._e()],1)}),t._t("button",function(){return[e("div",{staticClass:"text-right"},[e("button",{class:t.buttonClass,attrs:{disabled:t.isLoading,type:"submit"}},[t._v(" "+t._s(t.submitButtonText)+" ")])])]}),t.error?e("div",{staticClass:"text-theme-danger-contrast"},[t._v(" "+t._s(t.error)+" ")]):t._e()],2)],2)},E=[],A=o(H,R,E,!1,null,null,null,null);const c=A.exports,N={name:"CourseInterestForm",components:{StandardForm:c},props:{course:{required:!0,type:Object},form:{required:!0,type:Object}}};var U=function(){var t=this,e=t._self._c;return e("section",{staticClass:"px-4 py-12",attrs:{id:"interest-form"}},[e("standard-form",{staticClass:"max-w-screen-sm mx-auto",attrs:{form:t.form,"form-data-overrides":{course_name:t.course.name},"title-override":t.transWithFallback("messages.register_interest","Register Interest")}})],1)},W=[],z=o(N,U,W,!1,null,null,null,null);const G=z.exports,K={name:"CourseCallToAction",props:{data:{default:"",required:!1,type:String}}};var J=function(){var t=this,e=t._self._c;return e("section",{staticClass:"bg-gray-100 px-4",staticStyle:{"padding-bottom":"3rem"}},[e("div",{staticClass:"container max-w-screen-lg mx-auto"},[e("div",{staticClass:"max-w-screen-lg"},[e("div",{staticClass:"flex flex-row justify-center"},[e("a",{staticClass:"animate-bg-primary-to-secondary button button-primary flex flex-row justify-center max-w-250px mt-6 rounded-full text-xl w-full",attrs:{href:"#purchase"}},[t._v(" "+t._s(t.__("messages.sign-up"))+" ")])])])])])},Q=[],X=o(K,J,Q,!1,null,null,null,null);const Y=X.exports,Z={name:"CoursePage",mixins:[u],components:{CourseCallToAction:Y,CourseInterestForm:G,StandardForm:c,CourseDescription:m,CourseContent:p,Purchase:d,VideoPreview:_,CourseFeatures:g,CourseHeader:h,Faq:f,AboutAuthor:y,Testimonials:v,CourseFooter:b},props:{page:{required:!0,type:Object}},computed:{course(){return this.getContentFieldData("course")},courseCallToActionText(){return this.getLayoutFieldData("course-call-to-action")},authorBio(){return this.getLayoutFieldData("author-bio")},authorName(){return this.getLayoutFieldData("author-name")},company(){return this.getLayoutFieldData("company")},videoPreviewText(){return this.getLayoutFieldData("video-preview-text")},footerMenu(){return this.getLayoutFieldData("footer-menu")},interestForm(){return this.getLayoutFieldData("course-interest-form")},faqs(){try{return this.formatRepeaterFieldData(this.getLayoutFieldData("global-faqs"))}catch{return null}},testimonials(){try{return this.formatRepeaterFieldData(this.getLayoutFieldData("global-testimonials"))}catch{return null}}},methods:{}};var V=function(){var t=this,e=t._self._c;return e("main",{staticClass:"bg-theme-base text-theme-base-contrast"},[e("course-header",{attrs:{course:t.course}}),e("course-features",{attrs:{course:t.course}}),e("course-content",{attrs:{course:t.course}}),e("course-description",{attrs:{course:t.course}}),e("course-call-to-action",{attrs:{data:t.courseCallToActionText}}),e("faq",{attrs:{faqs:t.faqs}}),e("about-author",{attrs:{bio:t.authorBio,name:t.authorName}}),t.course.status==="PUBLISHED"?e("purchase",{staticClass:"bg-theme-base-subtle",attrs:{course:t.course}}):t.interestForm?e("course-interest-form",{staticClass:"bg-theme-base-subtle",attrs:{course:t.course,form:t.interestForm}}):t._e(),e("testimonials",{attrs:{testimonials:t.testimonials}}),e("course-footer",{attrs:{company:t.company,"footer-menu":t.footerMenu}})],1)},tt=[],et=o(Z,V,tt,!1,null,null,null,null);const rt=et.exports,at={name:"PageShow",mixins:[u],components:{BasicLayout:T,CourseLayout:B,BasicPage:k,CoursePage:rt}};var st=function(){var t=this,e=t._self._c;return t.layoutComponent?e(t.layoutComponent,{tag:"component",attrs:{layout:t.layout,page:t.page}},[t.templateComponent?e(t.templateComponent,{tag:"component",attrs:{layout:t.layout,page:t.page}}):t._e()],1):t._e()},nt=[],ot=o(at,st,nt,!1,null,null,null,null);const dt=ot.exports;export{dt as default}; diff --git a/public/build/assets/Show.c3c9e29f.js b/public/build/assets/Show.c3c9e29f.js new file mode 100644 index 00000000..f5667c1a --- /dev/null +++ b/public/build/assets/Show.c3c9e29f.js @@ -0,0 +1 @@ +import{_ as o}from"./vendor.21c2b6f5.js";import{n}from"./LogoLight.f7426689.js";const l={name:"AdminCrmFormSubmissionShow",layout:"admin-layout",props:{formSubmission:{required:!0,type:Object}},data(){return{marketingFields:{marketing_email:"Email",marketing_sms:"SMS",marketing_telephone:"Telephone"}}},computed:{enabledFormMarketingFields(){let e={};try{return o.forEach(this.marketingFields,(t,s)=>{this.formSubmission.form.hasOwnProperty(s)?e[s]=this.formSubmission.form[s]:e[s]=!1}),e}catch{return e}}},methods:{getFormSubmissionDataField(e,t="-"){try{return this.formSubmission.data[e]}catch{return t}},getFormSubmissionMarketingField(e){try{return Boolean(this.getFormSubmissionDataField(e,!1))?"Enabled":"Disabled"}catch{return"An error occurred."}}}};var m=function(){var t=this,s=t._self._c;return s("section",{staticClass:"max-w-5xl mx-auto"},[s("div",{staticClass:"flex flex-row items-center mb-6"},[s("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Form Submission ")]),s("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center",attrs:{href:t.$route("admin.crm.form-submissions.index")}},[s("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),s("span",{staticClass:"hidden md:inline"},[t._v(" All Submissions ")])],1)],1),s("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("h2",{staticClass:"font-semibold"},[t._v(" Submission Details ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Form Name ")]),t._v(" "+t._s(t.formSubmission.form.name)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Submitted At ")]),t._v(" "+t._s(t._f("humanFriendlyDateTime")(t.formSubmission.submitted_at))+" ")])])]),t.formSubmission.contact?s("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("h2",{staticClass:"font-semibold"},[t._v(" Contact Details "),t.userCan("crm_contacts.edit")?s("inertia-link",{staticClass:"text-sm text-theme-base-subtle-contrast",attrs:{href:t.$route("admin.crm.contacts.edit",t.formSubmission.contact_id)}},[t._v(" (View Contact) ")]):t._e()],1),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Name ")]),t._v(" "+t._s(t.formSubmission.contact.name_with_title?t.formSubmission.contact.name_with_title:"-")+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Email ")]),t._v(" "+t._s(t.formSubmission.contact.email)+" ")])])]):t._e(),s("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("h2",{staticClass:"font-semibold"},[t._v(" Marketing Preference Data ")]),t._l(t.enabledFormMarketingFields,function(i,a){return s("p",{key:`marketing-field-${a}`,staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" "+t._s(t.marketingFields[a])+" ")]),i?[t._v(" "+t._s(t.getFormSubmissionMarketingField(a))+" ")]:[t._v(" The "+t._s(t.marketingFields[a])+" field is not tracked for this form. ")]],2)})],2)]),s("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("h2",{staticClass:"font-semibold"},[t._v(" Form Submission Data ")]),t._l(t.formSubmission.form.form_fields,function(i){return s("p",{key:`form-field-${i.slug}`,staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" "+t._s(i.name)+" ")]),t._v(" "+t._s(t.getFormSubmissionDataField(i.slug))+" ")])})],2)])])},r=[],c=n(l,m,r,!1,null,null,null,null);const u=c.exports;export{u as default}; diff --git a/public/build/assets/Show.edafe552.js b/public/build/assets/Show.edafe552.js new file mode 100644 index 00000000..3eb124ab --- /dev/null +++ b/public/build/assets/Show.edafe552.js @@ -0,0 +1 @@ +import"./vendor.21c2b6f5.js";import{G as l}from"./GenericModal.3f75002a.js";import{n as c}from"./LogoLight.f7426689.js";const r={name:"AdminEDUCoursePurchaseShow",components:{GenericModal:l},layout:"admin-layout",props:{paymentStatuses:{required:!0,type:Object},purchase:{required:!0,type:Object},statuses:{required:!0,type:Object},types:{required:!0,type:Object}},data(){return{showPaymentGatewayResponseModal:!1,selectedPayment:null}},computed:{isInstalmentPlan(){try{return this.purchase.instalment_plan.id}catch{return!1}},instalmentPlanPrice(){try{return this.isInstalmentPlan?this.purchase.purchase_payments[0].price:!1}catch{return 0}}},methods:{closePaymentGatewayResponseModal(){this.showPaymentGatewayResponseModal=!1,this.selectedPayment=null},showPaymentGatewayResponse(a){this.selectedPayment=a,this.showPaymentGatewayResponseModal=!0}}};var n=function(){var t=this,s=t._self._c;return s("section",{staticClass:"max-w-5xl mx-auto"},[s("div",{staticClass:"flex flex-row items-center mb-6"},[s("h1",{staticClass:"font-medium mr-auto text-lg"},[t._v(" Purchase #"+t._s(t.purchase.id)+" ")]),s("inertia-link",{staticClass:"button button-default-responsive button-primary-subtle flex flex-row items-center",attrs:{href:t.$route("admin.edu.course-purchases.index")}},[s("icon-chevron-left",{staticClass:"w-5 md:mr-2"}),s("span",{staticClass:"hidden md:inline"},[t._v(" All Purchases ")])],1)],1),s("div",{staticClass:"bg-white py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("h2",{staticClass:"font-semibold"},[t._v(" Purchase Details ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Course ")]),t._v(" "+t._s(t.purchase.course.name)+" "),t.userCan("edu_courses.edit")?s("inertia-link",{staticClass:"text-sm text-theme-base-subtle-contrast",attrs:{href:t.$route("admin.edu.courses.edit",t.purchase.course.id)}},[t._v(" (Edit Course) ")]):t._e()],1),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Purchased At ")]),t._v(" "+t._s(t._f("humanFriendlyDateTime")(t.purchase.created_at))+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Redeemed At ")]),t.purchase.redeemed_at?[t._v(" "+t._s(t._f("humanFriendlyDateTime")(t.purchase.redeemed_at))+" ")]:[t._v(" Not redeemed ")]],2),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Refundable? ")]),t._v(" "+t._s(t.purchase.is_refundable?"Yes":"No")+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Email Address ")]),t._v(" "+t._s(t.purchase.email_address)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Type ")]),t._v(" "+t._s(t.types.hasOwnProperty(t.purchase.type)?t.types[t.purchase.type]:t.purchase.type)+" ")]),t.isInstalmentPlan?s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Instalment Plan ")]),t._v(" "+t._s(t.purchase.instalment_plan.instalment_count)+" payments @ "+t._s(t._f("currencySymbol")(t.purchase.currency))+" "+t._s(t._f("priceDecimal")(t.instalmentPlanPrice))+" ")]):t._e(),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Status ")]),t._v(" "+t._s(t.statuses.hasOwnProperty(t.purchase.status)?t.statuses[t.purchase.status]:t.purchase.status)+" ")])])]),s("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[s("div",{staticClass:"block px-6 w-full"},[s("h2",{staticClass:"font-semibold"},[t._v(" Payment Details ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Payment Gateway: ")]),t._v(" "+t._s(t.purchase.payment_gateway)+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Total Price Due: ")]),t._v(" "+t._s(t._f("currencySymbol")(t.purchase.currency))+" "+t._s(t._f("priceDecimal")(t.purchase.total_price_due))+" ")]),s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Total Price Paid: ")]),t._v(" "+t._s(t._f("currencySymbol")(t.purchase.currency))+" "+t._s(t._f("priceDecimal")(t.purchase.total_price_paid))+" ")]),t.purchase.full_price_paid_at?s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Full Price Paid At: ")]),t._v(" "+t._s(t._f("humanFriendlyDateTime")(t.purchase.full_price_paid_at))+" ")]):s("p",{staticClass:"mt-2"},[s("span",{staticClass:"block font-semibold text-theme-base-subtle-contrast text-xs"},[t._v(" Total Price Outstanding: ")]),t._v(" "+t._s(t._f("currencySymbol")(t.purchase.currency))+t._s(t._f("priceDecimal")(t.purchase.total_price_outstanding))+" ")])])]),s("div",{staticClass:"bg-white mt-6 py-6 shadow-subtle rounded-lg"},[t._m(0),s("div",{staticClass:"block mt-8 overflow-x-auto w-full"},[s("table",{staticClass:"table table-hover table-striped w-full"},[s("thead",[s("tr",[s("th",[t._v("Due Date")]),s("th",[t._v("Status")]),s("th",[t._v("Price")]),s("th",[t._v("Paid At")]),s("th",[t._v(t._s(t.purchase.payment_gateway)+" Response")])])]),s("tbody",t._l(t.purchase.purchase_payments,function(e){return s("tr",{key:`payment-${e.id}`},[s("td",[t._v(" "+t._s(t._f("humanFriendlyDate")(e.due_date))+" ")]),s("td",[t._v(" "+t._s(t.paymentStatuses.hasOwnProperty(e.status)?t.paymentStatuses[e.status]:e.status)+" ")]),s("td",[t._v(" "+t._s(t._f("currencySymbol")(e.currency))+t._s(t._f("priceDecimal")(e.price))+" ")]),e.paid_at?s("td",[t._v(" "+t._s(t._f("humanFriendlyDateTime")(e.paid_at))+" ")]):s("td",[t._v(" - ")]),s("td",[s("span",{staticClass:"cursor-pointer font-semibold hover:underline",on:{click:function(u){return t.showPaymentGatewayResponse(e)}}},[t._v(" "+t._s(e.payment_gateway_response_id)+" ")])])])}),0)])])]),s("generic-modal",{attrs:{"show-modal":t.showPaymentGatewayResponseModal},on:{closeModal:t.closePaymentGatewayResponseModal}},[s("div",{staticClass:"px-4 pb-4"},[s("pre",{staticClass:"bg-theme-base-subtle px-2 py-1 rounded"},[t._v(t._s(t.selectedPayment?t.selectedPayment.payment_gateway_response:""))])])])],1)},i=[function(){var a=this,t=a._self._c;return t("div",{staticClass:"block px-6 w-full"},[t("h2",{staticClass:"font-semibold"},[a._v(" Payments ")])])}],o=c(r,n,i,!1,null,null,null,null);const d=o.exports;export{d as default}; diff --git a/public/build/assets/TemplateFieldEditor.7dee26e3.js b/public/build/assets/TemplateFieldEditor.7dee26e3.js new file mode 100644 index 00000000..9a4718a1 --- /dev/null +++ b/public/build/assets/TemplateFieldEditor.7dee26e3.js @@ -0,0 +1 @@ +import{_ as a,s as m}from"./vendor.21c2b6f5.js";import{d as u}from"./vuedraggable.umd.700457d3.js";import{C as c}from"./CheckboxGroup.7b759576.js";import{I as n}from"./InputGroup.513e0dd4.js";import{n as s}from"./LogoLight.f7426689.js";import{S as o}from"./app.c52b09a2.js";const d={model:{prop:"fieldSettings"},props:{defaultSettings:{required:!0,type:Array|Object},fieldSettings:{required:!0,type:Array|Object},templateField:{required:!0,type:Object}},data(){return{editableFieldSettings:{}}},computed:{isDefaultSettings(){try{return!this.defaultSettings||Array.isArray(this.defaultSettings)?!1:Object.keys(this.defaultSettings).length}catch{return!1}}},mounted(){this.editableFieldSettings=a.cloneDeep(this.fieldSettings),this.initialiseSettings()},methods:{initialiseSettings(){(!this.editableFieldSettings||Array.isArray(this.editableFieldSettings))&&(this.editableFieldSettings={}),this.isDefaultSettings&&a.forEach(this.defaultSettings,(l,e)=>{this.editableFieldSettings.hasOwnProperty(e)||(this.editableFieldSettings[e]=l)})},onEditableSettingsChange(){this.$emit("input",this.editableFieldSettings)},onFieldSettingsChange(){this.editableFieldSettings=a.cloneDeep(this.fieldSettings)}},watch:{fieldSettings:{handler:"onFieldSettingsChange"}}},g={name:"TemplateFieldNumberSettings",mixins:[d],components:{InputGroup:n}};var f=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`template-field-${e.templateField.order}-min`,"input-name":`template-field-${e.templateField.order}-min`,"input-type":"number","label-text":"Minimum Value"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.min,callback:function(i){e.$set(e.editableFieldSettings,"min",i)},expression:"editableFieldSettings.min"}}),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`template-field-${e.templateField.order}-max`,"input-name":`template-field-${e.templateField.order}-max`,"input-type":"number","label-text":"Maximum Value"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.max,callback:function(i){e.$set(e.editableFieldSettings,"max",i)},expression:"editableFieldSettings.max"}})],1)],2)},b=[],F=s(g,f,b,!1,null,null,null,null);const h=F.exports,T={name:"TemplateFieldRepeaterSettings",mixins:[d],components:{SelectGroup:o},data(){return{isLoadingTemplates:!1,repeaterTemplates:null}},computed:{repeaterTemplateOptions(){let l={"":"No templates available"};try{return!this.repeaterTemplates||!this.repeaterTemplates.length?l:this.repeaterTemplates}catch{return l}}},mounted(){this.getRepeaterTemplates()},methods:{getRepeaterTemplates(){this.isLoadingTemplates=!0,axios.get(this.$route("admin.api.cms.templates.index"),{params:{template_type:"repeater"}}).then(l=>{this.repeaterTemplates=l.data.data}).catch(l=>{this.$errorToast("Failed to load selected template"),console.log(l)}).finally(()=>{this.isLoadingTemplates=!1})}}};var x=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),e.isLoadingTemplates?t("div",{staticClass:"flex flex-row items-start mt-4 text-theme-base-subtle-contrast w-full"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",{staticClass:"text-left"},[e._v("Loading")])],1):t("select-group",{staticClass:"mt-4",attrs:{"input-any-option-enabled":!0,"input-any-option-label":"Please select a template","input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-id":`template-field-${e.templateField.order}-template-id`,"input-name":`template-field-${e.templateField.order}-template-id`,"input-options":e.repeaterTemplateOptions,"input-required":!0,"label-text":"Repeater Template"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.template_id,callback:function(i){e.$set(e.editableFieldSettings,"template_id",i)},expression:"editableFieldSettings.template_id"}})],2)},y=[],S=s(T,x,y,!1,null,null,null,null);const v=S.exports,$={name:"TemplateFieldTextAreaSettings",mixins:[d],components:{InputGroup:n}};var C=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`template-field-${e.templateField.order}-max-length`,"input-name":`template-field-${e.templateField.order}-max-length`,"input-type":"number","label-text":"Max Length"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.max_length,callback:function(i){e.$set(e.editableFieldSettings,"max_length",i)},expression:"editableFieldSettings.max_length"}}),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"input-id":`template-field-${e.templateField.order}-rows`,"input-name":`template-field-${e.templateField.order}-rows`,"input-type":"text","label-text":"Rows"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.rows,callback:function(i){e.$set(e.editableFieldSettings,"rows",i)},expression:"editableFieldSettings.rows"}})],1)],2)},w=[],E=s($,C,w,!1,null,null,null,null);const D=E.exports,k={name:"TemplateFieldTextSettings",mixins:[d],components:{InputGroup:n}};var M=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("input-group",{staticClass:"mt-4",attrs:{"input-id":`template-field-${e.templateField.order}-max-length`,"input-name":`template-field-${e.templateField.order}-max-length`,"input-type":"number","label-text":"Max Length"},on:{input:e.onEditableSettingsChange},model:{value:e.editableFieldSettings.max_length,callback:function(i){e.$set(e.editableFieldSettings,"max_length",i)},expression:"editableFieldSettings.max_length"}})],2)},q=[],O=s(k,M,q,!1,null,null,null,null);const A=O.exports,R={name:"TemplateField",components:{CheckboxGroup:c,InputGroup:n,NumberSettings:h,RepeaterSettings:v,SelectGroup:o,TextAreaSettings:D,TextSettings:A},model:{prop:"templateField"},props:{errorMessageKeyPrefix:{default:"templateFields",type:String},isAutofocusDisabled:{default:!1,type:Boolean},isViewOnly:{default:!1,type:Boolean},templateField:{required:!0,type:Object},templateFieldSettings:{required:!0,type:Object},templateFieldTypes:{required:!0,type:Object}},data(){return{autoUpdateSlug:!0,editableTemplateField:{description:"",is_required:!1,name:"",order:0,settings:{},slug:"",type:""}}},computed:{defaultFieldSettings(){if(!this.editableTemplateField.type)return!1;try{return this.templateFieldSettings[this.editableTemplateField.type]}catch{return{}}},errorMessageKey(){return this.errorMessageKeyPrefix+"."+this.editableTemplateField.order+"."},settingsComponent(){if(!this.editableTemplateField.type)return!1;switch(this.editableTemplateField.type){case"number":return"number-settings";case"repeater":return"repeater-settings";case"text":return"text-settings";case"textarea":return"text-area-settings";default:return!1}}},created(){this.editableTemplateField=_.cloneDeep(this.templateField),this.editableTemplateField.slug&&this.editableTemplateField.slug!==""&&(this.autoUpdateSlug=!1)},methods:{clearErrorMessage(l){this.clearPageErrorMessage(this.errorMessageKey+l)},getErrorMessage(l){let e=this.getPageErrorMessage(this.errorMessageKey+l);return e=e.replace(this.errorMessageKey,""),e},onNameInput(){if(!this.autoUpdateSlug){this.updateTemplateField();return}this.editableTemplateField.slug=this.slugify(this.editableTemplateField.name),this.updateTemplateField()},onSlugBlur(){this.editableTemplateField.slug=this.slugify(this.editableTemplateField.slug),this.updateTemplateField()},onSlugInput(){this.autoUpdateSlug=!1},onTemplateFieldUpdate(){this.editableTemplateField=_.cloneDeep(this.templateField)},slugify(l){return!l||!l.length?"":m(l,{lower:!0})},updateTemplateField(){this.$emit("input",_.cloneDeep(this.editableTemplateField))}},watch:{templateField:{deep:!0,handler:"onTemplateFieldUpdate"}}};var j=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("select-group",{staticClass:"flex-1",attrs:{"error-message":e.getErrorMessage("type"),"label-text":"Field Type","input-any-option-enabled":!0,"input-any-option-label":"Please select a field type","input-autofocus":!e.isAutofocusDisabled,"input-id":`template-field-${e.templateField.order}-type`,"input-name":`template-field-${e.templateField.order}-type`,"input-options":e.templateFieldTypes,"input-required":!0},on:{errorHidden:function(i){return e.clearErrorMessage("type")},input:e.updateTemplateField},model:{value:e.editableTemplateField.type,callback:function(i){e.$set(e.editableTemplateField,"type",i)},expression:"editableTemplateField.type"}}),t("input-group",{staticClass:"flex-1 mt-4 md:mt-0",attrs:{"input-disabled":!0,"input-id":`template-field-${e.templateField.order}-order`,"input-name":`template-field-${e.templateField.order}-order`,"input-type":"number","label-text":"Order"},on:{input:e.updateTemplateField},model:{value:e.editableTemplateField.order,callback:function(i){e.$set(e.editableTemplateField,"order",i)},expression:"editableTemplateField.order"}})],1),t("div",{staticClass:"flex flex-col md:flex-row md:space-x-4"},[t("input-group",{staticClass:"flex-1 mt-4",attrs:{"error-message":e.getErrorMessage("name"),"input-id":`template-field-${e.templateField.order}-name`,"input-name":`template-field-${e.templateField.order}-name`,"input-required":!0,"input-type":"text","label-text":"Field Name"},on:{errorHidden:function(i){return e.clearErrorMessage("name")},input:e.onNameInput},model:{value:e.editableTemplateField.name,callback:function(i){e.$set(e.editableTemplateField,"name",i)},expression:"editableTemplateField.name"}}),t("input-group",{staticClass:"flex-1 mt-4",attrs:{"error-message":e.getErrorMessage("slug"),"input-id":`template-field-${e.templateField.order}-slug`,"input-name":`template-field-${e.templateField.order}-slug`,"input-required":!0,"input-type":"text","label-text":"Field Slug"},on:{blur:e.onSlugBlur,errorHidden:function(i){return e.clearErrorMessage("slug")},input:e.onSlugInput},model:{value:e.editableTemplateField.slug,callback:function(i){e.$set(e.editableTemplateField,"slug",i)},expression:"editableTemplateField.slug"}})],1),t("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getErrorMessage("description"),"input-id":`template-field-${e.templateField.order}-description`,"input-name":`template-field-${e.templateField.order}-description`,"input-type":"text","label-text":"Description"},on:{errorHidden:function(i){return e.clearErrorMessage("description")},input:e.updateTemplateField},model:{value:e.editableTemplateField.description,callback:function(i){e.$set(e.editableTemplateField,"description",i)},expression:"editableTemplateField.description"}}),t("checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getErrorMessage("is_required"),"input-id":`template-field-${e.templateField.order}-is_required`,"input-name":`template-field-${e.templateField.order}-is_required`,"label-text":"Required?"},on:{errorHidden:function(i){return e.clearErrorMessage("is_required")},input:e.updateTemplateField},model:{value:e.editableTemplateField.is_required,callback:function(i){e.$set(e.editableTemplateField,"is_required",i)},expression:"editableTemplateField.is_required"}}),e.settingsComponent?t(e.settingsComponent,{tag:"component",attrs:{"default-settings":e.defaultFieldSettings,"template-field":e.editableTemplateField},on:{input:e.updateTemplateField},model:{value:e.editableTemplateField.settings,callback:function(i){e.$set(e.editableTemplateField,"settings",i)},expression:"editableTemplateField.settings"}},[t("p",{staticClass:"font-semibold mt-6 text-theme-base-subtle-contrast"},[e._v(" Settings ")])]):e._e()],1)},K=[],N=s(R,j,K,!1,null,null,null,null);const L=N.exports;const P={name:"TemplateFieldEditor",components:{draggable:u,TemplateField:L},model:{prop:"templateFields"},props:{isEditing:{default:!1,type:Boolean},isViewOnly:{default:!1,type:Boolean},templateFieldSettings:{required:!0,type:Object},templateFieldTypes:{required:!0,type:Object},templateFields:{required:!0,type:Array}},data(){return{editableTemplateFields:[],isAutofocusDisabled:!1,isDragging:!1}},created(){this.isEditing&&(this.isAutofocusDisabled=!0),this.editableTemplateFields=a.cloneDeep(this.templateFields)},methods:{addTemplateField(){this.isAutofocusDisabled=!1,this.editableTemplateFields.push({description:"",is_required:!1,name:"",order:this.templateFields.length,settings:{},slug:"",type:""}),this.updateTemplateFields()},deleteTemplateField(l){try{this.editableTemplateFields.splice(l,1),this.reorderTemplateFields()}catch(e){this.$errorToast("Failed to delete field"),console.log(e)}},getTemplateFieldTypesKeys(){try{return Object.keys(this.templateFieldTypes)}catch{return[]}},onDraggableEnd(){this.isDragging=!1,this.reorderTemplateFields()},onDraggableSort(){this.$page.props.errors={}},onDraggableStart(){this.isDragging=!0},onTemplateFieldsChange(l){this.editableTemplateFields=a.cloneDeep(l)},onTemplateFieldTypesChange(){try{let l=this.getTemplateFieldTypesKeys();a.forEach(this.editableTemplateFields,(e,t)=>{e.type&&l.indexOf(e.type)<0&&(this.editableTemplateFields[t].type="")}),this.updateTemplateFields()}catch(l){console.log(l)}},reorderTemplateFields(){try{if(!this.editableTemplateFields.length){this.updateTemplateFields();return}this.editableTemplateFields.forEach((l,e)=>{this.editableTemplateFields[e].order=e}),this.updateTemplateFields()}catch(l){throw"Failed to reorder fields: "+l}},updateTemplateFields(){this.$emit("input",a.cloneDeep(this.editableTemplateFields))}},watch:{templateFields:{handler:"onTemplateFieldsChange"},templateFieldTypes:{handler:"onTemplateFieldTypesChange",deep:!0}}};var B=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-row items-center"},[t("span",{staticClass:"text-lg"},[e._v("Template Fields")]),t("button",{staticClass:"button button-primary-subtle button-small ml-auto text-sm",attrs:{type:"button"},on:{click:e.addTemplateField}},[e._v(" Add Field ")])]),e.editableTemplateFields.length?[t("draggable",{staticClass:"mt-6",attrs:{animation:200,disabled:e.isViewOnly,"ghost-class":"ghost",handle:".draggable-handle"},on:{end:e.onDraggableEnd,sort:e.onDraggableSort,start:e.onDraggableStart},model:{value:e.editableTemplateFields,callback:function(i){e.editableTemplateFields=i},expression:"editableTemplateFields"}},[t("transition-group",{attrs:{name:e.isDragging?null:"flip-field",type:"transition"}},e._l(e.editableTemplateFields,function(i,r){return t("article",{key:`template-field-${r}`,staticClass:"border-2 border-theme-base-subtle mt-4 overflow-hidden rounded"},[t("header",{staticClass:"draggable-handle bg-theme-base-subtle cursor-move flex flex-row items-center px-4 py-3"},[t("icon-grid-dots",{staticClass:"w-5"}),t("span",{staticClass:"flex-1 pl-4"},[i.name&&i.name.length?[e._v(" "+e._s(i.name)+" ")]:[e._v(" New Template Field ")]],2)],1),t("p",{staticClass:"p-4"},[t("template-field",{attrs:{"is-autofocus-disabled":e.isAutofocusDisabled,"template-field-types":e.templateFieldTypes,"template-field-settings":e.templateFieldSettings},on:{input:e.updateTemplateFields},model:{value:e.editableTemplateFields[r],callback:function(p){e.$set(e.editableTemplateFields,r,p)},expression:"editableTemplateFields[index]"}})],1),t("footer",{staticClass:"flex flex-row items-center px-4 py-3"},[t("button",{staticClass:"button button-small bg-transparent border border-theme-base-subtle-contrast flex flex-row items-center ml-auto text-sm text-theme-base-subtle-contrast hover:bg-theme-danger-contrast hover:text-theme-danger hover:border-theme-danger-contrast",attrs:{type:"button"},on:{click:function(p){return e.deleteTemplateField(r)}}},[t("icon-trash",{staticClass:"h-4 w-4"}),t("span",{staticClass:"pl-2"},[e._v("Delete")])],1)])])}),0)],1),t("div",{staticClass:"flex flex-row items-center mt-6"},[t("button",{staticClass:"button button-primary-subtle button-small ml-auto text-sm",attrs:{type:"button"},on:{click:e.addTemplateField}},[e._v(" Add Field ")])])]:t("p",{staticClass:"bg-theme-base-subtle mt-6 px-4 py-3 rounded text-center text-theme-base-subtle-contrast"},[e._v(" No template fields ")])],2)},I=[],U=s(P,B,I,!1,null,"0449cc70",null,null);const W=U.exports;export{W as T}; diff --git a/public/build/assets/TemplateFieldEditor.d4d3e141.css b/public/build/assets/TemplateFieldEditor.d4d3e141.css new file mode 100644 index 00000000..56eabff4 --- /dev/null +++ b/public/build/assets/TemplateFieldEditor.d4d3e141.css @@ -0,0 +1 @@ +.ghost[data-v-0449cc70]{opacity:.35}.flip-field-move[data-v-0449cc70]{transition:transform .5s}.no-move[data-v-0449cc70]{transition:transform 0s} diff --git a/public/build/assets/UrlEditor.6a278f5e.js b/public/build/assets/UrlEditor.6a278f5e.js new file mode 100644 index 00000000..a052637a --- /dev/null +++ b/public/build/assets/UrlEditor.6a278f5e.js @@ -0,0 +1 @@ +import{_ as l,s}from"./vendor.21c2b6f5.js";import{I as n}from"./InputGroup.513e0dd4.js";import{n as o}from"./LogoLight.f7426689.js";import{D as u}from"./DateTimePickerGroup.36fef719.js";import{I as c}from"./InlineCheckboxGroup.b3aa2b58.js";const p={name:"MetadataEditor",components:{InputGroup:n},model:{prop:"metadata"},props:{metadata:{required:!0,type:Object|null}},data(){return{editableMetadata:{canonical:"",description:"",keywords:"",title:"",og_description:"",og_image:"",og_title:"",og_type:"",og_url:""},tab_key_meta:"meta",tab_key_open_graph:"og",tab_selected:"meta"}},created(){try{this.metadata&&Object.keys(this.metadata).length&&(this.editableMetadata=l.cloneDeep(this.metadata))}catch{return}},methods:{getTabClass(r){let e="border-b-2 border-white pb-1 text-lg focus:outline-none ";return this.tab_selected===r?e+="text-theme-primary focus:border-theme-primary hover:border-theme-primary":e+="text-theme-base-subtle-contrast focus:border-theme-base-subtle-contrast hover:border-theme-base-subtle-contrast",e},onEditableMetadataUpdate:l.debounce(function(){this.$emit("input",this.editableMetadata)},100),onOgImageFileManagerFileSelected(r){try{this.editableMetadata.og_image=r.url}catch(e){this.$errorToast(e)}},openOgImageFileManagerModal(){this.$store.commit("openFileManagerModel",this.onOgImageFileManagerFileSelected)},selectTab(r){this.tab_selected=r}},watch:{editableMetadata:{deep:!0,handler:"onEditableMetadataUpdate"}}};var m=function(){var e=this,a=e._self._c;return a("div",[a("div",{staticClass:"flex flex-row space-x-4"},[a("button",{class:e.getTabClass(e.tab_key_meta),attrs:{type:"button"},on:{click:function(t){return e.selectTab(e.tab_key_meta)}}},[e._v(" Metadata ")]),a("button",{class:e.getTabClass(e.tab_key_open_graph),attrs:{type:"button"},on:{click:function(t){return e.selectTab(e.tab_key_open_graph)}}},[e._v(" Open Graph Data ")])]),a("transition",{attrs:{name:"slide-left",mode:"out-in"}},[e.tab_selected===e.tab_key_meta?a("div",{key:"tab_key_meta",staticClass:"overflow-hidden"},[a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.title"),"input-id":"metadata_title","input-name":"metadata_title","input-type":"text","label-text":"Title"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.title")}},model:{value:e.editableMetadata.title,callback:function(t){e.$set(e.editableMetadata,"title",t)},expression:"editableMetadata.title"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.description"),"input-id":"metadata_description","input-name":"metadata_description","input-type":"text","label-text":"Meta Description"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.description")}},model:{value:e.editableMetadata.description,callback:function(t){e.$set(e.editableMetadata,"description",t)},expression:"editableMetadata.description"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.keywords"),"input-id":"metadata_keywords","input-name":"metadata_keywords","input-type":"text","label-text":"Meta Keywords"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.keywords")}},model:{value:e.editableMetadata.keywords,callback:function(t){e.$set(e.editableMetadata,"keywords",t)},expression:"editableMetadata.keywords"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.canonical"),"input-id":"metadata_canonical","input-name":"metadata_canonical","input-type":"text","label-text":"Canonical"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.canonical")}},model:{value:e.editableMetadata.canonical,callback:function(t){e.$set(e.editableMetadata,"canonical",t)},expression:"editableMetadata.canonical"}})],1):e._e(),e.tab_selected===e.tab_key_open_graph?a("div",{key:"tab_key_open_graph",staticClass:"overflow-hidden"},[a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.og_title"),"input-id":"metadata_og_title","input-name":"metadata_og_title","input-type":"text","label-text":"OG Title"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.og_title")}},model:{value:e.editableMetadata.og_title,callback:function(t){e.$set(e.editableMetadata,"og_title",t)},expression:"editableMetadata.og_title"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.og_description"),"input-id":"metadata_og_description","input-name":"metadata_og_description","input-type":"text","label-text":"OG Description"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.og_description")}},model:{value:e.editableMetadata.og_description,callback:function(t){e.$set(e.editableMetadata,"og_description",t)},expression:"editableMetadata.og_description"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.og_type"),"input-id":"metadata_og_type","input-name":"metadata_og_type","input-type":"text","label-text":"OG Type"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.og_type")}},model:{value:e.editableMetadata.og_type,callback:function(t){e.$set(e.editableMetadata,"og_type",t)},expression:"editableMetadata.og_type"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.og_url"),"input-id":"metadata_og_url","input-name":"metadata_og_url","input-type":"text","label-text":"OG URL"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.og_url")}},model:{value:e.editableMetadata.og_url,callback:function(t){e.$set(e.editableMetadata,"og_url",t)},expression:"editableMetadata.og_url"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("metadata.og_image"),"input-class":"border border-theme-base-subtle font-medium px-3 py-2 rounded-l w-full focus:border-theme-primary focus:outline-none focus:ring-0","input-id":"metadata_og_image","input-name":"metadata_og_image","input-type":"text","input-wrapper-class":"flex flex-row items-center","label-text":"OG Image"},on:{errorHidden:function(t){return e.clearPageErrorMessage("metadata.og_image")}},scopedSlots:e._u([{key:"inputAppend",fn:function(){return[a("button",{staticClass:"border border-l-0 border-theme-primary-subtle button button-primary-subtle rounded-l-none",attrs:{type:"button"},on:{click:e.openOgImageFileManagerModal}},[e._v(" Browse... ")])]},proxy:!0}],null,!1,4230810879),model:{value:e.editableMetadata.og_image,callback:function(t){e.$set(e.editableMetadata,"og_image",t)},expression:"editableMetadata.og_image"}})],1):e._e()])],1)},g=[],b=o(p,m,g,!1,null,null,null,null);const C=b.exports;let d=axios.CancelToken,i=d.source();const _={name:"UrlEditor",components:{DateTimePickerGroup:u,InlineCheckboxGroup:c,InputGroup:n},model:{prop:"urlData"},props:{computedUrl:{default:"",type:String},parentUrl:{default:null,type:String|null},urlData:{required:!0,type:Object|null}},data(){return{autoUpdateUrl:!0,editableUrlData:{expired_at:null,is_enabled:!1,published_at:null,url_main:""},isUrlChecked:!1,isUrlCheckLoading:!1,isUrlAvailable:!1,urlInput:""}},computed:{urlFull(){let r="";return this.parentUrl&&this.parentUrl.length&&(r+=this.parentUrl),r+=this.urlInputSlugified,r.split("//").join("/")},urlInputSlugified(){if(!this.urlInput)return"/";let r=this.urlInput;return r.trim(),r.length?(r=s(r,{lower:!0}),r.indexOf("/")!==0&&(r="/"+r),r):"/"}},created(){var r;try{this.urlData&&Object.keys(this.urlData).length&&(this.editableUrlData=l.cloneDeep(this.urlData),this.urlInput=(r=this.editableUrlData.url_main)!=null?r:""),this.urlInput&&this.urlInput!==""&&(this.autoUpdateUrl=!1)}catch{return}},methods:{cancelUrlCheck(){this.isUrlCheckLoading&&(i.cancel("URL check cancelled"),i=d.source())},checkUrlIsAvailable:l.debounce(function(){if(this.isUrlChecked=!1,this.cancelUrlCheck(),this.isUrlChecked=!1,this.isUrlAvailable=!1,!this.urlInput.length)return;this.isUrlCheckLoading=!0;let r={url:this.urlFull,url_id:this.urlData.id?this.urlData.id:null};axios.get(this.$route("admin.api.cms.urls.available"),{params:r,cancelToken:i.token}).then(e=>{this.isUrlCheckLoading=!1,this.isUrlChecked=!0,this.isUrlAvailable=e.data}).catch(e=>{axios.isCancel(e)||(this.isUrlCheckLoading=!1,this.$errorToast("Failed to check URL availability"))})},500),onComputedUrlUpdate(){!this.autoUpdateUrl||this.updateUrl(this.computedUrl)},onEditableUrlUpdate:l.debounce(function(){this.$emit("input",this.editableUrlData)},100),onIsUrlAvailableUpdate(){this.$emit("isAvailable",this.isUrlAvailable)},onUrlInputInput(){this.autoUpdateUrl=!1,this.isUrlChecked=!1},onUrlInputUpdate:l.debounce(function(){!this.urlInput.length||this.updateUrl(this.urlInput)},100),updateUrl(r){let e=r,a=e.charAt(0)==="/";e=s(e),a&&(e="/"+e),this.urlInput!==e&&(this.urlInput=e,this.isUrlChecked=!1),this.$set(this.editableUrlData,"url_main",e),this.checkUrlIsAvailable()}},watch:{computedUrl:{handler:"onComputedUrlUpdate"},editableUrlData:{deep:!0,handler:"onEditableUrlUpdate"},isUrlAvailable:{handler:"onIsUrlAvailableUpdate"},urlFull:{handler:"checkUrlIsAvailable"},urlInput:{handler:"onUrlInputUpdate"}}};var h=function(){var e=this,a=e._self._c;return a("div",[a("input-group",{attrs:{"error-message":e.getPageErrorMessage("url.url_main"),"input-id":"url_input","input-name":"url_input","input-required":!0,"input-type":"text","label-text":"URL"},on:{errorHidden:function(t){return e.clearPageErrorMessage("url.url_main")},input:e.onUrlInputInput},model:{value:e.urlInput,callback:function(t){e.urlInput=t},expression:"urlInput"}}),a("input-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("url.url_full"),"input-disabled":!0,"input-id":"url_full","input-name":"url_full","input-type":"text","label-text":"Formatted URL"},on:{errorHidden:function(t){return e.clearPageErrorMessage("url.url_full")}},model:{value:e.urlFull,callback:function(t){e.urlFull=t},expression:"urlFull"}},[a("span",{staticClass:"flex flex-row items-center"},[a("span",{staticClass:"flex flex-row items-baseline"},[e._v(" Formatted URL "),a("sup",{staticClass:"text-theme-danger-contrast"},[e._v("*")])]),e.isUrlCheckLoading?a("icon-loader-circle",{staticClass:"animate-spin-slow h-4 ml-3 text-theme-base-subtle-contrast w-4"}):e.isUrlChecked&&this.urlInput.length?a("span",{staticClass:"flex flex-row font-normal items-center ml-3",class:{"text-theme-success-contrast":e.isUrlAvailable,"text-theme-danger-contrast":!e.isUrlAvailable}},[e.isUrlAvailable?[a("icon-check",{staticClass:"h-4 mr-1 w-4"}),a("span",[e._v("URL is available")])]:e.isUrlAvailable?e._e():[a("icon-x",{staticClass:"h-4 mr-1 w-4"}),a("span",[e._v("URL is unavailable")])]],2):e._e()],1)]),a("div",{staticClass:"bg-theme-base-subtle h-px my-6"}),a("inline-checkbox-group",{staticClass:"mt-4",attrs:{"error-message":e.getPageErrorMessage("url.is_enabled"),"input-id":"url_is_enabled","input-name":"url_is_enabled","label-text":"Enabled?"},on:{errorHidden:function(t){return e.clearPageErrorMessage("url.is_enabled")}},model:{value:e.editableUrlData.is_enabled,callback:function(t){e.$set(e.editableUrlData,"is_enabled",t)},expression:"editableUrlData.is_enabled"}}),a("div",{staticClass:"flex flex-col md:flex-row md:mt-2 md:space-x-4"},[a("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("url.published_at"),"input-id":"url_published_at","input-name":"url_published_at","label-text":"Publish Date"},on:{errorHidden:function(t){return e.clearPageErrorMessage("url.published_at")}},model:{value:e.editableUrlData.published_at,callback:function(t){e.$set(e.editableUrlData,"published_at",t)},expression:"editableUrlData.published_at"}}),a("date-time-picker-group",{staticClass:"mt-4 md:flex-1",attrs:{"error-message":e.getPageErrorMessage("url.expired_at"),"input-id":"url_expired_at","input-name":"url_expired_at","label-text":"Expiry Date"},on:{errorHidden:function(t){return e.clearPageErrorMessage("url.expired_at")}},model:{value:e.editableUrlData.expired_at,callback:function(t){e.$set(e.editableUrlData,"expired_at",t)},expression:"editableUrlData.expired_at"}})],1)],1)},f=[],U=o(_,h,f,!1,null,null,null,null);const $=U.exports;export{C as M,$ as U}; diff --git a/public/build/assets/Verify.95e566d7.js b/public/build/assets/Verify.95e566d7.js new file mode 100644 index 00000000..257c9a85 --- /dev/null +++ b/public/build/assets/Verify.95e566d7.js @@ -0,0 +1 @@ +import{n as r}from"./LogoLight.f7426689.js";import"./vendor.21c2b6f5.js";const a={name:"AuthVerify",layout:"auth-layout",props:{resent:{default:!1,type:Boolean}}};var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"auth-card-container"},[e("div",{staticClass:"auth-card pb-8"},[e("h1",{staticClass:"auth-header"},[t._v(" Verify Your Email Address ")]),t.resent?e("p",{staticClass:"pb-8 px-6 text-center text-green-700"},[t._v(" A fresh verification link has been sent to your email address. ")]):t._e(),e("p",{staticClass:"mb-4 px-6 text-center"},[t._v(" Before proceeding, please check your email for a verification link. ")]),e("p",{staticClass:"px-6 text-center"},[t._v(" If you did not receive the email "),e("br"),e("inertia-link",{staticClass:"cursor-pointer text-theme-primary hover:underline",attrs:{as:"button",href:t.$route("verification.resend"),method:"post"}},[t._v(" click here to request another ")])],1)]),e("div",{staticClass:"flex justify-end mt-4"},[e("inertia-link",{staticClass:"text-gray-300 text-sm tracking-wide hover:text-theme-base-subtle-contrast",attrs:{as:"button",href:t.$route("logout"),method:"post"}},[t._v(" Logout ")])],1)])},i=[],n=r(a,s,i,!1,null,null,null,null);const u=n.exports;export{u as default}; diff --git a/public/build/assets/app.7909fd0b.css b/public/build/assets/app.7909fd0b.css new file mode 100644 index 00000000..8c8ef4ac --- /dev/null +++ b/public/build/assets/app.7909fd0b.css @@ -0,0 +1,2 @@ +@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--color-base: #fff;--color-base-contrast: #000;--color-base-subtle: #e4e4e7;--color-base-subtle-contrast: #71717a;--color-card: #fff;--color-card-contrast: #000;--color-danger: #fee2e2;--color-danger-contrast: #ef4444;--color-danger-hover: #fecaca;--color-danger-hover-contrast: #dc2626;--color-info: #fef3c7;--color-info-contrast: #f59e0b;--color-info-hover: #fde68a;--color-info-hover-contrast: #d97706;--color-primary: #000;--color-primary-contrast: #fff;--color-primary-hover: #27272a;--color-primary-hover-contrast: #fff;--color-primary-subtle: #f4f4f5;--color-primary-subtle-contrast: #52525b;--color-primary-subtle-hover: #e4e4e7;--color-primary-subtle-hover-contrast: #52525b;--color-secondary: #52525b;--color-secondary-contrast: #fff;--color-secondary-hover: #27272a;--color-secondary-hover-contrast: #fff;--color-accent: #4f46e5;--color-accent-contrast: #fff;--color-accent-hover: #3730a3;--color-accent-hover-contrast: #fff;--color-success: #d1fae5;--color-success-contrast: #10b981;--color-success-hover: #a7f3d0;--color-success-hover-contrast: #059669;--color-warning: #ffedd5;--color-warning-contrast: #f97316;--color-warning-hover: #fed7aa;--color-warning-hover-contrast: #ea580c;--dropdown-color-base: #fff;--dropdown-color-base-contrast: var(--color-base-contrast);--dropdown-color-hover: var(--color-primary-subtle);--dropdown-color-hover-contrast: var(--color-primary-subtle-contrast);--dropdown-color-separator: #e4e4e7;--dropdown-color-subheading: #fff;--dropdown-color-subheading-contrast: #d4d4d8;--side-menu-color-active: #000;--side-menu-color-active-contrast: #fff;--side-menu-color-base: #fff;--side-menu-color-base-contrast: #52525b;--side-menu-color-hover: #000;--side-menu-color-hover-contrast: #fff;--side-menu-color-logo: #000;--side-menu-color-logo-active: var(--color-primary);--side-menu-color-separator: #e4e4e7;--side-menu-color-sub-menu-active: #fff;--side-menu-color-sub-menu-active-contrast: var(--color-primary);--side-menu-color-sub-menu-base: #fff;--side-menu-color-sub-menu-base-contrast: #52525b;--side-menu-color-sub-menu-hover: #fff;--side-menu-color-sub-menu-hover-contrast: var(--color-primary);--side-menu-color-subheading: #a1a1aa;--side-menu-color-toggle: var(--color-base-contrast);--side-menu-color-toggle-active: var(--color-primary);--top-menu-color-base: #fff;--top-menu-color-base-contrast: var(--color-base-contrast);--top-menu-color-hover: #fff;--top-menu-color-hover-contrast: var(--color-primary);--nprogress-color: #000;--datepicker-color-primary: var(--color-primary);--pagination-color-active: var(--color-primary);--pagination-color-active-border: var(--color-primary);--pagination-color-active-contrast: var(--color-primary-contrast);--pagination-color-base: #fff;--pagination-color-base-border: #fff;--pagination-color-base-contrast: var(--color-base-subtle-contrast);--pagination-color-hover: var(--color-primary-subtle);--pagination-color-hover-border: var(--color-primary-subtle);--pagination-color-hover-contrast: var(--color-primary-subtle-contrast);--table-color-alt-body: #f4f4f5;--table-color-alt-body-contrast: var(--color-base-contrast);--table-color-body: none;--table-color-body-border: #e4e4e7;--table-color-body-contrast: var(--color-base-contrast);--table-color-body-hover: #e4e4e7;--table-color-body-hover-contrast: var(--color-base-contrast);--table-color-header: #f4f4f5;--table-color-header-border: #e4e4e7;--table-color-header-contrast: #52525b;--table-padding-body-x: 1.5rem;--table-padding-body-x-slim: .75rem;--table-padding-body-y: .25rem;--table-padding-header-x: 1.5rem;--table-padding-header-x-slim: .75rem;--table-padding-header-y: .375rem;--selection-color: #000;--selection-color-contrast: #fff;--ring-color-primary: rgba(255, 130, 246, var(--tw-ring-opacity))}/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com + *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:Poppins,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#94a3b8}input::placeholder,textarea::placeholder{opacity:1;color:#94a3b8}button,[role=button]{cursor:pointer}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(226,232,240,var(--tw-border-opacity))}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=search],[type=time],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#64748b;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=search]:focus,[type=time]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;color-adjust:unset}[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#64748b;border-width:1px}[type=checkbox]{border-radius:0}[type=checkbox]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[type=checkbox]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}.html-base{background-color:var(--color-base);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";color:var(--color-base-contrast)}::selection{background:var(--selection-color);color:var(--selection-color-contrast)}::-moz-selection{background:var(--selection-color);color:var(--selection-color-contrast)}:disabled{cursor:not-allowed;opacity:.5}.mobile-nav-scroll-lock{overflow:hidden}@media (min-width: 768px){.mobile-nav-scroll-lock{overflow:auto}}#admin-layout{--color-base: #e4e4e7}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:#334155;max-width:65ch}.prose [class~=lead]{color:#475569;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose a{color:#0f172a;text-decoration:underline;font-weight:500}.prose strong{color:#0f172a;font-weight:600}.prose ol[type=A]{--list-counter-style: upper-alpha}.prose ol[type=a]{--list-counter-style: lower-alpha}.prose ol[type=A s]{--list-counter-style: upper-alpha}.prose ol[type=a s]{--list-counter-style: lower-alpha}.prose ol[type=I]{--list-counter-style: upper-roman}.prose ol[type=i]{--list-counter-style: lower-roman}.prose ol[type=I s]{--list-counter-style: upper-roman}.prose ol[type=i s]{--list-counter-style: lower-roman}.prose ol[type="1"]{--list-counter-style: decimal}.prose ol>li{position:relative;padding-left:1.75em}.prose ol>li:before{content:counter(list-item,var(--list-counter-style, decimal)) ".";position:absolute;font-weight:400;color:#64748b;left:0}.prose ul>li{position:relative;padding-left:1.75em}.prose ul>li:before{content:"";position:absolute;background-color:#cbd5e1;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.prose hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose blockquote{font-weight:500;font-style:italic;color:#0f172a;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201c""\201d""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose blockquote p:first-of-type:before{content:open-quote}.prose blockquote p:last-of-type:after{content:close-quote}.prose h1{color:#0f172a;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose h2{color:#0f172a;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose h3{color:#0f172a;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose h4{color:#0f172a;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose figure figcaption{color:#64748b;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose code{color:#0f172a;font-weight:600;font-size:.875em}.prose code:before{content:"`"}.prose code:after{content:"`"}.prose a code{color:#0f172a}.prose pre{color:#e2e8f0;background-color:#1e293b;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose pre code:before{content:none}.prose pre code:after{content:none}.prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose thead{color:#0f172a;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e1}.prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.prose tbody tr:last-child{border-bottom-width:0}.prose tbody td{vertical-align:top;padding:.5714286em}.prose{font-size:1rem;line-height:1.75}.prose p{margin-top:1.25em;margin-bottom:1.25em}.prose img{margin-top:2em;margin-bottom:2em}.prose video{margin-top:2em;margin-bottom:2em}.prose figure{margin-top:2em;margin-bottom:2em}.prose figure>*{margin-top:0;margin-bottom:0}.prose h2 code{font-size:.875em}.prose h3 code{font-size:.9em}.prose ol,.prose ul{margin-top:1.25em;margin-bottom:1.25em}.prose li{margin-top:.5em;margin-bottom:.5em}.prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.prose>ul>li>*:first-child{margin-top:1.25em}.prose>ul>li>*:last-child{margin-bottom:1.25em}.prose>ol>li>*:first-child{margin-top:1.25em}.prose>ol>li>*:last-child{margin-bottom:1.25em}.prose ul ul,.prose ul ol,.prose ol ul,.prose ol ol{margin-top:.75em;margin-bottom:.75em}.prose hr+*{margin-top:0}.prose h2+*{margin-top:0}.prose h3+*{margin-top:0}.prose h4+*{margin-top:0}.prose thead th:first-child{padding-left:0}.prose thead th:last-child{padding-right:0}.prose tbody td:first-child{padding-left:0}.prose tbody td:last-child{padding-right:0}.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}#nprogress{pointer-events:none}#nprogress .bar{background:var(--nprogress-color);position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px var(--nprogress-color),0 0 5px var(--nprogress-color);opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:var(--nprogress-color);border-left-color:var(--nprogress-color);border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.transition-default{transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.slide-down-enter-active{transition:transform .3s ease}.slide-down-leave-active{transition:transform .2s ease}.slide-down-enter,.slide-down-leave-to{transform:translateY(-100%)}.slide-down-fade-enter-active{transition:opacity .3s ease,transform .3s ease}.slide-down-fade-leave-active{transition:opacity .2s ease,transform .2s ease}.slide-down-fade-enter,.slide-down-fade-leave-to{opacity:0;margin-top:0;transform:translateY(-100%)}.slide-left-enter-active{transition:transform .3s ease}.slide-left-leave-active{transition:transform .2s ease}.slide-left-enter,.slide-left-leave-to{transform:translate(-100%)}.slide-right-enter-active{transition:transform .3s ease}.slide-right-leave-active{transition:transform .2s ease}.slide-right-enter,.slide-right-leave-to{transform:translate(100%)}.slide-up-enter-active{transition:transform .3s ease}.slide-up-leave-active{transition:transform .2s ease}.slide-up-enter,.slide-up-leave-to{transform:translateY(100%)}.slide-left-multiple-enter-active,.slide-left-multiple-leave-active{transition:transform .3s ease}.slide-left-multiple-enter,.slide-left-multiple-leave-to{transform:translate(-150%)}.button{border-radius:.25rem;padding:.5rem 1rem;transition-property:background-color,border-color,color,fill,stroke;transition-duration:.15s;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.button:not(:disabled){cursor:pointer}.button:not(.outline-override):focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.button.button-default-responsive{padding:.25rem .5rem}@media (min-width: 768px){.button.button-default-responsive{padding:.5rem 1rem}}.button.button-small{padding:.25rem .5rem}.button.button-outline{border-width:1px;--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.button.button-outline:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-contrast)}.button.button-primary:not(.button-outline){background-color:var(--color-primary);color:var(--color-primary-contrast)}.button.button-primary:not(.button-outline):hover{background-color:var(--color-primary-hover);color:var(--color-primary-hover-contrast)}.button.button-primary.button-outline{border-color:var(--color-primary);color:var(--color-primary)}.button.button-primary.button-outline:hover{background-color:var(--color-primary);color:var(--color-primary-contrast)}.button.button-primary-subtle{background-color:var(--color-primary-subtle);color:var(--color-primary-subtle-contrast)}.button.button-primary-subtle:hover{background-color:var(--color-primary-subtle-hover);color:var(--color-primary-subtle-hover-contrast)}input[type=checkbox].form-control{margin-top:.5rem;height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.25rem;color:var(--color-primary)}input[type=checkbox].form-control:focus{outline:2px solid transparent;outline-offset:2px}input[type=checkbox].form-control:not(.color-override){color:var(--color-primary)}input[type=checkbox].form-control:not(.color-override):focus{border-color:var(--color-primary);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary)}input[type=checkbox].form-control.error{border-color:var(--color-danger-contrast)}input[type=email].form-control,input[type=number].form-control,input[type=password].form-control,input[type=search].form-control,input[type=tel].form-control,input[type=text].form-control,input[type=url].form-control,select.form-control{width:100%;border-radius:.25rem;border-width:1px;border-color:var(--color-base-subtle);padding:.5rem .75rem;font-weight:500}input[type=email].form-control:focus,input[type=number].form-control:focus,input[type=password].form-control:focus,input[type=search].form-control:focus,input[type=tel].form-control:focus,input[type=text].form-control:focus,input[type=url].form-control:focus,select.form-control:focus{border-color:var(--color-primary);outline:2px solid transparent;outline-offset:2px}input[type=email].form-control.form-control-short,input[type=number].form-control.form-control-short,input[type=password].form-control.form-control-short,input[type=search].form-control.form-control-short,input[type=tel].form-control.form-control-short,input[type=text].form-control.form-control-short,input[type=url].form-control.form-control-short,select.form-control.form-control-short{padding-top:.25rem;padding-bottom:.25rem}input[type=email].form-control.error,input[type=number].form-control.error,input[type=password].form-control.error,input[type=search].form-control.error,input[type=tel].form-control.error,input[type=text].form-control.error,input[type=url].form-control.error,select.form-control.error{border-color:var(--color-danger-contrast)}input[type=email].form-control.error:focus,input[type=number].form-control.error:focus,input[type=password].form-control.error:focus,input[type=search].form-control.error:focus,input[type=tel].form-control.error:focus,input[type=text].form-control.error:focus,input[type=url].form-control.error:focus,select.form-control.error:focus{border-color:var(--color-danger-contrast)}input[type=email].error,input[type=number].error,input[type=password].error,input[type=search].error,input[type=tel].error,input[type=text].error,input[type=url].error,select.error{border-color:var(--color-danger-contrast)}input[type=email].error:focus,input[type=number].error:focus,input[type=password].error:focus,input[type=search].error:focus,input[type=tel].error:focus,input[type=text].error:focus,input[type=url].error:focus,select.error:focus{border-color:var(--color-danger-contrast)}.input-group-error{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(239,68,68,var(--tw-text-opacity))}.input-group-input{width:100%;border-radius:.25rem;border-width:1px;border-color:var(--color-base-subtle)}.input-group-input:focus{border-color:var(--color-primary)}.input-group-input{padding:.5rem .75rem;font-weight:500}.input-group-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.input-group-label{margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.05em;color:var(--color-base-contrast)}.pagination{display:flex;flex-direction:row;align-items:center}.pagination .pagination-link{display:flex;height:100%;min-width:2rem;flex-direction:row;align-items:center;justify-content:center;border-radius:.25rem;border-width:1px;padding:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;background:var(--pagination-color-base);border-color:var(--pagination-color-base-border);color:var(--pagination-color-base-contrast)}.pagination .pagination-link.pagination-link-disabled,.pagination .pagination-link.pagination-link-slider{opacity:.5}.pagination .pagination-link.pagination-link-disabled{cursor:not-allowed}.pagination .pagination-link.pagination-link-enabled.pagination-link-active{cursor:default;background:var(--pagination-color-active);border-color:var(--pagination-color-active-border);color:var(--pagination-color-active-contrast)}.pagination .pagination-link.pagination-link-enabled.pagination-link-active:focus{outline:2px solid transparent;outline-offset:2px}.pagination .pagination-link.pagination-link-enabled.pagination-link-active:hover{background-color:var(--color-primary);color:var(--color-primary-contrast)}.pagination .pagination-link.pagination-link-enabled.pagination-link-inactive:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary)}.pagination .pagination-link.pagination-link-enabled.pagination-link-inactive:focus,.pagination .pagination-link.pagination-link-enabled.pagination-link-inactive:hover{background:var(--pagination-color-hover);border-color:var(--pagination-color-hover-border);color:var(--pagination-color-hover-contrast)}.pagination .pagination-link-container{height:100%}.pagination .pagination-link-container:not(:first-of-type){margin-left:.25rem}.pagination .pagination-link-container-ellipsis,.pagination .pagination-link-container-numeric{display:none}.pagination .pagination-link-container-active,.pagination .pagination-link-container-first,.pagination .pagination-link-container-last{display:block}@media (min-width: 768px){.pagination .pagination-link-container-ellipsis,.pagination .pagination-link-container-numeric{display:block}}.toasted-container.top-right{right:2rem!important;top:2rem!important}.toasted-container .toasted{border-radius:.25rem!important}.toasted-container .toasted.toasted-primary.error{background:var(--color-danger);color:var(--color-danger-contrast)}.toasted-container .toasted.toasted-primary.success{background:var(--color-success);color:var(--color-success-contrast)}.tippy-box[data-theme~=dropdown]{background-color:#fff;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d,0 -2px 6px -2px #0000000d;border-radius:10px;min-width:250px}.tippy-box[data-theme~=dropdown]:focus{outline:none}.table.table-striped tbody tr:nth-child(even){background-color:var(--table-color-alt-body);color:var(--table-color-alt-body-contrast)}.table.table-hover tbody tr:hover{background-color:var(--table-color-body-hover);color:var(--table-color-body-hover-contrast)}.table tbody td{padding:var(--table-padding-body-y) var(--table-padding-body-x)}.table tbody td.indicator-column{padding-right:0}.table tbody td.slim{padding:var(--table-padding-body-y) var(--table-padding-body-x-slim)}.table tbody tr{border-bottom-width:1px;background-color:var(--table-color-body);border-color:var(--table-color-body-border);color:var(--table-color-body-contrast)}.table thead{border-top-width:1px;border-bottom-width:1px;background-color:var(--table-color-header);border-color:var(--table-color-header-border);color:var(--table-color-header-contrast)}.table thead th{font-weight:500;padding:var(--table-padding-header-y) var(--table-padding-header-x)}.table thead th.indicator-column{padding-right:0}.table thead th.slim{padding:var(--table-padding-header-y) var(--table-padding-header-x-slim)}.table thead tr{text-align:left;font-size:.875rem;line-height:1.25rem;letter-spacing:.025em}#auth-layout{--color-primary: #18181b;--color-base: #f4f4f5}#auth-layout .auth-background-container{height:35vh}#auth-layout .auth-card{border-radius:.375rem;background-color:var(--color-base);--tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#auth-layout .auth-card-container{width:100%;max-width:28rem}#auth-layout .auth-header{padding:2rem 1.5rem 1.5rem;text-align:center;font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:.025em;color:var(--color-base-contrast)}#auth-layout .auth-input{margin-top:.5rem;width:100%;border-radius:.25rem;border-color:transparent;padding:.5rem .75rem;font-weight:500;--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#auth-layout .auth-input:focus{border-color:transparent;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary) }.dropdown-link{display:block;width:100%;padding:.25rem 1rem;text-align:left;background:var(--dropdown-color-base);color:var(--dropdown-color-base-contrast)}.dropdown-link:focus,.dropdown-link:hover{outline:none}.dropdown-link:hover{background:var(--dropdown-color-hover);color:var(--dropdown-color-hover-contrast)}.dropdown-separator{margin-top:.5rem;margin-bottom:.5rem;display:block;border-top-width:1px;border-color:var(--dropdown-color-separator)}.dropdown-subheading{padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;background:var(--dropdown-color-subheading);color:var(--dropdown-color-subheading-contrast)}#admin-layout .side-menu{position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:20;overflow-y:auto;min-height:100%;width:100%;padding-left:1rem;padding-right:1rem;padding-bottom:2rem;transition-property:transform;transition-duration:.15s;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);background:var(--side-menu-color-base)}#admin-layout .side-menu:not(.side-menu-open){transform:translate(-100%)}#admin-layout .side-menu .logo{display:flex;height:3.5rem;align-items:center;justify-content:center;font-size:1.25rem;line-height:1.75rem;font-weight:600;color:var(--side-menu-color-logo);transition:color .4s ease-in-out}#admin-layout .side-menu .logo:hover{color:var(--side-menu-color-logo-active)}@media screen and (prefers-reduced-motion: no-preference){#admin-layout .side-menu .logo:hover svg{animation:wobble 1s ease 1}}#admin-layout .side-menu .menu-link-parent.toggled .indicator{transform:rotate(90deg)}#admin-layout .side-menu .menu-link-parent .indicator{margin-left:auto;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;transform:rotate(0)}#admin-layout .side-menu .menu-section{margin-top:.25rem}#admin-layout .side-menu .menu-separator{margin:1.5rem 1rem;border-bottom-width:1px;border-color:var(--side-menu-color-separator)}#admin-layout .side-menu .menu-subheading{padding-left:1rem;padding-right:1rem;font-size:.75rem;line-height:1rem;text-transform:uppercase;letter-spacing:.1em;color:var(--side-menu-color-subheading)}#admin-layout .side-menu .menu-toggle{transition-duration:.3s;padding-top:1rem;padding-bottom:1rem;padding-right:1rem;transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:var(--side-menu-color-toggle)}#admin-layout .side-menu .menu-toggle:focus{outline:2px solid transparent;outline-offset:2px}#admin-layout .side-menu .menu-toggle:focus,#admin-layout .side-menu .menu-toggle:hover{color:var(--side-menu-color-toggle-active)}#admin-layout .side-menu .root-menu-item>.menu-link,#admin-layout .side-menu .root-menu-item>.menu-link-parent{margin-top:.25rem;display:flex;width:100%;flex-direction:row;align-items:center;border-radius:.25rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500}#admin-layout .side-menu .root-menu-item>.menu-link,#admin-layout .side-menu .root-menu-item>.menu-link-parent{transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}#admin-layout .side-menu .root-menu-item>.menu-link,#admin-layout .side-menu .root-menu-item>.menu-link-parent{background:var(--side-menu-color-base);color:var(--side-menu-color-base-contrast);transition-property:background-color,border-color,color,fill,padding,stroke}#admin-layout .side-menu .root-menu-item>.menu-link:focus,#admin-layout .side-menu .root-menu-item>.menu-link-parent:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary)}#admin-layout .side-menu .root-menu-item>.menu-link:hover,#admin-layout .side-menu .root-menu-item>.menu-link-parent:hover{background:var(--side-menu-color-hover);color:var(--side-menu-color-hover-contrast)}@media screen and (prefers-reduced-motion: no-preference){#admin-layout .side-menu .root-menu-item>.menu-link:hover,#admin-layout .side-menu .root-menu-item>.menu-link-parent:hover{padding-left:1.5rem}}#admin-layout .side-menu .root-menu-item>.menu-link.menu-link-active,#admin-layout .side-menu .root-menu-item>.menu-link.menu-link-active:hover,#admin-layout .side-menu .root-menu-item>.menu-link-parent.menu-link-active,#admin-layout .side-menu .root-menu-item>.menu-link-parent.menu-link-active:hover{background:var(--side-menu-color-active);color:var(--side-menu-color-active-contrast)}#admin-layout .side-menu .sub-menu-item>.menu-link,#admin-layout .side-menu .sub-menu-item>.menu-link-parent{margin-top:.25rem;display:flex;width:100%;flex-direction:row;align-items:center;border-radius:.25rem;padding:.25rem 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500}#admin-layout .side-menu .sub-menu-item>.menu-link,#admin-layout .side-menu .sub-menu-item>.menu-link-parent{transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}#admin-layout .side-menu .sub-menu-item>.menu-link,#admin-layout .side-menu .sub-menu-item>.menu-link-parent{background:var(--side-menu-color-sub-menu-base);color:var(--side-menu-color-sub-menu-base-contrast);transition-property:background-color,border-color,color,fill,padding,stroke}#admin-layout .side-menu .sub-menu-item>.menu-link:focus,#admin-layout .side-menu .sub-menu-item>.menu-link-parent:focus{font-weight:600;outline:2px solid transparent;outline-offset:2px}#admin-layout .side-menu .sub-menu-item>.menu-link:hover,#admin-layout .side-menu .sub-menu-item>.menu-link-parent:hover{background:var(--side-menu-color-sub-menu-hover);color:var(--side-menu-color-sub-menu-hover-contrast)}#admin-layout .side-menu .sub-menu-item>.menu-link.menu-link-active,#admin-layout .side-menu .sub-menu-item>.menu-link.menu-link-active:hover,#admin-layout .side-menu .sub-menu-item>.menu-link-parent.menu-link-active,#admin-layout .side-menu .sub-menu-item>.menu-link-parent.menu-link-active:hover{background:var(--side-menu-color-sub-menu-active);color:var(--side-menu-color-sub-menu-active-contrast)}@media screen and (prefers-reduced-motion: no-preference){#admin-layout .side-menu .sub-menu-item>.menu-link:hover,#admin-layout .side-menu .sub-menu-item>.menu-link-parent:hover{padding-left:1.5rem}}#admin-layout .side-menu .menu-item-level-3>.menu-link,#admin-layout .side-menu .menu-item-level-3>.menu-link-parent{padding-left:2.5rem}@media (min-width: 1024px){#admin-layout .side-menu{position:relative;top:auto;right:auto;bottom:auto;left:auto;width:16rem;overflow:hidden;border-right-width:1px;--tw-border-opacity: 1;border-color:rgba(226,232,240,var(--tw-border-opacity));padding-left:.5rem;padding-right:.5rem;padding-bottom:.5rem}#admin-layout .side-menu:not(.side-menu-open){transform:translate(0)}}@keyframes wobble{0%,to{transform:translate(0);transform-origin:50% 50%}15%{transform:translate(-2px) rotate(-10deg)}30%{transform:translate(1px) rotate(10deg)}45%{transform:translate(-1px) rotate(calc(-10deg / 1.8))}60%{transform:translate(calc(2px / 3.3)) rotate(calc(10deg / 3))}75%{transform:translate(calc(-2px / 5.5)) rotate(-2deg)}}.mce-content-body{color:#334155;max-width:65ch}.mce-content-body [class~=lead]{color:#475569;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.mce-content-body a{color:#0f172a;text-decoration:underline;font-weight:500}.mce-content-body strong{color:#0f172a;font-weight:600}.mce-content-body ol[type=A]{--list-counter-style: upper-alpha}.mce-content-body ol[type=a]{--list-counter-style: lower-alpha}.mce-content-body ol[type=A s]{--list-counter-style: upper-alpha}.mce-content-body ol[type=a s]{--list-counter-style: lower-alpha}.mce-content-body ol[type=I]{--list-counter-style: upper-roman}.mce-content-body ol[type=i]{--list-counter-style: lower-roman}.mce-content-body ol[type=I s]{--list-counter-style: upper-roman}.mce-content-body ol[type=i s]{--list-counter-style: lower-roman}.mce-content-body ol[type="1"]{--list-counter-style: decimal}.mce-content-body ol>li{position:relative;padding-left:1.75em}.mce-content-body ol>li:before{content:counter(list-item,var(--list-counter-style, decimal)) ".";position:absolute;font-weight:400;color:#64748b;left:0}.mce-content-body ul>li{position:relative;padding-left:1.75em}.mce-content-body ul>li:before{content:"";position:absolute;background-color:#cbd5e1;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.mce-content-body hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.mce-content-body blockquote{font-weight:500;font-style:italic;color:#0f172a;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201c""\201d""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.mce-content-body blockquote p:first-of-type:before{content:open-quote}.mce-content-body blockquote p:last-of-type:after{content:close-quote}.mce-content-body h1{color:#0f172a;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.mce-content-body h2{color:#0f172a;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.mce-content-body h3{color:#0f172a;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.mce-content-body h4{color:#0f172a;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.mce-content-body figure figcaption{color:#64748b;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.mce-content-body code{color:#0f172a;font-weight:600;font-size:.875em}.mce-content-body code:before{content:"`"}.mce-content-body code:after{content:"`"}.mce-content-body a code{color:#0f172a}.mce-content-body pre{color:#e2e8f0;background-color:#1e293b;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.mce-content-body pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.mce-content-body pre code:before{content:none}.mce-content-body pre code:after{content:none}.mce-content-body table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.mce-content-body thead{color:#0f172a;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e1}.mce-content-body thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.mce-content-body tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.mce-content-body tbody tr:last-child{border-bottom-width:0}.mce-content-body tbody td{vertical-align:top;padding:.5714286em}.mce-content-body{font-size:1rem;line-height:1.75}.mce-content-body p{margin-top:1.25em;margin-bottom:1.25em}.mce-content-body img{margin-top:2em;margin-bottom:2em}.mce-content-body video{margin-top:2em;margin-bottom:2em}.mce-content-body figure{margin-top:2em;margin-bottom:2em}.mce-content-body figure>*{margin-top:0;margin-bottom:0}.mce-content-body h2 code{font-size:.875em}.mce-content-body h3 code{font-size:.9em}.mce-content-body ol,.mce-content-body ul{margin-top:1.25em;margin-bottom:1.25em}.mce-content-body li{margin-top:.5em;margin-bottom:.5em}.mce-content-body>ul>li p{margin-top:.75em;margin-bottom:.75em}.mce-content-body>ul>li>*:first-child{margin-top:1.25em}.mce-content-body>ul>li>*:last-child{margin-bottom:1.25em}.mce-content-body>ol>li>*:first-child{margin-top:1.25em}.mce-content-body>ol>li>*:last-child{margin-bottom:1.25em}.mce-content-body ul ul,.mce-content-body ul ol,.mce-content-body ol ul,.mce-content-body ol ol,.prose ul ul,.prose ul ol,.prose ol ul,.prose ol ol{margin-top:.75em;margin-bottom:.75em}.mce-content-body hr+*{margin-top:0}.mce-content-body h2+*{margin-top:0}.mce-content-body h3+*{margin-top:0}.mce-content-body h4+*{margin-top:0}.mce-content-body thead th:first-child{padding-left:0}.mce-content-body thead th:last-child{padding-right:0}.mce-content-body tbody td:first-child{padding-left:0}.mce-content-body tbody td:last-child{padding-right:0}.mce-content-body>:first-child{margin-top:0}.mce-content-body>:last-child{margin-bottom:0}#admin-layout .top-menu{position:relative;z-index:10;display:flex;height:3.5rem;flex-direction:row;align-items:center;padding-left:1rem;padding-right:1rem;--tw-shadow: 0px 0px 32px 0px rgba(136, 152, 170, .15);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:var(--top-menu-color-base);color:var(--top-menu-color-base-contrast)}#admin-layout .top-menu .menu-link{font-weight:500;color:var(--top-menu-color-base-contrast)}#admin-layout .top-menu .menu-link:focus,#admin-layout .top-menu .menu-link:hover{background:var(--top-menu-color-hover);color:var(--top-menu-color-hover-contrast);outline:none}@keyframes passing-through{0%{opacity:0;transform:translateY(40px)}30%,70%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes slide-in{0%{opacity:0;transform:translateY(40px)}30%{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:2px solid rgba(0,0,0,.3);background:white;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{text-align:center;margin:2em 0}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(to bottom,#eee,#ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:white}.dropzone .dz-preview.dz-image-preview .dz-details{transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:#000000e6;line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid rgba(200,200,200,.8);background-color:#fffc}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:#fff6;padding:0 .4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{transform:scale(1.05);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;animation:slide-in 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview .dz-success-mark,.dropzone .dz-preview .dz-error-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px}.dropzone .dz-preview .dz-success-mark svg,.dropzone .dz-preview .dz-error-mark svg{display:block;width:54px;height:54px}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:16px;left:50%;top:50%;margin-top:-8px;width:80px;margin-left:-40px;background:rgba(255,255,255,.9);-webkit-transform:scale(1);border-radius:8px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#333;background:linear-gradient(to bottom,#666,#444);position:absolute;top:0;left:0;bottom:0;width:0;transition:width .3s ease-in-out}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;transition:opacity .3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#be2626;background:linear-gradient(to bottom,#be2626,#a92222);padding:.5em 1.2em;color:#fff}.dropzone .dz-preview .dz-error-message:after{content:"";position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #be2626}.vue-dropzone{border:2px solid #e5e5e5;font-family:Arial,sans-serif;letter-spacing:.2px;color:#777;transition:.2s linear}.vue-dropzone:hover{background-color:#f6f6f6}.vue-dropzone>i{color:#ccc}.vue-dropzone>.dz-preview .dz-image{border-radius:0;width:100%;height:100%}.vue-dropzone>.dz-preview .dz-image img:not([src]){width:200px;height:200px}.vue-dropzone>.dz-preview .dz-image:hover img{transform:none;-webkit-filter:none}.vue-dropzone>.dz-preview .dz-details{bottom:0;top:0;color:#fff;background-color:#2196f3cc;transition:opacity .2s linear;text-align:left}.vue-dropzone>.dz-preview .dz-details .dz-filename{overflow:hidden}.vue-dropzone>.dz-preview .dz-details .dz-filename span,.vue-dropzone>.dz-preview .dz-details .dz-size span{background-color:transparent}.vue-dropzone>.dz-preview .dz-details .dz-filename:not(:hover) span{border:none}.vue-dropzone>.dz-preview .dz-details .dz-filename:hover span{background-color:transparent;border:none}.vue-dropzone>.dz-preview .dz-progress .dz-upload{background:#ccc}.vue-dropzone>.dz-preview .dz-remove{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px #fff solid;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.vue-dropzone>.dz-preview:hover .dz-remove{opacity:1}.vue-dropzone>.dz-preview .dz-error-mark,.vue-dropzone>.dz-preview .dz-success-mark{margin-left:auto;margin-top:auto;width:100%;top:35%;left:0}.vue-dropzone>.dz-preview .dz-error-mark svg,.vue-dropzone>.dz-preview .dz-success-mark svg{margin-left:auto;margin-right:auto}.vue-dropzone>.dz-preview .dz-error-message{margin-left:auto;margin-right:auto;left:0;width:100%;text-align:center}.vue-dropzone>.dz-preview .dz-error-message:after{display:none}.vue-dropzone{background:unset;border-color:#64748b;border-radius:.25rem;border-style:dashed;color:var(--color-base-contrast);min-height:100px;padding:.5rem}.vue-dropzone:hover{background:#cbd5e1}.vue-dropzone .dz-preview{margin:.5rem;border-radius:.25rem;overflow:hidden}.vue-dropzone .dz-preview .dz-image{max-height:100px;max-width:100px}.vue-dropzone .dz-preview .dz-image img:not([src]){max-height:100px;max-width:100px}.vue-dropzone>.dz-preview .dz-details{background-color:var(--color-base-contrast);color:var(--color-base)}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.top-0{top:0px}.bottom-0{bottom:0px}.left-0{left:0px}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.-mt-4{margin-top:-1rem}.-mt-px{margin-top:-1px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-px{height:1px}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-screen{min-height:100vh}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-12{width:3rem}.w-32{width:8rem}.w-48{width:12rem}.w-60{width:15rem}.w-72{width:18rem}.w-96{width:24rem}.w-160{width:40rem}.w-1\/2{width:50%}.w-full{width:100%}.min-w-5{min-width:1.25rem}.min-w-24{min-width:6rem}.min-w-full{min-width:100%}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-5xl{max-width:64rem}.max-w-full{max-width:100%}.max-w-screen-sm{max-width:640px}.max-w-screen-md{max-width:768px}.max-w-screen-lg{max-width:1024px}.max-w-screen-xl{max-width:1280px}.max-w-screen-2xl{max-width:1536px}.flex-1{flex:1 1 0%}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin-slow{animation:spin 1.5s linear infinite}.cursor-pointer{cursor:pointer}.cursor-move{cursor:move}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-16{gap:4rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-3{row-gap:.75rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(203,213,225,var(--tw-divide-opacity))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-4{border-top-width:4px}.border-t{border-top-width:1px}.border-b-2{border-bottom-width:2px}.border-l-0{border-left-width:0px}.border-transparent{border-color:transparent}.border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgba(226,232,240,var(--tw-border-opacity))}.border-theme-base-subtle{border-color:var(--color-base-subtle)}.border-theme-base-subtle-contrast{border-color:var(--color-base-subtle-contrast)}.border-theme-primary{border-color:var(--color-primary)}.border-theme-primary-subtle{border-color:var(--color-primary-subtle)}.hover\:border-theme-base-subtle-contrast:hover{border-color:var(--color-base-subtle-contrast)}.hover\:border-theme-danger-contrast:hover{border-color:var(--color-danger-contrast)}.hover\:border-theme-primary:hover{border-color:var(--color-primary)}.hover\:border-theme-primary-hover:hover{border-color:var(--color-primary-hover)}.hover\:border-theme-success:hover{border-color:var(--color-success)}.focus\:border-theme-base-subtle-contrast:focus{border-color:var(--color-base-subtle-contrast)}.focus\:border-theme-primary:focus{border-color:var(--color-primary)}.border-opacity-25{--tw-border-opacity: .25}.bg-transparent{background-color:transparent}.bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgba(30,41,59,var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgba(220,38,38,var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.bg-navy-800{--tw-bg-opacity: 1;background-color:rgba(38,44,67,var(--tw-bg-opacity))}.bg-theme-base{background-color:var(--color-base)}.bg-theme-base-contrast{background-color:var(--color-base-contrast)}.bg-theme-base-subtle{background-color:var(--color-base-subtle)}.bg-theme-card{background-color:var(--color-card)}.bg-theme-danger{background-color:var(--color-danger)}.bg-theme-danger-contrast{background-color:var(--color-danger-contrast)}.bg-theme-info{background-color:var(--color-info)}.bg-theme-primary{background-color:var(--color-primary)}.bg-theme-primary-subtle{background-color:var(--color-primary-subtle)}.bg-theme-primary-subtle-hover{background-color:var(--color-primary-subtle-hover)}.bg-theme-secondary{background-color:var(--color-secondary)}.bg-theme-accent{background-color:var(--color-accent)}.bg-theme-success{background-color:var(--color-success)}.bg-theme-success-contrast{background-color:var(--color-success-contrast)}.bg-theme-warning{background-color:var(--color-warning)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgba(30,41,59,var(--tw-bg-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgba(239,246,255,var(--tw-bg-opacity))}.hover\:bg-theme-base-subtle:hover{background-color:var(--color-base-subtle)}.hover\:bg-theme-base-subtle-contrast:hover{background-color:var(--color-base-subtle-contrast)}.hover\:bg-theme-danger:hover{background-color:var(--color-danger)}.hover\:bg-theme-danger-contrast:hover{background-color:var(--color-danger-contrast)}.hover\:bg-theme-info:hover{background-color:var(--color-info)}.hover\:bg-theme-info-contrast:hover{background-color:var(--color-info-contrast)}.hover\:bg-theme-primary:hover{background-color:var(--color-primary)}.hover\:bg-theme-primary-hover:hover{background-color:var(--color-primary-hover)}.hover\:bg-theme-primary-subtle:hover{background-color:var(--color-primary-subtle)}.hover\:bg-theme-primary-subtle-hover:hover{background-color:var(--color-primary-subtle-hover)}.hover\:bg-theme-secondary:hover{background-color:var(--color-secondary)}.hover\:bg-theme-success:hover{background-color:var(--color-success)}.hover\:bg-theme-warning-contrast:hover{background-color:var(--color-warning-contrast)}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.focus\:bg-theme-danger:focus{background-color:var(--color-danger)}.focus\:bg-theme-success:focus{background-color:var(--color-success)}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-75{--tw-bg-opacity: .75}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-700{--tw-gradient-from: #1d4ed8;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0))}.to-blue-600{--tw-gradient-to: #2563eb}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-0\.5{padding:.125rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-12{padding-left:3rem;padding-right:3rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-20{padding-top:5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-8,.hover\:pl-8:hover{padding-left:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.font-light{font-weight:300}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-black{font-weight:900}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity: 1;color:rgba(0,0,0,var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgba(203,213,225,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgba(148,163,184,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgba(100,116,139,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgba(71,85,105,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgba(51,65,85,var(--tw-text-opacity))}.text-gray-850{--tw-text-opacity: 1;color:rgba(34,41,56,var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgba(15,23,42,var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgba(5,150,105,var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgba(4,120,87,var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgba(30,58,138,var(--tw-text-opacity))}.text-theme-base-contrast{color:var(--color-base-contrast)}.text-theme-base-subtle-contrast{color:var(--color-base-subtle-contrast)}.text-theme-card-contrast{color:var(--color-card-contrast)}.text-theme-danger-contrast{color:var(--color-danger-contrast)}.text-theme-info-contrast{color:var(--color-info-contrast)}.text-theme-primary{color:var(--color-primary)}.text-theme-primary-contrast{color:var(--color-primary-contrast)}.text-theme-secondary-contrast{color:var(--color-secondary-contrast)}.text-theme-accent-contrast{color:var(--color-accent-contrast)}.text-theme-success-contrast{color:var(--color-success-contrast)}.text-theme-warning-contrast{color:var(--color-warning-contrast)}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgba(15,23,42,var(--tw-text-opacity))}.hover\:text-theme-base-subtle:hover{color:var(--color-base-subtle)}.hover\:text-theme-base-subtle-contrast:hover{color:var(--color-base-subtle-contrast)}.hover\:text-theme-danger:hover{color:var(--color-danger)}.hover\:text-theme-danger-contrast:hover{color:var(--color-danger-contrast)}.hover\:text-theme-danger-hover-contrast:hover{color:var(--color-danger-hover-contrast)}.hover\:text-theme-info:hover{color:var(--color-info)}.hover\:text-theme-info-contrast:hover{color:var(--color-info-contrast)}.hover\:text-theme-primary:hover{color:var(--color-primary)}.hover\:text-theme-primary-contrast:hover{color:var(--color-primary-contrast)}.hover\:text-theme-primary-hover:hover{color:var(--color-primary-hover)}.hover\:text-theme-primary-hover-contrast:hover{color:var(--color-primary-hover-contrast)}.hover\:text-theme-primary-subtle-contrast:hover{color:var(--color-primary-subtle-contrast)}.hover\:text-theme-secondary-contrast:hover{color:var(--color-secondary-contrast)}.hover\:text-theme-success-contrast:hover{color:var(--color-success-contrast)}.hover\:text-theme-success-hover-contrast:hover{color:var(--color-success-hover-contrast)}.hover\:text-theme-warning:hover{color:var(--color-warning)}.hover\:text-theme-warning-hover-contrast:hover{color:var(--color-warning-hover-contrast)}.focus\:text-gray-900:focus{--tw-text-opacity: 1;color:rgba(15,23,42,var(--tw-text-opacity))}.focus\:text-theme-danger-contrast:focus{color:var(--color-danger-contrast)}.focus\:text-theme-primary:focus{color:var(--color-primary)}.focus\:text-theme-success-contrast:focus{color:var(--color-success-contrast)}.underline{text-decoration:underline}.line-through{text-decoration:line-through}.group:hover .group-hover\:underline,.hover\:underline:hover{text-decoration:underline}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.group:hover .group-hover\:opacity-100{opacity:1}*,:before,:after{--tw-shadow: 0 0 #0000}.shadow{--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-subtle{--tw-shadow: 0px 0px 32px 0px rgba(136, 152, 170, .15);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-subtle:hover{--tw-shadow: 0px 0px 32px 0px rgba(136, 152, 170, .15);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-none:focus{--tw-shadow: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-200{--tw-ring-opacity: 1;--tw-ring-color: rgba(226, 232, 240, var(--tw-ring-opacity))}.ring-theme-primary-subtle-hover{--tw-ring-color: var(--color-primary-subtle-hover)}.focus\:ring-primary:focus{--tw-ring-color: var(--ring-color-primary)}.ring-offset-2{--tw-ring-offset-width: 2px}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 640px){.sm\:ml-6{margin-left:1.5rem}.sm\:w-16{width:4rem}.sm\:w-auto{width:auto}.sm\:w-1\/2{width:50%}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 768px){.md\:order-1{order:1}.md\:mx-8{margin-left:2rem;margin-right:2rem}.md\:mt-0{margin-top:0}.md\:mt-2{margin-top:.5rem}.md\:mr-2{margin-right:.5rem}.md\:mr-auto{margin-right:auto}.md\:ml-8{margin-left:2rem}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-12{height:3rem}.md\:w-12{width:3rem}.md\:w-72{width:18rem}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/6{width:16.666667%}.md\:flex-1{flex:1 1 0%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-start{align-items:flex-start}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-20{gap:5rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.md\:rounded-lg{border-radius:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-16{padding-top:4rem;padding-bottom:4rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:pt-12{padding-top:3rem}.md\:pb-24{padding-bottom:6rem}.md\:text-left{text-align:left}.md\:text-center{text-align:center}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 1024px){.lg\:mt-4{margin-top:1rem}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:w-1\/4{width:25%}.lg\:max-w-sm{max-width:24rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.lg\:text-left{text-align:left}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:tracking-tight{letter-spacing:-.025em}}@media (min-width: 1280px){.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:text-7xl{font-size:4.5rem;line-height:1}.xl\:tracking-tighter{letter-spacing:-.05em}}.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.mce-content-body{padding:.5rem .75rem}.tox-comments-visible .tox-comment{background-color:#fff0b7}.tox-comments-visible .tox-comment--active{background-color:#ffe168}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden):before{content:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A);cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked:before{content:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A)}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden):before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body *[data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body *[contentEditable=false]{cursor:default}.mce-content-body *[contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A),default}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}.mce-object{background:transparent url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A) no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected="2"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--21by9,.tiny-pageembed--16by9,.tiny-pageembed--4by3,.tiny-pageembed--1by1{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--21by9 iframe,.tiny-pageembed--16by9 iframe,.tiny-pageembed--4by3 iframe,.tiny-pageembed--1by1 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#222f3eb3;content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks):before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks):before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:10000}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-clonedresizable{opacity:.5;outline:1px dashed black;position:absolute;z-index:10000}.mce-content-body .mce-clonedresizable.mce-resizetable-columns th,.mce-content-body .mce-clonedresizable.mce-resizetable-columns td{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10001}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor:before{background-color:inherit;border-radius:50%;content:"";display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover:after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body img[data-mce-selected],.mce-content-body video[data-mce-selected],.mce-content-body audio[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body table[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body *[contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly *[contentEditable=true]:focus,.mce-content-body.mce-content-readonly *[contentEditable=true]:hover{outline:none}.mce-content-body *[data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:none}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:none}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]:after,.mce-content-body th[data-mce-selected]:after{background-color:#b4d7ffb3;border:1px solid rgba(180,215,255,.7);bottom:-1px;content:"";left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.mce-content-body td[data-mce-selected]:after,.mce-content-body th[data-mce-selected]:after{border-color:#0054b4b3}}.mce-content-body img::-moz-selection{background:none}.mce-content-body img::selection{background:none}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc li{list-style-type:none}table[style*="border-width: 0px"],.mce-item-table:not([border]),.mce-item-table[border="0"],table[style*="border-width: 0px"] td,.mce-item-table:not([border]) td,.mce-item-table[border="0"] td,table[style*="border-width: 0px"] th,.mce-item-table:not([border]) th,.mce-item-table[border="0"] th,table[style*="border-width: 0px"] caption,.mce-item-table:not([border]) caption,.mce-item-table[border="0"] caption{border:1px dashed #bbb}.mce-visualblocks p,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks section,.mce-visualblocks article,.mce-visualblocks blockquote,.mce-visualblocks address,.mce-visualblocks pre,.mce-visualblocks figure,.mce-visualblocks figcaption,.mce-visualblocks hgroup,.mce-visualblocks aside,.mce-visualblocks ul,.mce-visualblocks ol,.mce-visualblocks dl{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) ul,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) dl{margin-left:3px}.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] ul,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] dl{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy:after{content:"-"}body{font-family:sans-serif}table{border-collapse:collapse}.tox{box-sizing:content-box;color:#222f3e;cursor:auto;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){color:inherit;cursor:inherit;direction:inherit;background:transparent;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #e2e8f0;border-radius:.25rem;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox-tinymce-inline{border:none;box-shadow:none}.tox-tinymce-inline .tox-editor-header{border:1px solid #e2e8f0;border-radius:.25rem;box-shadow:none}.tox-tinymce-aux{font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:28}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border:1px solid #e2e8f0;border-radius:.5rem;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>*:last-child:not(:only-child){border-color:#e2e8f0;border-style:solid}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#2563eb1a;border-color:#2563eb66;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description>*:last-child{border-color:#2563eb66}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#2563eb}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#2563eb}.tox .tox-dialog__body-content .accessibility-issue--info a .tox-icon{color:#2563eb}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa5001a;border-color:#ffa50080;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description>*:last-child{border-color:#ffa50080}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--warn a .tox-icon{color:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc00001a;border-color:#c006;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description>*:last-child{border-color:#c006}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#c00}.tox .tox-dialog__body-content .accessibility-issue--error a .tox-icon{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab461a;border-color:#78ab4666;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{border-color:#78ab4666}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#78ab46}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#78ab46}.tox .tox-dialog__body-content .accessibility-issue--success a .tox-icon{color:#78ab46}.tox .tox-dialog__body-content .accessibility-issue__header h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description>*:last-child{border-left-width:1px;padding-left:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description>*:last-child{border-right-width:1px;padding-right:4px}.tox .tox-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#2563eb;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#2563eb;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;text-align:center;text-decoration:none;text-transform:capitalize;white-space:nowrap}.tox .tox-button[disabled]{background-color:#2563eb;background-image:none;border-color:#2563eb;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1555e2;background-image:none;border-color:#1555e2;box-shadow:none;color:#fff}.tox .tox-button:hover:not(:disabled){background-color:#1555e2;background-image:none;border-color:#1555e2;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#134cca;background-image:none;border-color:#134cca;box-shadow:none;color:#fff}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#f0f0f0;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;font-size:14px;font-style:normal;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:capitalize}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:#222f3e80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked[disabled]{background-color:#f0f0f0;border-color:#f0f0f0;box-shadow:none;color:#222f3e80}.tox .tox-button--naked:hover:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:#d6d6d6;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:.25rem;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:.25rem;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#222f3e4d}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#2563eb}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#2563eb}.tox .tox-checkbox--disabled{color:#222f3e80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#222f3e80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#222f3e80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#222f3e80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:.25rem;box-shadow:inset 0 0 0 1px #2563eb;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#e2e8f0;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#e6e6e6;color:#222f3eb3;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;color:#222f3e;cursor:pointer;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#dee0e2;color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#dee0e2;color:#222f3e}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#dee0e2;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#222f3e80;cursor:not-allowed}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;-ms-flex-preferred-size:auto;font-size:14px;font-style:normal;font-weight:400;line-height:24px;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:#222f3eb3;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#222f3e}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 3px #00000026;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:2px 0 3px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #e2e8f0}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #e2e8f0}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-icon-rtl .tox-collection__item-icon svg{transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#dee0e2}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#fff;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 4px 8px #222f3e1a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#222f3e;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#222f3eb3;font-size:12px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#222f3eb3;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#fff;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(255,255,255,0),#fff);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#fff;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#222f3e;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff;color:#222f3e;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#fff;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#222f3eb3}.tox .tox-user__name{color:#222f3eb3;font-size:12px;font-style:normal;font-weight:700;text-transform:uppercase}.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:24}.tox .tox-dialog-wrap__backdrop{background-color:#ffffffbf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff;border-color:#e2e8f0;border-radius:.5rem;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #222f3e26,0 0 40px 1px #222f3e26;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:24}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#222f3e;display:flex;flex:1;-ms-flex-preferred-size:auto;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;padding:16px}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#222f3eb3;display:inline-block;font-size:14px;line-height:1.3;margin-bottom:8px;text-decoration:none;white-space:nowrap}.tox .tox-dialog__body-nav-item:focus{background-color:#2563eb1a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #2563eb;color:#2563eb}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto;max-height:650px;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#2563eb;cursor:pointer;text-decoration:none}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#134cca;text-decoration:none}.tox .tox-dialog__body-content a:active{color:#134cca;text-decoration:none}.tox .tox-dialog__body-content svg{fill:#222f3e}.tox .tox-dialog__body-content ul{display:block;list-style-type:disc;margin-bottom:16px;margin-inline-end:0;margin-inline-start:0;padding-inline-start:2.5rem}.tox .tox-dialog__body-content .tox-form__group h1{color:#222f3e;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#222f3e;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #e2e8f0}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:24}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;-ms-flex-preferred-size:auto;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}.tox.tox-platform-ie .tox-dialog-wrap{position:-ms-device-fixed}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #e2e8f0;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#222f3eb3;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;-ms-flex-preferred-size:auto;overflow:hidden;position:relative}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;-ms-flex-preferred-size:auto;height:100%;position:absolute;width:100%}.tox.tox-inline-edit-area{border:1px dotted #e2e8f0}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{z-index:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{box-shadow:none;transition:box-shadow .5s}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter,.tox .tox-autocompleter .tox-menu{max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#222f3e33;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#2563eb;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #fff;border-radius:.25rem;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#222f3eb3;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-textarea{flex:1;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;-ms-flex-preferred-size:auto;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#e2e8f0;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.0625px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#f2f2f2;color:#222f3ed9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea:focus{background-color:#fff;border-color:#2563eb;box-shadow:none;outline:none}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#2563eb;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#f2f2f2;color:#222f3ed9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#222f3e}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#e2e8f0;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.0625px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#f2f2f2;color:#222f3ed9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#fff;border-color:#2563eb;box-shadow:none;outline:none}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap;font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tox-fullscreen{border:0;height:100%;left:0;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;position:fixed;top:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{z-index:26}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:27}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-image-tools{width:100%}.tox .tox-image-tools__toolbar{align-items:center;display:flex;justify-content:center}.tox .tox-image-tools__image{background-color:#666;height:380px;overflow:auto;position:relative;width:100%}.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top:8px}.tox .tox-image-tools__image-bg{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools__toolbar>.tox-spacer{flex:1;-ms-flex-preferred-size:auto}.tox .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-left:8px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left:32px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left:32px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-right:8px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-right:32px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-right:32px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#e2e8f0;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#2563eb80;border-color:#2563eb80}.tox .tox-insert-table-picker__label{color:#222f3eb3;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 4px 8px #222f3e1a;display:inline-block;overflow:hidden;vertical-align:top;z-index:25}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23ccc'/%3E%3C/svg%3E") left 0 top 0 #ffffff;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 4px}.tox.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #e2e8f0}.tox .tox-mbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#000;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:#00000080;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-mbtn--active{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:.5rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#e4eeda;border-color:#d7e6c8;color:#222f3e}.tox .tox-notification--success p{color:#222f3e}.tox .tox-notification--success a{color:#547831}.tox .tox-notification--success svg{fill:#222f3e}.tox .tox-notification--error{background-color:#f8dede;border-color:#f2bfbf;color:#222f3e}.tox .tox-notification--error p{color:#222f3e}.tox .tox-notification--error a{color:#c00}.tox .tox-notification--error svg{fill:#222f3e}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#fffaea;border-color:#ffe89d;color:#222f3e}.tox .tox-notification--warn p,.tox .tox-notification--warning p,.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#222f3e}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#222f3e}.tox .tox-notification--info{background-color:#d9edf7;border-color:#779ecb;color:#222f3e}.tox .tox-notification--info p,.tox .tox-notification--info a{color:#222f3e}.tox .tox-notification--info svg{fill:#222f3e}.tox .tox-notification__body{align-self:center;color:#222f3e;font-size:14px;-ms-grid-column-span:1;grid-column-end:3;grid-column-start:2;-ms-grid-row-span:1;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;-ms-grid-column-span:1;grid-column-end:2;grid-column-start:1;-ms-grid-row-span:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;-ms-grid-column-span:1;grid-column-end:4;grid-column-start:3;-ms-grid-row-span:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{-ms-grid-column-span:3;grid-column-end:4;grid-column-start:1;-ms-grid-row-span:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar{flex-wrap:nowrap}.tox .tox-pop__dialog{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 3px #00000026;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;position:absolute;width:0}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#e2e8f0 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #e2e8f0 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #e2e8f0 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #e2e8f0;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;-ms-flex-preferred-size:0;min-height:0}.tox .tox-sidebar{background-color:#fff;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;-ms-flex-preferred-size:auto;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #e2e8f0;border-radius:.25rem;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#2563eb;border:2px solid #134cca;border-radius:.25rem;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#222f3eb3;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#fff;border-top:1px solid #e2e8f0;color:#222f3eb3;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:flex-end;overflow:hidden}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#222f3eb3;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){cursor:pointer;text-decoration:underline}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-left:1ch}.tox .tox-statusbar__resize-handle svg{display:block;fill:#222f3eb3}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:29}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#fff9;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#000;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#000}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#dee0e2;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-tbtn:hover svg{fill:#000}.tox .tox-tbtn:active{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-tbtn:active svg{fill:#000}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#00000080;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#00000080}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#000}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#000}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#000}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tbtn--select{margin:2px 0 3px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#00000080}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:2px 0 3px;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #dee0e2 inset}.tox .tox-split-button:focus{background:#dee0e2;box-shadow:none;color:#000}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#00000080}.tox .tox-split-button .tox-tbtn{margin:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:transparent;box-shadow:none;color:#00000080}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23ccc'/%3E%3C/svg%3E") left 0 top 0 #ffffff;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #e2e8f0;margin-top:-1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child,.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary{border-top:1px solid #e2e8f0}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 3px #00000026}.tox[dir=rtl] .tox-tbtn__icon-rtl svg{transform:rotateY(180deg)}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #e2e8f0}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #e2e8f0}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:.5rem;box-shadow:0 2px 4px #222f3e4d;color:#ffffffbf;font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-well{border:1px solid #e2e8f0;border-radius:.5rem;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #e2e8f0;border-radius:.5rem;display:flex;flex:1;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-image-tools-edit-panel,.tox .tox-image-tools__sidebar{height:60px} diff --git a/public/build/assets/app.7916e14e.css b/public/build/assets/app.7916e14e.css new file mode 100644 index 00000000..ad4d6264 --- /dev/null +++ b/public/build/assets/app.7916e14e.css @@ -0,0 +1,2 @@ +:root{--color-base: #e2e8f0;--color-base-contrast: #1F243A;--color-base-subtle: #e2e8f0;--color-base-subtle-contrast: #64748b;--color-card: #fff;--color-card-contrast: #1F243A;--color-danger: #fee2e2;--color-danger-contrast: #ef4444;--color-danger-hover: #fecaca;--color-danger-hover-contrast: #dc2626;--color-info: #fef3c7;--color-info-contrast: #f59e0b;--color-info-hover: #fde68a;--color-info-hover-contrast: #d97706;--color-primary: #2563eb;--color-primary-contrast: #fff;--color-primary-hover: #1e40af;--color-primary-hover-contrast: #fff;--color-primary-subtle: #dbeafe;--color-primary-subtle-contrast: #2563eb;--color-primary-subtle-hover: #bfdbfe;--color-primary-subtle-hover-contrast: #2563eb;--color-secondary: #323954;--color-secondary-contrast: #fff;--color-secondary-hover: #262C43;--color-secondary-hover-contrast: #fff;--color-accent: #ea580c;--color-accent-contrast: #fff;--color-accent-hover: #9a3412;--color-accent-hover-contrast: #fff;--color-success: #d1fae5;--color-success-contrast: #10b981;--color-success-hover: #a7f3d0;--color-success-hover-contrast: #059669;--color-warning: #ffedd5;--color-warning-contrast: #f97316;--color-warning-hover: #fed7aa;--color-warning-hover-contrast: #ea580c;--dropdown-color-base: #fff;--dropdown-color-base-contrast: var(--color-base-contrast);--dropdown-color-hover: var(--color-primary-subtle);--dropdown-color-hover-contrast: var(--color-primary-subtle-contrast);--dropdown-color-separator: #e2e8f0;--dropdown-color-subheading: #fff;--dropdown-color-subheading-contrast: #999CAA;--side-menu-color-active: #dbeafe;--side-menu-color-active-contrast: var(--color-primary);--side-menu-color-base: #fff;--side-menu-color-base-contrast: #707487;--side-menu-color-hover: #dbeafe;--side-menu-color-hover-contrast: var(--color-primary);--side-menu-color-logo: #131729;--side-menu-color-logo-active: var(--color-primary);--side-menu-color-separator: var(--color-base);--side-menu-color-sub-menu-active: #fff;--side-menu-color-sub-menu-active-contrast: var(--color-primary);--side-menu-color-sub-menu-base: #fff;--side-menu-color-sub-menu-base-contrast: #707487;--side-menu-color-sub-menu-hover: #fff;--side-menu-color-sub-menu-hover-contrast: var(--color-primary);--side-menu-color-subheading: #999CAA;--side-menu-color-toggle: var(--color-base-contrast);--side-menu-color-toggle-active: var(--color-primary);--top-menu-color-base: #fff;--top-menu-color-base-contrast: var(--color-base-contrast);--top-menu-color-hover: #fff;--top-menu-color-hover-contrast: var(--color-primary);--nprogress-color: var(--color-primary);--datepicker-color-primary: var(--color-primary);--pagination-color-active: var(--color-primary);--pagination-color-active-border: var(--color-primary);--pagination-color-active-contrast: var(--color-primary-contrast);--pagination-color-base: #fff;--pagination-color-base-border: #fff;--pagination-color-base-contrast: var(--color-base-subtle-contrast);--pagination-color-hover: var(--color-primary-subtle);--pagination-color-hover-border: var(--color-primary-subtle);--pagination-color-hover-contrast: var(--color-primary-subtle-contrast);--table-color-alt-body: #f1f5f9;--table-color-alt-body-contrast: var(--color-base-contrast);--table-color-body: none;--table-color-body-border: #e2e8f0;--table-color-body-contrast: var(--color-base-contrast);--table-color-body-hover: #e2e8f0;--table-color-body-hover-contrast: var(--color-base-contrast);--table-color-header: #f1f5f9;--table-color-header-border: #e2e8f0;--table-color-header-contrast: #475569;--table-padding-body-x: 1.5rem;--table-padding-body-x-slim: .75rem;--table-padding-body-y: .25rem;--table-padding-header-x: 1.5rem;--table-padding-header-x-slim: .75rem;--table-padding-header-y: .375rem;--selection-color: #1d4ed8;--selection-color-contrast: #f1f5f9;--ring-color-primary: rgba(255, 130, 246, var(--tw-ring-opacity))}/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com + *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:Poppins,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#94a3b8}input::placeholder,textarea::placeholder{opacity:1;color:#94a3b8}button,[role=button]{cursor:pointer}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(226,232,240,var(--tw-border-opacity))}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=search],[type=time],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#64748b;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=search]:focus,[type=time]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;color-adjust:unset}[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#64748b;border-width:1px}[type=checkbox]{border-radius:0}[type=checkbox]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[type=checkbox]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}.html-base{background-color:var(--color-base);font-family:Poppins,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";color:var(--color-base-contrast)}::selection{background:var(--selection-color);color:var(--selection-color-contrast)}::-moz-selection{background:var(--selection-color);color:var(--selection-color-contrast)}:disabled{cursor:not-allowed;opacity:.5}.sticky-menu{position:sticky;top:0px;width:100%;overflow:hidden;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));padding:.75rem 1.5rem;--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);z-index:2}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:#334155;max-width:65ch}.prose [class~=lead]{color:#475569;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose a{color:#0f172a;text-decoration:underline;font-weight:500}.prose strong{color:#0f172a;font-weight:600}.prose ol[type=A]{--list-counter-style: upper-alpha}.prose ol[type=a]{--list-counter-style: lower-alpha}.prose ol[type=A s]{--list-counter-style: upper-alpha}.prose ol[type=a s]{--list-counter-style: lower-alpha}.prose ol[type=I]{--list-counter-style: upper-roman}.prose ol[type=i]{--list-counter-style: lower-roman}.prose ol[type=I s]{--list-counter-style: upper-roman}.prose ol[type=i s]{--list-counter-style: lower-roman}.prose ol[type="1"]{--list-counter-style: decimal}.prose ol>li{position:relative;padding-left:1.75em}.prose ol>li:before{content:counter(list-item,var(--list-counter-style, decimal)) ".";position:absolute;font-weight:400;color:#64748b;left:0}.prose ul>li{position:relative;padding-left:1.75em}.prose ul>li:before{content:"";position:absolute;background-color:#cbd5e1;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.prose hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose blockquote{font-weight:500;font-style:italic;color:#0f172a;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201c""\201d""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose blockquote p:first-of-type:before{content:open-quote}.prose blockquote p:last-of-type:after{content:close-quote}.prose h1{color:#0f172a;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose h2{color:#0f172a;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose h3{color:#0f172a;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose h4{color:#0f172a;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose figure figcaption{color:#64748b;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose code{color:#0f172a;font-weight:600;font-size:.875em}.prose code:before{content:"`"}.prose code:after{content:"`"}.prose a code{color:#0f172a}.prose pre{color:#e2e8f0;background-color:#1e293b;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose pre code:before{content:none}.prose pre code:after{content:none}.prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose thead{color:#0f172a;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e1}.prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.prose tbody tr:last-child{border-bottom-width:0}.prose tbody td{vertical-align:top;padding:.5714286em}.prose{font-size:1rem;line-height:1.75}.prose p{margin-top:1.25em;margin-bottom:1.25em}.prose img{margin-top:2em;margin-bottom:2em}.prose video{margin-top:2em;margin-bottom:2em}.prose figure{margin-top:2em;margin-bottom:2em}.prose figure>*{margin-top:0;margin-bottom:0}.prose h2 code{font-size:.875em}.prose h3 code{font-size:.9em}.prose ol,.prose ul{margin-top:1.25em;margin-bottom:1.25em}.prose li{margin-top:.5em;margin-bottom:.5em}.prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.prose>ul>li>*:first-child{margin-top:1.25em}.prose>ul>li>*:last-child{margin-bottom:1.25em}.prose>ol>li>*:first-child{margin-top:1.25em}.prose>ol>li>*:last-child{margin-bottom:1.25em}.prose ul ul,.prose ul ol,.prose ol ul,.prose ol ol{margin-top:.75em;margin-bottom:.75em}.prose hr+*{margin-top:0}.prose h2+*{margin-top:0}.prose h3+*{margin-top:0}.prose h4+*{margin-top:0}.prose thead th:first-child{padding-left:0}.prose thead th:last-child{padding-right:0}.prose tbody td:first-child{padding-left:0}.prose tbody td:last-child{padding-right:0}.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}.aspect-ratio-16-9{aspect-ratio:16/9}.aspect-ratio-4-3{aspect-ratio:4/3}.aspect-ratio-1-1{aspect-ratio:1/1}.hero-waves{display:block;width:100%;height:60px;position:relative}.wave1 use{animation:move-forever1 10s linear infinite;animation-delay:-2s}.wave2 use{animation:move-forever2 8s linear infinite;animation-delay:-2s}.wave3 use{animation:move-forever3 6s linear infinite;animation-delay:-2s}.animate-bg-primary-to-secondary{animation:4.5s ease-in-out 1s infinite normal none running bg-primary-to-secondary}@keyframes move-forever1{0%{transform:translate(85px)}to{transform:translate(-90px)}}@keyframes move-forever2{0%{transform:translate(-90px)}to{transform:translate(85px)}}@keyframes move-forever3{0%{transform:translate(-90px)}to{transform:translate(85px)}}@keyframes bg-primary-to-secondary{0%{background-color:var(--color-primary)}to{background-color:var(--color-secondary)}}.mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;border:1px solid rgba(0,0,0,.1);border-radius:.25rem;color:#73879c;white-space:nowrap}.mx-btn:hover{border-color:var(--datepicker-color-primary);color:var(--datepicker-color-primary)}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:.25rem;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:#9093994d;transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:100%}.mx-datepicker svg{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-icon-clear{display:none}.mx-input-wrapper:hover .mx-icon-clear{display:block}.mx-input-wrapper:hover .mx-icon-clear+.mx-icon-calendar{display:none}.mx-input{display:inline-block;box-sizing:border-box;width:100%;padding:6px 30px 6px 10px;background-color:#fff;border-color:var(--color-base-subtle);border-radius:.25rem;border-width:1px;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;font-weight:500}.mx-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.mx-input:hover,.mx-input:focus{border-color:var(--datepicker-color-primary)}.mx-input:disabled,.mx-input.disabled{color:var(--color-base-subtle);background-color:#f3f3f3;border-color:var(--color-base-subtle);cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#00000080;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#000c}.mx-datepicker-main{font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;color:#73879c;background-color:#fff;border:1px solid #e8e8e8}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;box-shadow:0 6px 12px #0000002d;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding:6px;overflow:auto}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #e8e8e8}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mx-btn-shortcut{display:block;padding:0 6px;line-height:24px}.mx-range-wrapper{display:flex}@media (max-width: 750px){.mx-range-wrapper{flex-direction:column}}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #e8e8e8}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .cell{cursor:pointer}.mx-calendar-content .cell:hover{color:#73879c;background-color:#f3f9fe}.mx-calendar-content .cell.active{color:#fff;background-color:var(--datepicker-color-primary)}.mx-calendar-content .cell.in-range{color:#73879c;background-color:#dbedfb}.mx-calendar-content .cell.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#f3f9fe}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#dbedfb}.mx-calendar-week-mode .mx-date-row .cell:hover,.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center;vertical-align:middle}.mx-table th{padding:0;font-weight:500}.mx-table td{padding:0}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:var(--datepicker-color-primary)}.mx-table-date .cell.not-current-month{color:#ccc}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-calendar-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #e8e8e8;text-align:center}.mx-time-column:first-child{border-left:0}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list:after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#73879c;background-color:#f3f9fe}.mx-time-column .mx-time-item.active{color:var(--datepicker-color-primary);background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:14px;line-height:20px}.mx-time-option:hover{color:#73879c;background-color:#f3f9fe}.mx-time-option.active{color:var(--datepicker-color-primary);background-color:transparent;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-datepicker.error,.mx-datepicker.error .mx-input{border-color:var(--color-danger-contrast)}#nprogress{pointer-events:none}#nprogress .bar{background:var(--nprogress-color);position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px var(--nprogress-color),0 0 5px var(--nprogress-color);opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:var(--nprogress-color);border-left-color:var(--nprogress-color);border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.transition-default{transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.slide-down-enter-active{transition:transform .3s ease}.slide-down-leave-active{transition:transform .2s ease}.slide-down-enter,.slide-down-leave-to{transform:translateY(-100%)}.slide-down-fade-enter-active{transition:opacity .3s ease,transform .3s ease}.slide-down-fade-leave-active{transition:opacity .2s ease,transform .2s ease}.slide-down-fade-enter,.slide-down-fade-leave-to{opacity:0;margin-top:0;transform:translateY(-100%)}.slide-left-enter-active{transition:transform .3s ease}.slide-left-leave-active{transition:transform .2s ease}.slide-left-enter,.slide-left-leave-to{transform:translate(-100%)}.slide-right-enter-active{transition:transform .3s ease}.slide-right-leave-active{transition:transform .2s ease}.slide-right-enter,.slide-right-leave-to{transform:translate(100%)}.slide-up-enter-active{transition:transform .3s ease}.slide-up-leave-active{transition:transform .2s ease}.slide-up-enter,.slide-up-leave-to{transform:translateY(100%)}.slide-left-multiple-enter-active,.slide-left-multiple-leave-active{transition:transform .3s ease}.slide-left-multiple-enter,.slide-left-multiple-leave-to{transform:translate(-150%)}.toasted-container.top-right{right:2rem!important;top:2rem!important}.toasted-container .toasted{border-radius:.25rem!important}.toasted-container .toasted.toasted-primary.error{background:var(--color-danger);color:var(--color-danger-contrast)}.toasted-container .toasted.toasted-primary.success{background:var(--color-success);color:var(--color-success-contrast)}.tippy-box[data-theme~=dropdown]{background-color:#fff;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d,0 -2px 6px -2px #0000000d;border-radius:10px;min-width:250px}.tippy-box[data-theme~=dropdown]:focus{outline:none}.button{border-radius:.25rem;padding:.5rem 1rem;transition-property:background-color,border-color,color,fill,stroke;transition-duration:.15s;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.button:not(:disabled){cursor:pointer}.button:not(.outline-override):focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.button.button-default-responsive{padding:.25rem .5rem}@media (min-width: 768px){.button.button-default-responsive{padding:.5rem 1rem}}.button.button-small{padding:.25rem .5rem}.button.button-outline{border-width:1px;--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.button.button-outline:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-contrast)}.button.button-primary:not(.button-outline){background-color:var(--color-primary);color:var(--color-primary-contrast)}.button.button-primary:not(.button-outline):hover{background-color:var(--color-primary-hover);color:var(--color-primary-hover-contrast)}.button.button-primary.button-outline{border-color:var(--color-primary);color:var(--color-primary)}.button.button-primary.button-outline:hover{background-color:var(--color-primary);color:var(--color-primary-contrast)}.button.button-primary-subtle{background-color:var(--color-primary-subtle);color:var(--color-primary-subtle-contrast)}.button.button-primary-subtle:hover{background-color:var(--color-primary-subtle-hover);color:var(--color-primary-subtle-hover-contrast)}input[type=checkbox].form-control{margin-top:.5rem;height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.25rem;color:var(--color-primary)}input[type=checkbox].form-control:focus{outline:2px solid transparent;outline-offset:2px}input[type=checkbox].form-control:not(.color-override){color:var(--color-primary)}input[type=checkbox].form-control:not(.color-override):focus{border-color:var(--color-primary);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary)}input[type=checkbox].form-control.error{border-color:var(--color-danger-contrast)}input[type=email].form-control,input[type=number].form-control,input[type=password].form-control,input[type=search].form-control,input[type=tel].form-control,input[type=text].form-control,input[type=url].form-control,select.form-control{width:100%;border-radius:.25rem;border-width:1px;border-color:var(--color-base-subtle);padding:.5rem .75rem;font-weight:500}input[type=email].form-control:focus,input[type=number].form-control:focus,input[type=password].form-control:focus,input[type=search].form-control:focus,input[type=tel].form-control:focus,input[type=text].form-control:focus,input[type=url].form-control:focus,select.form-control:focus{border-color:var(--color-primary);outline:2px solid transparent;outline-offset:2px}input[type=email].form-control.form-control-short,input[type=number].form-control.form-control-short,input[type=password].form-control.form-control-short,input[type=search].form-control.form-control-short,input[type=tel].form-control.form-control-short,input[type=text].form-control.form-control-short,input[type=url].form-control.form-control-short,select.form-control.form-control-short{padding-top:.25rem;padding-bottom:.25rem}input[type=email].form-control.error,input[type=number].form-control.error,input[type=password].form-control.error,input[type=search].form-control.error,input[type=tel].form-control.error,input[type=text].form-control.error,input[type=url].form-control.error,select.form-control.error{border-color:var(--color-danger-contrast)}input[type=email].form-control.error:focus,input[type=number].form-control.error:focus,input[type=password].form-control.error:focus,input[type=search].form-control.error:focus,input[type=tel].form-control.error:focus,input[type=text].form-control.error:focus,input[type=url].form-control.error:focus,select.form-control.error:focus{border-color:var(--color-danger-contrast)}input[type=email].error,input[type=number].error,input[type=password].error,input[type=search].error,input[type=tel].error,input[type=text].error,input[type=url].error,select.error{border-color:var(--color-danger-contrast)}input[type=email].error:focus,input[type=number].error:focus,input[type=password].error:focus,input[type=search].error:focus,input[type=tel].error:focus,input[type=text].error:focus,input[type=url].error:focus,select.error:focus{border-color:var(--color-danger-contrast)}.input-group-error{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(239,68,68,var(--tw-text-opacity))}.input-group-input{width:100%;border-radius:.25rem;border-width:1px;border-color:var(--color-base-subtle)}.input-group-input:focus{border-color:var(--color-primary)}.input-group-input{padding:.5rem .75rem;font-weight:500}.input-group-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.input-group-label{margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.05em;color:var(--color-base-contrast)}.max-w-250px{max-width:250px}.pagination{display:flex;flex-direction:row;align-items:center}.pagination .pagination-link{display:flex;height:100%;min-width:2rem;flex-direction:row;align-items:center;justify-content:center;border-radius:.25rem;border-width:1px;padding:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;background:var(--pagination-color-base);border-color:var(--pagination-color-base-border);color:var(--pagination-color-base-contrast)}.pagination .pagination-link.pagination-link-disabled,.pagination .pagination-link.pagination-link-slider{opacity:.5}.pagination .pagination-link.pagination-link-disabled{cursor:not-allowed}.pagination .pagination-link.pagination-link-enabled.pagination-link-active{cursor:default;background:var(--pagination-color-active);border-color:var(--pagination-color-active-border);color:var(--pagination-color-active-contrast)}.pagination .pagination-link.pagination-link-enabled.pagination-link-active:focus{outline:2px solid transparent;outline-offset:2px}.pagination .pagination-link.pagination-link-enabled.pagination-link-active:hover{background-color:var(--color-primary);color:var(--color-primary-contrast)}.pagination .pagination-link.pagination-link-enabled.pagination-link-inactive:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary)}.pagination .pagination-link.pagination-link-enabled.pagination-link-inactive:focus,.pagination .pagination-link.pagination-link-enabled.pagination-link-inactive:hover{background:var(--pagination-color-hover);border-color:var(--pagination-color-hover-border);color:var(--pagination-color-hover-contrast)}.pagination .pagination-link-container{height:100%}.pagination .pagination-link-container:not(:first-of-type){margin-left:.25rem}.pagination .pagination-link-container-ellipsis,.pagination .pagination-link-container-numeric{display:none}.pagination .pagination-link-container-active,.pagination .pagination-link-container-first,.pagination .pagination-link-container-last{display:block}@media (min-width: 768px){.pagination .pagination-link-container-ellipsis,.pagination .pagination-link-container-numeric{display:block}}.table.table-striped tbody tr:nth-child(even){background-color:var(--table-color-alt-body);color:var(--table-color-alt-body-contrast)}.table.table-hover tbody tr:hover{background-color:var(--table-color-body-hover);color:var(--table-color-body-hover-contrast)}.table tbody td{padding:var(--table-padding-body-y) var(--table-padding-body-x)}.table tbody td.indicator-column{padding-right:0}.table tbody tr{border-bottom-width:1px;background-color:var(--table-color-body);border-color:var(--table-color-body-border);color:var(--table-color-body-contrast)}.table thead{border-top-width:1px;border-bottom-width:1px;background-color:var(--table-color-header);border-color:var(--table-color-header-border);color:var(--table-color-header-contrast)}.table thead th{font-weight:500;padding:var(--table-padding-header-y) var(--table-padding-header-x)}.table thead th.indicator-column{padding-right:0}.table thead tr{text-align:left;font-size:.875rem;line-height:1.25rem;letter-spacing:.025em}#auth-layout .auth-background-container{height:35vh}#auth-layout .auth-card{border-radius:.375rem;background-color:var(--color-base);--tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#auth-layout .auth-card-container{width:100%;max-width:28rem}#auth-layout .auth-header{padding:2rem 1.5rem 1.5rem;text-align:center;font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:.025em;color:var(--color-base-contrast)}#auth-layout .auth-input{margin-top:.5rem;width:100%;border-radius:.25rem;border-color:transparent;padding:.5rem .75rem;font-weight:500;--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#auth-layout .auth-input:focus{border-color:transparent;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary) }.dropdown-link{display:block;width:100%;padding:.25rem 1rem;text-align:left;background:var(--dropdown-color-base);color:var(--dropdown-color-base-contrast)}.dropdown-link:focus,.dropdown-link:hover{outline:none}.dropdown-link:hover{background:var(--dropdown-color-hover);color:var(--dropdown-color-hover-contrast)}.dropdown-separator{margin-top:.5rem;margin-bottom:.5rem;display:block;border-top-width:1px;border-color:var(--dropdown-color-separator)}.dropdown-subheading{padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;background:var(--dropdown-color-subheading);color:var(--dropdown-color-subheading-contrast)}#admin-layout .side-menu{position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:20;overflow-y:auto;min-height:100%;width:100%;padding-left:1rem;padding-right:1rem;padding-bottom:2rem;transition-property:transform;transition-duration:.15s;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);background:var(--side-menu-color-base)}#admin-layout .side-menu:not(.side-menu-open){transform:translate(-100%)}#admin-layout .side-menu .logo{display:flex;height:3.5rem;align-items:center;justify-content:center;font-size:1.25rem;line-height:1.75rem;font-weight:600;color:var(--side-menu-color-logo);transition:color .4s ease-in-out}#admin-layout .side-menu .logo:hover{color:var(--side-menu-color-logo-active)}@media screen and (prefers-reduced-motion: no-preference){#admin-layout .side-menu .logo:hover svg{animation:wobble 1s ease 1}}#admin-layout .side-menu .menu-link-parent.toggled .indicator{transform:rotate(90deg)}#admin-layout .side-menu .menu-link-parent .indicator{margin-left:auto;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;transform:rotate(0)}#admin-layout .side-menu .menu-section{margin-top:.25rem}#admin-layout .side-menu .menu-separator{margin:1.5rem 1rem;border-bottom-width:1px;border-color:var(--side-menu-color-separator)}#admin-layout .side-menu .menu-subheading{padding-left:1rem;padding-right:1rem;font-size:.75rem;line-height:1rem;text-transform:uppercase;letter-spacing:.1em;color:var(--side-menu-color-subheading)}#admin-layout .side-menu .menu-toggle{transition-duration:.3s;padding-top:1rem;padding-bottom:1rem;padding-right:1rem;transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:var(--side-menu-color-toggle)}#admin-layout .side-menu .menu-toggle:focus{outline:2px solid transparent;outline-offset:2px}#admin-layout .side-menu .menu-toggle:focus,#admin-layout .side-menu .menu-toggle:hover{color:var(--side-menu-color-toggle-active)}#admin-layout .side-menu .root-menu-item>.menu-link,#admin-layout .side-menu .root-menu-item>.menu-link-parent{margin-top:.25rem;display:flex;width:100%;flex-direction:row;align-items:center;border-radius:.25rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500}#admin-layout .side-menu .root-menu-item>.menu-link,#admin-layout .side-menu .root-menu-item>.menu-link-parent{transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}#admin-layout .side-menu .root-menu-item>.menu-link,#admin-layout .side-menu .root-menu-item>.menu-link-parent{background:var(--side-menu-color-base);color:var(--side-menu-color-base-contrast);transition-property:background-color,border-color,color,fill,padding,stroke}#admin-layout .side-menu .root-menu-item>.menu-link:focus,#admin-layout .side-menu .root-menu-item>.menu-link-parent:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ring-color-primary)}#admin-layout .side-menu .root-menu-item>.menu-link:hover,#admin-layout .side-menu .root-menu-item>.menu-link-parent:hover{background:var(--side-menu-color-hover);color:var(--side-menu-color-hover-contrast)}@media screen and (prefers-reduced-motion: no-preference){#admin-layout .side-menu .root-menu-item>.menu-link:hover,#admin-layout .side-menu .root-menu-item>.menu-link-parent:hover{padding-left:1.5rem}}#admin-layout .side-menu .root-menu-item>.menu-link.menu-link-active,#admin-layout .side-menu .root-menu-item>.menu-link.menu-link-active:hover,#admin-layout .side-menu .root-menu-item>.menu-link-parent.menu-link-active,#admin-layout .side-menu .root-menu-item>.menu-link-parent.menu-link-active:hover{background:var(--side-menu-color-active);color:var(--side-menu-color-active-contrast)}#admin-layout .side-menu .sub-menu-item>.menu-link,#admin-layout .side-menu .sub-menu-item>.menu-link-parent{margin-top:.25rem;display:flex;width:100%;flex-direction:row;align-items:center;border-radius:.25rem;padding:.25rem 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500}#admin-layout .side-menu .sub-menu-item>.menu-link,#admin-layout .side-menu .sub-menu-item>.menu-link-parent{transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}#admin-layout .side-menu .sub-menu-item>.menu-link,#admin-layout .side-menu .sub-menu-item>.menu-link-parent{background:var(--side-menu-color-sub-menu-base);color:var(--side-menu-color-sub-menu-base-contrast);transition-property:background-color,border-color,color,fill,padding,stroke}#admin-layout .side-menu .sub-menu-item>.menu-link:focus,#admin-layout .side-menu .sub-menu-item>.menu-link-parent:focus{font-weight:600;outline:2px solid transparent;outline-offset:2px}#admin-layout .side-menu .sub-menu-item>.menu-link:hover,#admin-layout .side-menu .sub-menu-item>.menu-link-parent:hover{background:var(--side-menu-color-sub-menu-hover);color:var(--side-menu-color-sub-menu-hover-contrast)}#admin-layout .side-menu .sub-menu-item>.menu-link.menu-link-active,#admin-layout .side-menu .sub-menu-item>.menu-link.menu-link-active:hover,#admin-layout .side-menu .sub-menu-item>.menu-link-parent.menu-link-active,#admin-layout .side-menu .sub-menu-item>.menu-link-parent.menu-link-active:hover{background:var(--side-menu-color-sub-menu-active);color:var(--side-menu-color-sub-menu-active-contrast)}@media screen and (prefers-reduced-motion: no-preference){#admin-layout .side-menu .sub-menu-item>.menu-link:hover,#admin-layout .side-menu .sub-menu-item>.menu-link-parent:hover{padding-left:1.5rem}}@media (min-width: 1024px){#admin-layout .side-menu{position:relative;top:auto;right:auto;bottom:auto;left:auto;width:16rem;overflow:hidden;border-right-width:1px;--tw-border-opacity: 1;border-color:rgba(226,232,240,var(--tw-border-opacity));padding-left:.5rem;padding-right:.5rem;padding-bottom:.5rem}#admin-layout .side-menu:not(.side-menu-open){transform:translate(0)}}@keyframes wobble{0%,to{transform:translate(0);transform-origin:50% 50%}15%{transform:translate(-2px) rotate(-10deg)}30%{transform:translate(1px) rotate(10deg)}45%{transform:translate(-1px) rotate(calc(-10deg / 1.8))}60%{transform:translate(calc(2px / 3.3)) rotate(calc(10deg / 3))}75%{transform:translate(calc(-2px / 5.5)) rotate(-2deg)}}.mce-content-body{color:#334155;max-width:65ch}.mce-content-body [class~=lead]{color:#475569;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.mce-content-body a{color:#0f172a;text-decoration:underline;font-weight:500}.mce-content-body strong{color:#0f172a;font-weight:600}.mce-content-body ol[type=A]{--list-counter-style: upper-alpha}.mce-content-body ol[type=a]{--list-counter-style: lower-alpha}.mce-content-body ol[type=A s]{--list-counter-style: upper-alpha}.mce-content-body ol[type=a s]{--list-counter-style: lower-alpha}.mce-content-body ol[type=I]{--list-counter-style: upper-roman}.mce-content-body ol[type=i]{--list-counter-style: lower-roman}.mce-content-body ol[type=I s]{--list-counter-style: upper-roman}.mce-content-body ol[type=i s]{--list-counter-style: lower-roman}.mce-content-body ol[type="1"]{--list-counter-style: decimal}.mce-content-body ol>li{position:relative;padding-left:1.75em}.mce-content-body ol>li:before{content:counter(list-item,var(--list-counter-style, decimal)) ".";position:absolute;font-weight:400;color:#64748b;left:0}.mce-content-body ul>li{position:relative;padding-left:1.75em}.mce-content-body ul>li:before{content:"";position:absolute;background-color:#cbd5e1;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.mce-content-body hr{border-color:#e2e8f0;border-top-width:1px;margin-top:3em;margin-bottom:3em}.mce-content-body blockquote{font-weight:500;font-style:italic;color:#0f172a;border-left-width:.25rem;border-left-color:#e2e8f0;quotes:"\201c""\201d""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.mce-content-body blockquote p:first-of-type:before{content:open-quote}.mce-content-body blockquote p:last-of-type:after{content:close-quote}.mce-content-body h1{color:#0f172a;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.mce-content-body h2{color:#0f172a;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.mce-content-body h3{color:#0f172a;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.mce-content-body h4{color:#0f172a;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.mce-content-body figure figcaption{color:#64748b;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.mce-content-body code{color:#0f172a;font-weight:600;font-size:.875em}.mce-content-body code:before{content:"`"}.mce-content-body code:after{content:"`"}.mce-content-body a code{color:#0f172a}.mce-content-body pre{color:#e2e8f0;background-color:#1e293b;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.mce-content-body pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.mce-content-body pre code:before{content:none}.mce-content-body pre code:after{content:none}.mce-content-body table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.mce-content-body thead{color:#0f172a;font-weight:600;border-bottom-width:1px;border-bottom-color:#cbd5e1}.mce-content-body thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.mce-content-body tbody tr{border-bottom-width:1px;border-bottom-color:#e2e8f0}.mce-content-body tbody tr:last-child{border-bottom-width:0}.mce-content-body tbody td{vertical-align:top;padding:.5714286em}.mce-content-body{font-size:1rem;line-height:1.75}.mce-content-body p{margin-top:1.25em;margin-bottom:1.25em}.mce-content-body img{margin-top:2em;margin-bottom:2em}.mce-content-body video{margin-top:2em;margin-bottom:2em}.mce-content-body figure{margin-top:2em;margin-bottom:2em}.mce-content-body figure>*{margin-top:0;margin-bottom:0}.mce-content-body h2 code{font-size:.875em}.mce-content-body h3 code{font-size:.9em}.mce-content-body ol,.mce-content-body ul{margin-top:1.25em;margin-bottom:1.25em}.mce-content-body li{margin-top:.5em;margin-bottom:.5em}.mce-content-body>ul>li p{margin-top:.75em;margin-bottom:.75em}.mce-content-body>ul>li>*:first-child{margin-top:1.25em}.mce-content-body>ul>li>*:last-child{margin-bottom:1.25em}.mce-content-body>ol>li>*:first-child{margin-top:1.25em}.mce-content-body>ol>li>*:last-child{margin-bottom:1.25em}.mce-content-body ul ul,.mce-content-body ul ol,.mce-content-body ol ul,.mce-content-body ol ol,.prose ul ul,.prose ul ol,.prose ol ul,.prose ol ol{margin-top:.75em;margin-bottom:.75em}.mce-content-body hr+*{margin-top:0}.mce-content-body h2+*{margin-top:0}.mce-content-body h3+*{margin-top:0}.mce-content-body h4+*{margin-top:0}.mce-content-body thead th:first-child{padding-left:0}.mce-content-body thead th:last-child{padding-right:0}.mce-content-body tbody td:first-child{padding-left:0}.mce-content-body tbody td:last-child{padding-right:0}.mce-content-body>:first-child{margin-top:0}.mce-content-body>:last-child{margin-bottom:0}#admin-layout .top-menu{position:relative;z-index:10;display:flex;height:3.5rem;flex-direction:row;align-items:center;padding-left:1rem;padding-right:1rem;--tw-shadow: 0px 0px 32px 0px rgba(136, 152, 170, .15);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:var(--top-menu-color-base);color:var(--top-menu-color-base-contrast)}#admin-layout .top-menu .menu-link{font-weight:500;color:var(--top-menu-color-base-contrast)}#admin-layout .top-menu .menu-link:focus,#admin-layout .top-menu .menu-link:hover{background:var(--top-menu-color-hover);color:var(--top-menu-color-hover-contrast);outline:none}@keyframes passing-through{0%{opacity:0;transform:translateY(40px)}30%,70%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes slide-in{0%{opacity:0;transform:translateY(40px)}30%{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:2px solid rgba(0,0,0,.3);background:white;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{text-align:center;margin:2em 0}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(to bottom,#eee,#ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:white}.dropzone .dz-preview.dz-image-preview .dz-details{transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:#000000e6;line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid rgba(200,200,200,.8);background-color:#fffc}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:#fff6;padding:0 .4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{transform:scale(1.05);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;animation:slide-in 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview .dz-success-mark,.dropzone .dz-preview .dz-error-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px}.dropzone .dz-preview .dz-success-mark svg,.dropzone .dz-preview .dz-error-mark svg{display:block;width:54px;height:54px}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:16px;left:50%;top:50%;margin-top:-8px;width:80px;margin-left:-40px;background:rgba(255,255,255,.9);-webkit-transform:scale(1);border-radius:8px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#333;background:linear-gradient(to bottom,#666,#444);position:absolute;top:0;left:0;bottom:0;width:0;transition:width .3s ease-in-out}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;transition:opacity .3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#be2626;background:linear-gradient(to bottom,#be2626,#a92222);padding:.5em 1.2em;color:#fff}.dropzone .dz-preview .dz-error-message:after{content:"";position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #be2626}.vue-dropzone{border:2px solid #e5e5e5;font-family:Arial,sans-serif;letter-spacing:.2px;color:#777;transition:.2s linear}.vue-dropzone:hover{background-color:#f6f6f6}.vue-dropzone>i{color:#ccc}.vue-dropzone>.dz-preview .dz-image{border-radius:0;width:100%;height:100%}.vue-dropzone>.dz-preview .dz-image img:not([src]){width:200px;height:200px}.vue-dropzone>.dz-preview .dz-image:hover img{transform:none;-webkit-filter:none}.vue-dropzone>.dz-preview .dz-details{bottom:0;top:0;color:#fff;background-color:#2196f3cc;transition:opacity .2s linear;text-align:left}.vue-dropzone>.dz-preview .dz-details .dz-filename{overflow:hidden}.vue-dropzone>.dz-preview .dz-details .dz-filename span,.vue-dropzone>.dz-preview .dz-details .dz-size span{background-color:transparent}.vue-dropzone>.dz-preview .dz-details .dz-filename:not(:hover) span{border:none}.vue-dropzone>.dz-preview .dz-details .dz-filename:hover span{background-color:transparent;border:none}.vue-dropzone>.dz-preview .dz-progress .dz-upload{background:#ccc}.vue-dropzone>.dz-preview .dz-remove{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px #fff solid;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.vue-dropzone>.dz-preview:hover .dz-remove{opacity:1}.vue-dropzone>.dz-preview .dz-error-mark,.vue-dropzone>.dz-preview .dz-success-mark{margin-left:auto;margin-top:auto;width:100%;top:35%;left:0}.vue-dropzone>.dz-preview .dz-error-mark svg,.vue-dropzone>.dz-preview .dz-success-mark svg{margin-left:auto;margin-right:auto}.vue-dropzone>.dz-preview .dz-error-message{margin-left:auto;margin-right:auto;left:0;width:100%;text-align:center}.vue-dropzone>.dz-preview .dz-error-message:after{display:none}.vue-dropzone{background:unset;border-color:#64748b;border-radius:.25rem;border-style:dashed;color:var(--color-base-contrast);min-height:100px;padding:.5rem}.vue-dropzone:hover{background:#cbd5e1}.vue-dropzone .dz-preview{margin:.5rem;border-radius:.25rem;overflow:hidden}.vue-dropzone .dz-preview .dz-image{max-height:100px;max-width:100px}.vue-dropzone .dz-preview .dz-image img:not([src]){max-height:100px;max-width:100px}.vue-dropzone>.dz-preview .dz-details{background-color:var(--color-base-contrast);color:var(--color-base)}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.top-0{top:0px}.bottom-0{bottom:0px}.left-0{left:0px}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.-mt-4{margin-top:-1rem}.-mt-px{margin-top:-1px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-px{height:1px}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-screen{min-height:100vh}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-12{width:3rem}.w-32{width:8rem}.w-48{width:12rem}.w-60{width:15rem}.w-72{width:18rem}.w-96{width:24rem}.w-160{width:40rem}.w-1\/2{width:50%}.w-full{width:100%}.min-w-5{min-width:1.25rem}.min-w-24{min-width:6rem}.min-w-full{min-width:100%}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-5xl{max-width:64rem}.max-w-full{max-width:100%}.max-w-screen-sm{max-width:640px}.max-w-screen-md{max-width:768px}.max-w-screen-lg{max-width:1024px}.max-w-screen-xl{max-width:1280px}.max-w-screen-2xl{max-width:1536px}.flex-1{flex:1 1 0%}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin-slow{animation:spin 1.5s linear infinite}.cursor-pointer{cursor:pointer}.cursor-move{cursor:move}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-16{gap:4rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-3{row-gap:.75rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(203,213,225,var(--tw-divide-opacity))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-4{border-top-width:4px}.border-t{border-top-width:1px}.border-b-2{border-bottom-width:2px}.border-l-0{border-left-width:0px}.border-transparent{border-color:transparent}.border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgba(226,232,240,var(--tw-border-opacity))}.border-theme-base-subtle{border-color:var(--color-base-subtle)}.border-theme-base-subtle-contrast{border-color:var(--color-base-subtle-contrast)}.border-theme-primary{border-color:var(--color-primary)}.border-theme-primary-subtle{border-color:var(--color-primary-subtle)}.hover\:border-theme-base-subtle-contrast:hover{border-color:var(--color-base-subtle-contrast)}.hover\:border-theme-danger-contrast:hover{border-color:var(--color-danger-contrast)}.hover\:border-theme-primary:hover{border-color:var(--color-primary)}.hover\:border-theme-primary-hover:hover{border-color:var(--color-primary-hover)}.hover\:border-theme-success:hover{border-color:var(--color-success)}.focus\:border-theme-base-subtle-contrast:focus{border-color:var(--color-base-subtle-contrast)}.focus\:border-theme-primary:focus{border-color:var(--color-primary)}.border-opacity-25{--tw-border-opacity: .25}.bg-transparent{background-color:transparent}.bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgba(30,41,59,var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgba(220,38,38,var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.bg-navy-800{--tw-bg-opacity: 1;background-color:rgba(38,44,67,var(--tw-bg-opacity))}.bg-theme-base{background-color:var(--color-base)}.bg-theme-base-contrast{background-color:var(--color-base-contrast)}.bg-theme-base-subtle{background-color:var(--color-base-subtle)}.bg-theme-card{background-color:var(--color-card)}.bg-theme-danger{background-color:var(--color-danger)}.bg-theme-danger-contrast{background-color:var(--color-danger-contrast)}.bg-theme-info{background-color:var(--color-info)}.bg-theme-primary{background-color:var(--color-primary)}.bg-theme-primary-subtle{background-color:var(--color-primary-subtle)}.bg-theme-primary-subtle-hover{background-color:var(--color-primary-subtle-hover)}.bg-theme-secondary{background-color:var(--color-secondary)}.bg-theme-accent{background-color:var(--color-accent)}.bg-theme-success{background-color:var(--color-success)}.bg-theme-success-contrast{background-color:var(--color-success-contrast)}.bg-theme-warning{background-color:var(--color-warning)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgba(30,41,59,var(--tw-bg-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgba(239,246,255,var(--tw-bg-opacity))}.hover\:bg-theme-base-subtle:hover{background-color:var(--color-base-subtle)}.hover\:bg-theme-base-subtle-contrast:hover{background-color:var(--color-base-subtle-contrast)}.hover\:bg-theme-danger:hover{background-color:var(--color-danger)}.hover\:bg-theme-danger-contrast:hover{background-color:var(--color-danger-contrast)}.hover\:bg-theme-info:hover{background-color:var(--color-info)}.hover\:bg-theme-info-contrast:hover{background-color:var(--color-info-contrast)}.hover\:bg-theme-primary:hover{background-color:var(--color-primary)}.hover\:bg-theme-primary-hover:hover{background-color:var(--color-primary-hover)}.hover\:bg-theme-primary-subtle:hover{background-color:var(--color-primary-subtle)}.hover\:bg-theme-primary-subtle-hover:hover{background-color:var(--color-primary-subtle-hover)}.hover\:bg-theme-secondary:hover{background-color:var(--color-secondary)}.hover\:bg-theme-success:hover{background-color:var(--color-success)}.hover\:bg-theme-warning-contrast:hover{background-color:var(--color-warning-contrast)}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.focus\:bg-theme-danger:focus{background-color:var(--color-danger)}.focus\:bg-theme-success:focus{background-color:var(--color-success)}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-75{--tw-bg-opacity: .75}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-700{--tw-gradient-from: #1d4ed8;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0))}.to-blue-600{--tw-gradient-to: #2563eb}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-0\.5{padding:.125rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-12{padding-left:3rem;padding-right:3rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-20{padding-top:5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-8,.hover\:pl-8:hover{padding-left:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.font-light{font-weight:300}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-black{font-weight:900}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity: 1;color:rgba(0,0,0,var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgba(203,213,225,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgba(148,163,184,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgba(100,116,139,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgba(71,85,105,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgba(51,65,85,var(--tw-text-opacity))}.text-gray-850{--tw-text-opacity: 1;color:rgba(34,41,56,var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgba(15,23,42,var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgba(5,150,105,var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgba(4,120,87,var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgba(30,58,138,var(--tw-text-opacity))}.text-theme-base-contrast{color:var(--color-base-contrast)}.text-theme-base-subtle-contrast{color:var(--color-base-subtle-contrast)}.text-theme-card-contrast{color:var(--color-card-contrast)}.text-theme-danger-contrast{color:var(--color-danger-contrast)}.text-theme-info-contrast{color:var(--color-info-contrast)}.text-theme-primary{color:var(--color-primary)}.text-theme-primary-contrast{color:var(--color-primary-contrast)}.text-theme-secondary-contrast{color:var(--color-secondary-contrast)}.text-theme-accent-contrast{color:var(--color-accent-contrast)}.text-theme-success-contrast{color:var(--color-success-contrast)}.text-theme-warning-contrast{color:var(--color-warning-contrast)}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgba(15,23,42,var(--tw-text-opacity))}.hover\:text-theme-base-subtle:hover{color:var(--color-base-subtle)}.hover\:text-theme-base-subtle-contrast:hover{color:var(--color-base-subtle-contrast)}.hover\:text-theme-danger:hover{color:var(--color-danger)}.hover\:text-theme-danger-contrast:hover{color:var(--color-danger-contrast)}.hover\:text-theme-danger-hover-contrast:hover{color:var(--color-danger-hover-contrast)}.hover\:text-theme-info:hover{color:var(--color-info)}.hover\:text-theme-info-contrast:hover{color:var(--color-info-contrast)}.hover\:text-theme-primary:hover{color:var(--color-primary)}.hover\:text-theme-primary-contrast:hover{color:var(--color-primary-contrast)}.hover\:text-theme-primary-hover:hover{color:var(--color-primary-hover)}.hover\:text-theme-primary-hover-contrast:hover{color:var(--color-primary-hover-contrast)}.hover\:text-theme-primary-subtle-contrast:hover{color:var(--color-primary-subtle-contrast)}.hover\:text-theme-secondary-contrast:hover{color:var(--color-secondary-contrast)}.hover\:text-theme-success-contrast:hover{color:var(--color-success-contrast)}.hover\:text-theme-success-hover-contrast:hover{color:var(--color-success-hover-contrast)}.hover\:text-theme-warning:hover{color:var(--color-warning)}.hover\:text-theme-warning-hover-contrast:hover{color:var(--color-warning-hover-contrast)}.focus\:text-gray-900:focus{--tw-text-opacity: 1;color:rgba(15,23,42,var(--tw-text-opacity))}.focus\:text-theme-danger-contrast:focus{color:var(--color-danger-contrast)}.focus\:text-theme-primary:focus{color:var(--color-primary)}.focus\:text-theme-success-contrast:focus{color:var(--color-success-contrast)}.underline{text-decoration:underline}.line-through{text-decoration:line-through}.group:hover .group-hover\:underline,.hover\:underline:hover{text-decoration:underline}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.group:hover .group-hover\:opacity-100{opacity:1}*,:before,:after{--tw-shadow: 0 0 #0000}.shadow{--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-subtle{--tw-shadow: 0px 0px 32px 0px rgba(136, 152, 170, .15);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-subtle:hover{--tw-shadow: 0px 0px 32px 0px rgba(136, 152, 170, .15);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-none:focus{--tw-shadow: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-200{--tw-ring-opacity: 1;--tw-ring-color: rgba(226, 232, 240, var(--tw-ring-opacity))}.ring-theme-primary-subtle-hover{--tw-ring-color: var(--color-primary-subtle-hover)}.focus\:ring-primary:focus{--tw-ring-color: var(--ring-color-primary)}.ring-offset-2{--tw-ring-offset-width: 2px}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 640px){.sm\:ml-6{margin-left:1.5rem}.sm\:w-16{width:4rem}.sm\:w-auto{width:auto}.sm\:w-1\/2{width:50%}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 768px){.md\:order-1{order:1}.md\:mx-8{margin-left:2rem;margin-right:2rem}.md\:mt-0{margin-top:0}.md\:mt-2{margin-top:.5rem}.md\:mr-2{margin-right:.5rem}.md\:mr-auto{margin-right:auto}.md\:ml-8{margin-left:2rem}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-12{height:3rem}.md\:w-12{width:3rem}.md\:w-72{width:18rem}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/6{width:16.666667%}.md\:flex-1{flex:1 1 0%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-start{align-items:flex-start}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-20{gap:5rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.md\:rounded-lg{border-radius:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-16{padding-top:4rem;padding-bottom:4rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:pt-12{padding-top:3rem}.md\:pb-24{padding-bottom:6rem}.md\:text-left{text-align:left}.md\:text-center{text-align:center}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 1024px){.lg\:mt-4{margin-top:1rem}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:w-1\/4{width:25%}.lg\:max-w-sm{max-width:24rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.lg\:text-left{text-align:left}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:tracking-tight{letter-spacing:-.025em}}@media (min-width: 1280px){.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:text-7xl{font-size:4.5rem;line-height:1}.xl\:tracking-tighter{letter-spacing:-.05em}}.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.mce-content-body{padding:.5rem .75rem}.tox-comments-visible .tox-comment{background-color:#fff0b7}.tox-comments-visible .tox-comment--active{background-color:#ffe168}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden):before{content:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A);cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked:before{content:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A)}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden):before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body *[data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body *[contentEditable=false]{cursor:default}.mce-content-body *[contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A),default}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}.mce-object{background:transparent url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A) no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected="2"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--21by9,.tiny-pageembed--16by9,.tiny-pageembed--4by3,.tiny-pageembed--1by1{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--21by9 iframe,.tiny-pageembed--16by9 iframe,.tiny-pageembed--4by3 iframe,.tiny-pageembed--1by1 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#222f3eb3;content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks):before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks):before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:10000}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-clonedresizable{opacity:.5;outline:1px dashed black;position:absolute;z-index:10000}.mce-content-body .mce-clonedresizable.mce-resizetable-columns th,.mce-content-body .mce-clonedresizable.mce-resizetable-columns td{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10001}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor:before{background-color:inherit;border-radius:50%;content:"";display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover:after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body img[data-mce-selected],.mce-content-body video[data-mce-selected],.mce-content-body audio[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body table[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body *[contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly *[contentEditable=true]:focus,.mce-content-body.mce-content-readonly *[contentEditable=true]:hover{outline:none}.mce-content-body *[data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:none}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:none}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]:after,.mce-content-body th[data-mce-selected]:after{background-color:#b4d7ffb3;border:1px solid rgba(180,215,255,.7);bottom:-1px;content:"";left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.mce-content-body td[data-mce-selected]:after,.mce-content-body th[data-mce-selected]:after{border-color:#0054b4b3}}.mce-content-body img::-moz-selection{background:none}.mce-content-body img::selection{background:none}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc li{list-style-type:none}table[style*="border-width: 0px"],.mce-item-table:not([border]),.mce-item-table[border="0"],table[style*="border-width: 0px"] td,.mce-item-table:not([border]) td,.mce-item-table[border="0"] td,table[style*="border-width: 0px"] th,.mce-item-table:not([border]) th,.mce-item-table[border="0"] th,table[style*="border-width: 0px"] caption,.mce-item-table:not([border]) caption,.mce-item-table[border="0"] caption{border:1px dashed #bbb}.mce-visualblocks p,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks section,.mce-visualblocks article,.mce-visualblocks blockquote,.mce-visualblocks address,.mce-visualblocks pre,.mce-visualblocks figure,.mce-visualblocks figcaption,.mce-visualblocks hgroup,.mce-visualblocks aside,.mce-visualblocks ul,.mce-visualblocks ol,.mce-visualblocks dl{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) ul,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) dl{margin-left:3px}.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] ul,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] dl{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy:after{content:"-"}body{font-family:sans-serif}table{border-collapse:collapse}.tox{box-sizing:content-box;color:#222f3e;cursor:auto;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){color:inherit;cursor:inherit;direction:inherit;background:transparent;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #e2e8f0;border-radius:.25rem;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox-tinymce-inline{border:none;box-shadow:none}.tox-tinymce-inline .tox-editor-header{border:1px solid #e2e8f0;border-radius:.25rem;box-shadow:none}.tox-tinymce-aux{font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:28}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border:1px solid #e2e8f0;border-radius:.5rem;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>*:last-child:not(:only-child){border-color:#e2e8f0;border-style:solid}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#2563eb1a;border-color:#2563eb66;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description>*:last-child{border-color:#2563eb66}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#2563eb}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#2563eb}.tox .tox-dialog__body-content .accessibility-issue--info a .tox-icon{color:#2563eb}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa5001a;border-color:#ffa50080;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description>*:last-child{border-color:#ffa50080}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--warn a .tox-icon{color:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc00001a;border-color:#c006;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description>*:last-child{border-color:#c006}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#c00}.tox .tox-dialog__body-content .accessibility-issue--error a .tox-icon{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab461a;border-color:#78ab4666;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{border-color:#78ab4666}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#78ab46}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#78ab46}.tox .tox-dialog__body-content .accessibility-issue--success a .tox-icon{color:#78ab46}.tox .tox-dialog__body-content .accessibility-issue__header h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description>*:last-child{border-left-width:1px;padding-left:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description>*:last-child{border-right-width:1px;padding-right:4px}.tox .tox-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#2563eb;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#2563eb;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;text-align:center;text-decoration:none;text-transform:capitalize;white-space:nowrap}.tox .tox-button[disabled]{background-color:#2563eb;background-image:none;border-color:#2563eb;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1555e2;background-image:none;border-color:#1555e2;box-shadow:none;color:#fff}.tox .tox-button:hover:not(:disabled){background-color:#1555e2;background-image:none;border-color:#1555e2;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#134cca;background-image:none;border-color:#134cca;box-shadow:none;color:#fff}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#f0f0f0;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;font-size:14px;font-style:normal;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:capitalize}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:#222f3e80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked[disabled]{background-color:#f0f0f0;border-color:#f0f0f0;box-shadow:none;color:#222f3e80}.tox .tox-button--naked:hover:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:#d6d6d6;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:.25rem;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:.25rem;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#222f3e4d}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#2563eb}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#2563eb}.tox .tox-checkbox--disabled{color:#222f3e80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#222f3e80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#222f3e80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#222f3e80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:.25rem;box-shadow:inset 0 0 0 1px #2563eb;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#e2e8f0;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#e6e6e6;color:#222f3eb3;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;color:#222f3e;cursor:pointer;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#dee0e2;color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#dee0e2;color:#222f3e}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#dee0e2;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#222f3e80;cursor:not-allowed}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;-ms-flex-preferred-size:auto;font-size:14px;font-style:normal;font-weight:400;line-height:24px;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:#222f3eb3;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#222f3e}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 3px #00000026;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:2px 0 3px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #e2e8f0}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #e2e8f0}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-icon-rtl .tox-collection__item-icon svg{transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#dee0e2}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#fff;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 4px 8px #222f3e1a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#222f3e;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#222f3eb3;font-size:12px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#222f3eb3;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#fff;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(255,255,255,0),#fff);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#fff;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#222f3e;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff;color:#222f3e;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#fff;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#222f3eb3}.tox .tox-user__name{color:#222f3eb3;font-size:12px;font-style:normal;font-weight:700;text-transform:uppercase}.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:24}.tox .tox-dialog-wrap__backdrop{background-color:#ffffffbf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff;border-color:#e2e8f0;border-radius:.5rem;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #222f3e26,0 0 40px 1px #222f3e26;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:24}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#222f3e;display:flex;flex:1;-ms-flex-preferred-size:auto;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;padding:16px}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#222f3eb3;display:inline-block;font-size:14px;line-height:1.3;margin-bottom:8px;text-decoration:none;white-space:nowrap}.tox .tox-dialog__body-nav-item:focus{background-color:#2563eb1a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #2563eb;color:#2563eb}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto;max-height:650px;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#2563eb;cursor:pointer;text-decoration:none}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#134cca;text-decoration:none}.tox .tox-dialog__body-content a:active{color:#134cca;text-decoration:none}.tox .tox-dialog__body-content svg{fill:#222f3e}.tox .tox-dialog__body-content ul{display:block;list-style-type:disc;margin-bottom:16px;margin-inline-end:0;margin-inline-start:0;padding-inline-start:2.5rem}.tox .tox-dialog__body-content .tox-form__group h1{color:#222f3e;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#222f3e;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #e2e8f0}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:24}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;-ms-flex-preferred-size:auto;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}.tox.tox-platform-ie .tox-dialog-wrap{position:-ms-device-fixed}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #e2e8f0;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#222f3eb3;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;-ms-flex-preferred-size:auto;overflow:hidden;position:relative}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;-ms-flex-preferred-size:auto;height:100%;position:absolute;width:100%}.tox.tox-inline-edit-area{border:1px dotted #e2e8f0}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{z-index:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{box-shadow:none;transition:box-shadow .5s}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter,.tox .tox-autocompleter .tox-menu{max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#222f3e33;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#2563eb;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #fff;border-radius:.25rem;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#222f3eb3;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-textarea{flex:1;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;-ms-flex-preferred-size:auto;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#e2e8f0;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.0625px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#f2f2f2;color:#222f3ed9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea:focus{background-color:#fff;border-color:#2563eb;box-shadow:none;outline:none}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#2563eb;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#f2f2f2;color:#222f3ed9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#222f3e}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#e2e8f0;border-radius:.25rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.0625px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#f2f2f2;color:#222f3ed9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#fff;border-color:#2563eb;box-shadow:none;outline:none}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap;font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tox-fullscreen{border:0;height:100%;left:0;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;position:fixed;top:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{z-index:26}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:27}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-image-tools{width:100%}.tox .tox-image-tools__toolbar{align-items:center;display:flex;justify-content:center}.tox .tox-image-tools__image{background-color:#666;height:380px;overflow:auto;position:relative;width:100%}.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top:8px}.tox .tox-image-tools__image-bg{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools__toolbar>.tox-spacer{flex:1;-ms-flex-preferred-size:auto}.tox .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-left:8px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left:32px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left:32px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-right:8px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-right:32px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-right:32px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#e2e8f0;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#2563eb80;border-color:#2563eb80}.tox .tox-insert-table-picker__label{color:#222f3eb3;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 4px 8px #222f3e1a;display:inline-block;overflow:hidden;vertical-align:top;z-index:25}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23ccc'/%3E%3C/svg%3E") left 0 top 0 #ffffff;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 4px}.tox.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #e2e8f0}.tox .tox-mbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#000;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:#00000080;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-mbtn--active{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:.5rem;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#e4eeda;border-color:#d7e6c8;color:#222f3e}.tox .tox-notification--success p{color:#222f3e}.tox .tox-notification--success a{color:#547831}.tox .tox-notification--success svg{fill:#222f3e}.tox .tox-notification--error{background-color:#f8dede;border-color:#f2bfbf;color:#222f3e}.tox .tox-notification--error p{color:#222f3e}.tox .tox-notification--error a{color:#c00}.tox .tox-notification--error svg{fill:#222f3e}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#fffaea;border-color:#ffe89d;color:#222f3e}.tox .tox-notification--warn p,.tox .tox-notification--warning p,.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#222f3e}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#222f3e}.tox .tox-notification--info{background-color:#d9edf7;border-color:#779ecb;color:#222f3e}.tox .tox-notification--info p,.tox .tox-notification--info a{color:#222f3e}.tox .tox-notification--info svg{fill:#222f3e}.tox .tox-notification__body{align-self:center;color:#222f3e;font-size:14px;-ms-grid-column-span:1;grid-column-end:3;grid-column-start:2;-ms-grid-row-span:1;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;-ms-grid-column-span:1;grid-column-end:2;grid-column-start:1;-ms-grid-row-span:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;-ms-grid-column-span:1;grid-column-end:4;grid-column-start:3;-ms-grid-row-span:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{-ms-grid-column-span:3;grid-column-end:4;grid-column-start:1;-ms-grid-row-span:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar{flex-wrap:nowrap}.tox .tox-pop__dialog{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 3px #00000026;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;position:absolute;width:0}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#e2e8f0 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #e2e8f0 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #e2e8f0 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #e2e8f0;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;-ms-flex-preferred-size:0;min-height:0}.tox .tox-sidebar{background-color:#fff;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;-ms-flex-preferred-size:auto;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #e2e8f0;border-radius:.25rem;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#2563eb;border:2px solid #134cca;border-radius:.25rem;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#222f3eb3;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#fff;border-top:1px solid #e2e8f0;color:#222f3eb3;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:flex-end;overflow:hidden}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#222f3eb3;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){cursor:pointer;text-decoration:underline}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-left:1ch}.tox .tox-statusbar__resize-handle svg{display:block;fill:#222f3eb3}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:29}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#fff9;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#000;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#000}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#dee0e2;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-tbtn:hover svg{fill:#000}.tox .tox-tbtn:active{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-tbtn:active svg{fill:#000}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#00000080;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#00000080}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#dee0e2;border:0;box-shadow:none;color:#000}.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#000}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#000}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#000}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tbtn--select{margin:2px 0 3px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#00000080}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:2px 0 3px;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #dee0e2 inset}.tox .tox-split-button:focus{background:#dee0e2;box-shadow:none;color:#000}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#00000080}.tox .tox-split-button .tox-tbtn{margin:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:transparent;box-shadow:none;color:#00000080}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23ccc'/%3E%3C/svg%3E") left 0 top 0 #ffffff;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #e2e8f0;margin-top:-1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child,.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary{border-top:1px solid #e2e8f0}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 3px #00000026}.tox[dir=rtl] .tox-tbtn__icon-rtl svg{transform:rotateY(180deg)}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #e2e8f0}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #e2e8f0}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:.5rem;box-shadow:0 2px 4px #222f3e4d;color:#ffffffbf;font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-well{border:1px solid #e2e8f0;border-radius:.5rem;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #e2e8f0;border-radius:.5rem;display:flex;flex:1;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-image-tools-edit-panel,.tox .tox-image-tools__sidebar{height:60px} diff --git a/public/build/assets/app.795ed856.js b/public/build/assets/app.795ed856.js new file mode 100644 index 00000000..69442628 --- /dev/null +++ b/public/build/assets/app.795ed856.js @@ -0,0 +1 @@ +import{n as a,P as c,S as _,T as l,a as u,L as m,_ as v,b as d,c as p,d as b,e as g,f as h,g as I,h as f,i as x,j as y,k as w,l as C,m as L,o as M,p as A,q as P,r as E,s as S,t as k,u as D,v as T,w as q,x as $,y as V,z as R,A as F,B,C as O,D as H,E as N,F as G,G as j,H as z,I as U,J as W,K as X,M as Y,N as Q,O as Z,Q as J,R as K,U as ee,V as oe,W as ne,X as te,Y as se,Z as ie,$ as ae,a0 as re,a1 as ce,a2 as _e,a3 as le,a4 as ue,a5 as me,a6 as ve,a7 as de,a8 as pe,a9 as be,aa as ge,ab as he,ac as Ie,ad as fe,ae as xe,af as ye,ag as we,ah as Ce,ai as Le,aj as Me,ak as Ae,al as Pe,am as Ee,an as Se,ao as ke,ap as De,aq as Te,ar as qe,as as $e,at as Ve,au as Re,av as Fe,aw as Be,ax as Oe,ay as He,az as Ne,aA as s}from"./LogoLight.f7426689.js";import{_ as Ge,a as je,O as ze,V as i,B as Ue,I as We}from"./vendor.21c2b6f5.js";window._=Ge;window.axios=je;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";const Xe={name:"AdminLayout",components:{PageAlerts:c},metaInfo(){return{title:this.metaTitle,meta:[{name:"description",content:this.metaDescription}]}},data(){return{sideMenu:{main:{children:{dashboard:{children:!1,icon:"icon-home",label:"Dashboard",requiresAllPermissions:[],requiresAnyPermissions:[],route:"landlord.admin.index"}},label:"Main",requiresAllPermissions:[],requiresAnyPermissions:[],showLabel:!1},admin:{children:{tenants:{activeRoutes:["landlord.admin.tenants.index","landlord.admin.tenants.create","landlord.admin.tenants.edit"],children:{index:{icon:!1,label:"View Tenants",requiresAllPermissions:["tenants.view"],requiresAnyPermissions:[],route:"landlord.admin.tenants.index"},create:{children:!1,icon:!1,label:"Create Tenant",requiresAllPermissions:["tenants.create"],requiresAnyPermissions:[],route:"landlord.admin.tenants.create"}},icon:"icon-app-window",label:"Tenants",requiresAllPermissions:[],requiresAnyPermissions:["tenants.view","tenants.create"],route:!1},users:{activeRoutes:["landlord.admin.users.index","landlord.admin.users.create","landlord.admin.users.edit"],children:{index:{icon:!1,label:"View Users",requiresAllPermissions:["users.view"],requiresAnyPermissions:[],route:"landlord.admin.users.index"},create:{children:!1,icon:!1,label:"Create User",requiresAllPermissions:["users.create"],requiresAnyPermissions:[],route:"landlord.admin.users.create"}},icon:"icon-users",label:"Users",requiresAllPermissions:[],requiresAnyPermissions:["users.view","users.create"],route:!1}},label:"Admin",requiresAllPermissions:[],requiresAnyPermissions:["users.view","users.create","tenants.view","tenants.create"],showLabel:!0}}}},computed:{metaDescription(){return this.getMetaDataField("description","SIGI - powered by Laravel, Tailwind, Vue, and Inertia")},metaTitle(){return this.getMetaDataField("title","SIGI")}},mounted(){ze.on("success",n=>{this.hideMobileSideMenu()})},methods:{getMetaDataField(n,o=""){var e;try{return(e=this.$page.props.meta[n])!=null?e:o}catch(t){return console.log(t),o}},url(){return location.pathname.substr(1)},hideMobileSideMenu(){this.$store.state.isMobileSideMenuOpen&&this.$store.commit("hideMobileSideMenu")}}};var Ye=function(){var o=this,e=o._self._c;return e("div",[e("main",{staticClass:"flex min-h-screen",attrs:{id:"admin-layout"}},[e("side-menu",{attrs:{url:o.url(),menu:o.sideMenu}}),e("div",{staticClass:"flex flex-1 flex-col max-w-full"},[e("top-menu"),e("page-alerts"),e("div",{staticClass:"bg-theme-base flex-1 p-8"},[o._t("default")],2)],1)],1)])},Qe=[],Ze=a(Xe,Ye,Qe,!1,null,null,null,null);const Je=Ze.exports,Ke={name:"AuthLayout",metaInfo(){return{title:"SIGI",meta:[{name:"description",content:"SIGI"}]}}};var eo=function(){var o=this,e=o._self._c;return e("div",[e("main",{staticClass:"bg-theme-base-contrast",attrs:{id:"auth-layout"}},[e("div",{staticClass:"absolute inset-0 w-full"},[e("div",{staticClass:"auth-background-container bg-theme-primary"}),e("svg",{staticClass:"fill-current -mt-px text-theme-primary",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 320"}},[e("path",{attrs:{"fill-opacity":"1",d:"M0,64L120,69.3C240,75,480,85,720,85.3C960,85,1200,75,1320,69.3L1440,64L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"}})])]),e("div",{staticClass:"flex items-center justify-center min-h-screen min-w-full p-4 relative"},[o._t("default")],2)])])},oo=[],no=a(Ke,eo,oo,!1,null,null,null,null);const to=no.exports,so={name:"HamburgerButton",props:{showCloseIcon:{required:!0,type:Boolean}},methods:{toggleButton(){this.$emit("button-toggled",!this.showCloseIcon)}}};var io=function(){var o=this,e=o._self._c;return e("button",{staticClass:"cursor-pointer fill-current flex justify-center text-gray-600 focus:outline-none focus:text-gray-900 hover:text-theme-gray-900 transition-colors",on:{click:o.toggleButton}},[e("span",[e("svg",{staticClass:"h-6",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[o.showCloseIcon?e("path",{attrs:{d:"M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1 1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828z"}}):e("path",{attrs:{"fill-rule":"evenodd",d:"M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"}})])])])},ao=[],ro=a(so,io,ao,!1,null,null,null,null);const co=ro.exports,_o={name:"HeaderMenuMobile",props:{isVisible:{required:!0,type:Boolean},navigationLinks:{required:!0,type:Object|Array}},methods:{linkSelected(){this.$emit("link-selected",!0)}}};var lo=function(){var o=this,e=o._self._c;return e("transition",{attrs:{name:"slide-left"}},[e("nav",{directives:[{name:"show",rawName:"v-show",value:o.isVisible,expression:"isVisible"}],staticClass:"absolute bg-white inset-0 pt-20 z-30 w-full md:hidden"},[e("div",{staticClass:"border-t border-opacity-25 border-white box-border flex flex-col h-full overflow-auto"},[e("ul",{staticClass:"flex-1"},o._l(o.navigationLinks,function(t,r){return e("li",{key:"header-link-mobile-"+r,on:{click:o.linkSelected}},[e("inertia-link",{staticClass:"block pointer p-4 text-l text-center text-gray-600 focus:bg-gray-100 focus:text-gray-900 hover:bg-gray-100 hover:text-gray-900 transition-colors",attrs:{title:t.label,to:t.href}},[o._v(" "+o._s(t.label)+" ")])],1)}),0)])])])},uo=[],mo=a(_o,lo,uo,!1,null,null,null,null);const vo=mo.exports,po={components:{HeaderMenuMobile:vo,HamburgerButton:co},computed:{},data(){return{headerMenu:[],isMobileNavVisible:!1,mobileNavScrollClass:"mobile-nav-scroll-lock"}},methods:{setMobileNavVisible(n){this.isMobileNavVisible=n,n?document.body.classList.add(this.mobileNavScrollClass):document.body.classList.remove(this.mobileNavScrollClass)}}};var bo=function(){var o=this,e=o._self._c;return e("header",[e("div",{staticClass:"flex flex-row h-20 items-center max-w-screen-xl mx-auto px-5 relative z-40 md:justify-between"},[e("inertia-link",{staticClass:"block text-black text-lg font-bold md:text-xl hover:text-theme-primary-hover transition-colors",attrs:{title:"SIGI",href:"/"}},[o._v(" SIGI ")]),e("nav",{staticClass:"hidden flex-row items-center text-gray-600 md:flex"},[e("ul",{staticClass:"flex flex-row items-center -mx-4"},o._l(o.headerMenu,function(t,r){return e("li",{key:`menu-item${r}`,staticClass:"mx-4"},[e("inertia-link",{staticClass:"focus:text-gray-900 hover:text-gray-900 hover:underline",attrs:{title:t.label,href:t.href}},[o._v(" "+o._s(t.label)+" ")])],1)}),0)]),e("nav",{staticClass:"hidden flex-row items-center text-theme-primary md:flex"},[e("ul",{staticClass:"flex flex-row items-center -mx-4"},[e("li",{staticClass:"mx-4"},[e("inertia-link",{staticClass:"bg-theme-primary border-2 border-transparent px-4 py-2 ring-offset-2 ring-theme-primary-subtle-hover rounded text-center text-theme-primary-contrast transition focus-visible:ring-2 hover:bg-theme-primary-hover hover:text-theme-primary-hover-contrast",attrs:{title:"Enquire",href:"/#"}},[o._v(" Enquire ")])],1)])]),e("nav",{staticClass:"flex flex-row items-center ml-auto md:hidden"},[e("hamburger-button",{attrs:{"show-close-icon":o.isMobileNavVisible},on:{"button-toggled":o.setMobileNavVisible}})],1)],1),e("header-menu-mobile",{attrs:{"is-visible":o.isMobileNavVisible,"navigation-links":o.headerMenu},on:{"link-selected":function(t){return o.setMobileNavVisible(!1)}}})],1)},go=[],ho=a(po,bo,go,!1,null,null,null,null);const Io=ho.exports,fo={name:"LandlordWebsiteLayout",components:{HeaderMenu:Io},metaInfo(){return{title:this.metaTitle,meta:[{name:"description",content:this.metaDescription}]}},computed:{metaDescription(){return this.getMetaDataField("description","SIGI - powering your online presence")},metaTitle(){return this.getMetaDataField("title","SIGI")},metaTenantName(){return this.getMetaDataField("tenant","SIGI")}},methods:{getMetaDataField(n,o=""){var e;try{return(e=this.$page.props.meta[n])!=null?e:o}catch{return o}}}};var xo=function(){var o=this,e=o._self._c;return e("div",[e("main",{staticClass:"bg-white",attrs:{id:"website-layout"}},[e("header-menu"),o._t("default"),e("div",{staticClass:"mt-20 text-center"},[o._v(" Copyright \xA9 "+o._s(new Date().getFullYear())+" SIGI ")])],2)])},yo=[],wo=a(fo,xo,yo,!1,null,null,null,null);const Co=wo.exports;i.component("inertia-link",Ue);i.component("admin-layout",Je);i.component("auth-layout",to);i.component("website-layout",Co);const Lo=Object.assign({"../components/core/icons/IconAlertTriangle.vue":v,"../components/core/icons/IconAlertVideo.vue":d,"../components/core/icons/IconAppWindow.vue":p,"../components/core/icons/IconArrowBarLeft.vue":b,"../components/core/icons/IconArrowBarUp.vue":g,"../components/core/icons/IconArrowsShuffle.vue":h,"../components/core/icons/IconBadgeCc.vue":I,"../components/core/icons/IconBookDownload.vue":f,"../components/core/icons/IconBoxMultiple.vue":x,"../components/core/icons/IconBrandInertia.vue":y,"../components/core/icons/IconBrandLaravel.vue":w,"../components/core/icons/IconBrandTailwind.vue":C,"../components/core/icons/IconBrandVue.vue":L,"../components/core/icons/IconBuilding.vue":M,"../components/core/icons/IconCameraCheck.vue":A,"../components/core/icons/IconCaretLeft.vue":P,"../components/core/icons/IconCertificate.vue":E,"../components/core/icons/IconChalkboard.vue":S,"../components/core/icons/IconCheck.vue":k,"../components/core/icons/IconChevronLeft.vue":D,"../components/core/icons/IconChevronRight.vue":T,"../components/core/icons/IconChevronsLeft.vue":q,"../components/core/icons/IconChevronsRight.vue":$,"../components/core/icons/IconClose.vue":V,"../components/core/icons/IconColumns.vue":R,"../components/core/icons/IconCornerUpLeft.vue":F,"../components/core/icons/IconDeviceMobile.vue":B,"../components/core/icons/IconDiscount.vue":O,"../components/core/icons/IconDownload.vue":H,"../components/core/icons/IconEdit.vue":N,"../components/core/icons/IconExternalLink.vue":G,"../components/core/icons/IconEye.vue":j,"../components/core/icons/IconFacebook.vue":z,"../components/core/icons/IconFile.vue":U,"../components/core/icons/IconFileDownload.vue":W,"../components/core/icons/IconFileText.vue":X,"../components/core/icons/IconFolder.vue":Y,"../components/core/icons/IconFolders.vue":Q,"../components/core/icons/IconForms.vue":Z,"../components/core/icons/IconGridDots.vue":J,"../components/core/icons/IconHamburgerMenu.vue":K,"../components/core/icons/IconHeadphones.vue":ee,"../components/core/icons/IconHierarchy.vue":oe,"../components/core/icons/IconHierarchyThree.vue":ne,"../components/core/icons/IconHome.vue":te,"../components/core/icons/IconId.vue":se,"../components/core/icons/IconInbox.vue":ie,"../components/core/icons/IconInfinity.vue":ae,"../components/core/icons/IconInfoSquare.vue":re,"../components/core/icons/IconInstagram.vue":ce,"../components/core/icons/IconLanguage.vue":_e,"../components/core/icons/IconLayout.vue":le,"../components/core/icons/IconLayoutNavbar.vue":ue,"../components/core/icons/IconLinkedIn.vue":me,"../components/core/icons/IconLoader.vue":ve,"../components/core/icons/IconLoaderCircle.vue":de,"../components/core/icons/IconLoaderQuarter.vue":pe,"../components/core/icons/IconLogoDark.vue":be,"../components/core/icons/IconLogoLight.vue":ge,"../components/core/icons/IconMail.vue":he,"../components/core/icons/IconMinus.vue":Ie,"../components/core/icons/IconMoneybag.vue":fe,"../components/core/icons/IconPhoto.vue":xe,"../components/core/icons/IconPlayerPlayFilled.vue":ye,"../components/core/icons/IconPlus.vue":we,"../components/core/icons/IconReceiptRefund.vue":Ce,"../components/core/icons/IconSave.vue":Le,"../components/core/icons/IconSettings.vue":Me,"../components/core/icons/IconShoppingCart.vue":Ae,"../components/core/icons/IconSitemap.vue":Pe,"../components/core/icons/IconSnapchat.vue":Ee,"../components/core/icons/IconSpeakerPhone.vue":Se,"../components/core/icons/IconSquareCheck.vue":ke,"../components/core/icons/IconSquareCheckFilled.vue":De,"../components/core/icons/IconSquarePlus.vue":Te,"../components/core/icons/IconTags.vue":qe,"../components/core/icons/IconTemplate.vue":$e,"../components/core/icons/IconTiktok.vue":Ve,"../components/core/icons/IconTrash.vue":Re,"../components/core/icons/IconTwitter.vue":Fe,"../components/core/icons/IconUsers.vue":Be,"../components/core/icons/IconX.vue":Oe,"../components/core/icons/IconYoutube.vue":He});Object.entries(Lo).forEach(([n,o])=>{const e=n.split("/").pop().split(".")[0];i.component(e,o.default)});i.component("side-menu",_);i.component("top-menu",l);i.component("pagination",u);i.component("logo-light",m);We({progress:{delay:5,includeCSS:!1,showSpinner:!1},resolve:async n=>(await Object.assign({"./pages/admin/error/Error.vue":()=>s(()=>import("./Error.79c094aa.js"),["assets/Error.79c094aa.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/home/Index.vue":()=>s(()=>import("./Index.17940c7c.js"),["assets/Index.17940c7c.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/profile/Edit.vue":()=>s(()=>import("./Edit.922955c0.js"),["assets/Edit.922955c0.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/profile/Index.vue":()=>s(()=>import("./Index.4223f71d.js"),["assets/Index.4223f71d.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/tenant/Create.vue":()=>s(()=>import("./Create.fbafad00.js"),["assets/Create.fbafad00.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/tenant/Edit.vue":()=>s(()=>import("./Edit.3a64c03f.js"),["assets/Edit.3a64c03f.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js","assets/ConfirmationModal.242a99d0.js","assets/GenericModal.3f75002a.js"]),"./pages/admin/tenant/Index.vue":()=>s(()=>import("./Index.6df621a4.js"),["assets/Index.6df621a4.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/user/Create.vue":()=>s(()=>import("./Create.a039d33f.js"),["assets/Create.a039d33f.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/user/Edit.vue":()=>s(()=>import("./Edit.d160eb80.js"),["assets/Edit.d160eb80.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/user/Index.vue":()=>s(()=>import("./Index.cecb4ae3.js"),["assets/Index.cecb4ae3.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/auth/Login.vue":()=>s(()=>import("./Login.b6f91a43.js"),["assets/Login.b6f91a43.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/website/home/Index.vue":()=>s(()=>import("./Index.c6dbc88a.js"),["assets/Index.c6dbc88a.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"])})[`./pages/${n}.vue`]()).default,setup({el:n,App:o,props:e,plugin:t}){i.use(t),new i({store:Ne,render:r=>r(o,e)}).$mount(n)}}); diff --git a/public/build/assets/app.c52b09a2.js b/public/build/assets/app.c52b09a2.js new file mode 100644 index 00000000..9b1f2180 --- /dev/null +++ b/public/build/assets/app.c52b09a2.js @@ -0,0 +1,3 @@ +import{n,P as f,S as P,T as A,a as I,L as F,_ as E,b as L,c as q,d as R,e as k,f as $,g as O,h as M,i as S,j as V,k as N,l as U,m as z,o as B,p as j,q as G,r as W,s as H,t as K,u as X,v as Z,w as Q,x as J,y as Y,z as ee,A as te,B as ie,C as se,D as re,E as ae,F as ne,G as oe,H as le,I as ue,J as ce,K as de,M as me,N as pe,O as _e,Q as he,R as fe,U as be,V as ve,W as ge,X as ye,Y as we,Z as xe,$ as Te,a0 as Ce,a1 as De,a2 as Pe,a3 as Ae,a4 as Ie,a5 as Fe,a6 as Ee,a7 as Le,a8 as qe,a9 as Re,aa as ke,ab as $e,ac as Oe,ad as Me,ae as Se,af as Ve,ag as Ne,ah as Ue,ai as ze,aj as Be,ak as je,al as Ge,am as We,an as He,ao as Ke,ap as Xe,aq as Ze,ar as Qe,as as Je,at as Ye,au as et,av as tt,aw as it,ax as st,ay as rt,az as at,aA as r}from"./LogoLight.f7426689.js";import{_ as o,a as nt,d as b,V as l,b as ot,s as lt,p as ut,t as v,v as ct,O as g,E as dt,B as mt,I as pt}from"./vendor.21c2b6f5.js";import{b as y,F as w,I as d}from"./InputGroup.513e0dd4.js";import{C as _t}from"./ConfirmationModal.242a99d0.js";window._=o;window.axios=nt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";b.locale(window.locale);const h=(i,e,t)=>{const s=window.locale;let a=null;try{if(a=i.split(".").reduce((c,D)=>c[D]||null,t.translations[s].php),a)return p(a,e)}catch{}try{if(a=t.translations[s].json[i],a)return p(a,e)}catch{}return p(i,e)},p=(i,e)=>{let t=i;return typeof e>"u"?i:(Object.entries(e).forEach(([s,a])=>{t=t.toString().replace(":"+s,a)}),t)},ht={install:(i,e)=>i.mixin({methods:{__:(t,s,a=e)=>h(t,s,a),trans:(t,s,a=e)=>h(t,s,a)}})},x={translations:{en:{php:{auth:{failed:"These credentials do not match our records.",password:"The provided password is incorrect.",throttle:"Too many login attempts. Please try again in :seconds seconds."},form:{buttons:{save:"Save Changes",register_interest:"Register Interest"}},messages:{welcome:"Welcome, :name",hello:"Hello, :name","my-courses":"My Courses",courses:"Courses",course:"Course",lecture:"Lecture",lectures:"lectures",homepage:"Homepage",logout:"Log out",about:"About",contact:"Contact",home:"Home",complete:"Complete","no-results":"No results",password:"Password","confirm-password":"Confirm Password","remember-me":"Remember me?","forgot-password":"Forgot password?","sign-in":"Sign In","password-reset":"Password reset","send-password-reset-link":"Send link to reset password",login:"Login",register:"Register","already-registered":"Already registered?","create-a-new-account":"Create a new account",profile:"Profile","my-profile":"My Profile",edit:"Edit","edit-profile":"Edit Profile","save-changes":"Save Changes",save:"Save",back:"Back","first-name":"First Name","last-name":"Last Name",email:"Email","request-refund":"Request Refund","request-refund-text":"To request a refund please send an email to","created-by":"Created by",author:"Author","course-content":"Course content","additional-course-details":"Additional course details","download-pdfs":"Download PDFs","resources-pdfs":"PDF Resources",files:"Files",confirm:"Confirm",cancel:"Cancel","are-you-sure":"Are you sure","perform-action-check":"Do you really want to perform this action?","mark-course-lecture-complete-default":"Do you really want to mark as complete?","mark-course-lecture-complete-refund-warning":`Do you really want to mark as complete :name? A refund will not + be available once you move to the next step.`,"mark-complete":"Mark Complete",minutes:"minutes","course-preview":"Course Preview",dates:"Dates",to:"to",videos:"videos","pay-in-full":"Pay in full","pay-in-instalments":"Pay in :numberOfInstalments instalments",purchase:"Purchase","payment-options":"Payment Options","purchase-success":"Purchase success","purchase-cancel":"Purchase cancel","payment-instalments":"Rate","sign-up":"Sign Up","this-course-includes":"This course includes","pay-in-instalments-note":"Paid monthly x :numberOfInstalments months","pay-in-full-note":"Save :savingPercentage%",settings:"Settings",users:"Users",announcements:"Announcements",programmes:"Programmes",labels:"Labels",purchases:"Purchases",webinars:"Webinars","weekly-webinars":"Weekly Webinars","file-manager":"File Manager",view:"View",create:"Create","create-directory":"Create directory","directory-name":"Directory Name",directories:"Directories","no-files":"No files","file-upload-text":"Drop files to upload","last-updated":"Last updated",size:"Size","file-extension":"File extension","payment-due":"Payment due","amount-due":"Amount due","make-payment":"Pay now","access-on-mobile":"Access on mobile","money-back-gurantee":"Money back guarantee","multiple-languages":"Multiple languages",certificate:"Certificate",captions:"Captions","lifetime-access":"Lifetime access","student-discount":"Student discount available","seo-exposure":"SEO Exposure",faq:"FAQ",testimonials:"Testimonials","about-author":"About author","color-reset-confirm":"This will reset all colors to their default values. Save changes to take effect."},pagination:{previous:"« Previous",next:"Next »"},passwords:{reset:"Your password has been reset!",sent:"We have emailed your password reset link!",throttled:"Please wait before retrying.",token:"This password reset token is invalid.",user:"We can't find a user with that email address."},settings:{edit:"Edit :setting Settings"},validation:{accepted:"The :attribute must be accepted.",accepted_if:"The :attribute field must be accepted when :other is :value.",active_url:"The :attribute is not a valid URL.",after:"The :attribute must be a date after :date.",after_or_equal:"The :attribute must be a date after or equal to :date.",alpha:"The :attribute may only contain letters.",alpha_dash:"The :attribute may only contain letters, numbers, dashes and underscores.",alpha_num:"The :attribute may only contain letters and numbers.",array:"The :attribute must be an array.",ascii:"The :attribute field must only contain single-byte alphanumeric characters and symbols.",before:"The :attribute must be a date before :date.",before_or_equal:"The :attribute must be a date before or equal to :date.",between:{array:"The :attribute must have between :min and :max items.",file:"The :attribute must be between :min and :max kilobytes.",numeric:"The :attribute must be between :min and :max.",string:"The :attribute must be between :min and :max characters."},boolean:"The :attribute field must be true or false.",can:"The :attribute field contains an unauthorized value.",confirmed:"The :attribute confirmation does not match.",current_password:"The password is incorrect.",date:"The :attribute is not a valid date.",date_equals:"The :attribute must be a date equal to :date.",date_format:"The :attribute does not match the format :format.",decimal:"The :attribute field must have :decimal decimal places.",declined:"The :attribute field must be declined.",declined_if:"The :attribute field must be declined when :other is :value.",different:"The :attribute and :other must be different.",digits:"The :attribute must be :digits digits.",digits_between:"The :attribute must be between :min and :max digits.",dimensions:"The :attribute has invalid image dimensions.",distinct:"The :attribute field has a duplicate value.",doesnt_end_with:"The :attribute field must not end with one of the following: :values.",doesnt_start_with:"The :attribute field must not start with one of the following: :values.",email:"The :attribute must be a valid email address.",ends_with:"The :attribute must end with one of the following: :values.",enum:"The selected :attribute is invalid.",exists:"The selected :attribute is invalid.",extensions:"The :attribute field must have one of the following extensions: :values.",file:"The :attribute must be a file.",filled:"The :attribute field must have a value.",gt:{array:"The :attribute must have more than :value items.",file:"The :attribute must be greater than :value kilobytes.",numeric:"The :attribute must be greater than :value.",string:"The :attribute must be greater than :value characters."},gte:{array:"The :attribute must have :value items or more.",file:"The :attribute must be greater than or equal :value kilobytes.",numeric:"The :attribute must be greater than or equal :value.",string:"The :attribute must be greater than or equal :value characters."},hex_color:"The :attribute field must be a valid hexadecimal color.",image:"The :attribute must be an image.",in:"The selected :attribute is invalid.",in_array:"The :attribute field does not exist in :other.",integer:"The :attribute must be an integer.",ip:"The :attribute must be a valid IP address.",ipv4:"The :attribute must be a valid IPv4 address.",ipv6:"The :attribute must be a valid IPv6 address.",json:"The :attribute must be a valid JSON string.",lowercase:"The :attribute field must be lowercase.",lt:{array:"The :attribute must have less than :value items.",file:"The :attribute must be less than :value kilobytes.",numeric:"The :attribute must be less than :value.",string:"The :attribute must be less than :value characters."},lte:{array:"The :attribute must not have more than :value items.",file:"The :attribute must be less than or equal :value kilobytes.",numeric:"The :attribute must be less than or equal :value.",string:"The :attribute must be less than or equal :value characters."},mac_address:"The :attribute field must be a valid MAC address.",max:{array:"The :attribute may not have more than :max items.",file:"The :attribute may not be greater than :max kilobytes.",numeric:"The :attribute may not be greater than :max.",string:"The :attribute may not be greater than :max characters."},max_digits:"The :attribute field must not have more than :max digits.",mimes:"The :attribute must be a file of type: :values.",mimetypes:"The :attribute must be a file of type: :values.",min:{array:"The :attribute must have at least :min items.",file:"The :attribute must be at least :min kilobytes.",numeric:"The :attribute must be at least :min.",string:"The :attribute must be at least :min characters."},min_digits:"The :attribute field must have at least :min digits.",missing:"The :attribute field must be missing.",missing_if:"The :attribute field must be missing when :other is :value.",missing_unless:"The :attribute field must be missing unless :other is :value.",missing_with:"The :attribute field must be missing when :values is present.",missing_with_all:"The :attribute field must be missing when :values are present.",multiple_of:"The :attribute field must be a multiple of :value.",not_in:"The selected :attribute is invalid.",not_regex:"The :attribute format is invalid.",numeric:"The :attribute must be a number.",password:"The password is incorrect.",present:"The :attribute field must be present.",present_if:"The :attribute field must be present when :other is :value.",present_unless:"The :attribute field must be present unless :other is :value.",present_with:"The :attribute field must be present when :values is present.",present_with_all:"The :attribute field must be present when :values are present.",prohibited:"The :attribute field is prohibited.",prohibited_if:"The :attribute field is prohibited when :other is :value.",prohibited_unless:"The :attribute field is prohibited unless :other is in :values.",prohibits:"The :attribute field prohibits :other from being present.",regex:"The :attribute format is invalid.",required:"The :attribute field is required.",required_array_keys:"The :attribute field must contain entries for: :values.",required_if:"The :attribute field is required when :other is :value.",required_if_accepted:"The :attribute field is required when :other is accepted.",required_unless:"The :attribute field is required unless :other is in :values.",required_with:"The :attribute field is required when :values is present.",required_with_all:"The :attribute field is required when :values are present.",required_without:"The :attribute field is required when :values is not present.",required_without_all:"The :attribute field is required when none of :values are present.",same:"The :attribute and :other must match.",size:{array:"The :attribute must contain :size items.",file:"The :attribute must be :size kilobytes.",numeric:"The :attribute must be :size.",string:"The :attribute must be :size characters."},starts_with:"The :attribute must start with one of the following: :values.",string:"The :attribute must be a string.",timezone:"The :attribute must be a valid zone.",unique:"The :attribute has already been taken.",uploaded:"The :attribute failed to upload.",uppercase:"The :attribute field must be uppercase.",url:"The :attribute format is invalid.",ulid:"The :attribute field must be a valid ULID.",uuid:"The :attribute must be a valid UUID.",custom:{"attribute-name":{"rule-name":"custom-message"},email:{exists:"The email could not be found."}},attributes:[]}},json:[]},ro:{php:{auth:{failed:"Parola sau Email incorect.",password:"Parola este gresita.",throttle:"Te rugam sa incerci mai tarziu :seconds seconds."},form:{buttons:{save:"Salveaz\u0103 modific\u0103rile"}},messages:{welcome:"Bine ai venit, :name","welcome-general":"Bine ai venit",hello:"Bun\u0103, :name","my-courses":"Cursuri",courses:"Cursuri",course:"Curs",lecture:"Capitol",lectures:"capitole",homepage:"Acas\u0103",logout:"Log out",about:"Despre noi",contact:"Contact",home:"Acas\u0103",complete:"Complet","no-results":"Nici un rezultat",password:"Parola","confirm-password":"Confirm\u0103 Parola","remember-me":"\u021Aine-m\u0103 minte","forgot-password":"A\u0163i uitat parola?","sign-in":"Logheaz\u0103-te","password-reset":"Resetare parol\u0103","send-password-reset-link":"Trimite linkul de resetare a parolei",login:"Autentificare",register:"\xCEnregistreaz\u0103-te","already-registered":"Deja \xEEnregistrat?","create-a-new-account":"Crea\u021Bi un cont nou","register-for-course":"\xCEnregistreaz\u0103-te la curs",profile:"Profil","my-profile":"Profilul meu",edit:"Modifica","edit-profile":"Modific\u0103 Profil","save-changes":"Salveaz\u0103 Schimbari",save:"Salveaz\u0103",back:"\xCEnapoi","first-name":"Nume","last-name":"Prenume",email:"Email","request-refund":"Cere rambursare","request-refund-text":"Pentru a cere o rambursare te rugam sa trimiti un email la ","created-by":"Creat de",author:"Autor","course-content":"Con\u021Binutul programului","additional-course-details":"Descriere program","download-pdfs":"Descarc\u0103 PDFs","resources-pdfs":"Resurse PDF",files:"Fi\u0219iere",confirm:"Confirm",cancel:"Anuleaz\u0103","are-you-sure":"E\u0219ti sigur","perform-action-check":"Sunte\u021Bi sigur c\u0103 dori\u021Bi s\u0103 efectua\u021Bi aceast\u0103 ac\u021Biune?","mark-course-lecture-complete-default":"Sunte\u021Bi sigur c\u0103 dori\u021Bi s\u0103 marca\u021Bi ca fiind completa aceasta sectiune?","mark-course-lecture-complete-refund-warning":`Sunte\u021Bi sigur c\u0103 dori\u021Bi s\u0103 marca\u021Bi ca fiind completa sectiunea :name? + O rambursare nu va fi disponibil\u0103 odat\u0103 ce trece\u021Bi la pasul urm\u0103tor.`,"mark-complete":"Completeaz\u0103","mark-complete-success":"Completat cu succes.",minutes:"minute","course-preview":"Preview program",dates:"Data",to:"pana la",videos:"Videoclipuri","pay-in-full":"Pl\u0103te\u0219te integral","pay-in-instalments":"Pl\u0103te\u0219te \xEEn :numberOfInstalments rate",purchase:"Comand\u0103 acum","purchase-success":"Comand\u0103 plasat\u0103","purchase-cancel":"Comand\u0103 anulat\u0103","payment-options":"Op\u021Biuni de plat\u0103","payment-instalments":"Rate","sign-up":"\xCEnscrie-te acum","this-course-includes":"Acest program include","pay-in-instalments-note":"Facturat lunar x :numberOfInstalments luni","pay-in-full-note":"Economise\u0219ti :savingPercentage%",settings:"Set\u0103ri",users:"Utilizatori",announcements:"Anun\u021Buri",programmes:"Programe",labels:"Etichete",purchases:"Achizi\u021Bii",webinars:"Webinarii","weekly-webinars":"Webinarii S\u0103pt\u0103m\xE2nale","file-manager":"File Manager",view:"Vezi",create:"Creaz\u0103","create-directory":"Creaz\u0103 folder","directory-name":"Nume folder",directories:"Foldere","no-files":"Nici un fi\u0219ier","file-upload-text":"Plasa\u021Bi fi\u0219iere aici pentru a le \xEEnc\u0103rca","last-updated":"Ultima actualizare",size:"Dimensiune","file-extension":"Fi\u0219ier de tip","payment-due":"Ordin de plat\u0103","amount-due":"Suma de plat\u0103","make-payment":"Pl\u0103te\u0219te acum","access-on-mobile":"Acces prin smartphone","money-back-gurantee":"Banii \xEEnapoi garantat","multiple-languages":"Mai multe limbi disponibile",certificate:"Certificat",captions:"Subtitr\u0103ri","lifetime-access":"Acces pe via\u021B\u0103","student-discount":"Reducere pentru studen\u021Bi disponibil\u0103","seo-exposure":"Expunerea SEO",faq:"\xCEntreb\u0103ri frecvente",testimonials:"Testimoniale","about-author":"Despre autor","color-reset-confirm":"Acest\u0103 actiune va reseta toate culorile la valorile lor implicite. Salva\u021Bi modific\u0103rile pentru a intra \xEEn vigoare."},pagination:{previous:"« Pagina anterioara",next:"Pagina urmatoare »"},passwords:{reset:"Parola a fost resetatat.",sent:"Am trimis prin e-mail linkul de resetare a parolei. ",throttled:"V\u0103 rug\u0103m s\u0103 a\u0219tepta\u021Bi \xEEnainte de a re\xEEncerca.",token:"Acest link de resetare a parolei este invalid.",user:"Nu putem g\u0103si un utilizator cu aceste date."},settings:{edit:"Editeaza :setting Setarile"},validation:{accepted:"The :attribute field must be accepted.",accepted_if:"The :attribute field must be accepted when :other is :value.",active_url:"The :attribute field must be a valid URL.",after:"The :attribute field must be a date after :date.",after_or_equal:"The :attribute field must be a date after or equal to :date.",alpha:"The :attribute field must only contain letters.",alpha_dash:"The :attribute field must only contain letters, numbers, dashes, and underscores.",alpha_num:"The :attribute field must only contain letters and numbers.",array:"The :attribute field must be an array.",ascii:"The :attribute field must only contain single-byte alphanumeric characters and symbols.",before:"The :attribute field must be a date before :date.",before_or_equal:"The :attribute field must be a date before or equal to :date.",between:{array:"The :attribute field must have between :min and :max items.",file:"The :attribute field must be between :min and :max kilobytes.",numeric:"The :attribute field must be between :min and :max.",string:"The :attribute field must be between :min and :max characters."},boolean:"The :attribute field must be true or false.",can:"The :attribute field contains an unauthorized value.",confirmed:"The :attribute field confirmation does not match.",current_password:"Parola este incorecta. ",date:"The :attribute field must be a valid date.",date_equals:"The :attribute field must be a date equal to :date.",date_format:"The :attribute field must match the format :format.",decimal:"The :attribute field must have :decimal decimal places.",declined:"The :attribute field must be declined.",declined_if:"The :attribute field must be declined when :other is :value.",different:"The :attribute field and :other must be different.",digits:"The :attribute field must be :digits digits.",digits_between:"The :attribute field must be between :min and :max digits.",dimensions:"The :attribute field has invalid image dimensions.",distinct:"The :attribute field has a duplicate value.",doesnt_end_with:"The :attribute field must not end with one of the following: :values.",doesnt_start_with:"The :attribute field must not start with one of the following: :values.",email:"Adresa de email trebuie sa fie valida.",ends_with:"The :attribute field must end with one of the following: :values.",enum:"The selected :attribute is invalid.",exists:"The selected :attribute is invalid.",file:"The :attribute field must be a file.",filled:"The :attribute field must have a value.",gt:{array:"The :attribute field must have more than :value items.",file:"The :attribute field must be greater than :value kilobytes.",numeric:"The :attribute field must be greater than :value.",string:"The :attribute field must be greater than :value characters."},gte:{array:"The :attribute field must have :value items or more.",file:"The :attribute field must be greater than or equal to :value kilobytes.",numeric:"The :attribute field must be greater than or equal to :value.",string:"The :attribute field must be greater than or equal to :value characters."},image:"The :attribute field must be an image.",in:"The selected :attribute is invalid.",in_array:"The :attribute field must exist in :other.",integer:"The :attribute field must be an integer.",ip:"The :attribute field must be a valid IP address.",ipv4:"The :attribute field must be a valid IPv4 address.",ipv6:"The :attribute field must be a valid IPv6 address.",json:"The :attribute field must be a valid JSON string.",lowercase:"The :attribute field must be lowercase.",lt:{array:"The :attribute field must have less than :value items.",file:"The :attribute field must be less than :value kilobytes.",numeric:"The :attribute field must be less than :value.",string:"The :attribute field must be less than :value characters."},lte:{array:"The :attribute field must not have more than :value items.",file:"The :attribute field must be less than or equal to :value kilobytes.",numeric:"The :attribute field must be less than or equal to :value.",string:"The :attribute field must be less than or equal to :value characters."},mac_address:"The :attribute field must be a valid MAC address.",max:{array:"The :attribute field must not have more than :max items.",file:"The :attribute field must not be greater than :max kilobytes.",numeric:"The :attribute field must not be greater than :max.",string:"The :attribute field must not be greater than :max characters."},max_digits:"The :attribute field must not have more than :max digits.",mimes:"C\xE2mpul :attribute trebuie sa fie un fisier de tip: :values.",mimetypes:"The :attribute field must be a file of type: :values.",min:{array:"The :attribute field must have at least :min items.",file:"The :attribute field must be at least :min kilobytes.",numeric:"The :attribute field must be at least :min.",string:"The :attribute field must be at least :min characters."},min_digits:"The :attribute field must have at least :min digits.",missing:"The :attribute field must be missing.",missing_if:"The :attribute field must be missing when :other is :value.",missing_unless:"The :attribute field must be missing unless :other is :value.",missing_with:"The :attribute field must be missing when :values is present.",missing_with_all:"The :attribute field must be missing when :values are present.",multiple_of:"The :attribute field must be a multiple of :value.",not_in:"The selected :attribute is invalid.",not_regex:"The :attribute field format is invalid.",numeric:"The :attribute field must be a number.",password:{letters:"Parola trebuie s\u0103 con\u021Bin\u0103 cel putin o liter\u0103.",mixed:"Parola trebuie s\u0103 con\u021Bin\u0103 cel pu\u021Bin o liter\u0103 mare \u0219i o liter\u0103 mic\u0103.",numbers:"Parola trebuie s\u0103 con\u021Bin\u0103 cel pu\u021Bin un num\u0103r.",symbols:"Parola trebuie s\u0103 con\u021Bin\u0103 cel pu\u021Bin un simbol.",uncompromised:"Aceast\u0103 parol\u0103 a ap\u0103rut \xEEntr-o scurgere de date. V\u0103 rug\u0103m s\u0103 alege\u021Bi o alt\u0103 parol\u0103.",min:"Parola trebuie s\u0103 con\u021Bin\u0103 cel putin :min caractere."},present:"The :attribute field must be present.",present_if:"The :attribute field must be present when :other is :value.",present_unless:"The :attribute field must be present unless :other is :value.",present_with:"The :attribute field must be present when :values is present.",present_with_all:"The :attribute field must be present when :values are present.",prohibited:"The :attribute field is prohibited.",prohibited_if:"The :attribute field is prohibited when :other is :value.",prohibited_unless:"The :attribute field is prohibited unless :other is in :values.",prohibits:"The :attribute field prohibits :other from being present.",regex:"The :attribute field format is invalid.",required:"Campul :attribute este obligatoriu.",required_array_keys:"The :attribute field must contain entries for: :values.",required_if:"The :attribute field is required when :other is :value.",required_if_accepted:"The :attribute field is required when :other is accepted.",required_unless:"The :attribute field is required unless :other is in :values.",required_with:"The :attribute field is required when :values is present.",required_with_all:"The :attribute field is required when :values are present.",required_without:"The :attribute field is required when :values is not present.",required_without_all:"The :attribute field is required when none of :values are present.",same:"The :attribute field must match :other.",size:{array:"The :attribute field must contain :size items.",file:"The :attribute field must be :size kilobytes.",numeric:"The :attribute field must be :size.",string:"The :attribute field must be :size characters."},starts_with:"The :attribute field must start with one of the following: :values.",string:"The :attribute field must be a string.",timezone:"The :attribute field must be a valid timezone.",unique:"The :attribute has already been taken.",uploaded:"Incarcare esuata pentru :attribute .",uppercase:"C\xE2mpul :attribute trebuie s\u0103 fie majuscule.",url:"C\xE2mpul :attribute trebuie s\u0103 fie un URL valid.",ulid:"The :attribute field must be a valid ULID.",uuid:"The :attribute field must be a valid UUID.",custom:{email:{exists:"Email-ul nu a fost gasit."}},attributes:[]}},json:[]}}};typeof window<"u"&&typeof window.Zora<"u"&&Object.assign(x.routes,window.Zora.routes);l.use(ht,x);l.use(ot);l.filter("priceDecimal",function(i){return i&&(i/100).toFixed(2)});l.filter("priceDecimalUnlessWhole",function(i){if(!i)return i;let e=2;return i%100===0&&(e=0),(i/100).toFixed(e)});l.filter("currencySymbol",function(i){let e={GBP:"\xA3",RON:"RON",USD:"$",EUR:"\u20AC"};return e.hasOwnProperty(i)?e[i]:"$"});l.mixin({methods:{formatTransKey(i){return o.snakeCase(i)},transWithFallback(i,e){let t=this.trans(i);return t===i?e:t}}});const ft={name:"FileManagerDirectoryList",props:{canChangeDirectory:{default:!1,type:Boolean},directories:{required:!0,type:Array},isLoadingDirectories:{default:!1,type:Boolean},parentDirectory:{required:!0,type:String|null}},methods:{changeDirectory(i){this.$emit("changeDirectory",i)}}};var bt=function(){var e=this,t=e._self._c;return t("ul",[e.isLoadingDirectories?[t("li",{staticClass:"flex flex-row items-start text-theme-base-subtle-contrast py-1 w-full"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",{staticClass:"text-left"},[e._v("Loading")])],1)]:[e.parentDirectory!==null?t("li",[t("button",{staticClass:"flex flex-row items-start py-1 w-full focus:outline-none focus:text-theme-primary hover:text-theme-primary",attrs:{disabled:!e.canChangeDirectory,type:"button"},on:{click:function(s){return e.changeDirectory(e.parentDirectory)}}},[t("icon-arrow-bar-up",{staticClass:"mr-2 w-5"}),t("span",{staticClass:"text-left"},[e._v("Parent Directory")])],1)]):e._e(),e._l(e.directories,function(s){return t("li",{key:s.directory},[t("button",{staticClass:"flex flex-row items-start py-1 w-full focus:outline-none focus:text-theme-primary hover:text-theme-primary",attrs:{type:"button",disabled:!e.canChangeDirectory},on:{click:function(a){return e.changeDirectory(s.directory)}}},[t("icon-folder",{staticClass:"mr-2 w-5"}),t("span",{staticClass:"text-left"},[e._v(e._s(s.label))])],1)])})]],2)},vt=[],gt=n(ft,bt,vt,!1,null,null,null,null);const yt=gt.exports,wt={name:"FileManagerFilesHeader",props:{canChangeDirectory:{default:!1,type:Boolean},currentDirectoryList:{required:!0,type:Array},showBreadcrumbs:{default:!1,type:Boolean}},methods:{changeDirectoryViaBreadcrumb(i){this.$emit("changeDirectoryViaBreadcrumb",i)}}};var xt=function(){var e=this,t=e._self._c;return t("h2",{staticClass:"flex flex-row items-center justify-between"},[t("span",{staticClass:"text-theme-base-subtle-contrast"},[e._v(" Files ")]),e.showBreadcrumbs?t("span",{staticClass:"flex flex-row space-x-2 text-sm"},e._l(e.currentDirectoryList,function(s,a){return t("span",{key:`breadcrumb_${a}`,staticClass:"flex flex-row"},[a1},showCreateDirectoryButton(){return this.isUploadEnabled&&!this.isLoadingDirectories&&!this.isLoadingFileUpload&&this.userCan("file_manager.edit")},showFilesLoader(){return this.isLoadingDirectories||this.isLoadingFiles},showFileUploader(){return this.canUploadFiles&&this.userCan("file_manager.edit")},uploaderDirectory(){let i="/";return this.currentDirectory!=="/"&&(i+=this.currentDirectory),i}},mounted(){this.initialise&&this.initialiseFileManager()},methods:{cancelLoadFiles(){this.isLoadingFiles&&(_.cancel("Files load cancelled"),_=T.source())},changeDirectory(i="/"){if(!this.canChangeDirectory){this.$errorToast("Unable to change directory");return}this.currentDirectory=i,this.loadDirectories()},changeDirectoryViaBreadcrumb(i){if(i>this.currentDirectoryList.length-1)return;let e=this.getDirectoryViaBreadcrumb(i);e&&this.changeDirectory(e)},createDirectory(){if(!this.canCreateDirectory){this.$errorToast("Please enter a valid directory name");return}this.isLoadingNewDirectory=!0;let i={directory:this.newDirectoryNameFormatted};axios.post(this.$route("admin.api.file-manager.directories.store"),i).then(e=>{this.isLoadingNewDirectory=!1,this.changeDirectory(this.newDirectoryNameFormatted),this.stopCreatingDirectory()}).catch(e=>{let t="Failed to create directory";e&&e.response&&e.response.data&&e.response.data.message&&(t+=" - "+e.response.data.message),this.$errorToast(t),this.isLoadingNewDirectory=!1})},getDirectoryViaBreadcrumb(i){if(i===0)return"/";let e=o.clone(this.currentDirectoryList);return e=e.splice(1,i),"/"+e.join("/")},initialiseFileManager(){this.isInitialised||(this.isInitialised=!0,this.loadFileManager())},loadDirectories(){if(this.isLoadingDirectories)return;this.isLoadingDirectories=!0,this.directories=[],this.cancelLoadFiles();let i={directory:this.currentDirectory};axios.get(this.$route("admin.api.file-manager.directories.index"),{params:i}).then(e=>{e.data.hasOwnProperty("directories")&&(this.directories=e.data.directories),this.loadFiles()}).catch(e=>{this.$errorToast("Failed to load directories")}).finally(()=>{this.isLoadingDirectories=!1})},loadFileManager(){this.loadDirectories()},loadFiles(){if(this.isLoadingFiles)return;this.isLoadingFiles=!0,this.files=[];let i={directory:this.currentDirectory};axios.get(this.$route("admin.api.file-manager.files.index"),{params:i,cancelToken:_.token}).then(e=>{e.data.hasOwnProperty("files")&&(this.files=e.data.files)}).catch(e=>{axios.isCancel(e)||this.$errorToast("Failed to load files")}).finally(()=>{this.isLoadingFiles=!1})},onFileSelected(i){this.$emit("fileSelected",i)},onFileUploaderFilesAdded(){this.isLoadingFileUpload=!0},onFileUploaderCompleted(){this.isLoadingFileUpload=!1,this.loadFiles()},onInitialise(){this.initialise&&this.initialiseFileManager()},startCreatingDirectory(){this.newDirectoryName="",this.isCreatingDirectory=!0;try{setTimeout(()=>{this.$refs.new_directory.focus()},450)}catch{}},stopCreatingDirectory(){if(!!this.isCreatingDirectory){if(this.isLoadingNewDirectory)return!1;this.newDirectoryName="",this.isCreatingDirectory=!1;try{this.$refs.new_directory.blur()}catch{}}}},watch:{initialise:{handler:"onInitialise"}}};var zt=function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"flex flex-col mt-4 space-y-4 md:flex-row md:items-start md:space-x-4 md:space-y-0"},[t("div",{staticClass:"bg-white p-6 shadow-subtle overflow-hidden rounded-lg md:w-72"},[e._m(0),t("div",{staticClass:"mt-2"},[t("file-manager-directory-list",{attrs:{"can-change-directory":e.canChangeDirectory,directories:e.directories,"is-loading-directories":e.isLoadingDirectories,"parent-directory":e.parentDirectory},on:{changeDirectory:e.changeDirectory}}),e.showCreateDirectoryButton?t("div",{staticClass:"mt-8 w-full"},[t("transition",{attrs:{name:"slide-left-multiple",mode:"out-in"}},[e.isCreatingDirectory?t("div",{staticClass:"flex flex-col"},[t("label",{attrs:{for:"new_directory",hidden:""}},[e._v(" New Directory Name ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newDirectoryName,expression:"newDirectoryName"}],ref:"new_directory",staticClass:"appearance-none border border-theme-base-subtle-contrast px-4 py-1 rounded shadow-none focus:outline-none focus:ring focus:ring-primary",attrs:{id:"new_directory",placeholder:"Directory Name",type:"text"},domProps:{value:e.newDirectoryName},on:{input:function(s){s.target.composing||(e.newDirectoryName=s.target.value)}}}),t("div",{staticClass:"flex flex-row mt-2 space-x-2 w-full"},[t("button",{staticClass:"bg-theme-base-subtle flex flex-row items-center justify-center px-2 py-1 rounded text-theme-base-subtle-contrast w-1/2 ease-in-out duration-300 transition-colors focus:bg-theme-danger focus:outline-none focus:text-theme-danger-contrast hover:bg-theme-danger hover:text-theme-danger-contrast",attrs:{type:"button",disabled:e.isLoadingNewDirectory},on:{click:e.stopCreatingDirectory}},[t("icon-x",{staticClass:"w-5"})],1),t("button",{staticClass:"bg-theme-base-subtle flex flex-row items-center justify-center px-2 py-1 rounded text-theme-base-subtle-contrast w-1/2 ease-in-out duration-300 transition-colors focus:bg-theme-success focus:outline-none focus:text-theme-success-contrast hover:bg-theme-success hover:border-theme-success hover:text-theme-success-contrast",attrs:{type:"button",disabled:!e.canCreateDirectory},on:{click:e.createDirectory}},[e.isLoadingNewDirectory?t("icon-loader-circle",{staticClass:"animate-spin-slow w-5"}):t("icon-check",{staticClass:"w-5"})],1)])]):t("div",[t("button",{staticClass:"bg-theme-base-subtle flex flex-row items-center justify-center px-2 py-1 rounded text-theme-base-subtle-contrast w-full ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-primary hover:text-theme-primary-contrast",attrs:{type:"button"},on:{click:e.startCreatingDirectory}},[e._v(" Create Directory ")])])])],1):e._e()],1)]),t("div",{staticClass:"flex-1"},[t("div",{staticClass:"bg-white shadow-subtle p-6 rounded-lg"},[t("file-manager-files-header",{attrs:{"can-change-directory":e.canChangeDirectory,"current-directory-list":e.currentDirectoryList,"show-breadcrumbs":e.showBreadcrumbs},on:{changeDirectoryViaBreadcrumb:e.changeDirectoryViaBreadcrumb}}),t("file-manager-files-list",{staticClass:"mt-2",attrs:{"enable-file-select":e.enableFileSelect,files:e.files,"show-files-loader":e.showFilesLoader},on:{fileSelected:e.onFileSelected}})],1),t("file-manager-file-uploader",{directives:[{name:"show",rawName:"v-show",value:e.showFileUploader,expression:"showFileUploader"}],staticClass:"mt-4",attrs:{directory:e.uploaderDirectory,url:e.$route("admin.api.file-manager.files.store")},on:{filesAdded:e.onFileUploaderFilesAdded,queueCompleted:e.onFileUploaderCompleted}})],1)])])},Bt=[function(){var i=this,e=i._self._c;return e("h2",{staticClass:"flex flex-row justify-between"},[e("span",{staticClass:"text-theme-base-subtle-contrast"},[i._v(" Directories ")])])}],jt=n(Ut,zt,Bt,!1,null,null,null,null);const Gt=jt.exports,Wt={name:"FileManagerModal",components:{FileManager:Gt},computed:{isModelOpen(){return this.$store.getters.isFileManagerOpen}},methods:{closeModal(){this.$store.commit("closeFileManagerModal")},onFileSelected(i){this.$store.state.fileManagerModalCallback(i),this.$store.commit("closeFileManagerModal")}}};var Ht=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isModelOpen,expression:"isModelOpen"}],staticClass:"bg-navy-800 bg-opacity-50 fixed flex h-full inset-0 items-center justify-center w-full md:py-16 md:px-8",on:{click:function(s){return s.target!==s.currentTarget?null:e.closeModal.apply(null,arguments)}}},[t("div",{staticClass:"bg-white flex flex-col h-full pb-8 pt-4 w-full md:rounded-lg"},[t("div",{staticClass:"flex flex-row px-4 md:px-8"},[t("h1",{staticClass:"font-medium text-lg"},[e._v(" File Manager ")]),t("button",{staticClass:"flex items-center justify-center ml-auto p-1 rounded ease-in-out duration-300 transition-colors focus:outline-none focus:ring focus:ring-primary hover:bg-theme-base-subtle",attrs:{type:"button"},on:{click:e.closeModal}},[t("icon-x",{staticClass:"h-5 w-5"})],1)]),t("div",{staticClass:"bg-theme-base flex-1 mt-8 mx-4 p-6 rounded-lg md:mx-8"},[t("file-manager",{attrs:{"enable-file-select":!0,initialise:e.isModelOpen},on:{fileSelected:e.onFileSelected}})],1)])])])},Kt=[],Xt=n(Wt,Ht,Kt,!1,null,null,null,null);const Zt=Xt.exports,Qt={name:"AdminLayout",components:{FileManagerModal:Zt,PageAlerts:f},metaInfo(){return{title:this.metaTitle,meta:[{name:"description",content:this.metaDescription}]}},data(){return{sideMenu:{main:{children:{dashboard:{children:!1,icon:"icon-home",label:"Dashboard",requiresAllPermissions:[],requiresAnyPermissions:[],route:"admin.index"}},label:"Main",requiresAllPermissions:[],requiresAnyPermissions:[],showLabel:!1},cms:{children:{pages:{activeRoutes:["admin.cms.pages.index","admin.cms.pages.create","admin.cms.pages.edit"],children:{index:{icon:!1,label:"View Pages",requiresAllPermissions:["cms.view"],requiresAnyPermissions:[],route:"admin.cms.pages.index"},create:{children:!1,icon:!1,label:"Create Page",requiresAllPermissions:["cms.create"],requiresAnyPermissions:[],route:"admin.cms.pages.create"}},icon:"icon-layout-navbar",label:"Pages",requiresAllPermissions:[],requiresAnyPermissions:["cms.create","cms.view"]},layouts:{activeRoutes:["admin.cms.layouts.index","admin.cms.layouts.create","admin.cms.layouts.edit"],children:{index:{icon:!1,label:"View Layouts",requiresAllPermissions:["cms.view"],requiresAnyPermissions:[],route:"admin.cms.layouts.index"},create:{children:!1,icon:!1,label:"Create Layout",requiresAllPermissions:["cms_advanced.create"],requiresAnyPermissions:[],route:"admin.cms.layouts.create"}},icon:"icon-layout",label:"Layouts",requiresAllPermissions:[],requiresAnyPermissions:["cms.create","cms.view"]},menus:{activeRoutes:["admin.cms.menus.index","admin.cms.menus.create","admin.cms.menus.edit"],children:{index:{icon:!1,label:"View Menus",requiresAllPermissions:["cms.view"],requiresAnyPermissions:[],route:"admin.cms.menus.index"},create:{children:!1,icon:!1,label:"Create Menu",requiresAllPermissions:["cms.create"],requiresAnyPermissions:[],route:"admin.cms.menus.create"}},icon:"icon-columns",label:"Menus",requiresAllPermissions:[],requiresAnyPermissions:["cms.create","cms.view"]}},label:"CMS",requiresAllPermissions:[],requiresAnyPermissions:["cms.edit","cms.create","cms.view"],showLabel:!0},cms_advanced:{children:{redirects:{activeRoutes:["admin.cms.redirects.index","admin.cms.redirects.create","admin.cms.redirects.edit"],children:{index:{icon:!1,label:"View Redirects",requiresAllPermissions:["cms_advanced.view"],requiresAnyPermissions:[],route:"admin.cms.redirects.index"},create:{children:!1,icon:!1,label:"Create Redirects",requiresAllPermissions:["cms_advanced.create"],requiresAnyPermissions:[],route:"admin.cms.redirects.create"}},icon:"icon-arrows-shuffle",label:"Redirects",requiresAllPermissions:[],requiresAnyPermissions:["cms_advanced.create","cms_advanced.view"]},templates:{activeRoutes:["admin.cms.templates.index","admin.cms.templates.create","admin.cms.templates.edit"],children:{index:{icon:!1,label:"View Templates",requiresAllPermissions:["cms_advanced.view"],requiresAnyPermissions:[],route:"admin.cms.templates.index"},create:{children:!1,icon:!1,label:"Create Template",requiresAllPermissions:["cms_advanced.create"],requiresAnyPermissions:[],route:"admin.cms.templates.create"}},icon:"icon-template",label:"Templates",requiresAllPermissions:[],requiresAnyPermissions:["cms_advanced.create","cms_advanced.view"]}},label:"CMS - Advanced",requiresAllPermissions:[],requiresAnyPermissions:["cms_advanced.create","cms_advanced.view"],showLabel:!0},crm:{children:{forms:{activeRoutes:["admin.crm.forms.index","admin.crm.forms.create","admin.crm.forms.edit","admin.crm.form-submissions.index","admin.crm.form-submissions.show"],children:{index:{icon:!1,label:"View Forms",requiresAllPermissions:["crm_forms.view"],requiresAnyPermissions:[],route:"admin.crm.forms.index"},create:{children:!1,icon:!1,label:"Create Form",requiresAllPermissions:["crm_forms.create"],requiresAnyPermissions:[],route:"admin.crm.forms.create"},submissions:{activeRoutes:["admin.crm.form-submissions.index","admin.crm.form-submissions.show"],icon:!1,label:"View Form Submissions",requiresAllPermissions:["crm_form_submissions.view"],requiresAnyPermissions:[],route:"admin.crm.form-submissions.index"}},icon:"icon-forms",label:"Forms",requiresAllPermissions:[],requiresAnyPermissions:["crm_forms.create","crm_forms.view"]},contacts:{activeRoutes:["admin.crm.contacts.index","admin.crm.contacts.create","admin.crm.contacts.edit"],children:{index:{icon:!1,label:"View Contacts",requiresAllPermissions:["crm_contacts.view"],requiresAnyPermissions:[],route:"admin.crm.contacts.index"},create:{children:!1,icon:!1,label:"Create Contact",requiresAllPermissions:["crm_contacts.create"],requiresAnyPermissions:[],route:"admin.crm.contacts.create"}},icon:"icon-id",label:"Contacts",requiresAllPermissions:[],requiresAnyPermissions:["crm_contacts.create","crm_contacts.view"]},organisation_units:{activeRoutes:["admin.crm.organisation-units.index","admin.crm.organisation-units.create","admin.crm.organisation-units.edit"],children:{index:{icon:!1,label:"View Units",requiresAllPermissions:["crm_organisation_units.view"],requiresAnyPermissions:[],route:"admin.crm.organisation-units.index"},create:{children:!1,icon:!1,label:"Create Unit",requiresAllPermissions:["crm_organisation_units.create"],requiresAnyPermissions:[],route:"admin.crm.organisation-units.create"}},icon:"icon-building",label:"Organisation Units",requiresAllPermissions:[],requiresAnyPermissions:["crm_organisation_units.create","crm_organisation_units.view"]}},label:"CRM",requiresAllPermissions:[],requiresAnyPermissions:["crm_forms.create","crm_forms.view","crm_contacts.create","crm_contacts.view","crm_organisation_units.create","crm_organisation_units.view"],showLabel:!0},edu:{children:{announcements:{activeRoutes:["admin.edu.announcements.index","admin.edu.announcements.create","admin.edu.announcements.edit"],children:{index:{icon:!1,label:"View",requiresAllPermissions:["edu_announcements.view"],requiresAnyPermissions:[],route:"admin.edu.announcements.index"},create:{children:!1,icon:!1,label:"Create",requiresAllPermissions:["edu_announcements.create"],requiresAnyPermissions:[],route:"admin.edu.announcements.create"}},icon:"icon-speaker-phone",label:"Announcements",requiresAllPermissions:[],requiresAnyPermissions:["edu_announcements.create","edu_announcements.view"]},courses:{activeRoutes:["admin.edu.courses.index","admin.edu.courses.create","admin.edu.courses.edit"],children:{index:{icon:!1,label:"View Courses",requiresAllPermissions:["edu_courses.view"],requiresAnyPermissions:[],route:"admin.edu.courses.index"},create:{children:!1,icon:!1,label:"Create Course",requiresAllPermissions:["edu_courses.create"],requiresAnyPermissions:[],route:"admin.edu.courses.create"}},icon:"icon-chalkboard",label:"Courses",requiresAllPermissions:[],requiresAnyPermissions:["edu_courses.create","edu_courses.view"]},programmes:{activeRoutes:["admin.edu.programmes.index","admin.edu.programmes.create","admin.edu.programmes.edit"],children:{index:{icon:!1,label:"View Programmes",requiresAllPermissions:["edu_programmes.view"],requiresAnyPermissions:[],route:"admin.edu.programmes.index"},create:{children:!1,icon:!1,label:"Create Programme",requiresAllPermissions:["edu_programmes.create"],requiresAnyPermissions:[],route:"admin.edu.programmes.create"}},icon:"icon-box-multiple",label:"Programmes",requiresAllPermissions:[],requiresAnyPermissions:["edu_programmes.create","edu_programmes.view"]},labels:{activeRoutes:["admin.edu.labels.index","admin.edu.labels.create","admin.edu.labels.edit"],children:{index:{icon:!1,label:"View Labels",requiresAllPermissions:["edu_labels.view"],requiresAnyPermissions:[],route:"admin.edu.labels.index"},create:{children:!1,icon:!1,label:"Create Label",requiresAllPermissions:["edu_labels.create"],requiresAnyPermissions:[],route:"admin.edu.labels.create"}},icon:"icon-tags",label:"Labels",requiresAllPermissions:[],requiresAnyPermissions:["edu_labels.create","edu_labels.view"]},purchases:{activeRoutes:["admin.edu.course-purchases.index","admin.edu.course-purchases.show"],children:{index:{icon:!1,label:"View",activeRoutes:["admin.edu.course-purchases.index","admin.edu.course-purchases.show"],requiresAllPermissions:["edu_course_purchases.view"],requiresAnyPermissions:[],route:"admin.edu.course-purchases.index"}},icon:"icon-moneybag",label:"Purchases",requiresAllPermissions:[],requiresAnyPermissions:["edu_course_purchases.view"]},webinars:{activeRoutes:["admin.edu.webinars.index","admin.edu.webinars.create","admin.edu.webinars.edit"],children:{index:{icon:!1,label:"View",requiresAllPermissions:["edu_webinars.view"],requiresAnyPermissions:[],route:"admin.edu.webinars.index"},create:{children:!1,icon:!1,label:"Create",requiresAllPermissions:["edu_webinars.create"],requiresAnyPermissions:[],route:"admin.edu.webinars.create"}},icon:"icon-camera-check",label:"Webinars",requiresAllPermissions:[],requiresAnyPermissions:["edu_webinars.create","edu_webinars.view"]}},label:"EDU",requiresAllPermissions:[],requiresAnyPermissions:["edu_announcements.create","edu_announcements.view","edu_courses.create","edu_courses.view","edu_programmes.create","edu_programmes.view","edu_labels.create","edu_labels.view","edu_course_purchases.view","edu_webinars.view","edu_webinars.create"],showLabel:!0},utilities:{children:{file_manager:{children:!1,icon:"icon-folders",label:"File Manager",requiresAllPermissions:[],requiresAnyPermissions:["file_manager.view"],route:"admin.file_manager.index"}},label:"Utilities",requiresAllPermissions:[],requiresAnyPermissions:["file_manager.view"],showLabel:!0},admin:{children:{settings:{activeRoutes:["admin.settings.edit"],children:{core:{icon:!1,label:"Core",requiresAllPermissions:["settings.edit"],requiresAnyPermissions:[],route:["admin.settings.edit","core"]},edu:{icon:!1,label:"Edu",requiresAllPermissions:["settings.edit"],requiresAnyPermissions:[],route:["admin.settings.edit","edu"]},theme:{children:!1,icon:!1,label:"Theme",requiresAllPermissions:["settings.edit"],requiresAnyPermissions:[],route:["admin.settings.edit","theme"]},thirdParty:{children:!1,icon:!1,label:"Third Party",requiresAllPermissions:["settings.edit"],requiresAnyPermissions:[],route:["admin.settings.edit","third-party"]}},icon:"icon-settings",label:"Settings",requiresAllPermissions:[],requiresAnyPermissions:["settings.edit"],route:!1},users:{activeRoutes:["admin.users.index","admin.users.create","admin.users.edit"],children:{index:{icon:!1,label:"View Users",requiresAllPermissions:["users.view"],requiresAnyPermissions:[],route:"admin.users.index"},create:{children:!1,icon:!1,label:"Create User",requiresAllPermissions:["users.create"],requiresAnyPermissions:[],route:"admin.users.create"}},icon:"icon-users",label:"Users",requiresAllPermissions:[],requiresAnyPermissions:["users.view","users.create"],route:!1},email_preview:{activeRoutes:["admin.email.preview.index","admin.email.preview.show"],children:{index:{icon:!1,label:"View Emails",requiresAllPermissions:["email_preview.view"],requiresAnyPermissions:[],route:"admin.email.preview.index"}},icon:"icon-mail",label:"Email Preview",requiresAllPermissions:[],requiresAnyPermissions:["admin.email.preview.index","admin.email.preview.show"],route:!1}},label:"Admin",requiresAllPermissions:[],requiresAnyPermissions:["users.view","users.create"],showLabel:!0}}}},computed:{metaDescription(){return this.getMetaDataField("description","SIGI - powered by Laravel, Tailwind, Vue, and Inertia")},metaTitle(){return this.getMetaDataField("title","SIGI")}},mounted(){g.on("success",i=>{this.hideMobileSideMenu()})},methods:{getMetaDataField(i,e=""){var t;try{return(t=this.$page.props.meta[i])!=null?t:e}catch(s){return console.log(s),e}},url(){return location.pathname.substr(1)},hideMobileSideMenu(){this.$store.state.isMobileSideMenuOpen&&this.$store.commit("hideMobileSideMenu")}}};var Jt=function(){var e=this,t=e._self._c;return t("div",[t("main",{staticClass:"flex min-h-screen",attrs:{id:"admin-layout"}},[t("side-menu",{attrs:{url:e.url(),menu:e.sideMenu}}),t("div",{staticClass:"flex flex-1 flex-col max-w-full"},[t("top-menu"),t("page-alerts"),t("div",{staticClass:"bg-theme-base flex-1 p-8"},[e._t("default")],2)],1),t("file-manager-modal",{staticClass:"z-30"})],1)])},Yt=[],ei=n(Qt,Jt,Yt,!1,null,null,null,null);const ti=ei.exports,ii={name:"TenantFooter",props:{tenantName:{type:String,required:!1},classValue:{type:String,required:!1},linkClassValue:{type:String,required:!1}},computed:{year(){return b().year()},getClassValue(){return this.classValue?this.classValue:" text-neutral-700 dark:text-neutral-200"},getLinkClassValue(){return this.linkClassValue?this.linkClassValue:"text-blue-900"}}};var si=function(){var e=this,t=e._self._c;return t("section",[t("footer",{staticClass:"bg-neutral-200 text-center dark:bg-neutral-700 lg:text-left"},[t("div",{staticClass:"p-4 text-center",class:e.getClassValue},[e._v(" "+e._s(e.year+" "+e.tenantName)+" \xA9 Copyright. Powered by "),t("a",{staticClass:"underline font-semibold",class:e.getLinkClassValue,attrs:{href:"https://sigi.ro/"}},[e._v(" SIGI ")])])])])},ri=[],ai=n(ii,si,ri,!1,null,null,null,null);const C=ai.exports,ni={name:"AuthLayout",metaInfo(){return{title:this.metaTitle,meta:[{name:"description",content:this.metaDescription}]}},components:{TenantFooter:C},computed:{metaDescription(){return this.getMetaDataField("description","SIGI - powering your online presence")},metaTitle(){return this.getMetaDataField("title","SIGI")},metaTenantName(){return this.getMetaDataField("tenant","SIGI")}},methods:{getMetaDataField(i,e=""){var t;try{return(t=this.$page.props.meta[i])!=null?t:e}catch{return e}},url(){return location.pathname.substr(1)}}};var oi=function(){var e=this,t=e._self._c;return t("div",[t("main",{staticClass:"bg-theme-base-contrast",attrs:{id:"auth-layout"}},[t("div",{staticClass:"absolute inset-0 w-full"},[t("div",{staticClass:"auth-background-container bg-theme-primary"}),t("svg",{staticClass:"fill-current -mt-px text-theme-primary",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 320"}},[t("path",{attrs:{"fill-opacity":"1",d:"M0,64L120,69.3C240,75,480,85,720,85.3C960,85,1200,75,1320,69.3L1440,64L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"}})])]),t("div",{staticClass:"flex items-center min-h-screen min-w-full justify-center p-4 relative"},[e._t("default")],2),t("tenant-footer",{class:"text-white",attrs:{"tenant-name":e.metaTenantName,"link-class-value":"text-theme-primary hover:text-theme-primary-hover"}})],1)])},li=[],ui=n(ni,oi,li,!1,null,null,null,null);const ci=ui.exports,di={name:"StudentTopMenu",data(){return{userDropDown:null,menu:{courses:{label:"courses",route:"student.admin.index"}}}},computed:{logoUrl(){return"https://sigi-media-pub.s3.eu-west-1.amazonaws.com/logo-minducate.webp"},tenantName(){return"Minducate.Us"}},mounted(){this.initialiseUserDropdown()},methods:{closeUserDropdown(){try{Array.isArray(this.userDropDown)?this.userDropDown.forEach(i=>{i.hide()}):this.userDropDown.hide()}catch(i){console.log(i)}},initialiseUserDropdown(){let i=this.$refs.userDropdownMenu;i.style.display="block",this.userDropDown=v("#userDropdownButton",{animation:"shift-away-extreme",content:i,interactive:!0,theme:"dropdown",trigger:"click"})},showMobileSideMenu(){this.$store.commit("showMobileSideMenu")}}};var mi=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"top-menu"},[t("menu",{staticClass:"flex p-0 space-x-5"},e._l(e.menu,function(s,a){return t("inertia-link",{key:`menu-${a}`,staticClass:"hover:text-theme-primary-hover",class:{"text-theme-primary":e.$routeCurrent(s.route)},attrs:{href:e.$route(s.route)}},[e.logoUrl?t("span",{staticClass:"flex flex-row items-center space-x-3"},[t("img",{staticClass:"h-8 w-8 md:h-12 md:w-12",attrs:{src:e.logoUrl}}),t("span",{staticClass:"font-semibold text-lg md:text-xl"},[e._v(" "+e._s(e.tenantName)+" ")])]):t("span",[e._v(e._s(e.__("messages."+s.label)))])])}),1),t("div",{staticClass:"ml-auto select-none"},[t("button",{staticClass:"menu-link",attrs:{id:"userDropdownButton"}},[e._v(" "+e._s(e.$page.props.auth.user.first_name)+" ")])]),t("div",{ref:"userDropdownMenu",staticClass:"flex flex-col py-2 focus:outline-none"},[t("p",{staticClass:"dropdown-subheading mb-2"},[e._v(" "+e._s(e.__("messages.hello",{name:e.$page.props.auth.user.first_name}))+" ")]),t("inertia-link",{staticClass:"dropdown-link",attrs:{href:e.$route("student.admin.index")}},[e._v(" "+e._s(e.__("messages.homepage"))+" ")]),e.userCan("profile.view")?t("inertia-link",{staticClass:"dropdown-link",attrs:{href:e.$route("student.admin.profile.index")},on:{click:e.closeUserDropdown}},[e._v(" "+e._s(e.__("messages.profile"))+" ")]):e._e(),t("div",{staticClass:"dropdown-separator"}),t("inertia-link",{staticClass:"dropdown-link",attrs:{as:"button",href:e.$route("logout"),method:"post"}},[e._v(" "+e._s(e.__("messages.logout"))+" ")])],1)])},pi=[],_i=n(di,mi,pi,!1,null,null,null,null);const hi=_i.exports,fi={name:"StudentAdminLayout",components:{PageAlerts:f,StudentTopMenu:hi,TenantFooter:C},metaInfo(){return{title:this.metaTitle,meta:[{name:"description",content:this.metaDescription}]}},computed:{metaDescription(){return this.getMetaDataField("description","SIGI - powering your online presence")},metaTitle(){return this.getMetaDataField("title","SIGI")},metaTenantName(){return this.getMetaDataField("tenant","SIGI")}},methods:{getMetaDataField(i,e=""){var t;try{return(t=this.$page.props.meta[i])!=null?t:e}catch{return e}}}};var bi=function(){var e=this,t=e._self._c;return t("div",[t("main",{staticClass:"flex min-h-screen",attrs:{id:"admin-layout"}},[t("div",{staticClass:"flex flex-1 flex-col max-w-full"},[t("student-top-menu"),t("page-alerts"),t("div",{staticClass:"bg-theme-base flex-1 p-8"},[e._t("default")],2),t("tenant-footer",{attrs:{"tenant-name":e.metaTenantName}})],1)])])},vi=[],gi=n(fi,bi,vi,!1,null,null,null,null);const yi=gi.exports,wi={name:"HomeLayout",metaInfo(){return{title:"SIGI",meta:[{name:"description",content:"SIGI - powered by Laravel, Tailwind, Vue, and Inertia"}]}}};var xi=function(){var e=this,t=e._self._c;return t("div",[t("main",{attrs:{id:"home-layout"}},[e._t("default")],2)])},Ti=[],Ci=n(wi,xi,Ti,!1,null,null,null,null);const Di=Ci.exports,Pi={name:"WebsiteLayout",metaInfo(){return{title:"SIGI",meta:[{name:"description",content:"SIGI - powered by Laravel, Tailwind, Vue, and Inertia"}]}}};var Ai=function(){var e=this,t=e._self._c;return t("div",[t("main",{attrs:{id:"website-layout"}},[t("nav",{staticClass:"bg-white px-4 py-3"},[t("div",{staticClass:"container flex flex-row justify-between mx-auto"},[t("inertia-link",{staticClass:"font-semibold hover:text-theme-primary-hover",attrs:{href:"/"}},[e._v(" "+e._s(e.__("messages.homepage"))+" ")]),t("ul",{staticClass:"flex flex-row space-x-4"},[t("li",[t("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:"#"}},[e._v(" "+e._s(e.__("messages.courses"))+" ")])],1),t("li",[t("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:"#"}},[e._v(" "+e._s(e.__("messages.about"))+" ")])],1),t("li",[t("inertia-link",{staticClass:"hover:text-theme-primary-hover",attrs:{href:"#"}},[e._v(" "+e._s(e.__("messages.contact"))+" ")])],1)])],1)]),e._t("default")],2)])},Ii=[],Fi=n(Pi,Ai,Ii,!1,null,null,null,null);const Ei=Fi.exports,u={model:{prop:"content"},props:{content:{required:!0},templateField:{required:!1,type:Object}},data(){return{editableContent:""}},computed:{errorMessage(){try{return Array.isArray(this.inputErrors)?this.inputErrors[0]:this.inputErrors}catch{return!1}},inputErrors(){try{let i=[];return o.forEach(this.$page.props.errors,(e,t)=>{t.indexOf(this.inputName)===0&&(e=o.replace(e,this.inputName+".",""),e=o.replace(e,this.inputName,""),i.push(e))}),i}catch{return!1}},inputName(){return"content."+this.templateField.id}},created(){this.editableContent=o.cloneDeep(this.content)},methods:{onEditableContentUpdate:o.debounce(function(){this.$emit("input",this.editableContent)},100)},watch:{editableContent:{deep:!0,handler:"onEditableContentUpdate"}}},Li={name:"SelectGroup",mixins:[y],components:{FormFieldError:w},props:{inputAnyOptionEnabled:{default:!1,type:Boolean},inputAnyOptionLabel:{default:"Any",type:String},inputAnyOptionClass:{default:"",type:String},inputAnyOptionValue:{default:""},inputClass:{default:"border border-theme-base-subtle cursor-pointer font-medium form-select px-3 py-2 rounded w-full focus:border-theme-primary focus:outline-none focus:ring-0 focus:shadow-none",type:String},inputOptionExact:{default:!1,type:Boolean},inputOptionForceFormatting:{default:!1,type:Boolean},inputOptionLabelKey:{default:!1,type:Boolean|String|Number},inputOptionValueKey:{default:!1,type:Boolean|String|Number},inputOptions:{required:!0,type:Array|Object}},computed:{formattedOptions(){let i={};return Array.isArray(this.inputOptions)&&!this.inputOptionForceFormatting?o.forEach(this.inputOptions,e=>{i[e]={label:e,value:e}}):o.forEach(this.inputOptions,(e,t)=>{let s=e,a=t;this.inputOptionLabelKey!==!1&&e.hasOwnProperty(this.inputOptionLabelKey)&&(s=e[this.inputOptionLabelKey]),this.inputOptionValueKey!==!1&&e.hasOwnProperty(this.inputOptionValueKey)&&(a=e[this.inputOptionValueKey]),i[t]={label:s,value:a}}),i},formattedInputClass(){let i=this.inputClass;return this.isError&&(i+=" error"),this.isAnyOptionSelected&&(i+=" "+this.inputAnyOptionClass),i},isAnyOptionSelected(){return this.inputValue===this.inputAnyOptionValue||this.inputValue===null}},mounted(){this.autofocus()},methods:{isOptionDisabled(i){return this.inputRequired?i==="":!1},isOptionSelected(i){return this.inputOptionExact?i===this.inputValue:i==this.inputValue}}};var qi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col"},[t("label",{class:e.formattedLabelClass,attrs:{for:e.inputId}},[e._t("default",function(){return[t("span",{staticClass:"flex flex-row items-baseline"},[t("span",[e._v(e._s(e.labelText))]),e.inputRequired?t("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])]})],2),t("select",{ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,disabled:e.inputDisabled,name:e.inputName,required:e.inputRequired},on:{change:e.onInput,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)}}},[e.inputAnyOptionEnabled?t("option",{attrs:{disabled:e.isOptionDisabled(e.inputAnyOptionValue)},domProps:{selected:e.isOptionSelected(e.inputAnyOptionValue),value:e.inputAnyOptionValue}},[e._v(" "+e._s(e.inputAnyOptionLabel)+" ")]):e._e(),e._l(e.formattedOptions,function(s,a){return t("option",{key:`${e.inputId}-option-${s.value}`,attrs:{disabled:e.isOptionDisabled(s.value)},domProps:{selected:e.isOptionSelected(s.value),value:s.value}},[e._t("option.label",function(){return[e._v(" "+e._s(s.label)+" ")]},{option:e.inputOptions[a]})],2)})],2),t("form-field-error",{attrs:{"error-class":e.errorClass,"error-message":e.errorMessage,"is-error":e.isError}})],1)},Ri=[],ki=n(Li,qi,Ri,!1,null,null,null,null);const m=ki.exports,$i={name:"CmsMenuField",mixins:[u],components:{SelectGroup:m},data(){return{isLoadingMenuItems:!1,menuItems:[]}},computed:{isMenuItems(){try{return Array.isArray(this.menuItems)&&this.menuItems.length}catch{return!1}}},created(){this.editableContent=this.content,this.getMenuItems()},methods:{getMenuItems(){this.isLoadingMenuItems=!0,axios.get(this.$route("admin.api.cms.menus.index")).then(i=>{this.menuItems=i.data.data}).catch(i=>{this.$errorToast("Failed to load menu items")}).finally(()=>{this.isLoadingMenuItems=!1})}}};var Oi=function(){var e=this,t=e._self._c;return e.isLoadingMenuItems?t("div",[e._t("default"),t("span",{staticClass:"flex items-center"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",[e._v("Loading")])],1)],2):t("div",[t("select-group",{attrs:{"error-message":e.errorMessage,"input-any-option-enabled":!0,"input-any-option-label":"Please select a menu","input-autocomplete":e.inputName,"input-id":e.inputName,"input-name":e.inputName,"input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":e.menuItems,"input-required":e.templateField.is_required,"label-class":"","label-text":""},model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},Mi=[],Si=n($i,Oi,Mi,!1,null,null,null,null);const Vi=Si.exports,Ni={name:"CmsFormField",mixins:[u],components:{SelectGroup:m},data(){return{isLoadingForms:!1,forms:[]}},computed:{isForms(){try{return Array.isArray(this.forms)&&this.forms.length}catch{return!1}}},created(){this.editableContent=this.content,this.getForms()},methods:{getForms(){this.isLoadingForms=!0,axios.get(this.$route("admin.api.crm.forms.index")).then(i=>{this.forms=i.data.data}).catch(i=>{this.$errorToast("Failed to load forms")}).finally(()=>{this.isLoadingForms=!1})}}};var Ui=function(){var e=this,t=e._self._c;return e.isLoadingForms?t("div",[e._t("default"),t("span",{staticClass:"flex items-center"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",[e._v("Loading")])],1)],2):t("div",[t("select-group",{attrs:{"error-message":e.errorMessage,"input-any-option-enabled":!0,"input-any-option-label":"Please select a form","input-autocomplete":e.inputName,"input-id":e.inputName,"input-name":e.inputName,"input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":e.forms,"input-required":e.templateField.is_required,"label-class":"","label-text":""},model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},zi=[],Bi=n(Ni,Ui,zi,!1,null,null,null,null);const ji=Bi.exports,Gi={name:"EduCourseField",mixins:[u],components:{SelectGroup:m},data(){return{isLoadingCourses:!1,courses:[]}},computed:{isCourses(){try{return Array.isArray(this.courses)&&this.courses.length}catch{return!1}}},created(){this.editableContent=this.content,this.getCourses()},methods:{getCourses(){this.isLoadingCourses=!0,axios.get(this.$route("admin.api.edu.courses.index")).then(i=>{this.courses=i.data.data}).catch(i=>{this.$errorToast("Failed to load courses")}).finally(()=>{this.isLoadingCourses=!1})}}};var Wi=function(){var e=this,t=e._self._c;return e.isLoadingCourses?t("div",[e._t("default"),t("span",{staticClass:"flex items-center"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",[e._v("Loading")])],1)],2):t("div",[t("select-group",{attrs:{"error-message":e.errorMessage,"input-any-option-enabled":!0,"input-any-option-label":"Please select a course","input-autocomplete":e.inputName,"input-id":e.inputName,"input-name":e.inputName,"input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":e.courses,"input-required":e.templateField.is_required,"label-class":"","label-text":""},scopedSlots:e._u([{key:"option.label",fn:function({option:s}){return[e._v(" "+e._s(s.name)+" | "+e._s(s.status)+" ")]}}]),model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},Hi=[],Ki=n(Gi,Wi,Hi,!1,null,null,null,null);const Xi=Ki.exports,Zi={name:"CrmCourseField",mixins:[u],components:{SelectGroup:m},data(){return{isLoadingOrganisationUnits:!1,organisationUnits:[]}},computed:{isOrganisationUnits(){try{return Array.isArray(this.organisationUnits)&&this.organisationUnits.length}catch{return!1}}},created(){this.editableContent=this.content,this.getOrganisationUnits()},methods:{getOrganisationUnits(){this.isLoadingOrganisationUnits=!0,axios.get(this.$route("admin.api.crm.organisation-units.index")).then(i=>{this.organisationUnits=i.data.data}).catch(i=>{this.$errorToast("Failed to load organisation units")}).finally(()=>{this.isLoadingOrganisationUnits=!1})}}};var Qi=function(){var e=this,t=e._self._c;return e.isLoadingOrganisationUnits?t("div",[e._t("default"),t("span",{staticClass:"flex items-center"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",[e._v("Loading")])],1)],2):t("div",[t("select-group",{attrs:{"error-message":e.errorMessage,"input-any-option-enabled":!0,"input-any-option-label":"Please select an organisation unit","input-autocomplete":e.inputName,"input-id":e.inputName,"input-name":e.inputName,"input-option-force-formatting":!0,"input-option-label-key":"name","input-option-value-key":"id","input-options":e.organisationUnits,"input-required":e.templateField.is_required,"label-class":"","label-text":""},scopedSlots:e._u([{key:"option.label",fn:function({option:s}){return[e._v(" "+e._s(s.name)+" ("+e._s(s.type)+") ")]}}]),model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},Ji=[],Yi=n(Zi,Qi,Ji,!1,null,null,null,null);const es=Yi.exports,ts={name:"ImageField",mixins:[u],components:{InputGroup:d},methods:{onFileManagerFileSelected(i){try{this.editableContent=i.url}catch(e){this.$errorToast(e)}},openFileManagerModal(){this.$store.commit("openFileManagerModel",this.onFileManagerFileSelected)}}};var is=function(){var e=this,t=e._self._c;return t("div",[t("input-group",{attrs:{"error-message":e.errorMessage,"input-autocomplete":e.inputName,"input-class":"border border-theme-base-subtle font-medium px-3 py-2 rounded-l w-full focus:border-theme-primary focus:outline-none focus:ring-0","input-id":e.inputName,"input-name":e.inputName,"input-required":e.templateField.is_required,"input-type":"text","input-wrapper-class":"flex flex-row items-center","label-class":"","label-text":""},scopedSlots:e._u([{key:"default",fn:function(){return[e._t("default")]},proxy:!0},{key:"inputAppend",fn:function(){return[t("button",{staticClass:"border border-l-0 border-theme-primary-subtle button button-primary-subtle rounded-l-none",attrs:{type:"button"},on:{click:e.openFileManagerModal}},[e._v(" Browse... ")])]},proxy:!0}],null,!0),model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}})],1)},ss=[],rs=n(ts,is,ss,!1,null,null,null,null);const as=rs.exports,ns={name:"NumberField",mixins:[u],components:{InputGroup:d},computed:{inputMax(){try{return this.templateField.settings.max}catch{return""}},inputMin(){try{return this.templateField.settings.min}catch{return""}}}};var os=function(){var e=this,t=e._self._c;return t("div",[t("input-group",{attrs:{"error-message":e.errorMessage,"input-autocomplete":e.inputName,"input-id":e.inputName,"input-max":e.inputMax,"input-min":e.inputMin,"input-name":e.inputName,"input-required":e.templateField.is_required,"input-type":"number","label-class":"","label-text":""},model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},ls=[],us=n(ns,os,ls,!1,null,null,null,null);const cs=us.exports,ds={name:"RepeaterField",mixins:[u],components:{ConfirmationModal:_t,InputGroup:d},data(){return{isInitialisedContent:!1,isLoadingRepeaterTemplate:!1,newRowCount:0,repeaterRowToDelete:null,repeaterTemplate:null,showDeleteModal:!1}},computed:{isEditableContentRows(){try{return Array.isArray(this.editableContent)&&this.editableContent.length}catch{return!1}},isRepeaterTemplateFields(){return this.repeaterTemplateFields&&this.repeaterTemplateFields.length},repeaterTemplateId(){try{return this.templateField.settings.template_id}catch{return!1}},repeaterTemplateFields(){try{return this.repeaterTemplate.template_fields}catch{return null}}},created(){this.getRepeaterTemplate()},methods:{addRepeaterRow(){let i={};o.forEach(this.repeaterTemplateFields,e=>{i[e.id]={data:"",template_field_id:e.id,template_field_order:e.order,template_field_slug:e.slug,template_field_type:e.type}}),i.key="new-"+this.newRowCount,this.newRowCount++,this.editableContent.push(i)},cancelDeleteRepeaterRow(){this.showDeleteModal=!1,this.repeaterRowToDelete=null},confirmDeleteRepeaterRow(){this.editableContent.splice(this.repeaterRowToDelete,1),this.cancelDeleteRepeaterRow()},deleteRepeaterRow(i){this.showDeleteModal=!0,this.repeaterRowToDelete=i},doesObjectHaveKeys(i){try{return Object.keys(i).length}catch{return!1}},getRepeaterTemplate(){if(this.isLoadingRepeaterTemplate=!0,!this.repeaterTemplateId){this.$errorToast("No repeater template id set.");return}axios.get(this.$route("admin.api.cms.templates.show",this.repeaterTemplateId)).then(i=>{this.repeaterTemplate=i.data.data,this.setInitialContent()}).catch(i=>{this.$errorToast("Failed to load repeater template"),console.log(i)}).finally(()=>{this.isLoadingRepeaterTemplate=!1})},onEditableContentUpdate:o.debounce(function(){let i=o.cloneDeep(this.editableContent);o.forEach(i,(e,t)=>{this.$delete(i[t],"key")}),this.$emit("input",i)},100),setInitialContent(){if(!this.content||this.content===""){this.editableContent=[],this.isInitialisedContent=!0;return}let i=[],e=0;o.forEach(this.content,t=>{let s={};this.doesObjectHaveKeys(t)&&(s=o.cloneDeep(t)),s.key="existing="+e,e++,o.forEach(this.repeaterTemplateFields,a=>{s.hasOwnProperty(a.id)||(s[a.id]={data:"",template_field_id:a.id,template_field_order:a.order,template_field_slug:a.slug,template_field_type:a.type})}),i.push(s)}),this.editableContent=o.cloneDeep(i),this.isInitialisedContent=!0}}};var ms=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("div",{staticClass:"border-2 border-theme-subtle p-4 rounded"},[e.isLoadingRepeaterTemplate?t("div",{staticClass:"flex flex-row items-start text-theme-base-subtle-contrast w-full"},[t("icon-loader-circle",{staticClass:"animate-spin-slow mr-2 w-5"}),t("span",{staticClass:"text-left"},[e._v("Loading")])],1):e.isInitialisedContent&&e.isRepeaterTemplateFields?t("div",[e.isEditableContentRows?t("div",e._l(e.editableContent,function(s,a){return t("div",{key:`repeater-${e.templateField.id}-editor-${s.key}`,staticClass:"border-b-2 border-theme-subtle mb-6 pb-6"},[t("content-editor",{attrs:{"template-fields":e.repeaterTemplateFields},model:{value:e.editableContent[a],callback:function(c){e.$set(e.editableContent,a,c)},expression:"editableContent[key]"}}),t("div",{staticClass:"flex flex-row justify-end mt-6"},[t("button",{staticClass:"button button-small bg-theme-danger text-theme-danger-contrast text-sm` focus:outline-none focus:ring hover:bg-theme-danger-contrast hover:text-theme-danger",attrs:{type:"button"},on:{click:function(c){return e.deleteRepeaterRow(a)}}},[e._v(" Delete Row ")])])],1)}),0):e._e(),t("div",{staticClass:"flex flex-row justify-end"},[t("button",{staticClass:"button button-primary-subtle button-small text-sm",attrs:{type:"button"},on:{click:e.addRepeaterRow}},[e._v(" Add Row ")])])]):e.isInitialisedContent&&!e.isRepeaterTemplateFields?t("p",{staticClass:"text-theme-base-subtle-contrast"},[e._v(" Repeater template has no fields. ")]):e._e()]),t("confirmation-modal",{attrs:{"confirm-text":"Delete","confirm-type":"danger","show-modal":e.showDeleteModal,"message-text":"Are you sure you want to delete this repeater row?"},on:{cancelAction:e.cancelDeleteRepeaterRow,closeModal:e.cancelDeleteRepeaterRow,confirmAction:e.confirmDeleteRepeaterRow}})],2)},ps=[],_s=n(ds,ms,ps,!1,null,null,null,null);const hs=_s.exports,fs={name:"TextAreaGroup",mixins:[y],components:{FormFieldError:w},props:{inputAutocomplete:{default:"",type:String},inputMaxLength:{default:"",type:String|Number},inputPlaceholder:{default:"",type:String},inputRows:{default:"",type:String|Number},inputType:{default:"text",type:String}},mounted(){this.autofocus()}};var bs=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col"},[t("label",{class:e.formattedLabelClass,attrs:{for:e.inputId}},[e._t("default",function(){return[t("span",{staticClass:"flex flex-row items-baseline"},[t("span",[e._v(e._s(e.labelText))]),e.inputRequired?t("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()])]})],2),t("textarea",{ref:e.inputId,class:e.formattedInputClass,attrs:{id:e.inputId,autocomplete:e.inputAutocomplete,disabled:e.inputDisabled,maxlength:e.inputMaxLength,name:e.inputName,rows:e.inputRows,placeholder:e.inputPlaceholder,required:e.inputRequired,type:e.inputType},domProps:{value:e.inputValue},on:{blur:e.onInputBlur,input:e.onInput,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.blurInput.apply(null,arguments)}}}),t("form-field-error",{attrs:{"error-class":e.errorClass,"error-message":e.errorMessage,"is-error":e.isError}})],1)},vs=[],gs=n(fs,bs,vs,!1,null,null,null,null);const ys=gs.exports,ws={name:"TextAreaField",mixins:[u],components:{TextAreaGroup:ys},computed:{inputMaxLength(){try{return this.templateField.settings.max_length}catch{return""}},inputRows(){try{return this.templateField.settings.rows}catch{return""}}}};var xs=function(){var e=this,t=e._self._c;return t("div",[t("text-area-group",{attrs:{"error-message":e.errorMessage,"input-autocomplete":e.inputName,"input-id":e.inputName,"input-max-length":e.inputMaxLength,"input-name":e.inputName,"input-required":e.templateField.is_required,"input-rows":e.inputRows,"input-type":"text","label-class":"","label-text":""},model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},Ts=[],Cs=n(ws,xs,Ts,!1,null,null,null,null);const Ds=Cs.exports,Ps={name:"TextField",mixins:[u],components:{InputGroup:d},computed:{inputMaxLength(){try{return this.templateField.settings.max_length}catch{return""}}}};var As=function(){var e=this,t=e._self._c;return t("div",[t("input-group",{attrs:{"error-message":e.errorMessage,"input-autocomplete":e.inputName,"input-id":e.inputName,"input-max-length":e.inputMaxLength,"input-name":e.inputName,"input-required":e.templateField.is_required,"input-type":"text","label-class":"","label-text":""},model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}},[e._t("default")],2)],1)},Is=[],Fs=n(Ps,As,Is,!1,null,null,null,null);const Es=Fs.exports,Ls={name:"WysiwygField",mixins:[u],components:{editor:dt},data(){return{editorFilePickerCallback:null}},computed:{editorConfig(){return{content_css:"/css/app.css",file_picker_callback:this.onEditorFilePicker,formats:{alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"text-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"text-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"text-right"},alignjustify:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"text-justify"},bold:{inline:"strong",classes:"font-bold"},italic:{inline:"em",classes:"italic"},underline:{inline:"span",classes:"underline"},strikethrough:{inline:"span",classes:"line-through"}},min_height:300,plugins:"code fullscreen image lists link",skin:"SIGI",skin_url:"/vendor/tinymce/skins/sigi",toolbar:"styleselect bold italic alignleft aligncenter alignright numlist bullist link image"}}},beforeDestroy(){this.$refs.editor.editor.destroy()},methods:{onEditorFilePicker(i,e,t){this.editorFilePickerCallback=i,this.$store.commit("openFileManagerModel",this.onFileManagerFileSelected)},onFileManagerFileSelected(i){try{this.editorFilePickerCallback(i.url,{alt:i.meta.filename?i.meta.filename:""}),this.editorFilePickerCallback=null}catch(e){this.$errorToast(e)}}}};var qs=function(){var e=this,t=e._self._c;return t("div",[e._t("default"),t("editor",{ref:"editor",attrs:{"api-key":"yjslf080227w394afqv4gkul5yer7sxjorf08kvjgztc1n0i",init:e.editorConfig},model:{value:e.editableContent,callback:function(s){e.editableContent=s},expression:"editableContent"}})],2)},Rs=[],ks=n(Ls,qs,Rs,!1,null,null,null,null);const $s=ks.exports,Os={name:"AdminCmsContentEditor",components:{CmsMenuField:Vi,CrmFormField:ji,CrmOrganisationUnitField:es,EduCourseField:Xi,ImageField:as,NumberField:cs,RepeaterField:hs,TextAreaField:Ds,TextField:Es,WysiwygField:$s},model:{prop:"content"},props:{content:{required:!0,type:Array|Object},contentFieldSlug:{default:"content",type:String},templateFields:{required:!0,type:Array}},data(){return{editableContent:{}}},created(){typeof this.content=="object"&&Object.keys(this.content).length>0&&(this.editableContent=o.cloneDeep(this.content))},methods:{getContentFieldComponent(i){switch(i.type){case"cms_menu":return"CmsMenuField";case"crm_form":return"CrmFormField";case"crm_organisation_unit":return"CrmOrganisationUnitField";case"edu_course":return"EduCourseField";case"image":return"ImageField";case"number":return"NumberField";case"repeater":return"RepeaterField";case"text":return"TextField";case"textarea":return"TextAreaField";case"wysiwyg":return"WysiwygField";default:return this.$errorToast("Unregistered content field for template field: "+i.type),!1}},onEditableContentUpdate(){this.$emit("input",o.cloneDeep(this.editableContent))}}};var Ms=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col space-y-4"},[e.getPageErrorMessage(e.contentFieldSlug)?t("p",{staticClass:"text-theme-danger-contrast"},[e._v(" "+e._s(e.getPageErrorMessage(e.contentFieldSlug))+" ")]):e._e(),e._l(e.templateFields,function(s){return t("div",{key:s.id},[t(e.getContentFieldComponent(s),{tag:"component",attrs:{"template-field":s},on:{input:e.onEditableContentUpdate},model:{value:e.editableContent[s.id].data,callback:function(a){e.$set(e.editableContent[s.id],"data",a)},expression:"editableContent[templateField.id].data"}},[t("div",{staticClass:"mb-2"},[t("p",{staticClass:"flex flex-row font-medium items-baseline text-theme-base-contrast text-sm tracking-wider"},[t("span",[e._v(e._s(s.name))]),s.is_required?t("sup",{staticClass:"text-theme-danger-contrast"},[e._v(" * ")]):e._e()]),s.description?t("p",{staticClass:"text-sm text-theme-base-subtle-contrast"},[e._v(" "+e._s(s.description)+" ")]):e._e()])])],1)})],2)},Ss=[],Vs=n(Os,Ms,Ss,!1,null,null,null,null);const Ns=Vs.exports;l.component("inertia-link",mt);l.component("admin-layout",ti);l.component("auth-layout",ci);l.component("student-admin-layout",yi);l.component("home-layout",Di);l.component("website-layout",Ei);l.component("content-editor",Ns);const Us=Object.assign({"./components/core/icons/IconAlertTriangle.vue":E,"./components/core/icons/IconAlertVideo.vue":L,"./components/core/icons/IconAppWindow.vue":q,"./components/core/icons/IconArrowBarLeft.vue":R,"./components/core/icons/IconArrowBarUp.vue":k,"./components/core/icons/IconArrowsShuffle.vue":$,"./components/core/icons/IconBadgeCc.vue":O,"./components/core/icons/IconBookDownload.vue":M,"./components/core/icons/IconBoxMultiple.vue":S,"./components/core/icons/IconBrandInertia.vue":V,"./components/core/icons/IconBrandLaravel.vue":N,"./components/core/icons/IconBrandTailwind.vue":U,"./components/core/icons/IconBrandVue.vue":z,"./components/core/icons/IconBuilding.vue":B,"./components/core/icons/IconCameraCheck.vue":j,"./components/core/icons/IconCaretLeft.vue":G,"./components/core/icons/IconCertificate.vue":W,"./components/core/icons/IconChalkboard.vue":H,"./components/core/icons/IconCheck.vue":K,"./components/core/icons/IconChevronLeft.vue":X,"./components/core/icons/IconChevronRight.vue":Z,"./components/core/icons/IconChevronsLeft.vue":Q,"./components/core/icons/IconChevronsRight.vue":J,"./components/core/icons/IconClose.vue":Y,"./components/core/icons/IconColumns.vue":ee,"./components/core/icons/IconCornerUpLeft.vue":te,"./components/core/icons/IconDeviceMobile.vue":ie,"./components/core/icons/IconDiscount.vue":se,"./components/core/icons/IconDownload.vue":re,"./components/core/icons/IconEdit.vue":ae,"./components/core/icons/IconExternalLink.vue":ne,"./components/core/icons/IconEye.vue":oe,"./components/core/icons/IconFacebook.vue":le,"./components/core/icons/IconFile.vue":ue,"./components/core/icons/IconFileDownload.vue":ce,"./components/core/icons/IconFileText.vue":de,"./components/core/icons/IconFolder.vue":me,"./components/core/icons/IconFolders.vue":pe,"./components/core/icons/IconForms.vue":_e,"./components/core/icons/IconGridDots.vue":he,"./components/core/icons/IconHamburgerMenu.vue":fe,"./components/core/icons/IconHeadphones.vue":be,"./components/core/icons/IconHierarchy.vue":ve,"./components/core/icons/IconHierarchyThree.vue":ge,"./components/core/icons/IconHome.vue":ye,"./components/core/icons/IconId.vue":we,"./components/core/icons/IconInbox.vue":xe,"./components/core/icons/IconInfinity.vue":Te,"./components/core/icons/IconInfoSquare.vue":Ce,"./components/core/icons/IconInstagram.vue":De,"./components/core/icons/IconLanguage.vue":Pe,"./components/core/icons/IconLayout.vue":Ae,"./components/core/icons/IconLayoutNavbar.vue":Ie,"./components/core/icons/IconLinkedIn.vue":Fe,"./components/core/icons/IconLoader.vue":Ee,"./components/core/icons/IconLoaderCircle.vue":Le,"./components/core/icons/IconLoaderQuarter.vue":qe,"./components/core/icons/IconLogoDark.vue":Re,"./components/core/icons/IconLogoLight.vue":ke,"./components/core/icons/IconMail.vue":$e,"./components/core/icons/IconMinus.vue":Oe,"./components/core/icons/IconMoneybag.vue":Me,"./components/core/icons/IconPhoto.vue":Se,"./components/core/icons/IconPlayerPlayFilled.vue":Ve,"./components/core/icons/IconPlus.vue":Ne,"./components/core/icons/IconReceiptRefund.vue":Ue,"./components/core/icons/IconSave.vue":ze,"./components/core/icons/IconSettings.vue":Be,"./components/core/icons/IconShoppingCart.vue":je,"./components/core/icons/IconSitemap.vue":Ge,"./components/core/icons/IconSnapchat.vue":We,"./components/core/icons/IconSpeakerPhone.vue":He,"./components/core/icons/IconSquareCheck.vue":Ke,"./components/core/icons/IconSquareCheckFilled.vue":Xe,"./components/core/icons/IconSquarePlus.vue":Ze,"./components/core/icons/IconTags.vue":Qe,"./components/core/icons/IconTemplate.vue":Je,"./components/core/icons/IconTiktok.vue":Ye,"./components/core/icons/IconTrash.vue":et,"./components/core/icons/IconTwitter.vue":tt,"./components/core/icons/IconUsers.vue":it,"./components/core/icons/IconX.vue":st,"./components/core/icons/IconYoutube.vue":rt});Object.entries(Us).forEach(([i,e])=>{const t=i.split("/").pop().split(".")[0];l.component(t,e.default)});l.component("side-menu",P);l.component("top-menu",A);l.component("pagination",I);l.component("logo-light",F);g.on("navigate",i=>{try{dataLayer.push({url:i.detail.page.url,event:"pageview"})}catch(e){console.info("Failed to push datalayer",e)}});pt({progress:{delay:5,includeCSS:!1,showSpinner:!1},resolve:async i=>(await Object.assign({"./pages/admin/cms/layout/Create.vue":()=>r(()=>import("./Create.8b338964.js"),["assets/Create.8b338964.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/cms/layout/Edit.vue":()=>r(()=>import("./Edit.8c1caf79.js"),["assets/Edit.8c1caf79.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/cms/layout/Index.vue":()=>r(()=>import("./Index.d696434d.js"),["assets/Index.d696434d.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/cms/menu/Create.vue":()=>r(()=>import("./Create.b08dc421.js"),["assets/Create.b08dc421.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/MenuItemsEditor.d3626ff3.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/MenuItemsEditor.ac46952f.css"]),"./pages/admin/cms/menu/Edit.vue":()=>r(()=>import("./Edit.978f8d21.js"),["assets/Edit.978f8d21.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/MenuItemsEditor.d3626ff3.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/MenuItemsEditor.ac46952f.css"]),"./pages/admin/cms/menu/Index.vue":()=>r(()=>import("./Index.1c1af3f0.js"),["assets/Index.1c1af3f0.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/cms/page/Create.vue":()=>r(()=>import("./Create.1d8384ed.js"),["assets/Create.1d8384ed.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/UrlEditor.6a278f5e.js","assets/DateTimePickerGroup.36fef719.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/checkbox-form-group.99a615f1.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/cms/page/Edit.vue":()=>r(()=>import("./Edit.79dd354d.js"),["assets/Edit.79dd354d.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/UrlEditor.6a278f5e.js","assets/DateTimePickerGroup.36fef719.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/checkbox-form-group.99a615f1.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/cms/page/Index.vue":()=>r(()=>import("./Index.2e286002.js"),["assets/Index.2e286002.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/cms/redirect/Create.vue":()=>r(()=>import("./Create.104a8ccd.js"),["assets/Create.104a8ccd.js","assets/CheckboxGroup.7b759576.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js"]),"./pages/admin/cms/redirect/Edit.vue":()=>r(()=>import("./Edit.ada03e97.js"),["assets/Edit.ada03e97.js","assets/CheckboxGroup.7b759576.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js"]),"./pages/admin/cms/redirect/Index.vue":()=>r(()=>import("./Index.2e6ffc28.js"),["assets/Index.2e6ffc28.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/cms/template/Create.vue":()=>r(()=>import("./Create.dc6785fd.js"),["assets/Create.dc6785fd.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/TemplateFieldEditor.7dee26e3.js","assets/vuedraggable.umd.700457d3.js","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/TemplateFieldEditor.d4d3e141.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/cms/template/Edit.vue":()=>r(()=>import("./Edit.f9606cf6.js"),["assets/Edit.f9606cf6.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/TemplateFieldEditor.7dee26e3.js","assets/vuedraggable.umd.700457d3.js","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/TemplateFieldEditor.d4d3e141.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/cms/template/Index.vue":()=>r(()=>import("./Index.3f6690d4.js"),["assets/Index.3f6690d4.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/crm/contact/Create.vue":()=>r(()=>import("./Create.c4bffa52.js"),["assets/Create.c4bffa52.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/crm/contact/Edit.vue":()=>r(()=>import("./Edit.d1a7952b.js"),["assets/Edit.d1a7952b.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/crm/contact/Index.vue":()=>r(()=>import("./Index.ba613796.js"),["assets/Index.ba613796.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/crm/form/Create.vue":()=>r(()=>import("./Create.cb1bb46a.js"),["assets/Create.cb1bb46a.js","assets/vendor.21c2b6f5.js","assets/ArrayGroup.46c0a3b3.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/FormFieldEditor.e5430ae4.js","assets/vuedraggable.umd.700457d3.js","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/FormFieldEditor.b347e16b.css","assets/InlineCheckboxGroup.b3aa2b58.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/crm/form/Edit.vue":()=>r(()=>import("./Edit.8d25ca1f.js"),["assets/Edit.8d25ca1f.js","assets/vendor.21c2b6f5.js","assets/ArrayGroup.46c0a3b3.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/FormFieldEditor.e5430ae4.js","assets/vuedraggable.umd.700457d3.js","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/FormFieldEditor.b347e16b.css","assets/InlineCheckboxGroup.b3aa2b58.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/crm/form/Index.vue":()=>r(()=>import("./Index.5037e854.js"),["assets/Index.5037e854.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/crm/form_submission/Index.vue":()=>r(()=>import("./Index.d2ba76f2.js"),["assets/Index.d2ba76f2.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/crm/form_submission/Show.vue":()=>r(()=>import("./Show.c3c9e29f.js"),["assets/Show.c3c9e29f.js","assets/vendor.21c2b6f5.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/crm/organisation_unit/Create.vue":()=>r(()=>import("./Create.a0dfac91.js"),["assets/Create.a0dfac91.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/crm/organisation_unit/Edit.vue":()=>r(()=>import("./Edit.91c008d3.js"),["assets/Edit.91c008d3.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/crm/organisation_unit/Index.vue":()=>r(()=>import("./Index.62203f14.js"),["assets/Index.62203f14.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/announcement/Create.vue":()=>r(()=>import("./Create.9b1c6787.js"),["assets/Create.9b1c6787.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/edu/announcement/Edit.vue":()=>r(()=>import("./Edit.f690a4d6.js"),["assets/Edit.f690a4d6.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/edu/announcement/Index.vue":()=>r(()=>import("./Index.f2c6fdf5.js"),["assets/Index.f2c6fdf5.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/course/Create.vue":()=>r(()=>import("./Create.623d94ee.js"),["assets/Create.623d94ee.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css"]),"./pages/admin/edu/course/Edit.vue":()=>r(()=>import("./Edit.83ddf47c.js"),["assets/Edit.83ddf47c.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css"]),"./pages/admin/edu/course/Index.vue":()=>r(()=>import("./Index.6e120ca2.js"),["assets/Index.6e120ca2.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/course/Preview.vue":()=>r(()=>import("./Preview.72090992.js"),["assets/Preview.72090992.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/edu/course/purchase/Index.vue":()=>r(()=>import("./Index.70b9066f.js"),["assets/Index.70b9066f.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/course/purchase/Show.vue":()=>r(()=>import("./Show.edafe552.js"),["assets/Show.edafe552.js","assets/vendor.21c2b6f5.js","assets/GenericModal.3f75002a.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/edu/label/Create.vue":()=>r(()=>import("./Create.a06b8a57.js"),["assets/Create.a06b8a57.js","assets/vendor.21c2b6f5.js","assets/ArrayGroup.46c0a3b3.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/edu/label/Edit.vue":()=>r(()=>import("./Edit.4d42b7d4.js"),["assets/Edit.4d42b7d4.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/edu/label/Index.vue":()=>r(()=>import("./Index.4c3e42a0.js"),["assets/Index.4c3e42a0.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/lecture/Create.vue":()=>r(()=>import("./Create.65796194.js"),["assets/Create.65796194.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css"]),"./pages/admin/edu/lecture/Edit.vue":()=>r(()=>import("./Edit.74bf91fc.js"),["assets/Edit.74bf91fc.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css"]),"./pages/admin/edu/lecture/Index.vue":()=>r(()=>import("./Index.43f325e1.js"),["assets/Index.43f325e1.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/lecture/Preview.vue":()=>r(()=>import("./Preview.605dcace.js"),["assets/Preview.605dcace.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/edu/programme/Create.vue":()=>r(()=>import("./Create.d415ad4b.js"),["assets/Create.d415ad4b.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css","assets/SelectMultipleGroup.445aa1ac.js"]),"./pages/admin/edu/programme/Edit.vue":()=>r(()=>import("./Edit.d0258602.js"),["assets/Edit.d0258602.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css","assets/SelectMultipleGroup.445aa1ac.js"]),"./pages/admin/edu/programme/Index.vue":()=>r(()=>import("./Index.efc25151.js"),["assets/Index.efc25151.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/edu/programme/Preview.vue":()=>r(()=>import("./Preview.8fb72e53.js"),["assets/Preview.8fb72e53.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/edu/webinar/Create.vue":()=>r(()=>import("./Create.d20ee538.js"),["assets/Create.d20ee538.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css"]),"./pages/admin/edu/webinar/Edit.vue":()=>r(()=>import("./Edit.f1dc4dd8.js"),["assets/Edit.f1dc4dd8.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/CheckboxGroup.7b759576.js","assets/checkbox-form-group.99a615f1.js","assets/DateTimePickerGroup.36fef719.js","assets/SectionItemsEditor.845c8cbd.js","assets/vuedraggable.umd.700457d3.js","assets/ConfirmationModal.242a99d0.js","assets/SectionItemsEditor.28200d00.css"]),"./pages/admin/edu/webinar/Index.vue":()=>r(()=>import("./Index.4c323bd5.js"),["assets/Index.4c323bd5.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/admin/email/preview/Index.vue":()=>r(()=>import("./Index.ebf74275.js"),["assets/Index.ebf74275.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/error/Error.vue":()=>r(()=>import("./Error.df4fa7f5.js"),["assets/Error.df4fa7f5.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/file_manager/Index.vue":()=>r(()=>import("./Index.47975f97.js"),["assets/Index.47975f97.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/home/Index.vue":()=>r(()=>import("./Index.d8a5dc92.js"),["assets/Index.d8a5dc92.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/profile/Edit.vue":()=>r(()=>import("./Edit.b00dcb2a.js"),["assets/Edit.b00dcb2a.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/profile/Index.vue":()=>r(()=>import("./Index.f7839a10.js"),["assets/Index.f7839a10.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/admin/setting/Edit.vue":()=>r(()=>import("./Edit.4cc99e10.js"),["assets/Edit.4cc99e10.js","assets/vendor.21c2b6f5.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js"]),"./pages/admin/user/Create.vue":()=>r(()=>import("./Create.01776621.js"),["assets/Create.01776621.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/user/Edit.vue":()=>r(()=>import("./Edit.c516894b.js"),["assets/Edit.c516894b.js","assets/vendor.21c2b6f5.js","assets/InlineCheckboxGroup.b3aa2b58.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/checkbox-form-group.99a615f1.js"]),"./pages/admin/user/Index.vue":()=>r(()=>import("./Index.8e4e8571.js"),["assets/Index.8e4e8571.js","assets/vendor.21c2b6f5.js","assets/ConfirmationModal.242a99d0.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js"]),"./pages/auth/Login.vue":()=>r(()=>import("./Login.364765db.js"),["assets/Login.364765db.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/auth/Register.vue":()=>r(()=>import("./Register.724812d1.js"),["assets/Register.724812d1.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/auth/Verify.vue":()=>r(()=>import("./Verify.95e566d7.js"),["assets/Verify.95e566d7.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/auth/passwords/Confirm.vue":()=>r(()=>import("./Confirm.583f4cb4.js"),["assets/Confirm.583f4cb4.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/auth/passwords/Email.vue":()=>r(()=>import("./Email.7525ef1b.js"),["assets/Email.7525ef1b.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/auth/passwords/Reset.vue":()=>r(()=>import("./Reset.4c08c7e2.js"),["assets/Reset.4c08c7e2.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/customer/error/Error.vue":()=>r(()=>import("./Error.8da45f54.js"),["assets/Error.8da45f54.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/customer/home/Index.vue":()=>r(()=>import("./Index.ad329ada.js"),["assets/Index.ad329ada.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/Index.e94fc6a9.css"]),"./pages/customer/page/Show.vue":()=>r(()=>import("./Show.0629b321.js"),["assets/Show.0629b321.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/student/admin/home/Index.vue":()=>r(()=>import("./Index.8c47121c.js"),["assets/Index.8c47121c.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css","assets/InputGroup.513e0dd4.js","assets/ConfirmationModal.242a99d0.js","assets/Index.431eb08b.css"]),"./pages/student/admin/home/Show.vue":()=>r(()=>import("./Show.ab6aa26a.js"),["assets/Show.ab6aa26a.js","assets/vendor.21c2b6f5.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/ConfirmationModal.242a99d0.js","assets/InputGroup.513e0dd4.js"]),"./pages/student/admin/profile/Edit.vue":()=>r(()=>import("./Edit.a623ba83.js"),["assets/Edit.a623ba83.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/student/admin/profile/Index.vue":()=>r(()=>import("./Index.58bb9fee.js"),["assets/Index.58bb9fee.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/student/auth/Login.vue":()=>r(()=>import("./Login.3e5bd779.js"),["assets/Login.3e5bd779.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/student/auth/Register.vue":()=>r(()=>import("./Register.2d4e8bdb.js"),["assets/Register.2d4e8bdb.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/student/auth/passwords/Email.vue":()=>r(()=>import("./Email.287632b0.js"),["assets/Email.287632b0.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/student/auth/passwords/Reset.vue":()=>r(()=>import("./Reset.97ac2872.js"),["assets/Reset.97ac2872.js","assets/InputGroup.513e0dd4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/website/edu/course/Show.vue":()=>r(()=>import("./Show.90bc0a44.js"),["assets/Show.90bc0a44.js","assets/CourseFooter.585c86a3.js","assets/vendor.21c2b6f5.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css"]),"./pages/website/error/Error.vue":()=>r(()=>import("./Error.1c1a5db4.js"),["assets/Error.1c1a5db4.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/website/home/Index.vue":()=>r(()=>import("./Index.f652474a.js"),["assets/Index.f652474a.js","assets/LogoLight.f7426689.js","assets/vendor.21c2b6f5.js","assets/LogoLight.fab1a1ae.css"]),"./pages/website/page/Show.vue":()=>r(()=>import("./Show.b9570225.js"),["assets/Show.b9570225.js","assets/vendor.21c2b6f5.js","assets/LogoLight.f7426689.js","assets/LogoLight.fab1a1ae.css","assets/CourseFooter.585c86a3.js","assets/InputGroup.513e0dd4.js","assets/ConfirmationModal.242a99d0.js"])})[`./pages/${i}.vue`]()).default,setup({el:i,App:e,props:t,plugin:s}){l.use(s),new l({store:at,render:a=>a(e,t)}).$mount(i)}});export{Nt as F,m as S,ys as T,$s as W,x as Z,Gt as a}; diff --git a/public/build/assets/checkbox-form-group.99a615f1.js b/public/build/assets/checkbox-form-group.99a615f1.js new file mode 100644 index 00000000..faecbb9a --- /dev/null +++ b/public/build/assets/checkbox-form-group.99a615f1.js @@ -0,0 +1 @@ +const e={props:{inputValue:{default:!1,type:String|Number|Boolean},inputValueFalse:{default:!1,type:String|Number|Boolean},inputValueTrue:{default:!0,type:String|Number|Boolean}},data(){return{editableValue:!1}},computed:{isChecked(){return this.editableValue===this.inputValueTrue}},mounted(){this.editableValue=this.inputValue,this.autofocus()},methods:{onInput(){this.$emit("input",this.isChecked?this.inputValueTrue:this.inputValueFalse),this.errorHideOnInput&&(this.hideError=!0)}}};export{e as c}; diff --git a/public/build/assets/vendor.21c2b6f5.js b/public/build/assets/vendor.21c2b6f5.js new file mode 100644 index 00000000..81be67c6 --- /dev/null +++ b/public/build/assets/vendor.21c2b6f5.js @@ -0,0 +1,185 @@ +var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Eb(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var rp={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(e,t){(function(){var n,r="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,C=2,A=4,w=1,x=2,_=1,p=2,v=4,S=8,g=16,P=32,O=64,k=128,H=256,J=512,K=30,le="...",L=800,F=16,z=1,q=2,X=3,ne=1/0,ee=9007199254740991,de=17976931348623157e292,ue=0/0,_e=4294967295,Ee=_e-1,Oe=_e>>>1,Fe=[["ary",k],["bind",_],["bindKey",p],["curry",S],["curryRight",g],["flip",J],["partial",P],["partialRight",O],["rearg",H]],Se="[object Arguments]",Le="[object Array]",Be="[object AsyncFunction]",Ue="[object Boolean]",ot="[object Date]",st="[object DOMException]",ct="[object Error]",De="[object Function]",St="[object GeneratorFunction]",Ot="[object Map]",Zt="[object Number]",Mt="[object Null]",_t="[object Object]",Cn="[object Promise]",R="[object Proxy]",Y="[object RegExp]",V="[object Set]",te="[object String]",N="[object Symbol]",Q="[object Undefined]",ie="[object WeakMap]",me="[object WeakSet]",we="[object ArrayBuffer]",be="[object DataView]",qe="[object Float32Array]",Xe="[object Float64Array]",xe="[object Int8Array]",Ve="[object Int16Array]",bt="[object Int32Array]",re="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Me="[object Uint16Array]",ze="[object Uint32Array]",Pe=/\b__p \+= '';/g,je=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,et=/&(?:amp|lt|gt|quot|#39);/g,Vt=/[&<>"']/g,Ut=RegExp(et.source),Lt=RegExp(Vt.source),Nt=/<%-([\s\S]+?)%>/g,pn=/<%([\s\S]+?)%>/g,un=/<%=([\s\S]+?)%>/g,yn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,It=/^\w*$/,hn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/[\\^$.*+?()[\]{}|]/g,ln=RegExp(Dt.source),gr=/^\s+/,yr=/\s/,ir=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nr=/,? & /,Dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ar=/[()=,{}\[\]\/\s]/,qi=/\\(\\)?/g,Vi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/\w*$/,Ca=/^[-+]0x[0-9a-f]+$/i,Ea=/^0b[01]+$/i,Oa=/^\[object .+?Constructor\]$/,Aa=/^0o[0-7]+$/i,Ta=/^(?:0|[1-9]\d*)$/,vn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Br=/($^)/,$a=/['\n\r\u2028\u2029\\]/g,ti="\\ud800-\\udfff",Da="\\u0300-\\u036f",Pa="\\ufe20-\\ufe2f",ni="\\u20d0-\\u20ff",wi=Da+Pa+ni,br="\\u2700-\\u27bf",Pn="a-z\\xdf-\\xf6\\xf8-\\xff",ri="\\xac\\xb1\\xd7\\xf7",Gi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Si="\\u2000-\\u206f",or=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_r="A-Z\\xc0-\\xd6\\xd8-\\xde",wr="\\ufe0e\\ufe0f",Vn=ri+Gi+Si+or,Gn="['\u2019]",Qt="["+ti+"]",Kn="["+Vn+"]",bn="["+wi+"]",Mn="\\d+",Ur="["+br+"]",T="["+Pn+"]",I="[^"+ti+Vn+Mn+br+Pn+_r+"]",j="\\ud83c[\\udffb-\\udfff]",ae="(?:"+bn+"|"+j+")",ge="[^"+ti+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",ut="["+_r+"]",zt="\\u200d",cn="(?:"+T+"|"+I+")",Gt="(?:"+ut+"|"+I+")",mo="(?:"+Gn+"(?:d|ll|m|re|s|t|ve))?",go="(?:"+Gn+"(?:D|LL|M|RE|S|T|VE))?",yo=ae+"?",bo="["+wr+"]?",_o="(?:"+zt+"(?:"+[ge,$e,Re].join("|")+")"+bo+yo+")*",En="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ma=bo+yo+_o,Ki="(?:"+[Ur,$e,Re].join("|")+")"+Ma,Ia="(?:"+[ge+bn+"?",bn,$e,Re,Qt].join("|")+")",Ji=RegExp(Gn,"g"),Ss=RegExp(bn,"g"),Xi=RegExp(j+"(?="+j+")|"+Ia+Ma,"g"),ka=RegExp([ut+"?"+T+"+"+mo+"(?="+[Kn,ut,"$"].join("|")+")",Gt+"+"+go+"(?="+[Kn,ut+cn,"$"].join("|")+")",ut+"?"+cn+"+"+mo,ut+"+"+go,wo,En,Mn,Ki].join("|"),"g"),So=RegExp("["+zt+ti+wi+wr+"]"),Sr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fa=-1,At={};At[qe]=At[Xe]=At[xe]=At[Ve]=At[bt]=At[re]=At[Ce]=At[Me]=At[ze]=!0,At[Se]=At[Le]=At[we]=At[Ue]=At[be]=At[ot]=At[ct]=At[De]=At[Ot]=At[Zt]=At[_t]=At[Y]=At[V]=At[te]=At[ie]=!1;var xt={};xt[Se]=xt[Le]=xt[we]=xt[be]=xt[Ue]=xt[ot]=xt[qe]=xt[Xe]=xt[xe]=xt[Ve]=xt[bt]=xt[Ot]=xt[Zt]=xt[_t]=xt[Y]=xt[V]=xt[te]=xt[N]=xt[re]=xt[Ce]=xt[Me]=xt[ze]=!0,xt[ct]=xt[De]=xt[ie]=!1;var b={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},D={"&":"&","<":"<",">":">",'"':""","'":"'"},U={"&":"&","<":"<",">":">",""":'"',"'":"'"},ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ge=parseFloat,ke=parseInt,it=typeof Yt=="object"&&Yt&&Yt.Object===Object&&Yt,vt=typeof self=="object"&&self&&self.Object===Object&&self,at=it||vt||Function("return this")(),gt=t&&!t.nodeType&&t,Ht=gt&&!0&&e&&!e.nodeType&&e,On=Ht&&Ht.exports===gt,Kt=On&&it.process,Tt=function(){try{var G=Ht&&Ht.require&&Ht.require("util").types;return G||Kt&&Kt.binding&&Kt.binding("util")}catch{}}(),fn=Tt&&Tt.isArrayBuffer,jr=Tt&&Tt.isDate,xr=Tt&&Tt.isMap,ii=Tt&&Tt.isRegExp,xs=Tt&&Tt.isSet,Ra=Tt&&Tt.isTypedArray;function _n(G,fe,oe){switch(oe.length){case 0:return G.call(fe);case 1:return G.call(fe,oe[0]);case 2:return G.call(fe,oe[0],oe[1]);case 3:return G.call(fe,oe[0],oe[1],oe[2])}return G.apply(fe,oe)}function bS(G,fe,oe,Te){for(var Je=-1,wt=G==null?0:G.length;++Je-1}function rf(G,fe,oe){for(var Te=-1,Je=G==null?0:G.length;++Te-1;);return oe}function Nv(G,fe){for(var oe=G.length;oe--&&Co(fe,G[oe],0)>-1;);return oe}function TS(G,fe){for(var oe=G.length,Te=0;oe--;)G[oe]===fe&&++Te;return Te}var $S=uf(b),DS=uf(D);function PS(G){return"\\"+ce[G]}function MS(G,fe){return G==null?n:G[fe]}function Eo(G){return So.test(G)}function IS(G){return Sr.test(G)}function kS(G){for(var fe,oe=[];!(fe=G.next()).done;)oe.push(fe.value);return oe}function df(G){var fe=-1,oe=Array(G.size);return G.forEach(function(Te,Je){oe[++fe]=[Je,Te]}),oe}function Bv(G,fe){return function(oe){return G(fe(oe))}}function ea(G,fe){for(var oe=-1,Te=G.length,Je=0,wt=[];++oe-1}function wx(i,s){var f=this.__data__,y=el(f,i);return y<0?(++this.size,f.push([i,s])):f[y][1]=s,this}xi.prototype.clear=gx,xi.prototype.delete=yx,xi.prototype.get=bx,xi.prototype.has=_x,xi.prototype.set=wx;function Ci(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s=s?i:s)),i}function Ar(i,s,f,y,E,M){var B,W=s&m,Z=s&C,pe=s&A;if(f&&(B=E?f(i,y,E,M):f(i)),B!==n)return B;if(!Jt(i))return i;var he=Ze(i);if(he){if(B=EC(i),!W)return Jn(i,B)}else{var ye=kn(i),Ae=ye==De||ye==St;if(oa(i))return wm(i,W);if(ye==_t||ye==Se||Ae&&!E){if(B=Z||Ae?{}:Um(i),!W)return Z?hC(i,Lx(B,i)):pC(i,Xv(B,i))}else{if(!xt[ye])return E?i:{};B=OC(i,ye,W)}}M||(M=new Hr);var Ie=M.get(i);if(Ie)return Ie;M.set(i,B),vg(i)?i.forEach(function(Ye){B.add(Ar(Ye,s,f,Ye,i,M))}):pg(i)&&i.forEach(function(Ye,lt){B.set(lt,Ar(Ye,s,f,lt,i,M))});var We=pe?Z?Nf:Lf:Z?Zn:wn,nt=he?n:We(i);return Cr(nt||i,function(Ye,lt){nt&&(lt=Ye,Ye=i[lt]),Ds(B,lt,Ar(Ye,s,f,lt,i,M))}),B}function Nx(i){var s=wn(i);return function(f){return Zv(f,i,s)}}function Zv(i,s,f){var y=f.length;if(i==null)return!y;for(i=kt(i);y--;){var E=f[y],M=s[E],B=i[E];if(B===n&&!(E in i)||!M(B))return!1}return!0}function Qv(i,s,f){if(typeof i!="function")throw new Er(u);return Ls(function(){i.apply(n,f)},s)}function Ps(i,s,f,y){var E=-1,M=Lu,B=!0,W=i.length,Z=[],pe=s.length;if(!W)return Z;f&&(s=Wt(s,sr(f))),y?(M=rf,B=!1):s.length>=a&&(M=Cs,B=!1,s=new Ba(s));e:for(;++EE?0:E+f),y=y===n||y>E?E:tt(y),y<0&&(y+=E),y=f>y?0:gg(y);f0&&f(W)?s>1?An(W,s-1,f,y,E):Qi(E,W):y||(E[E.length]=W)}return E}var bf=Am(),nm=Am(!0);function ai(i,s){return i&&bf(i,s,wn)}function _f(i,s){return i&&nm(i,s,wn)}function nl(i,s){return Zi(s,function(f){return $i(i[f])})}function ja(i,s){s=ia(s,i);for(var f=0,y=s.length;i!=null&&fs}function jx(i,s){return i!=null&&$t.call(i,s)}function zx(i,s){return i!=null&&s in kt(i)}function Hx(i,s,f){return i>=In(s,f)&&i=120&&he.length>=120)?new Ba(B&&he):n}he=i[0];var ye=-1,Ae=W[0];e:for(;++ye-1;)W!==i&&Vu.call(W,Z,1),Vu.call(i,Z,1);return i}function pm(i,s){for(var f=i?s.length:0,y=f-1;f--;){var E=s[f];if(f==y||E!==M){var M=E;Ti(E)?Vu.call(i,E,1):Df(i,E)}}return i}function Af(i,s){return i+Ju(Vv()*(s-i+1))}function nC(i,s,f,y){for(var E=-1,M=gn(Ku((s-i)/(f||1)),0),B=oe(M);M--;)B[y?M:++E]=i,i+=f;return B}function Tf(i,s){var f="";if(!i||s<1||s>ee)return f;do s%2&&(f+=i),s=Ju(s/2),s&&(i+=i);while(s);return f}function rt(i,s){return Yf(Hm(i,s,Qn),i+"")}function rC(i){return Jv(Ro(i))}function iC(i,s){var f=Ro(i);return pl(f,Ua(s,0,f.length))}function ks(i,s,f,y){if(!Jt(i))return i;s=ia(s,i);for(var E=-1,M=s.length,B=M-1,W=i;W!=null&&++EE?0:E+s),f=f>E?E:f,f<0&&(f+=E),E=s>f?0:f-s>>>0,s>>>=0;for(var M=oe(E);++y>>1,B=i[M];B!==null&&!lr(B)&&(f?B<=s:B=a){var pe=s?null:yC(i);if(pe)return Bu(pe);B=!1,E=Cs,Z=new Ba}else Z=s?[]:W;e:for(;++y=y?i:Tr(i,s,f)}var _m=KS||function(i){return at.clearTimeout(i)};function wm(i,s){if(s)return i.slice();var f=i.length,y=zv?zv(f):new i.constructor(f);return i.copy(y),y}function kf(i){var s=new i.constructor(i.byteLength);return new Yu(s).set(new Yu(i)),s}function lC(i,s){var f=s?kf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function cC(i){var s=new i.constructor(i.source,jt.exec(i));return s.lastIndex=i.lastIndex,s}function fC(i){return $s?kt($s.call(i)):{}}function Sm(i,s){var f=s?kf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function xm(i,s){if(i!==s){var f=i!==n,y=i===null,E=i===i,M=lr(i),B=s!==n,W=s===null,Z=s===s,pe=lr(s);if(!W&&!pe&&!M&&i>s||M&&B&&Z&&!W&&!pe||y&&B&&Z||!f&&Z||!E)return 1;if(!y&&!M&&!pe&&i=W)return Z;var pe=f[y];return Z*(pe=="desc"?-1:1)}}return i.index-s.index}function Cm(i,s,f,y){for(var E=-1,M=i.length,B=f.length,W=-1,Z=s.length,pe=gn(M-B,0),he=oe(Z+pe),ye=!y;++W1?f[E-1]:n,B=E>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(E--,M):n,B&&Hn(f[0],f[1],B)&&(M=E<3?n:M,E=1),s=kt(s);++y-1?E[M?s[B]:B]:n}}function Dm(i){return Ai(function(s){var f=s.length,y=f,E=Or.prototype.thru;for(i&&s.reverse();y--;){var M=s[y];if(typeof M!="function")throw new Er(u);if(E&&!B&&fl(M)=="wrapper")var B=new Or([],!0)}for(y=B?y:f;++y1&&mt.reverse(),he&&ZW))return!1;var pe=M.get(i),he=M.get(s);if(pe&&he)return pe==s&&he==i;var ye=-1,Ae=!0,Ie=f&x?new Ba:n;for(M.set(i,s),M.set(s,i);++ye1?"& ":"")+s[y],s=s.join(f>2?", ":" "),i.replace(ir,`{ +/* [wrapped with `+s+`] */ +`)}function TC(i){return Ze(i)||Wa(i)||!!(Yv&&i&&i[Yv])}function Ti(i,s){var f=typeof i;return s=s==null?ee:s,!!s&&(f=="number"||f!="symbol"&&Ta.test(i))&&i>-1&&i%1==0&&i0){if(++s>=L)return arguments[0]}else s=0;return i.apply(n,arguments)}}function pl(i,s){var f=-1,y=i.length,E=y-1;for(s=s===n?y:s;++f1?i[s-1]:n;return f=typeof f=="function"?(i.pop(),f):n,tg(i,f)});function ng(i){var s=$(i);return s.__chain__=!0,s}function BE(i,s){return s(i),i}function hl(i,s){return s(i)}var UE=Ai(function(i){var s=i.length,f=s?i[0]:0,y=this.__wrapped__,E=function(M){return yf(M,i)};return s>1||this.__actions__.length||!(y instanceof dt)||!Ti(f)?this.thru(E):(y=y.slice(f,+f+(s?1:0)),y.__actions__.push({func:hl,args:[E],thisArg:n}),new Or(y,this.__chain__).thru(function(M){return s&&!M.length&&M.push(n),M}))});function jE(){return ng(this)}function zE(){return new Or(this.value(),this.__chain__)}function HE(){this.__values__===n&&(this.__values__=mg(this.value()));var i=this.__index__>=this.__values__.length,s=i?n:this.__values__[this.__index__++];return{done:i,value:s}}function WE(){return this}function YE(i){for(var s,f=this;f instanceof Qu;){var y=Km(f);y.__index__=0,y.__values__=n,s?E.__wrapped__=y:s=y;var E=y;f=f.__wrapped__}return E.__wrapped__=i,s}function qE(){var i=this.__wrapped__;if(i instanceof dt){var s=i;return this.__actions__.length&&(s=new dt(this)),s=s.reverse(),s.__actions__.push({func:hl,args:[qf],thisArg:n}),new Or(s,this.__chain__)}return this.thru(qf)}function VE(){return ym(this.__wrapped__,this.__actions__)}var GE=ol(function(i,s,f){$t.call(i,f)?++i[f]:Ei(i,f,1)});function KE(i,s,f){var y=Ze(i)?Pv:Bx;return f&&Hn(i,s,f)&&(s=n),y(i,He(s,3))}function JE(i,s){var f=Ze(i)?Zi:tm;return f(i,He(s,3))}var XE=$m(Jm),ZE=$m(Xm);function QE(i,s){return An(vl(i,s),1)}function eO(i,s){return An(vl(i,s),ne)}function tO(i,s,f){return f=f===n?1:tt(f),An(vl(i,s),f)}function rg(i,s){var f=Ze(i)?Cr:na;return f(i,He(s,3))}function ig(i,s){var f=Ze(i)?_S:em;return f(i,He(s,3))}var nO=ol(function(i,s,f){$t.call(i,f)?i[f].push(s):Ei(i,f,[s])});function rO(i,s,f,y){i=Xn(i)?i:Ro(i),f=f&&!y?tt(f):0;var E=i.length;return f<0&&(f=gn(E+f,0)),_l(i)?f<=E&&i.indexOf(s,f)>-1:!!E&&Co(i,s,f)>-1}var iO=rt(function(i,s,f){var y=-1,E=typeof s=="function",M=Xn(i)?oe(i.length):[];return na(i,function(B){M[++y]=E?_n(s,B,f):Ms(B,s,f)}),M}),aO=ol(function(i,s,f){Ei(i,f,s)});function vl(i,s){var f=Ze(i)?Wt:sm;return f(i,He(s,3))}function oO(i,s,f,y){return i==null?[]:(Ze(s)||(s=s==null?[]:[s]),f=y?n:f,Ze(f)||(f=f==null?[]:[f]),fm(i,s,f))}var sO=ol(function(i,s,f){i[f?0:1].push(s)},function(){return[[],[]]});function uO(i,s,f){var y=Ze(i)?af:Fv,E=arguments.length<3;return y(i,He(s,4),f,E,na)}function lO(i,s,f){var y=Ze(i)?wS:Fv,E=arguments.length<3;return y(i,He(s,4),f,E,em)}function cO(i,s){var f=Ze(i)?Zi:tm;return f(i,yl(He(s,3)))}function fO(i){var s=Ze(i)?Jv:rC;return s(i)}function dO(i,s,f){(f?Hn(i,s,f):s===n)?s=1:s=tt(s);var y=Ze(i)?kx:iC;return y(i,s)}function pO(i){var s=Ze(i)?Fx:oC;return s(i)}function hO(i){if(i==null)return 0;if(Xn(i))return _l(i)?Oo(i):i.length;var s=kn(i);return s==Ot||s==V?i.size:Cf(i).length}function vO(i,s,f){var y=Ze(i)?of:sC;return f&&Hn(i,s,f)&&(s=n),y(i,He(s,3))}var mO=rt(function(i,s){if(i==null)return[];var f=s.length;return f>1&&Hn(i,s[0],s[1])?s=[]:f>2&&Hn(s[0],s[1],s[2])&&(s=[s[0]]),fm(i,An(s,1),[])}),ml=JS||function(){return at.Date.now()};function gO(i,s){if(typeof s!="function")throw new Er(u);return i=tt(i),function(){if(--i<1)return s.apply(this,arguments)}}function ag(i,s,f){return s=f?n:s,s=i&&s==null?i.length:s,Oi(i,k,n,n,n,n,s)}function og(i,s){var f;if(typeof s!="function")throw new Er(u);return i=tt(i),function(){return--i>0&&(f=s.apply(this,arguments)),i<=1&&(s=n),f}}var Gf=rt(function(i,s,f){var y=_;if(f.length){var E=ea(f,ko(Gf));y|=P}return Oi(i,y,s,f,E)}),sg=rt(function(i,s,f){var y=_|p;if(f.length){var E=ea(f,ko(sg));y|=P}return Oi(s,y,i,f,E)});function ug(i,s,f){s=f?n:s;var y=Oi(i,S,n,n,n,n,n,s);return y.placeholder=ug.placeholder,y}function lg(i,s,f){s=f?n:s;var y=Oi(i,g,n,n,n,n,n,s);return y.placeholder=lg.placeholder,y}function cg(i,s,f){var y,E,M,B,W,Z,pe=0,he=!1,ye=!1,Ae=!0;if(typeof i!="function")throw new Er(u);s=Dr(s)||0,Jt(f)&&(he=!!f.leading,ye="maxWait"in f,M=ye?gn(Dr(f.maxWait)||0,s):M,Ae="trailing"in f?!!f.trailing:Ae);function Ie(rn){var Yr=y,Pi=E;return y=E=n,pe=rn,B=i.apply(Pi,Yr),B}function We(rn){return pe=rn,W=Ls(lt,s),he?Ie(rn):B}function nt(rn){var Yr=rn-Z,Pi=rn-pe,$g=s-Yr;return ye?In($g,M-Pi):$g}function Ye(rn){var Yr=rn-Z,Pi=rn-pe;return Z===n||Yr>=s||Yr<0||ye&&Pi>=M}function lt(){var rn=ml();if(Ye(rn))return mt(rn);W=Ls(lt,nt(rn))}function mt(rn){return W=n,Ae&&y?Ie(rn):(y=E=n,B)}function cr(){W!==n&&_m(W),pe=0,y=Z=E=W=n}function Wn(){return W===n?B:mt(ml())}function fr(){var rn=ml(),Yr=Ye(rn);if(y=arguments,E=this,Z=rn,Yr){if(W===n)return We(Z);if(ye)return _m(W),W=Ls(lt,s),Ie(Z)}return W===n&&(W=Ls(lt,s)),B}return fr.cancel=cr,fr.flush=Wn,fr}var yO=rt(function(i,s){return Qv(i,1,s)}),bO=rt(function(i,s,f){return Qv(i,Dr(s)||0,f)});function _O(i){return Oi(i,J)}function gl(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new Er(u);var f=function(){var y=arguments,E=s?s.apply(this,y):y[0],M=f.cache;if(M.has(E))return M.get(E);var B=i.apply(this,y);return f.cache=M.set(E,B)||M,B};return f.cache=new(gl.Cache||Ci),f}gl.Cache=Ci;function yl(i){if(typeof i!="function")throw new Er(u);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function wO(i){return og(2,i)}var SO=uC(function(i,s){s=s.length==1&&Ze(s[0])?Wt(s[0],sr(He())):Wt(An(s,1),sr(He()));var f=s.length;return rt(function(y){for(var E=-1,M=In(y.length,f);++E=s}),Wa=im(function(){return arguments}())?im:function(i){return en(i)&&$t.call(i,"callee")&&!Wv.call(i,"callee")},Ze=oe.isArray,LO=fn?sr(fn):Yx;function Xn(i){return i!=null&&bl(i.length)&&!$i(i)}function nn(i){return en(i)&&Xn(i)}function NO(i){return i===!0||i===!1||en(i)&&zn(i)==Ue}var oa=ZS||od,BO=jr?sr(jr):qx;function UO(i){return en(i)&&i.nodeType===1&&!Ns(i)}function jO(i){if(i==null)return!0;if(Xn(i)&&(Ze(i)||typeof i=="string"||typeof i.splice=="function"||oa(i)||Fo(i)||Wa(i)))return!i.length;var s=kn(i);if(s==Ot||s==V)return!i.size;if(Rs(i))return!Cf(i).length;for(var f in i)if($t.call(i,f))return!1;return!0}function zO(i,s){return Is(i,s)}function HO(i,s,f){f=typeof f=="function"?f:n;var y=f?f(i,s):n;return y===n?Is(i,s,n,f):!!y}function Jf(i){if(!en(i))return!1;var s=zn(i);return s==ct||s==st||typeof i.message=="string"&&typeof i.name=="string"&&!Ns(i)}function WO(i){return typeof i=="number"&&qv(i)}function $i(i){if(!Jt(i))return!1;var s=zn(i);return s==De||s==St||s==Be||s==R}function dg(i){return typeof i=="number"&&i==tt(i)}function bl(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ee}function Jt(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function en(i){return i!=null&&typeof i=="object"}var pg=xr?sr(xr):Gx;function YO(i,s){return i===s||xf(i,s,Uf(s))}function qO(i,s,f){return f=typeof f=="function"?f:n,xf(i,s,Uf(s),f)}function VO(i){return hg(i)&&i!=+i}function GO(i){if(PC(i))throw new Je(o);return am(i)}function KO(i){return i===null}function JO(i){return i==null}function hg(i){return typeof i=="number"||en(i)&&zn(i)==Zt}function Ns(i){if(!en(i)||zn(i)!=_t)return!1;var s=qu(i);if(s===null)return!0;var f=$t.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&zu.call(f)==qS}var Xf=ii?sr(ii):Kx;function XO(i){return dg(i)&&i>=-ee&&i<=ee}var vg=xs?sr(xs):Jx;function _l(i){return typeof i=="string"||!Ze(i)&&en(i)&&zn(i)==te}function lr(i){return typeof i=="symbol"||en(i)&&zn(i)==N}var Fo=Ra?sr(Ra):Xx;function ZO(i){return i===n}function QO(i){return en(i)&&kn(i)==ie}function eA(i){return en(i)&&zn(i)==me}var tA=cl(Ef),nA=cl(function(i,s){return i<=s});function mg(i){if(!i)return[];if(Xn(i))return _l(i)?zr(i):Jn(i);if(Es&&i[Es])return kS(i[Es]());var s=kn(i),f=s==Ot?df:s==V?Bu:Ro;return f(i)}function Di(i){if(!i)return i===0?i:0;if(i=Dr(i),i===ne||i===-ne){var s=i<0?-1:1;return s*de}return i===i?i:0}function tt(i){var s=Di(i),f=s%1;return s===s?f?s-f:s:0}function gg(i){return i?Ua(tt(i),0,_e):0}function Dr(i){if(typeof i=="number")return i;if(lr(i))return ue;if(Jt(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=Jt(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=Rv(i);var f=Ea.test(i);return f||Aa.test(i)?ke(i.slice(2),f?2:8):Ca.test(i)?ue:+i}function yg(i){return oi(i,Zn(i))}function rA(i){return i?Ua(tt(i),-ee,ee):i===0?i:0}function Ct(i){return i==null?"":ur(i)}var iA=Mo(function(i,s){if(Rs(s)||Xn(s)){oi(s,wn(s),i);return}for(var f in s)$t.call(s,f)&&Ds(i,f,s[f])}),bg=Mo(function(i,s){oi(s,Zn(s),i)}),wl=Mo(function(i,s,f,y){oi(s,Zn(s),i,y)}),aA=Mo(function(i,s,f,y){oi(s,wn(s),i,y)}),oA=Ai(yf);function sA(i,s){var f=Po(i);return s==null?f:Xv(f,s)}var uA=rt(function(i,s){i=kt(i);var f=-1,y=s.length,E=y>2?s[2]:n;for(E&&Hn(s[0],s[1],E)&&(y=1);++f1),M}),oi(i,Nf(i),f),y&&(f=Ar(f,m|C|A,bC));for(var E=s.length;E--;)Df(f,s[E]);return f});function OA(i,s){return wg(i,yl(He(s)))}var AA=Ai(function(i,s){return i==null?{}:eC(i,s)});function wg(i,s){if(i==null)return{};var f=Wt(Nf(i),function(y){return[y]});return s=He(s),dm(i,f,function(y,E){return s(y,E[0])})}function TA(i,s,f){s=ia(s,i);var y=-1,E=s.length;for(E||(E=1,i=n);++ys){var y=i;i=s,s=y}if(f||i%1||s%1){var E=Vv();return In(i+E*(s-i+Ge("1e-"+((E+"").length-1))),s)}return Af(i,s)}var BA=Io(function(i,s,f){return s=s.toLowerCase(),i+(f?Cg(s):s)});function Cg(i){return ed(Ct(i).toLowerCase())}function Eg(i){return i=Ct(i),i&&i.replace(vn,$S).replace(Ss,"")}function UA(i,s,f){i=Ct(i),s=ur(s);var y=i.length;f=f===n?y:Ua(tt(f),0,y);var E=f;return f-=s.length,f>=0&&i.slice(f,E)==s}function jA(i){return i=Ct(i),i&&Lt.test(i)?i.replace(Vt,DS):i}function zA(i){return i=Ct(i),i&&ln.test(i)?i.replace(Dt,"\\$&"):i}var HA=Io(function(i,s,f){return i+(f?"-":"")+s.toLowerCase()}),WA=Io(function(i,s,f){return i+(f?" ":"")+s.toLowerCase()}),YA=Tm("toLowerCase");function qA(i,s,f){i=Ct(i),s=tt(s);var y=s?Oo(i):0;if(!s||y>=s)return i;var E=(s-y)/2;return ll(Ju(E),f)+i+ll(Ku(E),f)}function VA(i,s,f){i=Ct(i),s=tt(s);var y=s?Oo(i):0;return s&&y>>0,f?(i=Ct(i),i&&(typeof s=="string"||s!=null&&!Xf(s))&&(s=ur(s),!s&&Eo(i))?aa(zr(i),0,f):i.split(s,f)):[]}var eT=Io(function(i,s,f){return i+(f?" ":"")+ed(s)});function tT(i,s,f){return i=Ct(i),f=f==null?0:Ua(tt(f),0,i.length),s=ur(s),i.slice(f,f+s.length)==s}function nT(i,s,f){var y=$.templateSettings;f&&Hn(i,s,f)&&(s=n),i=Ct(i),s=wl({},s,y,Fm);var E=wl({},s.imports,y.imports,Fm),M=wn(E),B=ff(E,M),W,Z,pe=0,he=s.interpolate||Br,ye="__p += '",Ae=pf((s.escape||Br).source+"|"+he.source+"|"+(he===un?Vi:Br).source+"|"+(s.evaluate||Br).source+"|$","g"),Ie="//# sourceURL="+($t.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fa+"]")+` +`;i.replace(Ae,function(Ye,lt,mt,cr,Wn,fr){return mt||(mt=cr),ye+=i.slice(pe,fr).replace($a,PS),lt&&(W=!0,ye+=`' + +__e(`+lt+`) + +'`),Wn&&(Z=!0,ye+=`'; +`+Wn+`; +__p += '`),mt&&(ye+=`' + +((__t = (`+mt+`)) == null ? '' : __t) + +'`),pe=fr+Ye.length,Ye}),ye+=`'; +`;var We=$t.call(s,"variable")&&s.variable;if(!We)ye=`with (obj) { +`+ye+` +} +`;else if(ar.test(We))throw new Je(l);ye=(Z?ye.replace(Pe,""):ye).replace(je,"$1").replace(ft,"$1;"),ye="function("+(We||"obj")+`) { +`+(We?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+ye+`return __p +}`;var nt=Ag(function(){return wt(M,Ie+"return "+ye).apply(n,B)});if(nt.source=ye,Jf(nt))throw nt;return nt}function rT(i){return Ct(i).toLowerCase()}function iT(i){return Ct(i).toUpperCase()}function aT(i,s,f){if(i=Ct(i),i&&(f||s===n))return Rv(i);if(!i||!(s=ur(s)))return i;var y=zr(i),E=zr(s),M=Lv(y,E),B=Nv(y,E)+1;return aa(y,M,B).join("")}function oT(i,s,f){if(i=Ct(i),i&&(f||s===n))return i.slice(0,Uv(i)+1);if(!i||!(s=ur(s)))return i;var y=zr(i),E=Nv(y,zr(s))+1;return aa(y,0,E).join("")}function sT(i,s,f){if(i=Ct(i),i&&(f||s===n))return i.replace(gr,"");if(!i||!(s=ur(s)))return i;var y=zr(i),E=Lv(y,zr(s));return aa(y,E).join("")}function uT(i,s){var f=K,y=le;if(Jt(s)){var E="separator"in s?s.separator:E;f="length"in s?tt(s.length):f,y="omission"in s?ur(s.omission):y}i=Ct(i);var M=i.length;if(Eo(i)){var B=zr(i);M=B.length}if(f>=M)return i;var W=f-Oo(y);if(W<1)return y;var Z=B?aa(B,0,W).join(""):i.slice(0,W);if(E===n)return Z+y;if(B&&(W+=Z.length-W),Xf(E)){if(i.slice(W).search(E)){var pe,he=Z;for(E.global||(E=pf(E.source,Ct(jt.exec(E))+"g")),E.lastIndex=0;pe=E.exec(he);)var ye=pe.index;Z=Z.slice(0,ye===n?W:ye)}}else if(i.indexOf(ur(E),W)!=W){var Ae=Z.lastIndexOf(E);Ae>-1&&(Z=Z.slice(0,Ae))}return Z+y}function lT(i){return i=Ct(i),i&&Ut.test(i)?i.replace(et,NS):i}var cT=Io(function(i,s,f){return i+(f?" ":"")+s.toUpperCase()}),ed=Tm("toUpperCase");function Og(i,s,f){return i=Ct(i),s=f?n:s,s===n?IS(i)?jS(i):CS(i):i.match(s)||[]}var Ag=rt(function(i,s){try{return _n(i,n,s)}catch(f){return Jf(f)?f:new Je(f)}}),fT=Ai(function(i,s){return Cr(s,function(f){f=si(f),Ei(i,f,Gf(i[f],i))}),i});function dT(i){var s=i==null?0:i.length,f=He();return i=s?Wt(i,function(y){if(typeof y[1]!="function")throw new Er(u);return[f(y[0]),y[1]]}):[],rt(function(y){for(var E=-1;++Eee)return[];var f=_e,y=In(i,_e);s=He(s),i-=_e;for(var E=cf(y,s);++f0||s<0)?new dt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),s!==n&&(s=tt(s),f=s<0?f.dropRight(-s):f.take(s-i)),f)},dt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},dt.prototype.toArray=function(){return this.take(_e)},ai(dt.prototype,function(i,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),y=/^(?:head|last)$/.test(s),E=$[y?"take"+(s=="last"?"Right":""):s],M=y||/^find/.test(s);!E||($.prototype[s]=function(){var B=this.__wrapped__,W=y?[1]:arguments,Z=B instanceof dt,pe=W[0],he=Z||Ze(B),ye=function(lt){var mt=E.apply($,Qi([lt],W));return y&&Ae?mt[0]:mt};he&&f&&typeof pe=="function"&&pe.length!=1&&(Z=he=!1);var Ae=this.__chain__,Ie=!!this.__actions__.length,We=M&&!Ae,nt=Z&&!Ie;if(!M&&he){B=nt?B:new dt(this);var Ye=i.apply(B,W);return Ye.__actions__.push({func:hl,args:[ye],thisArg:n}),new Or(Ye,Ae)}return We&&nt?i.apply(this,W):(Ye=this.thru(ye),We?y?Ye.value()[0]:Ye.value():Ye)})}),Cr(["pop","push","shift","sort","splice","unshift"],function(i){var s=Uu[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);$.prototype[i]=function(){var E=arguments;if(y&&!this.__chain__){var M=this.value();return s.apply(Ze(M)?M:[],E)}return this[f](function(B){return s.apply(Ze(B)?B:[],E)})}}),ai(dt.prototype,function(i,s){var f=$[s];if(f){var y=f.name+"";$t.call(Do,y)||(Do[y]=[]),Do[y].push({name:s,func:f})}}),Do[sl(n,p).name]=[{name:"wrapper",func:n}],dt.prototype.clone=lx,dt.prototype.reverse=cx,dt.prototype.value=fx,$.prototype.at=UE,$.prototype.chain=jE,$.prototype.commit=zE,$.prototype.next=HE,$.prototype.plant=YE,$.prototype.reverse=qE,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=VE,$.prototype.first=$.prototype.head,Es&&($.prototype[Es]=WE),$},Ao=zS();Ht?((Ht.exports=Ao)._=Ao,gt._=Ao):at._=Ao}).call(Yt)})(rp,rp.exports);const Kz=rp.exports;var Ob={exports:{}},uh={exports:{}},Ab=function(t,n){return function(){for(var a=new Array(arguments.length),o=0;o"u"}function XT(e){return e!==null&&!ip(e)&&e.constructor!==null&&!ip(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ZT(e){return co.call(e)==="[object ArrayBuffer]"}function QT(e){return typeof FormData<"u"&&e instanceof FormData}function e$(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function t$(e){return typeof e=="string"}function n$(e){return typeof e=="number"}function Tb(e){return e!==null&&typeof e=="object"}function Ll(e){if(co.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function r$(e){return co.call(e)==="[object Date]"}function i$(e){return co.call(e)==="[object File]"}function a$(e){return co.call(e)==="[object Blob]"}function $b(e){return co.call(e)==="[object Function]"}function o$(e){return Tb(e)&&$b(e.pipe)}function s$(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function u$(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function l$(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ch(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),lh(e))for(var n=0,r=e.length;n"u"||(Lo.isArray(c)?d=d+"[]":c=[c],Lo.forEach(c,function(m){Lo.isDate(m)?m=m.toISOString():Lo.isObject(m)&&(m=JSON.stringify(m)),o.push(Dg(d)+"="+Dg(m))}))}),a=o.join("&")}if(a){var u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},d$=vr;function Oc(){this.handlers=[]}Oc.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Oc.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Oc.prototype.forEach=function(t){d$.forEach(this.handlers,function(r){r!==null&&t(r)})};var p$=Oc,h$=vr,v$=function(t,n){h$.forEach(t,function(a,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=a,delete t[o])})},Pb=function(t,n,r,a,o){return t.config=n,r&&(t.code=r),t.request=a,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code}},t},sd,Pg;function Mb(){if(Pg)return sd;Pg=1;var e=Pb;return sd=function(n,r,a,o,u){var l=new Error(n);return e(l,r,a,o,u)},sd}var ud,Mg;function m$(){if(Mg)return ud;Mg=1;var e=Mb();return ud=function(n,r,a){var o=a.config.validateStatus;!a.status||!o||o(a.status)?n(a):r(e("Request failed with status code "+a.status,a.config,null,a.request,a))},ud}var ld,Ig;function g$(){if(Ig)return ld;Ig=1;var e=vr;return ld=e.isStandardBrowserEnv()?function(){return{write:function(r,a,o,u,l,c){var d=[];d.push(r+"="+encodeURIComponent(a)),e.isNumber(o)&&d.push("expires="+new Date(o).toGMTString()),e.isString(u)&&d.push("path="+u),e.isString(l)&&d.push("domain="+l),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(r){var a=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ld}var cd,kg;function y$(){return kg||(kg=1,cd=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),cd}var fd,Fg;function b$(){return Fg||(Fg=1,fd=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),fd}var dd,Rg;function _$(){if(Rg)return dd;Rg=1;var e=y$(),t=b$();return dd=function(r,a){return r&&!e(a)?t(r,a):a},dd}var pd,Lg;function w$(){if(Lg)return pd;Lg=1;var e=vr,t=["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"];return pd=function(r){var a={},o,u,l;return r&&e.forEach(r.split(` +`),function(d){if(l=d.indexOf(":"),o=e.trim(d.substr(0,l)).toLowerCase(),u=e.trim(d.substr(l+1)),o){if(a[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?a[o]=(a[o]?a[o]:[]).concat([u]):a[o]=a[o]?a[o]+", "+u:u}}),a},pd}var hd,Ng;function S$(){if(Ng)return hd;Ng=1;var e=vr;return hd=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),a;function o(u){var l=u;return n&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return a=o(window.location.href),function(l){var c=e.isString(l)?o(l):l;return c.protocol===a.protocol&&c.host===a.host}}():function(){return function(){return!0}}(),hd}var vd,Bg;function Ug(){if(Bg)return vd;Bg=1;var e=vr,t=m$(),n=g$(),r=Db,a=_$(),o=w$(),u=S$(),l=Mb();return vd=function(d){return new Promise(function(m,C){var A=d.data,w=d.headers,x=d.responseType;e.isFormData(A)&&delete w["Content-Type"];var _=new XMLHttpRequest;if(d.auth){var p=d.auth.username||"",v=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";w.Authorization="Basic "+btoa(p+":"+v)}var S=a(d.baseURL,d.url);_.open(d.method.toUpperCase(),r(S,d.params,d.paramsSerializer),!0),_.timeout=d.timeout;function g(){if(!!_){var O="getAllResponseHeaders"in _?o(_.getAllResponseHeaders()):null,k=!x||x==="text"||x==="json"?_.responseText:_.response,H={data:k,status:_.status,statusText:_.statusText,headers:O,config:d,request:_};t(m,C,H),_=null}}if("onloadend"in _?_.onloadend=g:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(g)},_.onabort=function(){!_||(C(l("Request aborted",d,"ECONNABORTED",_)),_=null)},_.onerror=function(){C(l("Network Error",d,null,_)),_=null},_.ontimeout=function(){var k="timeout of "+d.timeout+"ms exceeded";d.timeoutErrorMessage&&(k=d.timeoutErrorMessage),C(l(k,d,d.transitional&&d.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},e.isStandardBrowserEnv()){var P=(d.withCredentials||u(S))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;P&&(w[d.xsrfHeaderName]=P)}"setRequestHeader"in _&&e.forEach(w,function(k,H){typeof A>"u"&&H.toLowerCase()==="content-type"?delete w[H]:_.setRequestHeader(H,k)}),e.isUndefined(d.withCredentials)||(_.withCredentials=!!d.withCredentials),x&&x!=="json"&&(_.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&_.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",d.onUploadProgress),d.cancelToken&&d.cancelToken.promise.then(function(k){!_||(_.abort(),C(k),_=null)}),A||(A=null),_.send(A)})},vd}var Tn=vr,jg=v$,x$=Pb,C$={"Content-Type":"application/x-www-form-urlencoded"};function zg(e,t){!Tn.isUndefined(e)&&Tn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function E$(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ug()),e}function O$(e,t,n){if(Tn.isString(e))try{return(t||JSON.parse)(e),Tn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Ac={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:E$(),transformRequest:[function(t,n){return jg(n,"Accept"),jg(n,"Content-Type"),Tn.isFormData(t)||Tn.isArrayBuffer(t)||Tn.isBuffer(t)||Tn.isStream(t)||Tn.isFile(t)||Tn.isBlob(t)?t:Tn.isArrayBufferView(t)?t.buffer:Tn.isURLSearchParams(t)?(zg(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Tn.isObject(t)||n&&n["Content-Type"]==="application/json"?(zg(n,"application/json"),O$(t)):t}],transformResponse:[function(t){var n=this.transitional,r=n&&n.silentJSONParsing,a=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||a&&Tn.isString(t)&&t.length)try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?x$(u,this,"E_JSON_PARSE"):u}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Ac.headers={common:{Accept:"application/json, text/plain, */*"}};Tn.forEach(["delete","get","head"],function(t){Ac.headers[t]={}});Tn.forEach(["post","put","patch"],function(t){Ac.headers[t]=Tn.merge(C$)});var fh=Ac,A$=vr,T$=fh,$$=function(t,n,r){var a=this||T$;return A$.forEach(r,function(u){t=u.call(a,t,n)}),t},md,Hg;function Ib(){return Hg||(Hg=1,md=function(t){return!!(t&&t.__CANCEL__)}),md}var Wg=vr,gd=$$,D$=Ib(),P$=fh;function yd(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var M$=function(t){yd(t),t.headers=t.headers||{},t.data=gd.call(t,t.data,t.headers,t.transformRequest),t.headers=Wg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Wg.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var n=t.adapter||P$.adapter;return n(t).then(function(a){return yd(t),a.data=gd.call(t,a.data,a.headers,t.transformResponse),a},function(a){return D$(a)||(yd(t),a&&a.response&&(a.response.data=gd.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},Fn=vr,kb=function(t,n){n=n||{};var r={},a=["url","method","data"],o=["headers","auth","proxy","params"],u=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function c(C,A){return Fn.isPlainObject(C)&&Fn.isPlainObject(A)?Fn.merge(C,A):Fn.isPlainObject(A)?Fn.merge({},A):Fn.isArray(A)?A.slice():A}function d(C){Fn.isUndefined(n[C])?Fn.isUndefined(t[C])||(r[C]=c(void 0,t[C])):r[C]=c(t[C],n[C])}Fn.forEach(a,function(A){Fn.isUndefined(n[A])||(r[A]=c(void 0,n[A]))}),Fn.forEach(o,d),Fn.forEach(u,function(A){Fn.isUndefined(n[A])?Fn.isUndefined(t[A])||(r[A]=c(void 0,t[A])):r[A]=c(void 0,n[A])}),Fn.forEach(l,function(A){A in n?r[A]=c(t[A],n[A]):A in t&&(r[A]=c(void 0,t[A]))});var h=a.concat(o).concat(u).concat(l),m=Object.keys(t).concat(Object.keys(n)).filter(function(A){return h.indexOf(A)===-1});return Fn.forEach(m,d),r};const I$="axios",k$="0.21.4",F$="Promise based HTTP client for the browser and node.js",R$="index.js",L$={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},N$={type:"git",url:"https://github.com/axios/axios.git"},B$=["xhr","http","ajax","promise","node"],U$="Matt Zabriskie",j$="MIT",z$={url:"https://github.com/axios/axios/issues"},H$="https://axios-http.com",W$={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},Y$={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},q$="dist/axios.min.js",V$="dist/axios.min.js",G$="./index.d.ts",K$={"follow-redirects":"^1.14.0"},J$=[{path:"./dist/axios.min.js",threshold:"5kB"}],X$={name:I$,version:k$,description:F$,main:R$,scripts:L$,repository:N$,keywords:B$,author:U$,license:j$,bugs:z$,homepage:H$,devDependencies:W$,browser:Y$,jsdelivr:q$,unpkg:V$,typings:G$,dependencies:K$,bundlesize:J$};var Fb=X$,dh={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){dh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Yg={},Z$=Fb.version.split(".");function Rb(e,t){for(var n=t?t.split("."):Z$,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]0;){var o=r[a],u=t[o];if(u){var l=e[o],c=l===void 0||u(l,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(n!==!0)throw Error("Unknown option "+o)}}var eD={isOlderVersion:Rb,assertOptions:Q$,validators:dh},Lb=vr,tD=Db,qg=p$,Vg=M$,Tc=kb,Nb=eD,No=Nb.validators;function xu(e){this.defaults=e,this.interceptors={request:new qg,response:new qg}}xu.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Tc(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&Nb.assertOptions(n,{silentJSONParsing:No.transitional(No.boolean,"1.0.0"),forcedJSONParsing:No.transitional(No.boolean,"1.0.0"),clarifyTimeoutError:No.transitional(No.boolean,"1.0.0")},!1);var r=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(a=a&&C.synchronous,r.unshift(C.fulfilled,C.rejected))});var o=[];this.interceptors.response.forEach(function(C){o.push(C.fulfilled,C.rejected)});var u;if(!a){var l=[Vg,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(o),u=Promise.resolve(t);l.length;)u=u.then(l.shift(),l.shift());return u}for(var c=t;r.length;){var d=r.shift(),h=r.shift();try{c=d(c)}catch(m){h(m);break}}try{u=Vg(c)}catch(m){return Promise.reject(m)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};xu.prototype.getUri=function(t){return t=Tc(this.defaults,t),tD(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Lb.forEach(["delete","get","head","options"],function(t){xu.prototype[t]=function(n,r){return this.request(Tc(r||{},{method:t,url:n,data:(r||{}).data}))}});Lb.forEach(["post","put","patch"],function(t){xu.prototype[t]=function(n,r,a){return this.request(Tc(a||{},{method:t,url:n,data:r}))}});var nD=xu,bd,Gg;function Bb(){if(Gg)return bd;Gg=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,bd=e,bd}var _d,Kg;function rD(){if(Kg)return _d;Kg=1;var e=Bb();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(u){r=u});var a=this;n(function(u){a.reason||(a.reason=new e(u),r(a.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var r,a=new t(function(u){r=u});return{token:a,cancel:r}},_d=t,_d}var wd,Jg;function iD(){return Jg||(Jg=1,wd=function(t){return function(r){return t.apply(null,r)}}),wd}var Sd,Xg;function aD(){return Xg||(Xg=1,Sd=function(t){return typeof t=="object"&&t.isAxiosError===!0}),Sd}var Zg=vr,oD=Ab,Nl=nD,sD=kb,uD=fh;function Ub(e){var t=new Nl(e),n=oD(Nl.prototype.request,t);return Zg.extend(n,Nl.prototype,t),Zg.extend(n,t),n}var Zr=Ub(uD);Zr.Axios=Nl;Zr.create=function(t){return Ub(sD(Zr.defaults,t))};Zr.Cancel=Bb();Zr.CancelToken=rD();Zr.isCancel=Ib();Zr.all=function(t){return Promise.all(t)};Zr.spread=iD();Zr.isAxiosError=aD();uh.exports=Zr;uh.exports.default=Zr;(function(e){e.exports=uh.exports})(Ob);const Jz=sh(Ob.exports);/*! + * Vue.js v2.7.16 + * (c) 2014-2023 Evan You + * Released under the MIT License. + */var Nn=Object.freeze({}),Qe=Array.isArray;function Ke(e){return e==null}function se(e){return e!=null}function Xt(e){return e===!0}function lD(e){return e===!1}function Cu(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function Et(e){return typeof e=="function"}function Bn(e){return e!==null&&typeof e=="object"}var ph=Object.prototype.toString;function qn(e){return ph.call(e)==="[object Object]"}function cD(e){return ph.call(e)==="[object RegExp]"}function jb(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function op(e){return se(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function fD(e){return e==null?"":Array.isArray(e)||qn(e)&&e.toString===ph?JSON.stringify(e,dD,2):String(e)}function dD(e,t){return t&&t.__v_isRef?t.value:t}function fu(e){var t=parseFloat(e);return isNaN(t)?e:t}function Qr(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a-1)return e.splice(r,1)}}var hD=Object.prototype.hasOwnProperty;function Yn(e,t){return hD.call(e,t)}function fo(e){var t=Object.create(null);return function(r){var a=t[r];return a||(t[r]=e(r))}}var vD=/-(\w)/g,ao=fo(function(e){return e.replace(vD,function(t,n){return n?n.toUpperCase():""})}),mD=fo(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),gD=/\B([A-Z])/g,Eu=fo(function(e){return e.replace(gD,"-$1").toLowerCase()});function yD(e,t){function n(r){var a=arguments.length;return a?a>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return n._length=e.length,n}function bD(e,t){return e.bind(t)}var zb=Function.prototype.bind?bD:yD;function sp(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function Rt(e,t){for(var n in t)e[n]=t[n];return e}function Hb(e){for(var t={},n=0;n0,hh=Un&&Un.indexOf("edge/")>0;Un&&Un.indexOf("android")>0;var CD=Un&&/iphone|ipad|ipod|ios/.test(Un);Un&&/chrome\/\d+/.test(Un);Un&&/phantomjs/.test(Un);var ey=Un&&Un.match(/firefox\/(\d+)/),lp={}.watch,Gb=!1;if(rr)try{var ty={};Object.defineProperty(ty,"passive",{get:function(){Gb=!0}}),window.addEventListener("test-passive",null,ty)}catch{}var xl,ba=function(){return xl===void 0&&(!rr&&typeof global<"u"?xl=global.process&&global.process.env.VUE_ENV==="server":xl=!1),xl},Zl=rr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Xo(e){return typeof e=="function"&&/native code/.test(e.toString())}var Ou=typeof Symbol<"u"&&Xo(Symbol)&&typeof Reflect<"u"&&Xo(Reflect.ownKeys),du;typeof Set<"u"&&Xo(Set)?du=Set:du=function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(t){return this.set[t]===!0},e.prototype.add=function(t){this.set[t]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var tn=null;function ED(){return tn&&{proxy:tn}}function va(e){e===void 0&&(e=null),e||tn&&tn._scope.off(),tn=e,e&&e._scope.on()}var pr=function(){function e(t,n,r,a,o,u,l,c){this.tag=t,this.data=n,this.children=r,this.text=a,this.elm=o,this.ns=void 0,this.context=u,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=l,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),Ja=function(e){e===void 0&&(e="");var t=new pr;return t.text=e,t.isComment=!0,t};function Vo(e){return new pr(void 0,void 0,void 0,String(e))}function cp(e){var t=new pr(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var OD=0,Bl=[],AD=function(){for(var e=0;e1)return n&&Et(t)?t.call(r):t}}var sy=fo(function(e){var t=e.charAt(0)==="&";e=t?e.slice(1):e;var n=e.charAt(0)==="~";e=n?e.slice(1):e;var r=e.charAt(0)==="!";return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}});function fp(e,t){function n(){var r=n.fns;if(Qe(r))for(var a=r.slice(),o=0;o0&&(a=c_(a,"".concat(t||"","_").concat(r)),Bs(a[0])&&Bs(u)&&(n[o]=Vo(u.text+a[0].text),a.shift()),n.push.apply(n,a)):Cu(a)?Bs(u)?n[o]=Vo(u.text+a):a!==""&&n.push(Vo(a)):Bs(a)&&Bs(u)?n[o]=Vo(u.text+a.text):(Xt(e._isVList)&&se(a.tag)&&Ke(a.key)&&se(t)&&(a.key="__vlist".concat(t,"_").concat(r,"__")),n.push(a)));return n}function eP(e,t){var n=null,r,a,o,u;if(Qe(e)||typeof e=="string")for(n=new Array(e.length),r=0,a=e.length;r0,u=t?!!t.$stable:!o,l=t&&t.$key;if(!t)a={};else{if(t._normalized)return t._normalized;if(u&&r&&r!==Nn&&l===r.$key&&!o&&!r.$hasNormal)return r;a={};for(var c in t)t[c]&&c[0]!=="$"&&(a[c]=fP(e,n,c,t[c]))}for(var d in n)d in a||(a[d]=dP(n,d));return t&&Object.isExtensible(t)&&(t._normalized=a),an(a,"$stable",u),an(a,"$key",l),an(a,"$hasNormal",o),a}function fP(e,t,n,r){var a=function(){var o=tn;va(e);var u=arguments.length?r.apply(null,arguments):r({});u=u&&typeof u=="object"&&!Qe(u)?[u]:bh(u);var l=u&&u[0];return va(o),u&&(!l||u.length===1&&l.isComment&&!pu(l))?void 0:u};return r.proxy&&Object.defineProperty(t,n,{get:a,enumerable:!0,configurable:!0}),a}function dP(e,t){return function(){return e[t]}}function pP(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=h_(e);va(e),ms();var a=zi(n,null,[e._props||gh({}),r],e,"setup");if(gs(),va(),Et(a))t.render=a;else if(Bn(a))if(e._setupState=a,a.__sfc){var u=e._setupProxy={};for(var o in a)o!=="__sfc"&&tc(u,a,o)}else for(var o in a)Vb(o)||tc(e,a,o)}}function h_(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};an(t,"_v_attr_proxy",!0),nc(t,e.$attrs,Nn,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};nc(t,e.$listeners,Nn,e,"$listeners")}return e._listenersProxy},get slots(){return vP(e)},emit:zb(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach(function(n){return tc(e,t,n)})}}}function nc(e,t,n,r,a){var o=!1;for(var u in t)u in e?t[u]!==n[u]&&(o=!0):(o=!0,hP(e,u,r,a));for(var u in e)u in t||(o=!0,delete e[u]);return o}function hP(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function vP(e){return e._slotsProxy||v_(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function v_(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function mP(){return wh().slots}function gP(){return wh().attrs}function yP(){return wh().listeners}function wh(){var e=tn;return e._setupContext||(e._setupContext=h_(e))}function bP(e,t){var n=Qe(e)?e.reduce(function(o,u){return o[u]={},o},{}):e;for(var r in t){var a=n[r];a?Qe(a)||Et(a)?n[r]={type:a,default:t[r]}:a.default=t[r]:a===null&&(n[r]={default:t[r]})}return n}function _P(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=_h(t._renderChildren,r),e.$scopedSlots=n?Xs(e.$parent,n.data.scopedSlots,e.$slots):Nn,e._c=function(o,u,l,c){return hu(e,o,u,l,c,!1)},e.$createElement=function(o,u,l,c){return hu(e,o,u,l,c,!0)};var a=n&&n.data;ga(e,"$attrs",a&&a.attrs||Nn,null,!0),ga(e,"$listeners",t._parentListeners||Nn,null,!0)}var jl=null;function wP(e){p_(e.prototype),e.prototype.$nextTick=function(t){return Ic(t,this)},e.prototype._render=function(){var t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&t._isMounted&&(t.$scopedSlots=Xs(t.$parent,a.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&v_(t._slotsProxy,t.$scopedSlots)),t.$vnode=a;var o=tn,u=jl,l;try{va(t),jl=t,l=r.call(t._renderProxy,t.$createElement)}catch(c){so(c,t,"render"),l=t._vnode}finally{jl=u,va(o)}return Qe(l)&&l.length===1&&(l=l[0]),l instanceof pr||(l=Ja()),l.parent=a,l}}function xd(e,t){return(e.__esModule||Ou&&e[Symbol.toStringTag]==="Module")&&(e=e.default),Bn(e)?t.extend(e):e}function SP(e,t,n,r,a){var o=Ja();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:a},o}function xP(e,t){if(Xt(e.error)&&se(e.errorComp))return e.errorComp;if(se(e.resolved))return e.resolved;var n=jl;if(n&&se(e.owners)&&e.owners.indexOf(n)===-1&&e.owners.push(n),Xt(e.loading)&&se(e.loadingComp))return e.loadingComp;if(n&&!se(e.owners)){var r=e.owners=[n],a=!0,o=null,u=null;n.$on("hook:destroyed",function(){return ya(r,n)});var l=function(m){for(var C=0,A=r.length;C1?sp(a):a;for(var o=sp(arguments,1),u='event handler for "'.concat(n,'"'),l=0,c=a.length;ldocument.createEvent("Event").timeStamp&&(mp=function(){return Cd.now()})}var aM=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function oM(){C_=mp(),Ch=!0;var e,t;for(Fi.sort(aM),Go=0;GoGo&&Fi[n].id>e.id;)n--;Fi.splice(n+1,0,e)}vp||(vp=!0,Ic(oM))}}function cM(e){var t=e.$options.provide;if(t){var n=Et(t)?t.call(e):t;if(!Bn(n))return;for(var r=u_(e),a=Ou?Reflect.ownKeys(n):Object.keys(n),o=0;o-1){if(o&&!Yn(a,"default"))u=!1;else if(u===""||u===Eu(e)){var c=wy(String,a.type);(c<0||l-1)return this;var r=sp(arguments,1);return r.unshift(this),Et(t.install)?t.install.apply(t,r):Et(t)&&t.apply(null,r),n.push(t),this}}function UM(e){e.mixin=function(t){return this.options=uo(this.options,t),this}}function jM(e){e.cid=0;var t=1;e.extend=function(n){n=n||{};var r=this,a=r.cid,o=n._Ctor||(n._Ctor={});if(o[a])return o[a];var u=ic(n)||ic(r.options),l=function(d){this._init(d)};return l.prototype=Object.create(r.prototype),l.prototype.constructor=l,l.cid=t++,l.options=uo(r.options,n),l.super=r,l.options.props&&zM(l),l.options.computed&&HM(l),l.extend=r.extend,l.mixin=r.mixin,l.use=r.use,$c.forEach(function(c){l[c]=r[c]}),u&&(l.options.components[u]=l),l.superOptions=r.options,l.extendOptions=n,l.sealedOptions=Rt({},l.options),o[a]=l,l}}function zM(e){var t=e.options.props;for(var n in t)Th(e.prototype,"_props",n)}function HM(e){var t=e.options.computed;for(var n in t)A_(e.prototype,n,t[n])}function WM(e){$c.forEach(function(t){e[t]=function(n,r){return r?(t==="component"&&qn(r)&&(r.name=r.name||n,r=this.options._base.extend(r)),t==="directive"&&Et(r)&&(r={bind:r,update:r}),this.options[t+"s"][n]=r,r):this.options[t+"s"][n]}})}function Cy(e){return e&&(ic(e.Ctor.options)||e.tag)}function Ol(e,t){return Qe(e)?e.indexOf(t)>-1:typeof e=="string"?e.split(",").indexOf(t)>-1:cD(e)?e.test(t):!1}function Ey(e,t){var n=e.cache,r=e.keys,a=e._vnode,o=e.$vnode;for(var u in n){var l=n[u];if(l){var c=l.name;c&&!t(c)&&_p(n,u,r,a)}}o.componentOptions.children=void 0}function _p(e,t,n,r){var a=e[t];a&&(!r||a.tag!==r.tag)&&a.componentInstance.$destroy(),e[t]=null,ya(n,t)}var Oy=[String,RegExp,Array],YM={name:"keep-alive",abstract:!0,props:{include:Oy,exclude:Oy,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,a=e.keyToCache;if(r){var o=r.tag,u=r.componentInstance,l=r.componentOptions;t[a]={name:Cy(l),tag:o,componentInstance:u},n.push(a),this.max&&n.length>parseInt(this.max)&&_p(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)_p(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Ey(e,function(n){return Ol(t,n)})}),this.$watch("exclude",function(t){Ey(e,function(n){return!Ol(t,n)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=m_(e),n=t&&t.componentOptions;if(n){var r=Cy(n),a=this,o=a.include,u=a.exclude;if(o&&(!r||!Ol(o,r))||u&&r&&Ol(u,r))return t;var l=this,c=l.cache,d=l.keys,h=t.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;c[h]?(t.componentInstance=c[h].componentInstance,ya(d,h),d.push(h)):(this.vnodeToCache=t,this.keyToCache=h),t.data.keepAlive=!0}return t||e&&e[0]}},qM={KeepAlive:YM};function VM(e){var t={};t.get=function(){return Pr},Object.defineProperty(e,"config",t),e.util={warn:gM,extend:Rt,mergeOptions:uo,defineReactive:ga},e.set=Dc,e.delete=mh,e.nextTick=Ic,e.observable=function(n){return ji(n),n},e.options=Object.create(null),$c.forEach(function(n){e.options[n+"s"]=Object.create(null)}),e.options._base=e,Rt(e.options.components,qM),BM(e),UM(e),jM(e),WM(e)}VM(sn);Object.defineProperty(sn.prototype,"$isServer",{get:ba});Object.defineProperty(sn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(sn,"FunctionalRenderContext",{value:Eh});sn.version=b_;var GM=Qr("style,class"),KM=Qr("input,textarea,option,select,progress"),JM=function(e,t,n){return n==="value"&&KM(e)&&t!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"},T_=Qr("contenteditable,draggable,spellcheck"),XM=Qr("events,caret,typing,plaintext-only"),ZM=function(e,t){return oc(t)||t==="false"?"false":e==="contenteditable"&&XM(t)?t:"true"},QM=Qr("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),wp="http://www.w3.org/1999/xlink",Dh=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},$_=function(e){return Dh(e)?e.slice(6,e.length):""},oc=function(e){return e==null||e===!1};function eI(e){for(var t=e.data,n=e,r=e;se(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=Ay(r.data,t));for(;se(n=n.parent);)n&&n.data&&(t=Ay(t,n.data));return tI(t.staticClass,t.class)}function Ay(e,t){return{staticClass:Ph(e.staticClass,t.staticClass),class:se(e.class)?[e.class,t.class]:t.class}}function tI(e,t){return se(e)||se(t)?Ph(e,Mh(t)):""}function Ph(e,t){return e?t?e+" "+t:e:t||""}function Mh(e){return Array.isArray(e)?nI(e):Bn(e)?rI(e):typeof e=="string"?e:""}function nI(e){for(var t="",n,r=0,a=e.length;r-1?Al[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Al[e]=/HTMLUnknownElement/.test(t.toString())}var Sp=Qr("text,number,password,search,email,tel,url");function uI(e){if(typeof e=="string"){var t=document.querySelector(e);return t||document.createElement("div")}else return e}function lI(e,t){var n=document.createElement(e);return e!=="select"||t.data&&t.data.attrs&&t.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function cI(e,t){return document.createElementNS(iI[e],t)}function fI(e){return document.createTextNode(e)}function dI(e){return document.createComment(e)}function pI(e,t,n){e.insertBefore(t,n)}function hI(e,t){e.removeChild(t)}function vI(e,t){e.appendChild(t)}function mI(e){return e.parentNode}function gI(e){return e.nextSibling}function yI(e){return e.tagName}function bI(e,t){e.textContent=t}function _I(e,t){e.setAttribute(t,"")}var wI=Object.freeze({__proto__:null,createElement:lI,createElementNS:cI,createTextNode:fI,createComment:dI,insertBefore:pI,removeChild:hI,appendChild:vI,parentNode:mI,nextSibling:gI,tagName:yI,setTextContent:bI,setStyleScope:_I}),SI={create:function(e,t){Ko(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ko(e,!0),Ko(t))},destroy:function(e){Ko(e,!0)}};function Ko(e,t){var n=e.data.ref;if(!!se(n)){var r=e.context,a=e.componentInstance||e.elm,o=t?null:a,u=t?void 0:a;if(Et(n)){zi(n,r,[o],r,"template ref function");return}var l=e.data.refInFor,c=typeof n=="string"||typeof n=="number",d=$n(n),h=r.$refs;if(c||d){if(l){var m=c?h[n]:n.value;t?Qe(m)&&ya(m,a):Qe(m)?m.includes(a)||m.push(a):c?(h[n]=[a],Ty(r,n,h[n])):n.value=[a]}else if(c){if(t&&h[n]!==a)return;h[n]=u,Ty(r,n,o)}else if(d){if(t&&n.value!==a)return;n.value=o}}}}function Ty(e,t,n){var r=e._setupState;r&&Yn(r,t)&&($n(r[t])?r[t].value=n:r[t]=n)}var fa=new pr("",{},[]),Us=["create","activate","update","remove","destroy"];function Ya(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&se(e.data)===se(t.data)&&xI(e,t)||Xt(e.isAsyncPlaceholder)&&Ke(t.asyncFactory.error))}function xI(e,t){if(e.tag!=="input")return!0;var n,r=se(n=e.data)&&se(n=n.attrs)&&n.type,a=se(n=t.data)&&se(n=n.attrs)&&n.type;return r===a||Sp(r)&&Sp(a)}function CI(e,t,n){var r,a,o={};for(r=t;r<=n;++r)a=e[r].key,se(a)&&(o[a]=r);return o}function EI(e){var t,n,r={},a=e.modules,o=e.nodeOps;for(t=0;tde?(Ue=Ke(z[Ee+1])?null:z[Ee+1].elm,v(L,Ue,z,ee,Ee,q)):ee>Ee&&g(F,ne,de)}function k(L,F,z,q){for(var X=z;X-1?My(e,t,n):QM(t)?oc(n)?e.removeAttribute(t):(n=t==="allowfullscreen"&&e.tagName==="EMBED"?"true":t,e.setAttribute(t,n)):T_(t)?e.setAttribute(t,ZM(t,n)):Dh(t)?oc(n)?e.removeAttributeNS(wp,$_(t)):e.setAttributeNS(wp,t,n):My(e,t,n)}function My(e,t,n){if(oc(n))e.removeAttribute(t);else{if(hs&&!vs&&e.tagName==="TEXTAREA"&&t==="placeholder"&&n!==""&&!e.__ieph){var r=function(a){a.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var PI={create:Dy,update:Dy};function Iy(e,t){var n=t.elm,r=t.data,a=e.data;if(!(Ke(r.staticClass)&&Ke(r.class)&&(Ke(a)||Ke(a.staticClass)&&Ke(a.class)))){var o=eI(t),u=n._transitionClasses;se(u)&&(o=Ph(o,Mh(u))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var MI={create:Iy,update:Iy},Od="__r",Ad="__c";function II(e){if(se(e[Od])){var t=hs?"change":"input";e[t]=[].concat(e[Od],e[t]||[]),delete e[Od]}se(e[Ad])&&(e.change=[].concat(e[Ad],e.change||[]),delete e[Ad])}var gu;function kI(e,t,n){var r=gu;return function a(){var o=t.apply(null,arguments);o!==null&&P_(e,a,n,r)}}var FI=dp&&!(ey&&Number(ey[1])<=53);function RI(e,t,n,r){if(FI){var a=C_,o=t;t=o._wrapper=function(u){if(u.target===u.currentTarget||u.timeStamp>=a||u.timeStamp<=0||u.target.ownerDocument!==document)return o.apply(this,arguments)}}gu.addEventListener(e,t,Gb?{capture:n,passive:r}:n)}function P_(e,t,n,r){(r||gu).removeEventListener(e,t._wrapper||t,n)}function Td(e,t){if(!(Ke(e.data.on)&&Ke(t.data.on))){var n=t.data.on||{},r=e.data.on||{};gu=t.elm||e.elm,II(n),l_(n,r,RI,P_,kI,t.context),gu=void 0}}var LI={create:Td,update:Td,destroy:function(e){return Td(e,fa)}},Tl;function ky(e,t){if(!(Ke(e.data.domProps)&&Ke(t.data.domProps))){var n,r,a=t.elm,o=e.data.domProps||{},u=t.data.domProps||{};(se(u.__ob__)||Xt(u._v_attr_proxy))&&(u=t.data.domProps=Rt({},u));for(n in o)n in u||(a[n]="");for(n in u){if(r=u[n],n==="textContent"||n==="innerHTML"){if(t.children&&(t.children.length=0),r===o[n])continue;a.childNodes.length===1&&a.removeChild(a.childNodes[0])}if(n==="value"&&a.tagName!=="PROGRESS"){a._value=r;var l=Ke(r)?"":String(r);NI(a,l)&&(a.value=l)}else if(n==="innerHTML"&&Ih(a.tagName)&&Ke(a.innerHTML)){Tl=Tl||document.createElement("div"),Tl.innerHTML="".concat(r,"");for(var c=Tl.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(r!==o[n])try{a[n]=r}catch{}}}}function NI(e,t){return!e.composing&&(e.tagName==="OPTION"||BI(e,t)||UI(e,t))}function BI(e,t){var n=!0;try{n=document.activeElement!==e}catch{}return n&&e.value!==t}function UI(e,t){var n=e.value,r=e._vModifiers;if(se(r)){if(r.number)return fu(n)!==fu(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var jI={create:ky,update:ky},zI=fo(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(a){if(a){var o=a.split(r);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t});function $d(e){var t=M_(e.style);return e.staticStyle?Rt(e.staticStyle,t):t}function M_(e){return Array.isArray(e)?Hb(e):typeof e=="string"?zI(e):e}function HI(e,t){var n={},r;if(t)for(var a=e;a.componentInstance;)a=a.componentInstance._vnode,a&&a.data&&(r=$d(a.data))&&Rt(n,r);(r=$d(e.data))&&Rt(n,r);for(var o=e;o=o.parent;)o.data&&(r=$d(o.data))&&Rt(n,r);return n}var WI=/^--/,Fy=/\s*!important$/,Ry=function(e,t,n){if(WI.test(t))e.style.setProperty(t,n);else if(Fy.test(n))e.style.setProperty(Eu(t),n.replace(Fy,""),"important");else{var r=YI(t);if(Array.isArray(n))for(var a=0,o=n.length;a-1?t.split(I_).forEach(function(r){return e.classList.add(r)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function F_(e,t){if(!(!t||!(t=t.trim())))if(e.classList)t.indexOf(" ")>-1?t.split(I_).forEach(function(a){return e.classList.remove(a)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function R_(e){if(!!e){if(typeof e=="object"){var t={};return e.css!==!1&&Rt(t,By(e.name||"v")),Rt(t,e),t}else if(typeof e=="string")return By(e)}}var By=fo(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),L_=rr&&!vs,Ho="transition",Dd="animation",Hl="transition",sc="transitionend",xp="animation",N_="animationend";L_&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Hl="WebkitTransition",sc="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(xp="WebkitAnimation",N_="webkitAnimationEnd"));var Uy=rr?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function B_(e){Uy(function(){Uy(e)})}function Qa(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),k_(e,t))}function Ri(e,t){e._transitionClasses&&ya(e._transitionClasses,t),F_(e,t)}function U_(e,t,n){var r=j_(e,t),a=r.type,o=r.timeout,u=r.propCount;if(!a)return n();var l=a===Ho?sc:N_,c=0,d=function(){e.removeEventListener(l,h),n()},h=function(m){m.target===e&&++c>=u&&d()};setTimeout(function(){c0&&(d=Ho,h=o,m=a.length):t===Dd?c>0&&(d=Dd,h=c,m=l.length):(h=Math.max(o,c),d=h>0?o>c?Ho:Dd:null,m=d?d===Ho?a.length:l.length:0);var C=d===Ho&&VI.test(n[Hl+"Property"]);return{type:d,timeout:h,propCount:m,hasTransform:C}}function jy(e,t){for(;e.length1}function Hy(e,t){t.data.show!==!0&&Cp(t)}var GI=rr?{create:Hy,activate:Hy,remove:function(e,t){e.data.show!==!0?z_(e,t):t()}}:{},KI=[PI,MI,LI,jI,qI,GI],JI=KI.concat(DI),XI=EI({nodeOps:wI,modules:JI});vs&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Fh(e,"input")});var W_={inserted:function(e,t,n,r){n.tag==="select"?(r.elm&&!r.elm._vOptions?ca(n,"postpatch",function(){W_.componentUpdated(e,t,n)}):Wy(e,t,n.context),e._vOptions=[].map.call(e.options,uc)):(n.tag==="textarea"||Sp(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ZI),e.addEventListener("compositionend",Vy),e.addEventListener("change",Vy),vs&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if(n.tag==="select"){Wy(e,t,n.context);var r=e._vOptions,a=e._vOptions=[].map.call(e.options,uc);if(a.some(function(u,l){return!oo(u,r[l])})){var o=e.multiple?t.value.some(function(u){return qy(u,a)}):t.value!==t.oldValue&&qy(t.value,a);o&&Fh(e,"change")}}}};function Wy(e,t,n){Yy(e,t),(hs||hh)&&setTimeout(function(){Yy(e,t)},0)}function Yy(e,t,n){var r=t.value,a=e.multiple;if(!(a&&!Array.isArray(r))){for(var o,u,l=0,c=e.options.length;l-1,u.selected!==o&&(u.selected=o);else if(oo(uc(u),r)){e.selectedIndex!==l&&(e.selectedIndex=l);return}a||(e.selectedIndex=-1)}}function qy(e,t){return t.every(function(n){return!oo(n,e)})}function uc(e){return"_value"in e?e._value:e.value}function ZI(e){e.target.composing=!0}function Vy(e){!e.target.composing||(e.target.composing=!1,Fh(e.target,"input"))}function Fh(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ep(e){return e.componentInstance&&(!e.data||!e.data.transition)?Ep(e.componentInstance._vnode):e}var QI={bind:function(e,t,n){var r=t.value;n=Ep(n);var a=n.data&&n.data.transition,o=e.__vOriginalDisplay=e.style.display==="none"?"":e.style.display;r&&a?(n.data.show=!0,Cp(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,a=t.oldValue;if(!r!=!a){n=Ep(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Cp(n,function(){e.style.display=e.__vOriginalDisplay}):z_(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,a){a||(e.style.display=e.__vOriginalDisplay)}},e2={model:W_,show:QI},Y_={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Op(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Op(m_(t.children)):e}function q_(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var r in a)t[ao(r)]=a[r];return t}function Gy(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function t2(e){for(;e=e.parent;)if(e.data.transition)return!0}function n2(e,t){return t.key===e.key&&t.tag===e.tag}var r2=function(e){return e.tag||pu(e)},i2=function(e){return e.name==="show"},a2={name:"transition",props:Y_,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(!!n&&(n=n.filter(r2),!!n.length)){var r=this.mode,a=n[0];if(t2(this.$vnode))return a;var o=Op(a);if(!o)return a;if(this._leaving)return Gy(e,a);var u="__transition-".concat(this._uid,"-");o.key=o.key==null?o.isComment?u+"comment":u+o.tag:Cu(o.key)?String(o.key).indexOf(u)===0?o.key:u+o.key:o.key;var l=(o.data||(o.data={})).transition=q_(this),c=this._vnode,d=Op(c);if(o.data.directives&&o.data.directives.some(i2)&&(o.data.show=!0),d&&d.data&&!n2(o,d)&&!pu(d)&&!(d.componentInstance&&d.componentInstance._vnode.isComment)){var h=d.data.transition=Rt({},l);if(r==="out-in")return this._leaving=!0,ca(h,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Gy(e,a);if(r==="in-out"){if(pu(o))return c;var m,C=function(){m()};ca(l,"afterEnter",C),ca(l,"enterCancelled",C),ca(h,"delayLeave",function(A){m=A})}}return a}}},V_=Rt({tag:String,moveClass:String},Y_);delete V_.mode;var o2={props:V_,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var a=w_(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,a=this.$slots.default||[],o=this.children=[],u=q_(this),l=0;l"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function p(){return function(){return process.nextTick(k)}}function v(){return typeof l<"u"?function(){l(k)}:P()}function S(){var N=0,Q=new w(k),ie=document.createTextNode("");return Q.observe(ie,{characterData:!0}),function(){ie.data=N=++N%2}}function g(){var N=new MessageChannel;return N.port1.onmessage=k,function(){return N.port2.postMessage(0)}}function P(){var N=setTimeout;return function(){return N(k,1)}}var O=new Array(1e3);function k(){for(var N=0;N=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(a){a===void 0&&(a={}),a.init=a.init?[r].concat(a.init):r,n.call(this,a)}}function r(){var a=this.$options;a.store?this.$store=typeof a.store=="function"?a.store():a.store:a.parent&&a.parent.$store&&(this.$store=a.parent.$store)}}var h2=typeof window<"u"?window:typeof global<"u"?global:{},Bo=h2.__VUE_DEVTOOLS_GLOBAL_HOOK__;function v2(e){!Bo||(e._devtoolHook=Bo,Bo.emit("vuex:init",e),Bo.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,n){Bo.emit("vuex:mutation",t,n)},{prepend:!0}),e.subscribeAction(function(t,n){Bo.emit("vuex:action",t,n)},{prepend:!0}))}function m2(e,t){return e.filter(t)[0]}function Ap(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=m2(t,function(a){return a.original===e});if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach(function(a){r[a]=Ap(e[a],t)}),r}function ys(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function K_(e){return e!==null&&typeof e=="object"}function g2(e){return e&&typeof e.then=="function"}function y2(e,t){return function(){return e(t)}}var ei=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},J_={namespaced:{configurable:!0}};J_.namespaced.get=function(){return!!this._rawModule.namespaced};ei.prototype.addChild=function(t,n){this._children[t]=n};ei.prototype.removeChild=function(t){delete this._children[t]};ei.prototype.getChild=function(t){return this._children[t]};ei.prototype.hasChild=function(t){return t in this._children};ei.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ei.prototype.forEachChild=function(t){ys(this._children,t)};ei.prototype.forEachGetter=function(t){this._rawModule.getters&&ys(this._rawModule.getters,t)};ei.prototype.forEachAction=function(t){this._rawModule.actions&&ys(this._rawModule.actions,t)};ei.prototype.forEachMutation=function(t){this._rawModule.mutations&&ys(this._rawModule.mutations,t)};Object.defineProperties(ei.prototype,J_);var ho=function(t){this.register([],t,!1)};ho.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};ho.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,a){return n=n.getChild(a),r+(n.namespaced?a+"/":"")},"")};ho.prototype.update=function(t){X_([],this.root,t)};ho.prototype.register=function(t,n,r){var a=this;r===void 0&&(r=!0);var o=new ei(n,r);if(t.length===0)this.root=o;else{var u=this.get(t.slice(0,-1));u.addChild(t[t.length-1],o)}n.modules&&ys(n.modules,function(l,c){a.register(t.concat(c),l,r)})};ho.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],a=n.getChild(r);!a||!a.runtime||n.removeChild(r)};ho.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function X_(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;X_(e.concat(r),t.getChild(r),n.modules[r])}}var er,mr=function(t){var n=this;t===void 0&&(t={}),!er&&typeof window<"u"&&window.Vue&&ew(window.Vue);var r=t.plugins;r===void 0&&(r=[]);var a=t.strict;a===void 0&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ho(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new er,this._makeLocalGettersCache=Object.create(null);var o=this,u=this,l=u.dispatch,c=u.commit;this.dispatch=function(C,A){return l.call(o,C,A)},this.commit=function(C,A,w){return c.call(o,C,A,w)},this.strict=a;var d=this._modules.root.state;kc(this,d,[],this._modules.root),Lh(this,d),r.forEach(function(m){return m(n)});var h=t.devtools!==void 0?t.devtools:er.config.devtools;h&&v2(this)},Rh={state:{configurable:!0}};Rh.state.get=function(){return this._vm._data.$$state};Rh.state.set=function(e){};mr.prototype.commit=function(t,n,r){var a=this,o=lc(t,n,r),u=o.type,l=o.payload,c={type:u,payload:l},d=this._mutations[u];!d||(this._withCommit(function(){d.forEach(function(m){m(l)})}),this._subscribers.slice().forEach(function(h){return h(c,a.state)}))};mr.prototype.dispatch=function(t,n){var r=this,a=lc(t,n),o=a.type,u=a.payload,l={type:o,payload:u},c=this._actions[o];if(!!c){try{this._actionSubscribers.slice().filter(function(h){return h.before}).forEach(function(h){return h.before(l,r.state)})}catch{}var d=c.length>1?Promise.all(c.map(function(h){return h(u)})):c[0](u);return new Promise(function(h,m){d.then(function(C){try{r._actionSubscribers.filter(function(A){return A.after}).forEach(function(A){return A.after(l,r.state)})}catch{}h(C)},function(C){try{r._actionSubscribers.filter(function(A){return A.error}).forEach(function(A){return A.error(l,r.state,C)})}catch{}m(C)})})}};mr.prototype.subscribe=function(t,n){return Z_(t,this._subscribers,n)};mr.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return Z_(r,this._actionSubscribers,n)};mr.prototype.watch=function(t,n,r){var a=this;return this._watcherVM.$watch(function(){return t(a.state,a.getters)},n,r)};mr.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})};mr.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),kc(this,this.state,t,this._modules.get(t),r.preserveState),Lh(this,this.state)};mr.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=Nh(n.state,t.slice(0,-1));er.delete(r,t[t.length-1])}),Q_(this)};mr.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};mr.prototype.hotUpdate=function(t){this._modules.update(t),Q_(this,!0)};mr.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(mr.prototype,Rh);function Z_(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Q_(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;kc(e,n,[],e._modules.root,!0),Lh(e,n,t)}function Lh(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};ys(a,function(l,c){o[c]=y2(l,e),Object.defineProperty(e.getters,c,{get:function(){return e._vm[c]},enumerable:!0})});var u=er.config.silent;er.config.silent=!0,e._vm=new er({data:{$$state:t},computed:o}),er.config.silent=u,e.strict&&C2(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),er.nextTick(function(){return r.$destroy()}))}function kc(e,t,n,r,a){var o=!n.length,u=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[u],e._modulesNamespaceMap[u]=r),!o&&!a){var l=Nh(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit(function(){er.set(l,c,r.state)})}var d=r.context=b2(e,u,n);r.forEachMutation(function(h,m){var C=u+m;w2(e,C,h,d)}),r.forEachAction(function(h,m){var C=h.root?m:u+m,A=h.handler||h;S2(e,C,A,d)}),r.forEachGetter(function(h,m){var C=u+m;x2(e,C,h,d)}),r.forEachChild(function(h,m){kc(e,t,n.concat(m),h,a)})}function b2(e,t,n){var r=t==="",a={dispatch:r?e.dispatch:function(o,u,l){var c=lc(o,u,l),d=c.payload,h=c.options,m=c.type;return(!h||!h.root)&&(m=t+m),e.dispatch(m,d)},commit:r?e.commit:function(o,u,l){var c=lc(o,u,l),d=c.payload,h=c.options,m=c.type;(!h||!h.root)&&(m=t+m),e.commit(m,d,h)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return _2(e,t)}},state:{get:function(){return Nh(e.state,n)}}}),a}function _2(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(a){if(a.slice(0,r)===t){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function w2(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push(function(u){n.call(e,r.state,u)})}function S2(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push(function(u){var l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},u);return g2(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):l})}function x2(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function C2(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function Nh(e,t){return t.reduce(function(n,r){return n[r]},e)}function lc(e,t,n){return K_(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function ew(e){er&&e===er||(er=e,p2(er))}var tw=Rc(function(e,t){var n={};return Fc(t).forEach(function(r){var a=r.key,o=r.val;n[a]=function(){var l=this.$store.state,c=this.$store.getters;if(e){var d=Lc(this.$store,"mapState",e);if(!d)return;l=d.context.state,c=d.context.getters}return typeof o=="function"?o.call(this,l,c):l[o]},n[a].vuex=!0}),n}),nw=Rc(function(e,t){var n={};return Fc(t).forEach(function(r){var a=r.key,o=r.val;n[a]=function(){for(var l=[],c=arguments.length;c--;)l[c]=arguments[c];var d=this.$store.commit;if(e){var h=Lc(this.$store,"mapMutations",e);if(!h)return;d=h.context.commit}return typeof o=="function"?o.apply(this,[d].concat(l)):d.apply(this.$store,[o].concat(l))}}),n}),rw=Rc(function(e,t){var n={};return Fc(t).forEach(function(r){var a=r.key,o=r.val;o=e+o,n[a]=function(){if(!(e&&!Lc(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[a].vuex=!0}),n}),iw=Rc(function(e,t){var n={};return Fc(t).forEach(function(r){var a=r.key,o=r.val;n[a]=function(){for(var l=[],c=arguments.length;c--;)l[c]=arguments[c];var d=this.$store.dispatch;if(e){var h=Lc(this.$store,"mapActions",e);if(!h)return;d=h.context.dispatch}return typeof o=="function"?o.apply(this,[d].concat(l)):d.apply(this.$store,[o].concat(l))}}),n}),E2=function(e){return{mapState:tw.bind(null,e),mapGetters:rw.bind(null,e),mapMutations:nw.bind(null,e),mapActions:iw.bind(null,e)}};function Fc(e){return O2(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function O2(e){return Array.isArray(e)||K_(e)}function Rc(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Lc(e,t,n){var r=e._modulesNamespaceMap[n];return r}function A2(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(h,m,C){return!0});var r=e.transformer;r===void 0&&(r=function(h){return h});var a=e.mutationTransformer;a===void 0&&(a=function(h){return h});var o=e.actionFilter;o===void 0&&(o=function(h,m){return!0});var u=e.actionTransformer;u===void 0&&(u=function(h){return h});var l=e.logMutations;l===void 0&&(l=!0);var c=e.logActions;c===void 0&&(c=!0);var d=e.logger;return d===void 0&&(d=console),function(h){var m=Ap(h.state);typeof d>"u"||(l&&h.subscribe(function(C,A){var w=Ap(A);if(n(C,m,w)){var x=Xy(),_=a(C),p="mutation "+C.type+x;Ky(d,p,t),d.log("%c prev state","color: #9E9E9E; font-weight: bold",r(m)),d.log("%c mutation","color: #03A9F4; font-weight: bold",_),d.log("%c next state","color: #4CAF50; font-weight: bold",r(w)),Jy(d)}m=w}),c&&h.subscribeAction(function(C,A){if(o(C,A)){var w=Xy(),x=u(C),_="action "+C.type+w;Ky(d,_,t),d.log("%c action","color: #03A9F4; font-weight: bold",x),Jy(d)}}))}}function Ky(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch{e.log(t)}}function Jy(e){try{e.groupEnd()}catch{e.log("\u2014\u2014 log end \u2014\u2014")}}function Xy(){var e=new Date;return" @ "+Dl(e.getHours(),2)+":"+Dl(e.getMinutes(),2)+":"+Dl(e.getSeconds(),2)+"."+Dl(e.getMilliseconds(),3)}function T2(e,t){return new Array(t+1).join(e)}function Dl(e,t){return T2("0",t-e.toString().length)+e}var $2={Store:mr,install:ew,version:"3.6.2",mapState:tw,mapMutations:nw,mapGetters:rw,mapActions:iw,createNamespacedHelpers:E2,createLogger:A2};const Xz=$2;function aw(e,t){return function(){return e.apply(t,arguments)}}const{toString:D2}=Object.prototype,{getPrototypeOf:Bh}=Object,Nc=(e=>t=>{const n=D2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_i=e=>(e=e.toLowerCase(),t=>Nc(t)===e),Bc=e=>t=>typeof t===e,{isArray:bs}=Array,yu=Bc("undefined");function P2(e){return e!==null&&!yu(e)&&e.constructor!==null&&!yu(e.constructor)&&Mr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ow=_i("ArrayBuffer");function M2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ow(e.buffer),t}const I2=Bc("string"),Mr=Bc("function"),sw=Bc("number"),Uc=e=>e!==null&&typeof e=="object",k2=e=>e===!0||e===!1,Wl=e=>{if(Nc(e)!=="object")return!1;const t=Bh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},F2=_i("Date"),R2=_i("File"),L2=_i("Blob"),N2=_i("FileList"),B2=e=>Uc(e)&&Mr(e.pipe),U2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mr(e.append)&&((t=Nc(e))==="formdata"||t==="object"&&Mr(e.toString)&&e.toString()==="[object FormData]"))},j2=_i("URLSearchParams"),z2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $u(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),bs(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const lw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),cw=e=>!yu(e)&&e!==lw;function Tp(){const{caseless:e}=cw(this)&&this||{},t={},n=(r,a)=>{const o=e&&uw(t,a)||a;Wl(t[o])&&Wl(r)?t[o]=Tp(t[o],r):Wl(r)?t[o]=Tp({},r):bs(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r($u(t,(a,o)=>{n&&Mr(a)?e[o]=aw(a,n):e[o]=a},{allOwnKeys:r}),e),W2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Y2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},q2=(e,t,n,r)=>{let a,o,u;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)u=a[o],(!r||r(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Bh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},V2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},G2=e=>{if(!e)return null;if(bs(e))return e;let t=e.length;if(!sw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},K2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bh(Uint8Array)),J2=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},X2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Z2=_i("HTMLFormElement"),Q2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Zy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ek=_i("RegExp"),fw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$u(n,(a,o)=>{let u;(u=t(a,o,e))!==!1&&(r[o]=u||a)}),Object.defineProperties(e,r)},tk=e=>{fw(e,(t,n)=>{if(Mr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!Mr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nk=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return bs(e)?r(e):r(String(e).split(t)),n},rk=()=>{},ik=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pd="abcdefghijklmnopqrstuvwxyz",Qy="0123456789",dw={DIGIT:Qy,ALPHA:Pd,ALPHA_DIGIT:Pd+Pd.toUpperCase()+Qy},ak=(e=16,t=dw.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ok(e){return!!(e&&Mr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sk=e=>{const t=new Array(10),n=(r,a)=>{if(Uc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const o=bs(r)?[]:{};return $u(r,(u,l)=>{const c=n(u,a+1);!yu(c)&&(o[l]=c)}),t[a]=void 0,o}}return r};return n(e,0)},uk=_i("AsyncFunction"),lk=e=>e&&(Uc(e)||Mr(e))&&Mr(e.then)&&Mr(e.catch),ve={isArray:bs,isArrayBuffer:ow,isBuffer:P2,isFormData:U2,isArrayBufferView:M2,isString:I2,isNumber:sw,isBoolean:k2,isObject:Uc,isPlainObject:Wl,isUndefined:yu,isDate:F2,isFile:R2,isBlob:L2,isRegExp:ek,isFunction:Mr,isStream:B2,isURLSearchParams:j2,isTypedArray:K2,isFileList:N2,forEach:$u,merge:Tp,extend:H2,trim:z2,stripBOM:W2,inherits:Y2,toFlatObject:q2,kindOf:Nc,kindOfTest:_i,endsWith:V2,toArray:G2,forEachEntry:J2,matchAll:X2,isHTMLForm:Z2,hasOwnProperty:Zy,hasOwnProp:Zy,reduceDescriptors:fw,freezeMethods:tk,toObjectSet:nk,toCamelCase:Q2,noop:rk,toFiniteNumber:ik,findKey:uw,global:lw,isContextDefined:cw,ALPHABET:dw,generateString:ak,isSpecCompliantForm:ok,toJSONObject:sk,isAsyncFn:uk,isThenable:lk};function yt(e,t,n,r,a){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),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}ve.inherits(yt,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pw=yt.prototype,hw={};["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=>{hw[e]={value:e}});Object.defineProperties(yt,hw);Object.defineProperty(pw,"isAxiosError",{value:!0});yt.from=(e,t,n,r,a,o)=>{const u=Object.create(pw);return ve.toFlatObject(e,u,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),yt.call(u,e.message,t,n,r,a),u.cause=e,u.name=e.name,o&&Object.assign(u,o),u};const ck=null;function $p(e){return ve.isPlainObject(e)||ve.isArray(e)}function vw(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function e0(e,t,n){return e?e.concat(t).map(function(a,o){return a=vw(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function fk(e){return ve.isArray(e)&&!e.some($p)}const dk=ve.toFlatObject(ve,{},null,function(t){return/^is[A-Z]/.test(t)});function jc(e,t,n){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,_){return!ve.isUndefined(_[x])});const r=n.metaTokens,a=n.visitor||h,o=n.dots,u=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(a))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(ve.isDate(w))return w.toISOString();if(!c&&ve.isBlob(w))throw new yt("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(w)||ve.isTypedArray(w)?c&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function h(w,x,_){let p=w;if(w&&!_&&typeof w=="object"){if(ve.endsWith(x,"{}"))x=r?x:x.slice(0,-2),w=JSON.stringify(w);else if(ve.isArray(w)&&fk(w)||(ve.isFileList(w)||ve.endsWith(x,"[]"))&&(p=ve.toArray(w)))return x=vw(x),p.forEach(function(S,g){!(ve.isUndefined(S)||S===null)&&t.append(u===!0?e0([x],g,o):u===null?x:x+"[]",d(S))}),!1}return $p(w)?!0:(t.append(e0(_,x,o),d(w)),!1)}const m=[],C=Object.assign(dk,{defaultVisitor:h,convertValue:d,isVisitable:$p});function A(w,x){if(!ve.isUndefined(w)){if(m.indexOf(w)!==-1)throw Error("Circular reference detected in "+x.join("."));m.push(w),ve.forEach(w,function(p,v){(!(ve.isUndefined(p)||p===null)&&a.call(t,p,ve.isString(v)?v.trim():v,x,C))===!0&&A(p,x?x.concat(v):[v])}),m.pop()}}if(!ve.isObject(e))throw new TypeError("data must be an object");return A(e),t}function t0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Uh(e,t){this._pairs=[],e&&jc(e,this,t)}const mw=Uh.prototype;mw.append=function(t,n){this._pairs.push([t,n])};mw.toString=function(t){const n=t?function(r){return t.call(this,r,t0)}:t0;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function pk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gw(e,t,n){if(!t)return e;const r=n&&n.encode||pk,a=n&&n.serialize;let o;if(a?o=a(t,n):o=ve.isURLSearchParams(t)?t.toString():new Uh(t,n).toString(r),o){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class hk{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ve.forEach(this.handlers,function(r){r!==null&&t(r)})}}const n0=hk,yw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vk=typeof URLSearchParams<"u"?URLSearchParams:Uh,mk=typeof FormData<"u"?FormData:null,gk=typeof Blob<"u"?Blob:null,yk={isBrowser:!0,classes:{URLSearchParams:vk,FormData:mk,Blob:gk},protocols:["http","https","file","blob","url","data"]},bw=typeof window<"u"&&typeof document<"u",bk=(e=>bw&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_k=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),wk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bw,hasStandardBrowserWebWorkerEnv:_k,hasStandardBrowserEnv:bk},Symbol.toStringTag,{value:"Module"})),hi={...wk,...yk};function Sk(e,t){return jc(e,new hi.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return hi.isNode&&ve.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function xk(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ck(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r=n.length;return u=!u&&ve.isArray(a)?a.length:u,c?(ve.hasOwnProp(a,u)?a[u]=[a[u],r]:a[u]=r,!l):((!a[u]||!ve.isObject(a[u]))&&(a[u]=[]),t(n,r,a[u],o)&&ve.isArray(a[u])&&(a[u]=Ck(a[u])),!l)}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};return ve.forEachEntry(e,(r,a)=>{t(xk(r),a,n,0)}),n}return null}function Ek(e,t,n){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const jh={transitional:yw,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=ve.isObject(t);if(o&&ve.isHTMLForm(t)&&(t=new FormData(t)),ve.isFormData(t))return a&&a?JSON.stringify(_w(t)):t;if(ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t))return t;if(ve.isArrayBufferView(t))return t.buffer;if(ve.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Sk(t,this.formSerializer).toString();if((l=ve.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jc(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),Ek(t)):t}],transformResponse:[function(t){const n=this.transitional||jh.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&ve.isString(t)&&(r&&!this.responseType||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?yt.from(l,yt.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:hi.classes.FormData,Blob:hi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],e=>{jh.headers[e]={}});const zh=jh,Ok=ve.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"]),Ak=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),r=u.substring(a+1).trim(),!(!n||t[n]&&Ok[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},r0=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function Yl(e){return e===!1||e==null?e:ve.isArray(e)?e.map(Yl):String(e)}function Tk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $k=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Md(e,t,n,r,a){if(ve.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ve.isString(t)){if(ve.isString(r))return t.indexOf(r)!==-1;if(ve.isRegExp(r))return r.test(t)}}function Dk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pk(e,t){const n=ve.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,u){return this[r].call(this,t,a,o,u)},configurable:!0})})}class zc{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(l,c,d){const h=zs(c);if(!h)throw new Error("header name must be a non-empty string");const m=ve.findKey(a,h);(!m||a[m]===void 0||d===!0||d===void 0&&a[m]!==!1)&&(a[m||c]=Yl(l))}const u=(l,c)=>ve.forEach(l,(d,h)=>o(d,h,c));return ve.isPlainObject(t)||t instanceof this.constructor?u(t,n):ve.isString(t)&&(t=t.trim())&&!$k(t)?u(Ak(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=zs(t),t){const r=ve.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Tk(a);if(ve.isFunction(n))return n.call(this,a,r);if(ve.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zs(t),t){const r=ve.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Md(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(u){if(u=zs(u),u){const l=ve.findKey(r,u);l&&(!n||Md(r,r[l],l,n))&&(delete r[l],a=!0)}}return ve.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||Md(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return ve.forEach(this,(a,o)=>{const u=ve.findKey(r,o);if(u){n[u]=Yl(a),delete n[o];return}const l=t?Dk(o):String(o).trim();l!==o&&delete n[o],n[l]=Yl(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ve.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[r0]=this[r0]={accessors:{}}).accessors,a=this.prototype;function o(u){const l=zs(u);r[l]||(Pk(a,u),r[l]=!0)}return ve.isArray(t)?t.forEach(o):o(t),this}}zc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(zc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ve.freezeMethods(zc);const Ni=zc;function Id(e,t){const n=this||zh,r=t||n,a=Ni.from(r.headers);let o=r.data;return ve.forEach(e,function(l){o=l.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function ww(e){return!!(e&&e.__CANCEL__)}function Du(e,t,n){yt.call(this,e==null?"canceled":e,yt.ERR_CANCELED,t,n),this.name="CanceledError"}ve.inherits(Du,yt,{__CANCEL__:!0});function Mk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ik=hi.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const u=[e+"="+encodeURIComponent(t)];ve.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),ve.isString(r)&&u.push("path="+r),ve.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.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 kk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sw(e,t){return e&&!kk(t)?Fk(e,t):t}const Rk=hi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(o){let u=o;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(u){const l=ve.isString(u)?a(u):u;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Lk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,u;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[o];u||(u=d),n[a]=c,r[a]=d;let m=o,C=0;for(;m!==a;)C+=n[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),d-u{const o=a.loaded,u=a.lengthComputable?a.total:void 0,l=o-n,c=r(l),d=o<=u;n=o;const h={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:c||void 0,estimated:c&&u&&d?(u-o)/c:void 0,event:a};h[t?"download":"upload"]=!0,e(h)}}const Bk=typeof XMLHttpRequest<"u",Uk=Bk&&function(e){return new Promise(function(n,r){let a=e.data;const o=Ni.from(e.headers).normalize();let{responseType:u,withXSRFToken:l}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let h;if(ve.isFormData(a)){if(hi.hasStandardBrowserEnv||hi.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((h=o.getContentType())!==!1){const[x,..._]=h?h.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([x||"multipart/form-data",..._].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(x+":"+_))}const C=Sw(e.baseURL,e.url);m.open(e.method.toUpperCase(),gw(C,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function A(){if(!m)return;const x=Ni.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),p={data:!u||u==="text"||u==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:x,config:e,request:m};Mk(function(S){n(S),d()},function(S){r(S),d()},p),m=null}if("onloadend"in m?m.onloadend=A:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(A)},m.onabort=function(){!m||(r(new yt("Request aborted",yt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||yw;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),r(new yt(_,p.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,m)),m=null},hi.hasStandardBrowserEnv&&(l&&ve.isFunction(l)&&(l=l(e)),l||l!==!1&&Rk(C))){const x=e.xsrfHeaderName&&e.xsrfCookieName&&Ik.read(e.xsrfCookieName);x&&o.set(e.xsrfHeaderName,x)}a===void 0&&o.setContentType(null),"setRequestHeader"in m&&ve.forEach(o.toJSON(),function(_,p){m.setRequestHeader(p,_)}),ve.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),u&&u!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",i0(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",i0(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=x=>{!m||(r(!x||x.type?new Du(null,e,m):x),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const w=Lk(C);if(w&&hi.protocols.indexOf(w)===-1){r(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},Dp={http:ck,xhr:Uk};ve.forEach(Dp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a0=e=>`- ${e}`,jk=e=>ve.isFunction(e)||e===null||e===!1,xw={getAdapter:e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let u=t?o.length>1?`since : +`+o.map(a0).join(` +`):" "+a0(o[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:Dp};function kd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Du(null,e)}function o0(e){return kd(e),e.headers=Ni.from(e.headers),e.data=Id.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xw.getAdapter(e.adapter||zh.adapter)(e).then(function(r){return kd(e),r.data=Id.call(e,e.transformResponse,r),r.headers=Ni.from(r.headers),r},function(r){return ww(r)||(kd(e),r&&r.response&&(r.response.data=Id.call(e,e.transformResponse,r.response),r.response.headers=Ni.from(r.response.headers))),Promise.reject(r)})}const s0=e=>e instanceof Ni?e.toJSON():e;function ts(e,t){t=t||{};const n={};function r(d,h,m){return ve.isPlainObject(d)&&ve.isPlainObject(h)?ve.merge.call({caseless:m},d,h):ve.isPlainObject(h)?ve.merge({},h):ve.isArray(h)?h.slice():h}function a(d,h,m){if(ve.isUndefined(h)){if(!ve.isUndefined(d))return r(void 0,d,m)}else return r(d,h,m)}function o(d,h){if(!ve.isUndefined(h))return r(void 0,h)}function u(d,h){if(ve.isUndefined(h)){if(!ve.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function l(d,h,m){if(m in t)return r(d,h);if(m in e)return r(void 0,d)}const c={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,h)=>a(s0(d),s0(h),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),function(h){const m=c[h]||a,C=m(e[h],t[h],h);ve.isUndefined(C)&&m!==l||(n[h]=C)}),n}const Cw="1.6.5",Hh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const u0={};Hh.transitional=function(t,n,r){function a(o,u){return"[Axios v"+Cw+"] Transitional option '"+o+"'"+u+(r?". "+r:"")}return(o,u,l)=>{if(t===!1)throw new yt(a(u," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!u0[u]&&(u0[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,u,l):!0}};function zk(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],u=t[o];if(u){const l=e[o],c=l===void 0||u(l,o,e);if(c!==!0)throw new yt("option "+o+" must be "+c,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+o,yt.ERR_BAD_OPTION)}}const Pp={assertOptions:zk,validators:Hh},sa=Pp.validators;class cc{constructor(t){this.defaults=t,this.interceptors={request:new n0,response:new n0}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ts(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Pp.assertOptions(r,{silentJSONParsing:sa.transitional(sa.boolean),forcedJSONParsing:sa.transitional(sa.boolean),clarifyTimeoutError:sa.transitional(sa.boolean)},!1),a!=null&&(ve.isFunction(a)?n.paramsSerializer={serialize:a}:Pp.assertOptions(a,{encode:sa.function,serialize:sa.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=o&&ve.merge(o.common,o[n.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=Ni.concat(u,o);const l=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let h,m=0,C;if(!c){const w=[o0.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,d),C=w.length,h=Promise.resolve(n);m{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const u=new Promise(l=>{r.subscribe(l),o=l}).then(a);return u.cancel=function(){r.unsubscribe(o)},u},t(function(o,u,l){r.reason||(r.reason=new Du(o,u,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Wh(function(a){t=a}),cancel:t}}}const Hk=Wh;function Wk(e){return function(n){return e.apply(null,n)}}function Yk(e){return ve.isObject(e)&&e.isAxiosError===!0}const Mp={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(Mp).forEach(([e,t])=>{Mp[t]=e});const qk=Mp;function Ew(e){const t=new ql(e),n=aw(ql.prototype.request,t);return ve.extend(n,ql.prototype,t,{allOwnKeys:!0}),ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Ew(ts(e,a))},n}const dn=Ew(zh);dn.Axios=ql;dn.CanceledError=Du;dn.CancelToken=Hk;dn.isCancel=ww;dn.VERSION=Cw;dn.toFormData=jc;dn.AxiosError=yt;dn.Cancel=dn.CanceledError;dn.all=function(t){return Promise.all(t)};dn.spread=Wk;dn.isAxiosError=Yk;dn.mergeConfig=ts;dn.AxiosHeaders=Ni;dn.formToJSON=e=>_w(ve.isHTMLForm(e)?new FormData(e):e);dn.getAdapter=xw.getAdapter;dn.HttpStatusCode=qk;dn.default=dn;const l0=dn;var Vk=function(t){return Gk(t)&&!Kk(t)};function Gk(e){return!!e&&typeof e=="object"}function Kk(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Zk(e)}var Jk=typeof Symbol=="function"&&Symbol.for,Xk=Jk?Symbol.for("react.element"):60103;function Zk(e){return e.$$typeof===Xk}function Qk(e){return Array.isArray(e)?[]:{}}function bu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ns(Qk(e),e,t):e}function eF(e,t,n){return e.concat(t).map(function(r){return bu(r,n)})}function tF(e,t){if(!t.customMerge)return ns;var n=t.customMerge(e);return typeof n=="function"?n:ns}function nF(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function c0(e){return Object.keys(e).concat(nF(e))}function Ow(e,t){try{return t in e}catch{return!1}}function rF(e,t){return Ow(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function iF(e,t,n){var r={};return n.isMergeableObject(e)&&c0(e).forEach(function(a){r[a]=bu(e[a],n)}),c0(t).forEach(function(a){rF(e,a)||(Ow(e,a)&&n.isMergeableObject(t[a])?r[a]=tF(a,n)(e[a],t[a],n):r[a]=bu(t[a],n))}),r}function ns(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||eF,n.isMergeableObject=n.isMergeableObject||Vk,n.cloneUnlessOtherwiseSpecified=bu;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):iF(e,t,n):bu(t,n)}ns.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return ns(r,a,n)},{})};var aF=ns,Aw=aF,oF=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n 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 o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,n);if(u.value!==a||u.enumerable!==!0)return!1}return!0},f0=typeof Symbol<"u"&&Symbol,sF=oF,uF=function(){return typeof f0!="function"||typeof Symbol!="function"||typeof f0("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sF()},d0={foo:{}},lF=Object,cF=function(){return{__proto__:d0}.foo===d0.foo&&!({__proto__:null}instanceof lF)},fF="Function.prototype.bind called on incompatible ",dF=Object.prototype.toString,pF=Math.max,hF="[object Function]",p0=function(t,n){for(var r=[],a=0;a"u"||!xn?pt:xn(Uint8Array),to={"%AggregateError%":typeof AggregateError>"u"?pt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pt:ArrayBuffer,"%ArrayIteratorPrototype%":Uo&&xn?xn([][Symbol.iterator]()):pt,"%AsyncFromSyncIteratorPrototype%":pt,"%AsyncFunction%":Wo,"%AsyncGenerator%":Wo,"%AsyncGeneratorFunction%":Wo,"%AsyncIteratorPrototype%":Wo,"%Atomics%":typeof Atomics>"u"?pt:Atomics,"%BigInt%":typeof BigInt>"u"?pt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pt:FinalizationRegistry,"%Function%":Tw,"%GeneratorFunction%":Wo,"%Int8Array%":typeof Int8Array>"u"?pt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Uo&&xn?xn(xn([][Symbol.iterator]())):pt,"%JSON%":typeof JSON=="object"?JSON:pt,"%Map%":typeof Map>"u"?pt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Uo||!xn?pt:xn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pt:Promise,"%Proxy%":typeof Proxy>"u"?pt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Uo||!xn?pt:xn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Uo&&xn?xn(""[Symbol.iterator]()):pt,"%Symbol%":Uo?Symbol:pt,"%SyntaxError%":rs,"%ThrowTypeError%":xF,"%TypedArray%":EF,"%TypeError%":Zo,"%Uint8Array%":typeof Uint8Array>"u"?pt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pt:WeakSet};if(xn)try{null.error}catch(e){var OF=xn(xn(e));to["%Error.prototype%"]=OF}var AF=function e(t){var n;if(t==="%AsyncFunction%")n=Fd("async function () {}");else if(t==="%GeneratorFunction%")n=Fd("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Fd("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&xn&&(n=xn(a.prototype))}return to[t]=n,n},h0={"%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"]},Pu=Yh,fc=SF,TF=Pu.call(Function.call,Array.prototype.concat),$F=Pu.call(Function.apply,Array.prototype.splice),v0=Pu.call(Function.call,String.prototype.replace),dc=Pu.call(Function.call,String.prototype.slice),DF=Pu.call(Function.call,RegExp.prototype.exec),PF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,MF=/\\(\\)?/g,IF=function(t){var n=dc(t,0,1),r=dc(t,-1);if(n==="%"&&r!=="%")throw new rs("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new rs("invalid intrinsic syntax, expected opening `%`");var a=[];return v0(t,PF,function(o,u,l,c){a[a.length]=l?v0(c,MF,"$1"):u||o}),a},kF=function(t,n){var r=t,a;if(fc(h0,r)&&(a=h0[r],r="%"+a[0]+"%"),fc(to,r)){var o=to[r];if(o===Wo&&(o=AF(r)),typeof o>"u"&&!n)throw new Zo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new rs("intrinsic "+t+" does not exist!")},vo=function(t,n){if(typeof t!="string"||t.length===0)throw new Zo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Zo('"allowMissing" argument must be a boolean');if(DF(/^%?[^%]*%?$/,t)===null)throw new rs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=IF(t),a=r.length>0?r[0]:"",o=kF("%"+a+"%",n),u=o.name,l=o.value,c=!1,d=o.alias;d&&(a=d[0],$F(r,TF([0,1],d)));for(var h=1,m=!0;h=r.length){var x=eo(l,C);m=!!x,m&&"get"in x&&!("originalValue"in x.get)?l=x.get:l=l[C]}else m=fc(l,C),l=l[C];m&&!c&&(to[u]=l)}}return l},$w={exports:{}},FF=vo,Ip=FF("%Object.defineProperty%",!0),kp=function(){if(Ip)try{return Ip({},"a",{value:1}),!0}catch{return!1}return!1};kp.hasArrayLengthDefineBug=function(){if(!kp())return null;try{return Ip([],"length",{value:1}).length!==1}catch{return!0}};var Dw=kp,RF=vo,Vl=RF("%Object.getOwnPropertyDescriptor%",!0);if(Vl)try{Vl([],"length")}catch{Vl=null}var Pw=Vl,LF=Dw(),qh=vo,Zs=LF&&qh("%Object.defineProperty%",!0);if(Zs)try{Zs({},"a",{value:1})}catch{Zs=!1}var NF=qh("%SyntaxError%"),jo=qh("%TypeError%"),m0=Pw,BF=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new jo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new jo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new jo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new jo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new jo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new jo("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!m0&&m0(t,n);if(Zs)Zs(t,n,{configurable:u===null&&c?c.configurable:!u,enumerable:a===null&&c?c.enumerable:!a,value:r,writable:o===null&&c?c.writable:!o});else if(l||!a&&!o&&!u)t[n]=r;else throw new NF("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=vo,g0=BF,UF=Dw(),y0=Pw,b0=Mw("%TypeError%"),jF=Mw("%Math.floor%"),zF=function(t,n){if(typeof t!="function")throw new b0("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||jF(n)!==n)throw new b0("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&y0){var u=y0(t,"length");u&&!u.configurable&&(a=!1),u&&!u.writable&&(o=!1)}return(a||o||!r)&&(UF?g0(t,"length",n,!0,!0):g0(t,"length",n)),t};(function(e){var t=Yh,n=vo,r=zF,a=n("%TypeError%"),o=n("%Function.prototype.apply%"),u=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(u,o),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(C){if(typeof C!="function")throw new a("a function is required");var A=l(t,u,arguments);return r(A,1+d(0,C.length-(arguments.length-1)),!0)};var h=function(){return l(t,o,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h})($w);var Iw=vo,kw=$w.exports,HF=kw(Iw("String.prototype.indexOf")),WF=function(t,n){var r=Iw(t,!!n);return typeof r=="function"&&HF(t,".prototype.")>-1?kw(r):r};const YF={},qF=Object.freeze(Object.defineProperty({__proto__:null,default:YF},Symbol.toStringTag,{value:"Module"})),VF=Eb(qF);var Vh=typeof Map=="function"&&Map.prototype,Ld=Object.getOwnPropertyDescriptor&&Vh?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,pc=Vh&&Ld&&typeof Ld.get=="function"?Ld.get:null,_0=Vh&&Map.prototype.forEach,Gh=typeof Set=="function"&&Set.prototype,Nd=Object.getOwnPropertyDescriptor&&Gh?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hc=Gh&&Nd&&typeof Nd.get=="function"?Nd.get:null,w0=Gh&&Set.prototype.forEach,GF=typeof WeakMap=="function"&&WeakMap.prototype,Qs=GF?WeakMap.prototype.has:null,KF=typeof WeakSet=="function"&&WeakSet.prototype,eu=KF?WeakSet.prototype.has:null,JF=typeof WeakRef=="function"&&WeakRef.prototype,S0=JF?WeakRef.prototype.deref:null,XF=Boolean.prototype.valueOf,ZF=Object.prototype.toString,QF=Function.prototype.toString,eR=String.prototype.match,Kh=String.prototype.slice,da=String.prototype.replace,tR=String.prototype.toUpperCase,x0=String.prototype.toLowerCase,Fw=RegExp.prototype.test,C0=Array.prototype.concat,li=Array.prototype.join,nR=Array.prototype.slice,E0=Math.floor,Fp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Bd=Object.getOwnPropertySymbols,Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,is=typeof Symbol=="function"&&typeof Symbol.iterator=="object",jn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===is?"object":"symbol")?Symbol.toStringTag:null,Rw=Object.prototype.propertyIsEnumerable,O0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Fw.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-E0(-e):E0(e);if(r!==e){var a=String(r),o=Kh.call(t,a.length+1);return da.call(a,n,"$&_")+"."+da.call(da.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return da.call(t,n,"$&_")}var Lp=VF,T0=Lp.custom,$0=Nw(T0)?T0:null,rR=function e(t,n,r,a){var o=n||{};if(ua(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ua(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=ua(o,"customInspect")?o.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ua(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ua(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Uw(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return l?A0(t,c):c}if(typeof t=="bigint"){var d=String(t)+"n";return l?A0(t,d):d}var h=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=h&&h>0&&typeof t=="object")return Np(t)?"[Array]":"[Object]";var m=wR(o,r);if(typeof a>"u")a=[];else if(Bw(a,t)>=0)return"[Circular]";function C(F,z,q){if(z&&(a=nR.call(a),a.push(z)),q){var X={depth:o.depth};return ua(o,"quoteStyle")&&(X.quoteStyle=o.quoteStyle),e(F,X,r+1,a)}return e(F,o,r+1,a)}if(typeof t=="function"&&!D0(t)){var A=dR(t),w=Pl(t,C);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(w.length>0?" { "+li.call(w,", ")+" }":"")}if(Nw(t)){var x=is?da.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rp.call(t);return typeof t=="object"&&!is?Hs(x):x}if(yR(t)){for(var _="<"+x0.call(String(t.nodeName)),p=t.attributes||[],v=0;v",_}if(Np(t)){if(t.length===0)return"[]";var S=Pl(t,C);return m&&!_R(S)?"["+Bp(S,m)+"]":"[ "+li.call(S,", ")+" ]"}if(oR(t)){var g=Pl(t,C);return!("cause"in Error.prototype)&&"cause"in t&&!Rw.call(t,"cause")?"{ ["+String(t)+"] "+li.call(C0.call("[cause]: "+C(t.cause),g),", ")+" }":g.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+li.call(g,", ")+" }"}if(typeof t=="object"&&u){if($0&&typeof t[$0]=="function"&&Lp)return Lp(t,{depth:h-r});if(u!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(pR(t)){var P=[];return _0&&_0.call(t,function(F,z){P.push(C(z,t,!0)+" => "+C(F,t))}),P0("Map",pc.call(t),P,m)}if(mR(t)){var O=[];return w0&&w0.call(t,function(F){O.push(C(F,t))}),P0("Set",hc.call(t),O,m)}if(hR(t))return Ud("WeakMap");if(gR(t))return Ud("WeakSet");if(vR(t))return Ud("WeakRef");if(uR(t))return Hs(C(Number(t)));if(cR(t))return Hs(C(Fp.call(t)));if(lR(t))return Hs(XF.call(t));if(sR(t))return Hs(C(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Yt)return"{ [object globalThis] }";if(!aR(t)&&!D0(t)){var k=Pl(t,C),H=O0?O0(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",K=!H&&jn&&Object(t)===t&&jn in t?Kh.call(_a(t),8,-1):J?"Object":"",le=H||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=le+(K||J?"["+li.call(C0.call([],K||[],J||[]),": ")+"] ":"");return k.length===0?L+"{}":m?L+"{"+Bp(k,m)+"}":L+"{ "+li.call(k,", ")+" }"}return String(t)};function Lw(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function iR(e){return da.call(String(e),/"/g,""")}function Np(e){return _a(e)==="[object Array]"&&(!jn||!(typeof e=="object"&&jn in e))}function aR(e){return _a(e)==="[object Date]"&&(!jn||!(typeof e=="object"&&jn in e))}function D0(e){return _a(e)==="[object RegExp]"&&(!jn||!(typeof e=="object"&&jn in e))}function oR(e){return _a(e)==="[object Error]"&&(!jn||!(typeof e=="object"&&jn in e))}function sR(e){return _a(e)==="[object String]"&&(!jn||!(typeof e=="object"&&jn in e))}function uR(e){return _a(e)==="[object Number]"&&(!jn||!(typeof e=="object"&&jn in e))}function lR(e){return _a(e)==="[object Boolean]"&&(!jn||!(typeof e=="object"&&jn in e))}function Nw(e){if(is)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Rp)return!1;try{return Rp.call(e),!0}catch{}return!1}function cR(e){if(!e||typeof e!="object"||!Fp)return!1;try{return Fp.call(e),!0}catch{}return!1}var fR=Object.prototype.hasOwnProperty||function(e){return e in this};function ua(e,t){return fR.call(e,t)}function _a(e){return ZF.call(e)}function dR(e){if(e.name)return e.name;var t=eR.call(QF.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Bw(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Uw(Kh.call(e,0,t.maxStringLength),t)+r}var a=da.call(da.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bR);return Lw(a,"single",t)}function bR(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+tR.call(t.toString(16))}function Hs(e){return"Object("+e+")"}function Ud(e){return e+" { ? }"}function P0(e,t,n,r){var a=r?Bp(n,r):li.call(n,", ");return e+" ("+t+") {"+a+"}"}function _R(e){for(var t=0;t=0)return!1;return!0}function wR(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=li.call(Array(e.indent+1)," ");else return null;return{base:n,prev:li.call(Array(t+1),n)}}function Bp(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+li.call(e,","+n)+` +`+t.prev}function Pl(e,t){var n=Np(e),r=[];if(n){r.length=e.length;for(var a=0;a1;){var n=t.pop(),r=n.obj[n.prop];if(Va(r)){for(var a=[],o=0;o=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===RR.RFC1738&&(d===40||d===41)){l+=u.charAt(c);continue}if(d<128){l=l+ui[d];continue}if(d<2048){l=l+(ui[192|d>>6]+ui[128|d&63]);continue}if(d<55296||d>=57344){l=l+(ui[224|d>>12]+ui[128|d>>6&63]+ui[128|d&63]);continue}c+=1,d=65536+((d&1023)<<10|u.charCodeAt(c)&1023),l+=ui[240|d>>18]+ui[128|d>>12&63]+ui[128|d>>6&63]+ui[128|d&63]}return l},zR=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],a=0;a"u"&&(S=0)}if(typeof c=="function"?p=c(n,p):p instanceof Date?p=m(p):r==="comma"&&ki(p)&&(p=Gl.maybeMap(p,function(X){return X instanceof Date?m(X):X})),p===null){if(o)return l&&!w?l(n,Rn.encoder,x,"key",C):n;p=""}if(JR(p)||Gl.isBuffer(p)){if(l){var O=w?n:l(n,Rn.encoder,x,"key",C);return[A(O)+"="+A(l(p,Rn.encoder,x,"value",C))]}return[A(n)+"="+A(String(p))]}var k=[];if(typeof p>"u")return k;var H;if(r==="comma"&&ki(p))w&&l&&(p=Gl.maybeMap(p,l)),H=[{value:p.length>0?p.join(",")||null:void 0}];else if(ki(c))H=c;else{var J=Object.keys(p);H=d?J.sort(d):J}for(var K=a&&ki(p)&&p.length===1?n+"[]":n,le=0;le"u"?Rn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Rn.charsetSentinel,delimiter:typeof t.delimiter>"u"?Rn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Rn.encode,encoder:typeof t.encoder=="function"?t.encoder:Rn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Rn.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Rn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Rn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Rn.strictNullHandling}},QR=function(e,t){var n=e,r=ZR(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ki(r.filter)&&(o=r.filter,a=o);var u=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in M0?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var c=M0[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=c==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var h=Hw(),m=0;m0?w+A:""},as=zw,Up=Object.prototype.hasOwnProperty,eL=Array.isArray,Sn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:as.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tL=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Yw=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},nL="utf8=%26%2310003%3B",rL="utf8=%E2%9C%93",iL=function(t,n){var r={__proto__:null},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,u=a.split(n.delimiter,o),l=-1,c,d=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(w=eL(w)?[w]:w),Up.call(r,A)?r[A]=as.combine(r[A],w):r[A]=w}return r},aL=function(e,t,n,r){for(var a=r?t:Yw(t,n),o=e.length-1;o>=0;--o){var u,l=e[o];if(l==="[]"&&n.parseArrays)u=[].concat(a);else{u=n.plainObjects?Object.create(null):{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,d=parseInt(c,10);!n.parseArrays&&c===""?u={0:a}:!isNaN(d)&&l!==c&&String(d)===c&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(u=[],u[d]=a):c!=="__proto__"&&(u[c]=a)}a=u}return a},oL=function(t,n,r,a){if(!!t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=r.depth>0&&u.exec(o),d=c?o.slice(0,c.index):o,h=[];if(d){if(!r.plainObjects&&Up.call(Object.prototype,d)&&!r.allowPrototypes)return;h.push(d)}for(var m=0;r.depth>0&&(c=l.exec(o))!==null&&m"u"?Sn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Sn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Sn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Sn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Sn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Sn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Sn.comma,decoder:typeof t.decoder=="function"?t.decoder:Sn.decoder,delimiter:typeof t.delimiter=="string"||as.isRegExp(t.delimiter)?t.delimiter:Sn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Sn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Sn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Sn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Sn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Sn.strictNullHandling}},uL=function(e,t){var n=sL(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?iL(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),u=0;u
'};n.configure=function(w){var x,_;for(x in w)_=w[x],_!==void 0&&w.hasOwnProperty(x)&&(r[x]=_);return this},n.status=null,n.set=function(w){var x=n.isStarted();w=a(w,r.minimum,1),n.status=w===1?null:w;var _=n.render(!x),p=_.querySelector(r.barSelector),v=r.speed,S=r.easing;return _.offsetWidth,l(function(g){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),c(p,u(w,v,S)),w===1?(c(_,{transition:"none",opacity:1}),_.offsetWidth,setTimeout(function(){c(_,{transition:"all "+v+"ms linear",opacity:0}),setTimeout(function(){n.remove(),g()},v)},v)):setTimeout(g,v)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var w=function(){setTimeout(function(){!n.status||(n.trickle(),w())},r.trickleSpeed)};return r.trickle&&w(),this},n.done=function(w){return!w&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(w){var x=n.status;return x?(typeof w!="number"&&(w=(1-x)*a(Math.random()*x,.1,.95)),x=a(x+w,0,.994),n.set(x)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var w=0,x=0;n.promise=function(_){return!_||_.state()==="resolved"?this:(x===0&&n.start(),w++,x++,_.always(function(){x--,x===0?(w=0,n.done()):n.set((w-x)/w)}),this)}}(),n.render=function(w){if(n.isRendered())return document.getElementById("nprogress");h(document.documentElement,"nprogress-busy");var x=document.createElement("div");x.id="nprogress",x.innerHTML=r.template;var _=x.querySelector(r.barSelector),p=w?"-100":o(n.status||0),v=document.querySelector(r.parent),S;return c(_,{transition:"all 0 linear",transform:"translate3d("+p+"%,0,0)"}),r.showSpinner||(S=x.querySelector(r.spinnerSelector),S&&A(S)),v!=document.body&&h(v,"nprogress-custom-parent"),v.appendChild(x),x},n.remove=function(){m(document.documentElement,"nprogress-busy"),m(document.querySelector(r.parent),"nprogress-custom-parent");var w=document.getElementById("nprogress");w&&A(w)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var w=document.body.style,x="WebkitTransform"in w?"Webkit":"MozTransform"in w?"Moz":"msTransform"in w?"ms":"OTransform"in w?"O":"";return x+"Perspective"in w?"translate3d":x+"Transform"in w?"translate":"margin"};function a(w,x,_){return w_?_:w}function o(w){return(-1+w)*100}function u(w,x,_){var p;return r.positionUsing==="translate3d"?p={transform:"translate3d("+o(w)+"%,0,0)"}:r.positionUsing==="translate"?p={transform:"translate("+o(w)+"%,0)"}:p={"margin-left":o(w)+"%"},p.transition="all "+x+"ms "+_,p}var l=function(){var w=[];function x(){var _=w.shift();_&&_(x)}return function(_){w.push(_),w.length==1&&x()}}(),c=function(){var w=["Webkit","O","Moz","ms"],x={};function _(g){return g.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(P,O){return O.toUpperCase()})}function p(g){var P=document.body.style;if(g in P)return g;for(var O=w.length,k=g.charAt(0).toUpperCase()+g.slice(1),H;O--;)if(H=w[O]+k,H in P)return H;return g}function v(g){return g=_(g),x[g]||(x[g]=p(g))}function S(g,P,O){P=v(P),g.style[P]=O}return function(g,P){var O=arguments,k,H;if(O.length==2)for(k in P)H=P[k],H!==void 0&&P.hasOwnProperty(k)&&S(g,k,H);else S(g,O[1],O[2])}}();function d(w,x){var _=typeof w=="string"?w:C(w);return _.indexOf(" "+x+" ")>=0}function h(w,x){var _=C(w),p=_+x;d(_,x)||(w.className=p.substring(1))}function m(w,x){var _=C(w),p;!d(w,x)||(p=_.replace(" "+x+" "," "),w.className=p.substring(1,p.length-1))}function C(w){return(" "+(w.className||"")+" ").replace(/\s+/gi," ")}function A(w){w&&w.parentNode&&w.parentNode.removeChild(w)}return n})})(qw);const fi=qw.exports;function Vw(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function Yi(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var dL=e=>Yi("before",{cancelable:!0,detail:{visit:e}}),pL=e=>Yi("error",{detail:{errors:e}}),hL=e=>Yi("exception",{cancelable:!0,detail:{exception:e}}),F0=e=>Yi("finish",{detail:{visit:e}}),vL=e=>Yi("invalid",{cancelable:!0,detail:{response:e}}),Ws=e=>Yi("navigate",{detail:{page:e}}),mL=e=>Yi("progress",{detail:{progress:e}}),gL=e=>Yi("start",{detail:{visit:e}}),yL=e=>Yi("success",{detail:{page:e}});function jp(e){return e instanceof File||e instanceof Blob||e instanceof FileList&&e.length>0||e instanceof FormData&&Array.from(e.values()).some(t=>jp(t))||typeof e=="object"&&e!==null&&Object.values(e).some(t=>jp(t))}function Gw(e,t=new FormData,n=null){e=e||{};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&Jw(t,Kw(n,r),e[r]);return t}function Kw(e,t){return e?e+"["+t+"]":t}function Jw(e,t,n){if(Array.isArray(n))return Array.from(n.keys()).forEach(r=>Jw(e,Kw(t,r.toString()),n[r]));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n=="boolean")return e.append(t,n?"1":"0");if(typeof n=="string")return e.append(t,n);if(typeof n=="number")return e.append(t,`${n}`);if(n==null)return e.append(t,"");Gw(n,e,t)}var bL={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(r=>r.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 n=document.createElement("iframe");if(n.style.backgroundColor="white",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",this.modal.appendChild(n),document.body.prepend(this.modal),document.body.style.overflow="hidden",!n.contentWindow)throw new Error("iframe not yet ready.");n.contentWindow.document.open(),n.contentWindow.document.write(t.outerHTML),n.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 zo(e){return new URL(e.toString(),window.location.toString())}function Xw(e,t,n,r="brackets"){let a=/^https?:\/\//.test(t.toString()),o=a||t.toString().startsWith("/"),u=!o&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=t.toString().includes("?")||e==="get"&&Object.keys(n).length,c=t.toString().includes("#"),d=new URL(t.toString(),"http://localhost");return e==="get"&&Object.keys(n).length&&(d.search=k0.stringify(Aw(k0.parse(d.search,{ignoreQueryPrefix:!0}),n),{encodeValuesOnly:!0,arrayFormat:r}),n={}),[[a?`${d.protocol}//${d.host}`:"",o?d.pathname:"",u?d.pathname.substring(1):"",l?d.search:"",c?d.hash:""].join(""),n]}function Ys(e){return e=new URL(e.href),e.hash="",e}var R0=typeof window>"u",_L=class{constructor(){this.visitId=null}init({initialPage:e,resolveComponent:t,swapComponent:n}){this.page=e,this.resolveComponent=t,this.swapComponent=n,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?void 0:e.rememberedState)&&delete window.history.state.rememberedState}handleInitialPageVisit(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then(()=>Ws(e))}setupEventListeners(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",Vw(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 n=this.page.scrollRegions[t];if(n)typeof e.scrollTo=="function"?e.scrollTo(n.left,n.top):(e.scrollTop=n.top,e.scrollLeft=n.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(),Ws(e)})}locationVisit(e,t){try{let n={preserveScroll:t};window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify(n)),window.location.href=e.href,Ys(window.location).href===Ys(e).href&&window.location.reload()}catch{return!1}}isLocationVisit(){try{return window.sessionStorage.getItem("inertiaLocationVisit")!==null}catch{return!1}}handleLocationVisit(e){var n,r,a,o;let t=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=(r=(n=window.history.state)==null?void 0:n.rememberedState)!=null?r:{},e.scrollRegions=(o=(a=window.history.state)==null?void 0:a.scrollRegions)!=null?o:[],this.setPage(e,{preserveScroll:t.preserveScroll,preserveState:!0}).then(()=>{t.preserveScroll&&this.restoreScrollPositions(),Ws(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:n=!1}){e&&!e.completed&&!e.cancelled&&!e.interrupted&&(e.cancelToken.abort(),e.onCancel(),e.completed=!1,e.cancelled=t,e.interrupted=n,F0(e),e.onFinish(e))}finishVisit(e){!e.cancelled&&!e.interrupted&&(e.completed=!0,e.cancelled=!1,e.interrupted=!1,F0(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:n={},replace:r=!1,preserveScroll:a=!1,preserveState:o=!1,only:u=[],headers:l={},errorBag:c="",forceFormData:d=!1,onCancelToken:h=()=>{},onBefore:m=()=>{},onStart:C=()=>{},onProgress:A=()=>{},onFinish:w=()=>{},onCancel:x=()=>{},onSuccess:_=()=>{},onError:p=()=>{},queryStringArrayFormat:v="brackets"}={}){let S=typeof e=="string"?zo(e):e;if((jp(n)||d)&&!(n instanceof FormData)&&(n=Gw(n)),!(n instanceof FormData)){let[O,k]=Xw(t,S,n,v);S=zo(O),n=k}let g={url:S,method:t,data:n,replace:r,preserveScroll:a,preserveState:o,only:u,headers:l,errorBag:c,forceFormData:d,queryStringArrayFormat:v,cancelled:!1,completed:!1,interrupted:!1};if(m(g)===!1||!dL(g))return;this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();let P=this.createVisitId();this.activeVisit={...g,onCancelToken:h,onBefore:m,onStart:C,onProgress:A,onFinish:w,onCancel:x,onSuccess:_,onError:p,queryStringArrayFormat:v,cancelToken:new AbortController},h({cancel:()=>{this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}}),gL(g),C(g),l0({method:t,url:Ys(S).href,data:t==="get"?{}:n,params:t==="get"?n:{},signal:this.activeVisit.cancelToken.signal,headers:{...l,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,...u.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":u.join(",")}:{},...c&&c.length?{"X-Inertia-Error-Bag":c}:{},...this.page.version?{"X-Inertia-Version":this.page.version}:{}},onUploadProgress:O=>{n instanceof FormData&&(O.percentage=O.progress?Math.round(O.progress*100):0,mL(O),A(O))}}).then(O=>{var K;if(!this.isInertiaResponse(O))return Promise.reject({response:O});let k=O.data;u.length&&k.component===this.page.component&&(k.props={...this.page.props,...k.props}),a=this.resolvePreserveOption(a,k),o=this.resolvePreserveOption(o,k),o&&((K=window.history.state)==null?void 0:K.rememberedState)&&k.component===this.page.component&&(k.rememberedState=window.history.state.rememberedState);let H=S,J=zo(k.url);return H.hash&&!J.hash&&Ys(H).href===J.href&&(J.hash=H.hash,k.url=J.href),this.setPage(k,{visitId:P,replace:r,preserveScroll:a,preserveState:o})}).then(()=>{let O=this.page.props.errors||{};if(Object.keys(O).length>0){let k=c?O[c]?O[c]:{}:O;return pL(k),p(k)}return yL(this.page),_(this.page)}).catch(O=>{if(this.isInertiaResponse(O.response))return this.setPage(O.response.data,{visitId:P});if(this.isLocationVisitResponse(O.response)){let k=zo(O.response.headers["x-inertia-location"]),H=S;H.hash&&!k.hash&&Ys(H).href===k.href&&(k.hash=H.hash),this.locationVisit(k,a===!0)}else if(O.response)vL(O.response)&&bL.show(O.response.data);else return Promise.reject(O)}).then(()=>{this.activeVisit&&this.finishVisit(this.activeVisit)}).catch(O=>{if(!l0.isCancel(O)){let k=hL(O);if(this.activeVisit&&this.finishVisit(this.activeVisit),k)return Promise.reject(O)}})}setPage(e,{visitId:t=this.createVisitId(),replace:n=!1,preserveScroll:r=!1,preserveState:a=!1}={}){return Promise.resolve(this.resolveComponent(e.component)).then(o=>{t===this.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},n=n||zo(e.url).href===window.location.href,n?this.replaceState(e):this.pushState(e),this.swapComponent({component:o,page:e,preserveState:a}).then(()=>{r||this.resetScrollPositions(),n||Ws(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,n=this.createVisitId();Promise.resolve(this.resolveComponent(t.component)).then(r=>{n===this.visitId&&(this.page=t,this.swapComponent({component:r,page:t,preserveState:!1}).then(()=>{this.restoreScrollPositions(),Ws(t)}))})}else{let t=zo(this.page.url);t.hash=window.location.hash,this.replaceState({...this.page,url:t.href}),this.resetScrollPositions()}}get(e,t={},n={}){return this.visit(e,{...n,method:"get",data:t})}reload(e={}){return this.visit(window.location.href,{...e,preserveScroll:!0,preserveState:!0})}replace(e,t={}){var n;return console.warn(`Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia.${(n=t.method)!=null?n:"get"}() instead.`),this.visit(e,{preserveState:!0,...t,replace:!0})}post(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"post",data:t})}put(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"put",data:t})}patch(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"patch",data:t})}delete(e,t={}){return this.visit(e,{preserveState:!0,...t,method:"delete"})}remember(e,t="default"){var n;R0||this.replaceState({...this.page,rememberedState:{...(n=this.page)==null?void 0:n.rememberedState,[t]:e}})}restore(e="default"){var t,n;if(!R0)return(n=(t=window.history.state)==null?void 0:t.rememberedState)==null?void 0:n[e]}on(e,t){let n=r=>{let a=t(r);r.cancelable&&!r.defaultPrevented&&a===!1&&r.preventDefault()};return document.addEventListener(`inertia:${e}`,n),()=>document.removeEventListener(`inertia:${e}`,n)}},wL={buildDOMElement(e){let t=document.createElement("template");t.innerHTML=e;let n=t.content.firstChild;if(!e.startsWith(" diff --git a/resources/js/components/admin/cms/content/content_fields/EduCourseField.vue b/resources/js/components/admin/cms/content/content_fields/EduCourseField.vue new file mode 100644 index 00000000..f1dcbcd8 --- /dev/null +++ b/resources/js/components/admin/cms/content/content_fields/EduCourseField.vue @@ -0,0 +1,84 @@ + + + diff --git a/resources/js/components/admin/cms/content/content_fields/ImageField.vue b/resources/js/components/admin/cms/content/content_fields/ImageField.vue index 995ee759..3a3488eb 100644 --- a/resources/js/components/admin/cms/content/content_fields/ImageField.vue +++ b/resources/js/components/admin/cms/content/content_fields/ImageField.vue @@ -33,7 +33,7 @@ diff --git a/resources/js/components/admin/settings/MailerSetting.vue b/resources/js/components/admin/settings/MailerSetting.vue new file mode 100644 index 00000000..d66e44c0 --- /dev/null +++ b/resources/js/components/admin/settings/MailerSetting.vue @@ -0,0 +1,229 @@ + + + diff --git a/resources/js/components/core/footer/Footer.vue b/resources/js/components/core/footer/Footer.vue new file mode 100644 index 00000000..b6934413 --- /dev/null +++ b/resources/js/components/core/footer/Footer.vue @@ -0,0 +1,53 @@ + + + diff --git a/resources/js/components/core/forms/ArrayGroup..vue b/resources/js/components/core/forms/ArrayGroup.vue similarity index 98% rename from resources/js/components/core/forms/ArrayGroup..vue rename to resources/js/components/core/forms/ArrayGroup.vue index 9ff7f4f5..3fef84f5 100644 --- a/resources/js/components/core/forms/ArrayGroup..vue +++ b/resources/js/components/core/forms/ArrayGroup.vue @@ -71,7 +71,7 @@ diff --git a/resources/js/components/core/icons/IconArrowsShuffle.vue b/resources/js/components/core/icons/IconArrowsShuffle.vue new file mode 100644 index 00000000..773c13ee --- /dev/null +++ b/resources/js/components/core/icons/IconArrowsShuffle.vue @@ -0,0 +1,25 @@ + + + diff --git a/resources/js/components/core/icons/IconBadgeCc.vue b/resources/js/components/core/icons/IconBadgeCc.vue new file mode 100644 index 00000000..31cc7174 --- /dev/null +++ b/resources/js/components/core/icons/IconBadgeCc.vue @@ -0,0 +1,25 @@ + + + diff --git a/resources/js/components/core/icons/IconBookDownload.vue b/resources/js/components/core/icons/IconBookDownload.vue index 8bd56d25..6dd0cb27 100644 --- a/resources/js/components/core/icons/IconBookDownload.vue +++ b/resources/js/components/core/icons/IconBookDownload.vue @@ -1,18 +1,26 @@ diff --git a/resources/js/components/core/icons/IconBoxMultiple.vue b/resources/js/components/core/icons/IconBoxMultiple.vue index e7277406..42193146 100644 --- a/resources/js/components/core/icons/IconBoxMultiple.vue +++ b/resources/js/components/core/icons/IconBoxMultiple.vue @@ -1,8 +1,14 @@ diff --git a/resources/js/components/core/icons/IconCameraCheck.vue b/resources/js/components/core/icons/IconCameraCheck.vue index 1e3b7563..99b8166e 100644 --- a/resources/js/components/core/icons/IconCameraCheck.vue +++ b/resources/js/components/core/icons/IconCameraCheck.vue @@ -1,6 +1,21 @@ diff --git a/resources/js/components/core/icons/IconChalkboard.vue b/resources/js/components/core/icons/IconChalkboard.vue index d89c88c9..cc70277f 100644 --- a/resources/js/components/core/icons/IconChalkboard.vue +++ b/resources/js/components/core/icons/IconChalkboard.vue @@ -1,9 +1,16 @@ diff --git a/resources/js/components/core/icons/IconDeviceMobile.vue b/resources/js/components/core/icons/IconDeviceMobile.vue index 5ab15187..35679eae 100644 --- a/resources/js/components/core/icons/IconDeviceMobile.vue +++ b/resources/js/components/core/icons/IconDeviceMobile.vue @@ -1,6 +1,22 @@ + + + + + + + diff --git a/resources/js/components/core/icons/IconFacebook.vue b/resources/js/components/core/icons/IconFacebook.vue new file mode 100644 index 00000000..a0f5619c --- /dev/null +++ b/resources/js/components/core/icons/IconFacebook.vue @@ -0,0 +1,23 @@ + + + diff --git a/resources/js/components/core/icons/IconFileDownload.vue b/resources/js/components/core/icons/IconFileDownload.vue index 36c0f0aa..d7413d91 100644 --- a/resources/js/components/core/icons/IconFileDownload.vue +++ b/resources/js/components/core/icons/IconFileDownload.vue @@ -1,8 +1,16 @@ diff --git a/resources/js/components/core/icons/IconHeadphones.vue b/resources/js/components/core/icons/IconHeadphones.vue index b93c84a4..4a265a44 100644 --- a/resources/js/components/core/icons/IconHeadphones.vue +++ b/resources/js/components/core/icons/IconHeadphones.vue @@ -1,6 +1,21 @@ diff --git a/resources/js/components/core/icons/IconInstagram.vue b/resources/js/components/core/icons/IconInstagram.vue new file mode 100644 index 00000000..b45481eb --- /dev/null +++ b/resources/js/components/core/icons/IconInstagram.vue @@ -0,0 +1,25 @@ + + + diff --git a/resources/js/components/core/icons/IconLanguage.vue b/resources/js/components/core/icons/IconLanguage.vue index a1cbf6f6..d902a40f 100644 --- a/resources/js/components/core/icons/IconLanguage.vue +++ b/resources/js/components/core/icons/IconLanguage.vue @@ -1,6 +1,24 @@ + + + + + + + + + diff --git a/resources/js/components/core/icons/IconMoneyBag.vue b/resources/js/components/core/icons/IconMoneyBag.vue deleted file mode 100644 index 4b2fd31d..00000000 --- a/resources/js/components/core/icons/IconMoneyBag.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/resources/js/components/core/icons/IconMoneybag.vue b/resources/js/components/core/icons/IconMoneybag.vue new file mode 100644 index 00000000..6b08ae34 --- /dev/null +++ b/resources/js/components/core/icons/IconMoneybag.vue @@ -0,0 +1,24 @@ + + + diff --git a/resources/js/components/core/icons/IconReceiptRefund.vue b/resources/js/components/core/icons/IconReceiptRefund.vue index 4e835fcb..0452f1d0 100644 --- a/resources/js/components/core/icons/IconReceiptRefund.vue +++ b/resources/js/components/core/icons/IconReceiptRefund.vue @@ -1,6 +1,20 @@ diff --git a/resources/js/components/core/icons/IconSpeaker.vue b/resources/js/components/core/icons/IconSpeaker.vue deleted file mode 100644 index b80b2689..00000000 --- a/resources/js/components/core/icons/IconSpeaker.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/resources/js/components/core/icons/IconSpeakerPhone.vue b/resources/js/components/core/icons/IconSpeakerPhone.vue new file mode 100644 index 00000000..3988a5aa --- /dev/null +++ b/resources/js/components/core/icons/IconSpeakerPhone.vue @@ -0,0 +1,25 @@ + + + diff --git a/resources/js/components/core/icons/IconTextCaption.vue b/resources/js/components/core/icons/IconTextCaption.vue deleted file mode 100644 index 4f0e4aa1..00000000 --- a/resources/js/components/core/icons/IconTextCaption.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/resources/js/components/core/icons/IconTiktok.vue b/resources/js/components/core/icons/IconTiktok.vue new file mode 100644 index 00000000..ebbd6d56 --- /dev/null +++ b/resources/js/components/core/icons/IconTiktok.vue @@ -0,0 +1,16 @@ + + + diff --git a/resources/js/components/core/icons/IconTwitter.vue b/resources/js/components/core/icons/IconTwitter.vue new file mode 100644 index 00000000..149328a3 --- /dev/null +++ b/resources/js/components/core/icons/IconTwitter.vue @@ -0,0 +1,16 @@ + + + diff --git a/resources/js/components/core/icons/IconYoutube.vue b/resources/js/components/core/icons/IconYoutube.vue new file mode 100644 index 00000000..1a178638 --- /dev/null +++ b/resources/js/components/core/icons/IconYoutube.vue @@ -0,0 +1,16 @@ + + + diff --git a/resources/js/components/core/menus/SideMenu.vue b/resources/js/components/core/menus/SideMenu.vue index 01b0fd86..0dadccdb 100644 --- a/resources/js/components/core/menus/SideMenu.vue +++ b/resources/js/components/core/menus/SideMenu.vue @@ -68,9 +68,8 @@ diff --git a/resources/js/components/website/edu/course/AboutAuthor.vue b/resources/js/components/website/edu/course/AboutAuthor.vue new file mode 100644 index 00000000..ef55523f --- /dev/null +++ b/resources/js/components/website/edu/course/AboutAuthor.vue @@ -0,0 +1,44 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseCallToAction.vue b/resources/js/components/website/edu/course/CourseCallToAction.vue new file mode 100644 index 00000000..bc0627c6 --- /dev/null +++ b/resources/js/components/website/edu/course/CourseCallToAction.vue @@ -0,0 +1,32 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseContent.vue b/resources/js/components/website/edu/course/CourseContent.vue new file mode 100644 index 00000000..5bb21215 --- /dev/null +++ b/resources/js/components/website/edu/course/CourseContent.vue @@ -0,0 +1,114 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseDescription.vue b/resources/js/components/website/edu/course/CourseDescription.vue new file mode 100644 index 00000000..c188feec --- /dev/null +++ b/resources/js/components/website/edu/course/CourseDescription.vue @@ -0,0 +1,27 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseFeatures.vue b/resources/js/components/website/edu/course/CourseFeatures.vue new file mode 100644 index 00000000..87b0adef --- /dev/null +++ b/resources/js/components/website/edu/course/CourseFeatures.vue @@ -0,0 +1,128 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseFooter.vue b/resources/js/components/website/edu/course/CourseFooter.vue new file mode 100644 index 00000000..5dd3f055 --- /dev/null +++ b/resources/js/components/website/edu/course/CourseFooter.vue @@ -0,0 +1,29 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseFooterBottom.vue b/resources/js/components/website/edu/course/CourseFooterBottom.vue new file mode 100644 index 00000000..4a600aae --- /dev/null +++ b/resources/js/components/website/edu/course/CourseFooterBottom.vue @@ -0,0 +1,90 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseFooterTop.vue b/resources/js/components/website/edu/course/CourseFooterTop.vue new file mode 100644 index 00000000..defa3926 --- /dev/null +++ b/resources/js/components/website/edu/course/CourseFooterTop.vue @@ -0,0 +1,115 @@ + + + diff --git a/resources/js/components/website/edu/course/CourseHeader.vue b/resources/js/components/website/edu/course/CourseHeader.vue new file mode 100644 index 00000000..224f5097 --- /dev/null +++ b/resources/js/components/website/edu/course/CourseHeader.vue @@ -0,0 +1,43 @@ +