From dd3a0c6ecd14f641bc1b8e8095249a4cb9a8a582 Mon Sep 17 00:00:00 2001 From: f4ilji Date: Mon, 14 Oct 2024 14:56:10 +0500 Subject: [PATCH] Changes --- .idea/ntspi-new.iml | 2 + .idea/php.xml | 1 + .idea/phpspec.xml | 3 + .../Components/Forms/CustomFormForm.php | 5 +- .../ItemForm/CustomForm/FormBuilderItem.php | 42 + app/Filament/Components/Forms/PostForm.php | 90 +- .../AdditionalEducationCategoryResource.php | 10 +- .../Resources/AdditionalEducationResource.php | 727 +++++++------- .../Pages/CreateAdditionalEducation.php | 92 ++ .../Pages/EditAdditionalEducation.php | 43 + .../DirectionAdditionalEducationResource.php | 10 +- .../Resources/EducationalProgramResource.php | 3 +- .../PageResource/Pages/CreatePage.php | 7 +- .../Resources/PageResource/Pages/EditPage.php | 6 +- .../PostResource/Pages/CreatePost.php | 14 +- .../Resources/PostResource/Pages/EditPost.php | 8 +- .../ClientAdditionalEducationController.php | 77 +- app/Http/Controllers/ClientPostController.php | 1 + .../Controllers/ClientProgramController.php | 4 +- ...AdditionalEducationalProgramController.php | 23 + ...ientWidgetEducationalProgramController.php | 20 + .../ClientWidgetPostController.php | 1 - app/Http/Controllers/PageController.php | 9 +- app/Http/Controllers/VkPostController.php | 48 + app/Http/Middleware/AccessCheck.php | 7 +- ...tionalEducationCategoryPreviewResource.php | 23 + .../AdditionalEducationSelectResource.php | 19 + app/Http/Resources/ClientBreadcrumbPage.php | 23 + .../Resources/ClientBreadcrumbSection.php | 22 + .../Resources/ClientBreadcrumbSubSection.php | 22 + .../Resources/ClientNavigationResource.php | 1 + .../ClientSubSectionNavigateResource.php | 1 + .../DirectionAdditionalEducationResource.php | 1 + .../EducationProgramSelectResource.php | 19 + .../Resources/EducationalProgramResource.php | 1 + app/Models/AdditionalEducationCategory.php | 8 + app/Services/VK/Album/VkAlbumService.php | 49 + app/Services/VK/VkService.php | 33 + app/Services/VK/Wall/VkWallService.php | 50 + composer.json | 1 + composer.lock | 42 +- ...e_direction_additional_education_table.php | 3 +- ..._additional_education_categories_table.php | 3 +- ...5147_create_additional_education_table.php | 1 + package-lock.json | 324 +++---- package.json | 2 +- ...rCJkLR.js => AdminIndexHeader-BLYLBYAX.js} | 2 +- ...W.js => AdminIndexHeaderTitle-BXYEMOTq.js} | 2 +- public/build/assets/BaseTemplate-Ck405erW.js | 1 - public/build/assets/BaseTemplate-D1ScVXMq.js | 1 + ...MRLcl.js => ClientEventFilter-BAYtyBIS.js} | 2 +- ...V.js => ClientEventSelectDate-UncMoO_R.js} | 2 +- .../build/assets/ClientFooterDown-B1P9jP1W.js | 1 - ...LuRx_.js => ClientImageSlider-ZnyNtD9R.js} | 2 +- ...ost-DIJzEVBF.js => ClientPost-HujX0ISt.js} | 2 +- ...aUVN-Q.js => ClientPostSearch-DByct-eL.js} | 2 +- ...g9z.js => ClientProgramFilter-C-_lryip.js} | 2 +- ...jc.js => ClientScrollTimeline-9x6SH9Qu.js} | 2 +- ...SWFrYdlt.js => CreateSchedule-CmquFr42.js} | 2 +- ...lock-B5Hbafqw.js => DateBlock-BgabaFZh.js} | 2 +- ...ock-Cbj5wFPK.js => EmailBlock-BS6HPJA5.js} | 2 +- public/build/assets/Error-BYb2LDW7.css | 1 - public/build/assets/Error-CiAOcUz3.css | 1 + public/build/assets/Error-Di_6EIG6.js | 1 + public/build/assets/Error-ivgJWRIe.js | 1 - ...U6h4y.js => EventBadgeBuilder-vc1rfcET.js} | 2 +- ...r-D5WodeWz.js => EventBuilder-Baz4pEov.js} | 2 +- ...BvJuCT72.js => FacultyBuilder-CUBiLxcU.js} | 2 +- ...lock-CW3mTqrc.js => FileBlock-CP4fXArx.js} | 2 +- ...lock-Blx3yiDN.js => FileBlock-DP4RAJQp.js} | 2 +- ...lock-BFIDbHeW.js => FormBlock-BVey85an.js} | 4 +- ...k-Cp3_jF4x.js => HeadingBlock-C6Vf5Cih.js} | 2 +- ...k-B6vgs5RT.js => HeadingBlock-iaPv_EZx.js} | 2 +- ...ock-DXMXSgRL.js => ImageBlock-BPZJdxPA.js} | 2 +- ...ock-DYPERL6F.js => ImageBlock-Bz4NDWK1.js} | 2 +- public/build/assets/Index-1LZENQqm.js | 1 - public/build/assets/Index-5U2ab9wb.js | 1 + public/build/assets/Index-BBwGUJwz.js | 1 + public/build/assets/Index-Bc3nPRSA.js | 1 + public/build/assets/Index-BgLUU4Lv.js | 1 - public/build/assets/Index-BoTKbR4i.js | 1 - public/build/assets/Index-Bqt5Cqha.js | 1 - public/build/assets/Index-Bt3p4TYn.js | 1 - public/build/assets/Index-CEZaH6MJ.js | 1 - public/build/assets/Index-Ce32AtE_.js | 1 + public/build/assets/Index-CoDoJ7xk.js | 1 - public/build/assets/Index-CxSKFcq0.js | 1 + public/build/assets/Index-D3WMQLwm.js | 1 + public/build/assets/Index-DbP0fdPj.js | 1 + public/build/assets/Index-Dcp5JBBk.js | 1 - public/build/assets/Index-DiTvP9AK.js | 1 - public/build/assets/Index-DrBHgd9y.js | 1 + public/build/assets/Index-PPUxqHy0.js | 1 - public/build/assets/Index-PaoQq1iX.js | 1 - public/build/assets/Index-Vq2d78iS.js | 1 + public/build/assets/Index-c1ZyGYqw.js | 1 + public/build/assets/Index-c__ouhs3.js | 1 + public/build/assets/Main-CbSGhlrp.js | 1 + public/build/assets/Main-DieNWOPM.js | 1 - ...bar-DYfeRcdr.js => MainNavbar-Ox7xJRDB.js} | 2 +- .../build/assets/MainPageNavbar-BsdceJwT.js | 105 +++ .../build/assets/MainPageNavbar-CC0e5dc9.css | 1 - .../build/assets/MainPageNavbar-Cmz730h9.js | 104 -- .../build/assets/MainPageNavbar-TDbjOSJh.css | 1 + ...9rQ.js => MultipleChoiceBlock-B8DiNy04.js} | 2 +- public/build/assets/Page-BDvp-A4B.js | 1 - public/build/assets/Page-CnQcAiRo.js | 1 + ...-P5qrDAqd.js => PageItemBlock-DKZuBWpb.js} | 2 +- ...-DxSH7bRS.js => PageItemBlock-DlR0YBkQ.js} | 2 +- .../assets/PageNavigateLinks-C0dfJuyt.js | 2 + .../assets/PageNavigateLinks-ozhWEDba.js | 2 - ...imx.js => PageSubSectionLinks-DpXoUZcw.js} | 2 +- ...Db8g88-o.js => PageTabBuilder-81M-YOIr.js} | 2 +- ...BweYyzkY.js => ParagraphBlock-64oJsNrU.js} | 2 +- ...TcRp5rBW.js => ParagraphBlock-CVHElNFU.js} | 2 +- ...ck-BPXTqyzY.js => PersonBlock-C8nng2Wc.js} | 2 +- ...ck-BWxiIbHj.js => PersonBlock-CDqITaXt.js} | 2 +- ...ock-vU16TdOR.js => PhoneBlock-CgCKsfpu.js} | 2 +- public/build/assets/PostBuilder-8yTdSitL.js | 2 - public/build/assets/PostBuilder-BikqjS2v.js | 2 + ...ry-ChF90UKK.js => PostGallery-BpzMY_Fm.js} | 2 +- ...-DLaOmkZe.js => PostItemBlock-CA1v0gBs.js} | 2 +- ...-DjUyQeQX.js => PostItemBlock-DOT_tjSl.js} | 2 +- ...-DOMsEq5I.js => PostListBlock-BoZg3Tch.js} | 2 +- ...-CLMN_FUG.js => PostListBlock-D9w_JFXd.js} | 2 +- public/build/assets/Schedule-BeknB8R0.js | 1 - public/build/assets/Schedule-Bx122NiE.js | 1 + public/build/assets/SearchModal-BTKERLZv.js | 4 - public/build/assets/SearchModal-CGHtjMJb.js | 4 + ...-DGTpDLJ5.css => SearchModal-wAgUXteK.css} | 2 +- public/build/assets/Show-B1GLGfeB.js | 1 - public/build/assets/Show-BDS7TnJ5.js | 1 + public/build/assets/Show-BGvhMcN5.js | 1 - public/build/assets/Show-BJbqHd-F.js | 1 + public/build/assets/Show-BN_41Dfp.js | 1 - public/build/assets/Show-BfFz4Gm2.js | 1 - .../{Show-B6JabMCR.css => Show-BpYWyhnc.css} | 2 +- public/build/assets/Show-ByF_7mf4.js | 1 + public/build/assets/Show-ByyZkLGe.js | 1 - public/build/assets/Show-C7p1VE5i.js | 1 - public/build/assets/Show-C8KVb6SW.js | 1 + public/build/assets/Show-CAnvqw2b.js | 1 + public/build/assets/Show-CAxnfql9.js | 1 - public/build/assets/Show-CEWntQ5V.js | 1 + public/build/assets/Show-CkLn5Abe.js | 1 + public/build/assets/Show-Co9EvWK-.js | 1 + public/build/assets/Show-CpVjy4uD.js | 1 + public/build/assets/Show-Cq330jeP.js | 1 - public/build/assets/Show-Cxk6F0So.js | 1 - public/build/assets/Show-D38DhxgT.js | 1 + public/build/assets/Show-D7PqQLop.js | 1 - public/build/assets/Show-DEDrO1SA.js | 1 - public/build/assets/Show-DXVld7hc.js | 1 + public/build/assets/Show-VYWMpM5v.js | 1 - public/build/assets/Show-Xtf78RV2.js | 1 + public/build/assets/Show-hL0_jDsl.js | 1 + public/build/assets/Show-i1upLwO9.js | 1 - public/build/assets/Show-wG8wc5mx.js | 1 - public/build/assets/Show-xxmuPJW7.js | 1 + ...-3dBh.js => SingleChoiceBlock-DlS4AC1v.js} | 2 +- ...s4x3JAu.js => SortingByFilter-DAe1p4QU.js} | 2 +- ...k-CW2_9ZUx.js => StepperBlock-BCwblwiR.js} | 2 +- ...k-CqZnPjD2.js => StepperBlock-Cnp91vN2.js} | 2 +- ...Block-wRCyRsja.js => TabBlock-B9zDboj8.js} | 2 +- ...Block-07Ed0A6n.js => TabBlock-BtQJWrfw.js} | 2 +- ...-DkHjNvJF.js => TextAreaBlock-CkH9Ctih.js} | 2 +- ...lock-C6erClxS.js => TextBlock-Bs0eACeo.js} | 2 +- ...ock-C-U8CRac.js => VideoBlock-Cu2U-9k8.js} | 2 +- ...ock-e5Qfw7Jw.js => VideoBlock-NJG_Gd3K.js} | 2 +- .../WithoutPageLinksTemplate-B33nuqj-.js | 1 - .../WithoutPageLinksTemplate-B_jSJ_Ko.js | 1 + .../{app-DChzJ_Ea.css => app-BuUCQLTR.css} | 2 +- .../{app-CBssobj-.js => app-lWrE2aWG.js} | 48 +- .../assets/{v3-DnjJww8i.js => v3-CDJmn87G.js} | 4 +- public/build/manifest.json | 888 +++++++++--------- public/hot | 1 - .../AcademicJournalsBackButton.vue | 48 + .../AcademicJournalsBuilder.vue | 52 + .../AcademicJournalsTitle.vue | 43 + .../AcademicJournals/Blocks/FileBlock.vue | 64 ++ .../AcademicJournals/Blocks/HeadingBlock.vue | 31 + .../AcademicJournals/Blocks/ImageBlock.vue | 50 + .../AcademicJournals/Blocks/PageItemBlock.vue | 105 +++ .../Blocks/ParagraphBlock.vue | 122 +++ .../AcademicJournals/Blocks/PersonBlock.vue | 68 ++ .../AcademicJournals/Blocks/PostItemBlock.vue | 105 +++ .../AcademicJournals/Blocks/PostListBlock.vue | 149 +++ .../AcademicJournals/Blocks/StepperBlock.vue | 83 ++ .../AcademicJournals/Blocks/TabBlock.vue | 67 ++ .../AcademicJournals/Blocks/VideoBlock.vue | 45 + .../Badges/CategoryBadge.vue | 57 ++ .../Badges/FormBadge.vue | 59 ++ .../Blocks/FileBlock.vue | 64 ++ .../Blocks/HeadingBlock.vue | 31 + .../Blocks/ImageBlock.vue | 50 + .../Blocks/PageItemBlock.vue | 105 +++ .../Blocks/ParagraphBlock.vue | 122 +++ .../Blocks/PersonBlock.vue | 68 ++ .../Blocks/PostItemBlock.vue | 105 +++ .../Blocks/PostListBlock.vue | 149 +++ .../Blocks/StepperBlock.vue | 83 ++ .../Blocks/TabBlock.vue | 67 ++ .../Blocks/VideoBlock.vue | 45 + .../ClientAdditionalProgramFilter.vue | 105 +++ .../Filters/BudgetFilter.vue | 86 ++ .../Filters/CategoryFilter.vue | 87 ++ .../Filters/FormEducationalFilter.vue | 86 ++ .../Filters/LevelEduFilter.vue | 73 ++ .../Filters/SortingByFilter.vue | 72 ++ .../ProgramBackButton.vue | 48 + .../ProgramBadge.vue | 46 + .../ProgramBuilder.vue | 51 + .../ProgramTitle.vue | 43 + .../BuilderUi/Divisions/Blocks/FileBlock.vue | 64 ++ .../Divisions/Blocks/HeadingBlock.vue | 31 + .../BuilderUi/Divisions/Blocks/ImageBlock.vue | 50 + .../Divisions/Blocks/PageItemBlock.vue | 105 +++ .../Divisions/Blocks/ParagraphBlock.vue | 122 +++ .../Divisions/Blocks/PersonBlock.vue | 68 ++ .../Divisions/Blocks/PostItemBlock.vue | 105 +++ .../Divisions/Blocks/PostListBlock.vue | 149 +++ .../Divisions/Blocks/StepperBlock.vue | 83 ++ .../BuilderUi/Divisions/Blocks/TabBlock.vue | 67 ++ .../BuilderUi/Divisions/Blocks/VideoBlock.vue | 45 + .../Divisions/DivisionBackButton.vue | 48 + .../BuilderUi/Divisions/DivisionBuilder.vue | 52 + .../Divisions/DivisionTabBuilder.vue | 56 ++ .../BuilderUi/Divisions/DivisionTitle.vue | 43 + .../BuilderUi/Pages/Blocks/FormBlock.vue | 23 +- .../AdditionalEducationalChoiceBlock.vue | 92 ++ .../FormBlocks/EducationalChoiceBlock.vue | 92 ++ .../BuilderUi/Pages/FormBlocks/TextBlock.vue | 2 +- .../BuilderUi/Pages/FormBuilder.vue | 10 +- .../BuilderUi/Pages/PageBreadcrumbs.vue | 90 +- .../BuilderUi/Pages/PageNavigateLinks.vue | 2 +- .../BuilderUi/Pages/PageSubSectionLinks.vue | 3 +- .../BuilderUi/Posts/PostBuilder.vue | 1 + .../Programs/ClientProgramFilter.vue | 124 +++ resources/js/Navbars/DesktopNavBar.vue | 185 ++++ resources/js/Navbars/MainPageNavbar.vue | 119 +-- resources/js/Navbars/MobileNavbar.vue | 13 +- .../Pages/Client/AcademicJournals/Index.vue | 2 +- .../js/Pages/Client/AcademicJournals/Show.vue | 91 +- .../Client/Additional-educations/Index.vue | 62 +- .../Client/Additional-educations/Show.vue | 147 +-- .../Client/BasePageTemplate/BaseTemplate.vue | 1 - .../js/Pages/Client/Departments/Show.vue | 13 +- resources/js/Pages/Client/Divisions/Show.vue | 133 +-- resources/js/Pages/Client/Faculties/Show.vue | 13 + resources/js/Pages/Client/Persons/Show.vue | 2 +- resources/js/Pages/Client/Posts/Show.vue | 5 - resources/js/Pages/Client/Programs/Index.vue | 2 +- resources/js/Pages/Client/Programs/Show.vue | 2 + resources/js/Pages/Page.vue | 2 +- resources/js/mixins/LinksReform.js | 2 +- resources/views/app.blade.php | 2 - routes/api.php | 9 +- routes/web.php | 21 +- 258 files changed, 6548 insertions(+), 1777 deletions(-) create mode 100644 app/Http/Controllers/ClientWidgetAdditionalEducationalProgramController.php create mode 100644 app/Http/Controllers/ClientWidgetEducationalProgramController.php create mode 100644 app/Http/Controllers/VkPostController.php create mode 100644 app/Http/Resources/AdditionalEducationCategoryPreviewResource.php create mode 100644 app/Http/Resources/AdditionalEducationSelectResource.php create mode 100644 app/Http/Resources/ClientBreadcrumbPage.php create mode 100644 app/Http/Resources/ClientBreadcrumbSection.php create mode 100644 app/Http/Resources/ClientBreadcrumbSubSection.php create mode 100644 app/Http/Resources/EducationProgramSelectResource.php create mode 100644 app/Services/VK/Album/VkAlbumService.php create mode 100644 app/Services/VK/VkService.php create mode 100644 app/Services/VK/Wall/VkWallService.php rename public/build/assets/{AdminIndexHeader-C9rCJkLR.js => AdminIndexHeader-BLYLBYAX.js} (81%) rename public/build/assets/{AdminIndexHeaderTitle-CW1E5hbW.js => AdminIndexHeaderTitle-BXYEMOTq.js} (97%) delete mode 100644 public/build/assets/BaseTemplate-Ck405erW.js create mode 100644 public/build/assets/BaseTemplate-D1ScVXMq.js rename public/build/assets/{ClientEventFilter-DT5MRLcl.js => ClientEventFilter-BAYtyBIS.js} (96%) rename public/build/assets/{ClientEventSelectDate-DSCwmyIV.js => ClientEventSelectDate-UncMoO_R.js} (91%) delete mode 100644 public/build/assets/ClientFooterDown-B1P9jP1W.js rename public/build/assets/{ClientImageSlider-CvtLuRx_.js => ClientImageSlider-ZnyNtD9R.js} (93%) rename public/build/assets/{ClientPost-DIJzEVBF.js => ClientPost-HujX0ISt.js} (97%) rename public/build/assets/{ClientPostSearch-B5aUVN-Q.js => ClientPostSearch-DByct-eL.js} (97%) rename public/build/assets/{ClientProgramFilter-B4xNQg9z.js => ClientProgramFilter-C-_lryip.js} (98%) rename public/build/assets/{ClientScrollTimeline-CnUXvyjc.js => ClientScrollTimeline-9x6SH9Qu.js} (76%) rename public/build/assets/{CreateSchedule-SWFrYdlt.js => CreateSchedule-CmquFr42.js} (99%) rename public/build/assets/{DateBlock-B5Hbafqw.js => DateBlock-BgabaFZh.js} (96%) rename public/build/assets/{EmailBlock-Cbj5wFPK.js => EmailBlock-BS6HPJA5.js} (96%) delete mode 100644 public/build/assets/Error-BYb2LDW7.css create mode 100644 public/build/assets/Error-CiAOcUz3.css create mode 100644 public/build/assets/Error-Di_6EIG6.js delete mode 100644 public/build/assets/Error-ivgJWRIe.js rename public/build/assets/{EventBadgeBuilder-BAiU6h4y.js => EventBadgeBuilder-vc1rfcET.js} (93%) rename public/build/assets/{EventBuilder-D5WodeWz.js => EventBuilder-Baz4pEov.js} (98%) rename public/build/assets/{FacultyBuilder-BvJuCT72.js => FacultyBuilder-CUBiLxcU.js} (98%) rename public/build/assets/{FileBlock-CW3mTqrc.js => FileBlock-CP4fXArx.js} (91%) rename public/build/assets/{FileBlock-Blx3yiDN.js => FileBlock-DP4RAJQp.js} (85%) rename public/build/assets/{FormBlock-BFIDbHeW.js => FormBlock-BVey85an.js} (86%) rename public/build/assets/{HeadingBlock-Cp3_jF4x.js => HeadingBlock-C6Vf5Cih.js} (74%) rename public/build/assets/{HeadingBlock-B6vgs5RT.js => HeadingBlock-iaPv_EZx.js} (75%) rename public/build/assets/{ImageBlock-DXMXSgRL.js => ImageBlock-BPZJdxPA.js} (79%) rename public/build/assets/{ImageBlock-DYPERL6F.js => ImageBlock-Bz4NDWK1.js} (79%) delete mode 100644 public/build/assets/Index-1LZENQqm.js create mode 100644 public/build/assets/Index-5U2ab9wb.js create mode 100644 public/build/assets/Index-BBwGUJwz.js create mode 100644 public/build/assets/Index-Bc3nPRSA.js delete mode 100644 public/build/assets/Index-BgLUU4Lv.js delete mode 100644 public/build/assets/Index-BoTKbR4i.js delete mode 100644 public/build/assets/Index-Bqt5Cqha.js delete mode 100644 public/build/assets/Index-Bt3p4TYn.js delete mode 100644 public/build/assets/Index-CEZaH6MJ.js create mode 100644 public/build/assets/Index-Ce32AtE_.js delete mode 100644 public/build/assets/Index-CoDoJ7xk.js create mode 100644 public/build/assets/Index-CxSKFcq0.js create mode 100644 public/build/assets/Index-D3WMQLwm.js create mode 100644 public/build/assets/Index-DbP0fdPj.js delete mode 100644 public/build/assets/Index-Dcp5JBBk.js delete mode 100644 public/build/assets/Index-DiTvP9AK.js create mode 100644 public/build/assets/Index-DrBHgd9y.js delete mode 100644 public/build/assets/Index-PPUxqHy0.js delete mode 100644 public/build/assets/Index-PaoQq1iX.js create mode 100644 public/build/assets/Index-Vq2d78iS.js create mode 100644 public/build/assets/Index-c1ZyGYqw.js create mode 100644 public/build/assets/Index-c__ouhs3.js create mode 100644 public/build/assets/Main-CbSGhlrp.js delete mode 100644 public/build/assets/Main-DieNWOPM.js rename public/build/assets/{MainNavbar-DYfeRcdr.js => MainNavbar-Ox7xJRDB.js} (94%) create mode 100644 public/build/assets/MainPageNavbar-BsdceJwT.js delete mode 100644 public/build/assets/MainPageNavbar-CC0e5dc9.css delete mode 100644 public/build/assets/MainPageNavbar-Cmz730h9.js create mode 100644 public/build/assets/MainPageNavbar-TDbjOSJh.css rename public/build/assets/{MultipleChoiceBlock-CrWoZ9rQ.js => MultipleChoiceBlock-B8DiNy04.js} (89%) delete mode 100644 public/build/assets/Page-BDvp-A4B.js create mode 100644 public/build/assets/Page-CnQcAiRo.js rename public/build/assets/{PageItemBlock-P5qrDAqd.js => PageItemBlock-DKZuBWpb.js} (96%) rename public/build/assets/{PageItemBlock-DxSH7bRS.js => PageItemBlock-DlR0YBkQ.js} (96%) create mode 100644 public/build/assets/PageNavigateLinks-C0dfJuyt.js delete mode 100644 public/build/assets/PageNavigateLinks-ozhWEDba.js rename public/build/assets/{PageSubSectionLinks-BEy5aimx.js => PageSubSectionLinks-DpXoUZcw.js} (95%) rename public/build/assets/{PageTabBuilder-Db8g88-o.js => PageTabBuilder-81M-YOIr.js} (62%) rename public/build/assets/{ParagraphBlock-BweYyzkY.js => ParagraphBlock-64oJsNrU.js} (74%) rename public/build/assets/{ParagraphBlock-TcRp5rBW.js => ParagraphBlock-CVHElNFU.js} (74%) rename public/build/assets/{PersonBlock-BPXTqyzY.js => PersonBlock-C8nng2Wc.js} (85%) rename public/build/assets/{PersonBlock-BWxiIbHj.js => PersonBlock-CDqITaXt.js} (85%) rename public/build/assets/{PhoneBlock-vU16TdOR.js => PhoneBlock-CgCKsfpu.js} (96%) delete mode 100644 public/build/assets/PostBuilder-8yTdSitL.js create mode 100644 public/build/assets/PostBuilder-BikqjS2v.js rename public/build/assets/{PostGallery-ChF90UKK.js => PostGallery-BpzMY_Fm.js} (97%) rename public/build/assets/{PostItemBlock-DLaOmkZe.js => PostItemBlock-CA1v0gBs.js} (95%) rename public/build/assets/{PostItemBlock-DjUyQeQX.js => PostItemBlock-DOT_tjSl.js} (95%) rename public/build/assets/{PostListBlock-DOMsEq5I.js => PostListBlock-BoZg3Tch.js} (97%) rename public/build/assets/{PostListBlock-CLMN_FUG.js => PostListBlock-D9w_JFXd.js} (97%) delete mode 100644 public/build/assets/Schedule-BeknB8R0.js create mode 100644 public/build/assets/Schedule-Bx122NiE.js delete mode 100644 public/build/assets/SearchModal-BTKERLZv.js create mode 100644 public/build/assets/SearchModal-CGHtjMJb.js rename public/build/assets/{SearchModal-DGTpDLJ5.css => SearchModal-wAgUXteK.css} (83%) delete mode 100644 public/build/assets/Show-B1GLGfeB.js create mode 100644 public/build/assets/Show-BDS7TnJ5.js delete mode 100644 public/build/assets/Show-BGvhMcN5.js create mode 100644 public/build/assets/Show-BJbqHd-F.js delete mode 100644 public/build/assets/Show-BN_41Dfp.js delete mode 100644 public/build/assets/Show-BfFz4Gm2.js rename public/build/assets/{Show-B6JabMCR.css => Show-BpYWyhnc.css} (71%) create mode 100644 public/build/assets/Show-ByF_7mf4.js delete mode 100644 public/build/assets/Show-ByyZkLGe.js delete mode 100644 public/build/assets/Show-C7p1VE5i.js create mode 100644 public/build/assets/Show-C8KVb6SW.js create mode 100644 public/build/assets/Show-CAnvqw2b.js delete mode 100644 public/build/assets/Show-CAxnfql9.js create mode 100644 public/build/assets/Show-CEWntQ5V.js create mode 100644 public/build/assets/Show-CkLn5Abe.js create mode 100644 public/build/assets/Show-Co9EvWK-.js create mode 100644 public/build/assets/Show-CpVjy4uD.js delete mode 100644 public/build/assets/Show-Cq330jeP.js delete mode 100644 public/build/assets/Show-Cxk6F0So.js create mode 100644 public/build/assets/Show-D38DhxgT.js delete mode 100644 public/build/assets/Show-D7PqQLop.js delete mode 100644 public/build/assets/Show-DEDrO1SA.js create mode 100644 public/build/assets/Show-DXVld7hc.js delete mode 100644 public/build/assets/Show-VYWMpM5v.js create mode 100644 public/build/assets/Show-Xtf78RV2.js create mode 100644 public/build/assets/Show-hL0_jDsl.js delete mode 100644 public/build/assets/Show-i1upLwO9.js delete mode 100644 public/build/assets/Show-wG8wc5mx.js create mode 100644 public/build/assets/Show-xxmuPJW7.js rename public/build/assets/{SingleChoiceBlock-DJ3-3dBh.js => SingleChoiceBlock-DlS4AC1v.js} (89%) rename public/build/assets/{SortingByFilter-Ds4x3JAu.js => SortingByFilter-DAe1p4QU.js} (99%) rename public/build/assets/{StepperBlock-CW2_9ZUx.js => StepperBlock-BCwblwiR.js} (86%) rename public/build/assets/{StepperBlock-CqZnPjD2.js => StepperBlock-Cnp91vN2.js} (86%) rename public/build/assets/{TabBlock-wRCyRsja.js => TabBlock-B9zDboj8.js} (71%) rename public/build/assets/{TabBlock-07Ed0A6n.js => TabBlock-BtQJWrfw.js} (71%) rename public/build/assets/{TextAreaBlock-DkHjNvJF.js => TextAreaBlock-CkH9Ctih.js} (96%) rename public/build/assets/{TextBlock-C6erClxS.js => TextBlock-Bs0eACeo.js} (96%) rename public/build/assets/{VideoBlock-C-U8CRac.js => VideoBlock-Cu2U-9k8.js} (84%) rename public/build/assets/{VideoBlock-e5Qfw7Jw.js => VideoBlock-NJG_Gd3K.js} (84%) delete mode 100644 public/build/assets/WithoutPageLinksTemplate-B33nuqj-.js create mode 100644 public/build/assets/WithoutPageLinksTemplate-B_jSJ_Ko.js rename public/build/assets/{app-DChzJ_Ea.css => app-BuUCQLTR.css} (95%) rename public/build/assets/{app-CBssobj-.js => app-lWrE2aWG.js} (56%) rename public/build/assets/{v3-DnjJww8i.js => v3-CDJmn87G.js} (99%) delete mode 100644 public/hot create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/AcademicJournalsBackButton.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/AcademicJournalsBuilder.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/AcademicJournalsTitle.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/FileBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/HeadingBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/ImageBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/PageItemBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/ParagraphBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/PersonBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/PostItemBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/PostListBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/StepperBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/TabBlock.vue create mode 100644 resources/js/Components/BuilderUi/AcademicJournals/Blocks/VideoBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Badges/CategoryBadge.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Badges/FormBadge.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/FileBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/HeadingBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/ImageBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/PageItemBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/ParagraphBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/PersonBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/PostItemBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/PostListBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/StepperBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/TabBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Blocks/VideoBlock.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/ClientAdditionalProgramFilter.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Filters/BudgetFilter.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Filters/CategoryFilter.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Filters/FormEducationalFilter.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Filters/LevelEduFilter.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/Filters/SortingByFilter.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/ProgramBackButton.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/ProgramBadge.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/ProgramBuilder.vue create mode 100644 resources/js/Components/BuilderUi/AdditionalEducationPrograms/ProgramTitle.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/FileBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/HeadingBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/ImageBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/PageItemBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/ParagraphBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/PersonBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/PostItemBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/PostListBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/StepperBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/TabBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/Blocks/VideoBlock.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/DivisionBackButton.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/DivisionBuilder.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/DivisionTabBuilder.vue create mode 100644 resources/js/Components/BuilderUi/Divisions/DivisionTitle.vue create mode 100644 resources/js/Components/BuilderUi/Pages/FormBlocks/AdditionalEducationalChoiceBlock.vue create mode 100644 resources/js/Components/BuilderUi/Pages/FormBlocks/EducationalChoiceBlock.vue create mode 100644 resources/js/Components/BuilderUi/Programs/ClientProgramFilter.vue create mode 100644 resources/js/Navbars/DesktopNavBar.vue diff --git a/.idea/ntspi-new.iml b/.idea/ntspi-new.iml index c85e8b2..be15b27 100644 --- a/.idea/ntspi-new.iml +++ b/.idea/ntspi-new.iml @@ -5,6 +5,7 @@ + @@ -173,6 +174,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index 051b096..787e3d2 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -184,6 +184,7 @@ + diff --git a/.idea/phpspec.xml b/.idea/phpspec.xml index 92a8191..515e7b5 100644 --- a/.idea/phpspec.xml +++ b/.idea/phpspec.xml @@ -62,6 +62,9 @@ + + \ No newline at end of file diff --git a/app/Filament/Components/Forms/CustomFormForm.php b/app/Filament/Components/Forms/CustomFormForm.php index aec918b..2a2d92a 100644 --- a/app/Filament/Components/Forms/CustomFormForm.php +++ b/app/Filament/Components/Forms/CustomFormForm.php @@ -46,7 +46,7 @@ class CustomFormForm TextInput::make('title')->label('Заголовок')->required() ->live(onBlur: true) ->afterStateUpdated(function (string $operation, string|null $state, Forms\Set $set) { - $set('form_id', Str::slug($state)); + $set('form_id', Str::slug($state) . Carbon::now()->timestamp); }), TextInput::make('form_id')->label('ID формы')->unique(ignoreRecord: true)->required(), ]), @@ -77,7 +77,8 @@ class CustomFormForm ]), Builder\Block::make('answers')->schema([]), ])->required(), - ])->collapsed(), + ]) + ->collapsed(), ]), ]), ]) diff --git a/app/Filament/Components/Forms/ItemForm/CustomForm/FormBuilderItem.php b/app/Filament/Components/Forms/ItemForm/CustomForm/FormBuilderItem.php index 9ad4a64..6ce0d15 100644 --- a/app/Filament/Components/Forms/ItemForm/CustomForm/FormBuilderItem.php +++ b/app/Filament/Components/Forms/ItemForm/CustomForm/FormBuilderItem.php @@ -197,9 +197,51 @@ class FormBuilderItem RuleRequiredComponent::getComponent(), ]), ]), + Builder\Block::make('additional_education_choice') + ->label('Выбрать дополнительное образование') + ->schema([ + TextInput::make('title_field') + ->label('Заголовок поля') + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string $state, Forms\Set $set) { + $set('name_field', Str::slug($state) . Carbon::now()->timestamp ); + }), + Forms\Components\Hidden::make('name_field')->required(), + Forms\Components\Textarea::make('description')->label('Описание поля (опционально)'), + + Section::make('Настройка') + ->statePath('rules') + ->schema([ +// RuleRequiredComponent::getComponent(), +// RuleLengthLimitComponent::getComponent(), + ]), + ]) + ->maxItems(1), + Builder\Block::make('educational_program_choice') + ->label('Выбрать Образовательную программу') + ->schema([ + TextInput::make('title_field') + ->label('Заголовок поля') + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string $state, Forms\Set $set) { + $set('name_field', Str::slug($state) . Carbon::now()->timestamp ); + }), + Forms\Components\Hidden::make('name_field')->required(), + Forms\Components\Textarea::make('description')->label('Описание поля (опционально)'), + + Section::make('Настройка') + ->statePath('rules') + ->schema([ + RuleRequiredComponent::getComponent(), + RuleLengthLimitComponent::getComponent(), + ]), + ]) + ->maxItems(1), ]) ->label('') ->addActionLabel('Добавить поле') + ->blockPickerColumns(3) + ->blockPickerWidth('2xl') ->collapsed(); } diff --git a/app/Filament/Components/Forms/PostForm.php b/app/Filament/Components/Forms/PostForm.php index c8f72cd..9bb0327 100644 --- a/app/Filament/Components/Forms/PostForm.php +++ b/app/Filament/Components/Forms/PostForm.php @@ -35,7 +35,11 @@ class PostForm private static function findSeoActive(array $data) : bool { $bool = false; + foreach ($data as $item) { + if ($item['type'] !== 'paragraph') { + continue; + } if ($item['data']['seo_active'] === true) { $bool = true; break; @@ -92,6 +96,7 @@ class PostForm ->schema([ Toggle::make('seo_active')->label('Использовать блок как seo') ->live(onBlur: true) + ->required() ->disabled(function ($state, Forms\Get $get) { $data = $get('../../'); return self::findSeoActive($data) && !$state; @@ -112,15 +117,21 @@ class PostForm ]) ->label(''), ])->live(onBlur: true), - Builder\Block::make('files')->label('Файлы') + Builder\Block::make('files') ->schema([ Forms\Components\Repeater::make('file')->schema([ + Hidden::make('expansion')->required(), + Hidden::make('size')->required(), TextInput::make('title') ->required() ->maxLength(255) ->autofocus(), FileUpload::make('path') ->required() + ->getUploadedFileNameForStorageUsing( + fn (TemporaryUploadedFile $file): string => + str(Str::slug(pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME) . '-' . Carbon::now()->timestamp ) . '.' . $file->getClientOriginalExtension()) + ) ->acceptedFileTypes([ 'application/pdf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', @@ -132,10 +143,14 @@ class PostForm ->disk('public') ->directory('files') ->downloadable() + ->afterStateUpdated(function ($set, $state) { + $set('expansion', $state?->getClientOriginalExtension()); + $set('size', ByteConverter::bytesToHuman($state?->getSize())); + }) ->visibility('public') ]), ]), - Builder\Block::make('person')->label('Персона') + Builder\Block::make('person') ->schema([ TextInput::make('name') ->label('Имя') @@ -158,7 +173,7 @@ class PostForm ]), ])->minItems(1), ]), - Builder\Block::make('stepper')->label('Этапы') + Builder\Block::make('stepper') ->schema([ TextInput::make('step_name') ->label('Название шага') @@ -167,18 +182,11 @@ class PostForm Forms\Components\Repeater::make('steps')->schema([ TextInput::make('title') ->required() - ->live() ->maxLength(255)->columnSpanFull(), RichEditor::make('content')->required(), - ]) - ->itemLabel(fn (array $state): ?string => $state['title'] ?? null) - ->minItems(1) - ->collapsible() - ->collapsed() - - + ])->minItems(1), ]), - Builder\Block::make('tabs')->label('Вкладки') + Builder\Block::make('tabs') ->schema([ Forms\Components\Repeater::make('tab')->schema([ TextInput::make('title') @@ -344,24 +352,7 @@ class PostForm ->addActionLabel('Добавить новый блок'), ])->minItems(1), ]), - Builder\Block::make('images')->label('Слайдер изображений') - ->schema([ - FileUpload::make('url') - ->label('Изображение(-я)') - ->image() - ->multiple() - ->reorderable() - ->maxFiles(5) - ->disk('public') - - ->directory('images') - ->imageEditor() - ->required(), - TextInput::make('alt') - ->label('Описание') - ->placeholder('Необязяательно') - ]), - Builder\Block::make('image')->label('Изображение') + Builder\Block::make('images') ->schema([ FileUpload::make('url') ->label('Изображение(-я)') @@ -376,8 +367,24 @@ class PostForm TextInput::make('alt') ->label('Описание') ->placeholder('Необязяательно') - ]), - Builder\Block::make('video')->label('Видео') + ])->label('Слайдер изображений'), + Builder\Block::make('image') + ->schema([ + FileUpload::make('url') + ->label('Изображение(-я)') + ->image() + ->multiple() + ->reorderable() + ->maxFiles(5) + ->disk('public') + ->directory('images') + ->imageEditor() + ->required(), + TextInput::make('alt') + ->label('Описание') + ->placeholder('Необязяательно') + ])->label('Изображение'), + Builder\Block::make('video') ->schema([ TextInput::make('mime')->readOnly(), TextInput::make('title') @@ -402,7 +409,7 @@ class PostForm ->directory('videos') ->afterStateUpdated(fn (callable $set, $state) => $set('mime', $state?->getMimeType())), ]), - Builder\Block::make('postsList')->label('Список новостей') + Builder\Block::make('postsList') ->schema([ Forms\Components\Grid::make(2)->schema([ TextInput::make('count') @@ -411,21 +418,28 @@ class PostForm Select::make('category') ->options(Category::all()->pluck('title', 'id')) ]), - ]), - Builder\Block::make('postItem')->label('Новость') + ])->label('Список новостей'), + Builder\Block::make('postItem') ->schema([ Select::make('post') ->options(Post::query()->where('status', PostStatus::PUBLISHED)->pluck('title', 'id')) ->searchable() ->required(), - ]), - Builder\Block::make('pageItem')->label('Страница') + ])->label('Новость'), + Builder\Block::make('pageItem') ->schema([ Select::make('page') ->options(Page::query()->where('title', '!=' , null)->where('is_visible', true)->pluck('title', 'id')) ->searchable() ->required(), - ]), + ])->label('Страница'), + Builder\Block::make('customForm') + ->schema([ + Select::make('form') + ->options(CustomForm::query()->where('status', CustomFormStatus::PUBLISHED)->pluck('title', 'form_id')) + ->searchable() + ->required(), + ])->label('Форма'), ]) ->collapsed() ->blockNumbers(false) diff --git a/app/Filament/Resources/AdditionalEducationCategoryResource.php b/app/Filament/Resources/AdditionalEducationCategoryResource.php index 61683fa..9064ec1 100644 --- a/app/Filament/Resources/AdditionalEducationCategoryResource.php +++ b/app/Filament/Resources/AdditionalEducationCategoryResource.php @@ -7,12 +7,14 @@ use App\Filament\Resources\AdditionalEducationCategoryResource\RelationManagers; use App\Models\AdditionalEducationCategory; use App\Models\DirectionAdditionalEducation; use Filament\Forms; +use Filament\Forms\Components\TextInput; use Filament\Forms\Form; use Filament\Resources\Resource; use Filament\Tables; use Filament\Tables\Table; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; +use Illuminate\Support\Str; class AdditionalEducationCategoryResource extends Resource { @@ -31,7 +33,13 @@ class AdditionalEducationCategoryResource extends Resource return $form ->schema([ Forms\Components\Grid::make('2')->schema([ - Forms\Components\TextInput::make('title')->required(), + TextInput::make('title')->label('Заголовок')->required() + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string|null $state, Forms\Set $set) { + $set('slug', Str::slug($state)); + $set('seo.title', $state); + }), + TextInput::make('slug')->label('Slug')->unique(ignoreRecord: true)->readOnly()->required(), Forms\Components\Select::make('dir_addit_educat_id')->required() ->options(DirectionAdditionalEducation::where('is_active', true)->pluck('title', 'id')) ]), diff --git a/app/Filament/Resources/AdditionalEducationResource.php b/app/Filament/Resources/AdditionalEducationResource.php index 69996c0..8de4a40 100644 --- a/app/Filament/Resources/AdditionalEducationResource.php +++ b/app/Filament/Resources/AdditionalEducationResource.php @@ -2,14 +2,17 @@ namespace App\Filament\Resources; +use App\Enums\CustomFormStatus; use App\Enums\FormEducation; use App\Enums\LevelEducational; use App\Enums\PostStatus; use App\Filament\Resources\AdditionalEducationResource\Pages; use App\Filament\Resources\AdditionalEducationResource\RelationManagers; +use App\Helpers\ByteConverter; use App\Models\AdditionalEducation; use App\Models\AdditionalEducationCategory; use App\Models\Category; +use App\Models\CustomForm; use App\Models\DirectionAdditionalEducation; use App\Models\Page; use App\Models\Post; @@ -23,12 +26,15 @@ use Filament\Forms\Components\Select; use Filament\Forms\Components\SpatieTagsInput; use Filament\Forms\Components\Tabs; use Filament\Forms\Components\TextInput; +use Filament\Forms\Components\Toggle; use Filament\Forms\Form; use Filament\Resources\Resource; use Filament\Tables; use Filament\Tables\Table; use Illuminate\Database\Eloquent\SoftDeletingScope; +use Illuminate\Support\Carbon; use Illuminate\Support\Str; +use Livewire\Features\SupportFileUploads\TemporaryUploadedFile; use Mohamedsabil83\FilamentFormsTinyeditor\Components\TinyEditor; class AdditionalEducationResource extends Resource @@ -46,155 +52,256 @@ class AdditionalEducationResource extends Resource { return $form ->schema([ - Tabs::make('Tabs') - ->tabs([ - Tabs\Tab::make('Основная информация') - ->schema([ - Forms\Components\Grid::make('2')->schema([ - Forms\Components\TextInput::make('title')->required(), - Forms\Components\Select::make('category_id')->required() - ->options(AdditionalEducationCategory::where('is_active', true)->pluck('title', 'id')) + Section::make()->schema([ + Tabs::make('Tabs') + ->tabs([ + Tabs\Tab::make('Основная информация') + ->schema([ + Forms\Components\Grid::make('2')->schema([ + TextInput::make('title')->label('Заголовок')->required() + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string|null $state, Forms\Set $set) { + $set('slug', Str::slug($state)); + }), + TextInput::make('slug')->label('Slug')->unique(ignoreRecord: true)->readOnly()->required(), + + Forms\Components\Select::make('category_id')->required() + ->options(AdditionalEducationCategory::where('is_active', true)->pluck('title', 'id')) + ]), + Forms\Components\TextInput::make('target_group')->required()->columnSpanFull(), + Forms\Components\TextInput::make('qualification')->required()->columnSpanFull(), + Forms\Components\Grid::make('2')->schema([ + Forms\Components\TextInput::make('price')->required()->integer(), + Forms\Components\TextInput::make('learning_time')->required()->integer(), + ]), + Forms\Components\Select::make('form_education')->required()->options(FormEducation::class), + Forms\Components\Toggle::make('is_active')->columnSpanFull()->inline(false)->default(true), ]), - Forms\Components\TextInput::make('target_group')->required()->columnSpanFull(), - Forms\Components\TextInput::make('qualification')->required()->columnSpanFull(), - Forms\Components\Grid::make('2')->schema([ - Forms\Components\TextInput::make('price')->required()->integer(), - Forms\Components\TextInput::make('learning_time')->required()->integer(), - ]), - Forms\Components\Select::make('form_education')->required()->options(FormEducation::class), - Forms\Components\Toggle::make('is_active')->columnSpanFull()->inline(false)->default(true), - ]), - Tabs\Tab::make('Контент') - ->schema([ - \Filament\Forms\Components\Builder::make('content')->label('')->blocks([ - Builder\Block::make('heading')->label('Заголовок') - ->schema([ - TextInput::make('id')->hidden()->integer()->default(rand(2335235,324634264263426)), - TextInput::make('content') - ->label('') - ->live(onBlur: true) - ->afterStateUpdated(function (string $operation, string $state, Forms\Set $set, $get) { - }), - ]), - Builder\Block::make('paragraph')->label('Текст') - ->schema([ - RichEditor::make('content') - ->toolbarButtons([ - 'blockquote', - 'bold', - 'bulletList', - 'italic', - 'link', - 'orderedList', - 'redo', - 'strike', - 'underline', - 'undo', - ]) - ->label(''), - ]), - Builder\Block::make('files')->label('Файлы') - ->schema([ - Forms\Components\Repeater::make('file')->schema([ - TextInput::make('title') - ->required() - ->maxLength(255) - ->autofocus(), - FileUpload::make('path') - ->required() - ->acceptedFileTypes([ - 'application/pdf', - 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'application/zip' - ]) - ->maxSize(512000) - ->disk('public') - ->directory('files') - ->downloadable() - ->visibility('public') + Tabs\Tab::make('Контент') + ->schema([ + Builder::make('content')->label('')->blocks([ + Builder\Block::make('heading')->label('Заголовок') + ->schema([ + TextInput::make('id')->hidden()->integer()->default(rand(2335235,324634264263426)), + TextInput::make('content') + ->label('') + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string $state, Forms\Set $set, $get) { + }), ]), - ]), - Builder\Block::make('person')->label('Персона') - ->schema([ - TextInput::make('name') - ->label('Имя') - ->required() - ->maxLength(255), - FileUpload::make('photo') - ->label('Фотография') - ->image() - ->disk('public') - ->directory('images') - ->imageEditor(), - Forms\Components\Repeater::make('info')->schema([ - Forms\Components\Grid::make(2)->schema([ - TextInput::make('column') + Builder\Block::make('paragraph') + ->schema([ + RichEditor::make('content') + ->toolbarButtons([ + 'blockquote', + 'bold', + 'bulletList', + 'italic', + 'link', + 'orderedList', + 'redo', + 'strike', + 'underline', + 'undo', + ]) + ->label(''), + ])->label('Текст'), + Builder\Block::make('files') + ->schema([ + Forms\Components\Repeater::make('file')->schema([ + Hidden::make('expansion')->required(), + Hidden::make('size')->required(), + TextInput::make('title') ->required() - ->maxLength(255), - TextInput::make('content') + ->maxLength(255) + ->autofocus(), + FileUpload::make('path') ->required() - ->maxLength(255), + ->getUploadedFileNameForStorageUsing( + fn (TemporaryUploadedFile $file): string => + str(Str::slug(pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME) . '-' . Carbon::now()->timestamp ) . '.' . $file->getClientOriginalExtension()) + ) + ->acceptedFileTypes([ + 'application/pdf', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'application/zip' + ]) + ->maxSize(512000) + ->disk('public') + ->directory('files') + ->downloadable() + ->afterStateUpdated(function ($set, $state) { + $set('expansion', $state?->getClientOriginalExtension()); + $set('size', ByteConverter::bytesToHuman($state?->getSize())); + }) + ->visibility('public') ]), - ])->minItems(1), - ]), - Builder\Block::make('stepper')->label('Этапы') - ->schema([ - TextInput::make('step_name') - ->label('Название шага') - ->required() - ->maxLength(255), - Forms\Components\Repeater::make('steps')->schema([ - TextInput::make('title') + ]), + Builder\Block::make('person') + ->schema([ + TextInput::make('name') + ->label('Имя') ->required() - ->live() - ->maxLength(255)->columnSpanFull(), - RichEditor::make('content')->required(), - ]) - ->itemLabel(fn (array $state): ?string => $state['title'] ?? null) - ->minItems(1) - ->collapsible() - ->collapsed() - - - ]), - Builder\Block::make('tabs')->label('Вкладки') - ->schema([ - Forms\Components\Repeater::make('tab')->schema([ - TextInput::make('title') + ->maxLength(255), + FileUpload::make('photo') + ->label('Фотография') + ->image() + ->disk('public') + ->directory('images') + ->imageEditor(), + Forms\Components\Repeater::make('info')->schema([ + Forms\Components\Grid::make(2)->schema([ + TextInput::make('column') + ->required() + ->maxLength(255), + TextInput::make('content') + ->required() + ->maxLength(255), + ]), + ])->minItems(1), + ]), + Builder\Block::make('stepper') + ->schema([ + TextInput::make('step_name') + ->label('Название шага') ->required() - ->maxLength(255)->columnSpanFull(), - \Filament\Forms\Components\Builder::make('content')->label('')->blocks([ - Builder\Block::make('heading')->label('Заголовок') - ->schema([ - TextInput::make('id')->hidden()->integer()->default(rand(2335235,324634264263426)), - TextInput::make('content') - ->label('') - ->live(onBlur: true) - ->afterStateUpdated(function (string $operation, string $state, Forms\Set $set, $get) { - }), - ]), - Builder\Block::make('paragraph') - ->schema([ - RichEditor::make('content') - ->toolbarButtons([ - 'blockquote', - 'bold', - 'bulletList', - 'italic', - 'link', - 'orderedList', - 'redo', - 'strike', - 'underline', - 'undo', - ]) - ->label(''), - ])->label('Текст'), - Builder\Block::make('files') - ->schema([ - Forms\Components\Repeater::make('file')->schema([ + ->maxLength(255), + Forms\Components\Repeater::make('steps')->schema([ + TextInput::make('title') + ->required() + ->maxLength(255)->columnSpanFull(), + RichEditor::make('content')->required(), + ])->minItems(1), + ]), + Builder\Block::make('tabs') + ->schema([ + Forms\Components\Repeater::make('tab')->schema([ + TextInput::make('title') + ->required() + ->maxLength(255)->columnSpanFull(), + \Filament\Forms\Components\Builder::make('content')->label('')->blocks([ + Builder\Block::make('heading')->label('Заголовок') + ->schema([ + TextInput::make('id')->hidden()->integer()->default(rand(2335235,324634264263426)), + TextInput::make('content') + ->label('') + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string $state, Forms\Set $set, $get) { + }), + ]), + Builder\Block::make('paragraph') + ->schema([ + RichEditor::make('content') + ->toolbarButtons([ + 'blockquote', + 'bold', + 'bulletList', + 'italic', + 'link', + 'orderedList', + 'redo', + 'strike', + 'underline', + 'undo', + ]) + ->label(''), + ])->label('Текст'), + Builder\Block::make('files') + ->schema([ + Forms\Components\Repeater::make('file')->schema([ + TextInput::make('title') + ->required() + ->maxLength(255) + ->autofocus(), + FileUpload::make('path') + ->required() + ->acceptedFileTypes([ + 'application/pdf', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'application/zip' + ]) + ->maxSize(512000) + ->disk('public') + ->directory('files') + ->downloadable() + ->visibility('public') + ]), + ]), + Builder\Block::make('person') + ->schema([ + TextInput::make('name') + ->label('Имя') + ->required() + ->maxLength(255), + FileUpload::make('photo') + ->label('Фотография') + ->image() + ->disk('public') + ->directory('images') + ->imageEditor(), + Forms\Components\Repeater::make('info')->schema([ + Forms\Components\Grid::make(2)->schema([ + TextInput::make('column') + ->required() + ->maxLength(255), + TextInput::make('content') + ->required() + ->maxLength(255), + ]), + ])->minItems(1), + ]), + Builder\Block::make('stepper') + ->schema([ + TextInput::make('step_name') + ->label('Название шага') + ->required() + ->maxLength(255), + Forms\Components\Repeater::make('steps')->schema([ + TextInput::make('title') + ->required() + ->maxLength(255)->columnSpanFull(), + RichEditor::make('content')->required(), + ])->minItems(1), + ]), + Builder\Block::make('images') + ->schema([ + FileUpload::make('url') + ->label('Изображение(-я)') + ->image() + ->multiple() + ->reorderable() + ->maxFiles(5) + ->disk('public') + ->directory('images') + ->imageEditor() + ->required(), + TextInput::make('alt') + ->label('Описание') + ->placeholder('Необязяательно') + ])->label('Слайдер изображений'), + Builder\Block::make('image') + ->schema([ + FileUpload::make('url') + ->label('Изображение(-я)') + ->image() + ->multiple() + ->reorderable() + ->maxFiles(5) + ->disk('public') + ->directory('images') + ->imageEditor() + ->required(), + TextInput::make('alt') + ->label('Описание') + ->placeholder('Необязяательно') + ])->label('Изображение'), + Builder\Block::make('video') + ->schema([ + TextInput::make('mime')->readOnly(), TextInput::make('title') ->required() ->maxLength(255) @@ -202,220 +309,136 @@ class AdditionalEducationResource extends Resource FileUpload::make('path') ->required() ->acceptedFileTypes([ - 'application/pdf', - 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'application/zip' + 'video/mp4', + 'video/quicktime', + 'video/x-msvideo', + 'video/x-ms-wmv', + 'video/avi', + 'video/webm', + 'video/ogg', + 'video/3gpp', + 'video/3gpp2', + 'video/x-m4v', ]) - ->maxSize(512000) ->disk('public') - ->directory('files') - ->downloadable() - ->visibility('public') + ->directory('videos') + ->afterStateUpdated(fn (callable $set, $state) => $set('mime', $state?->getMimeType())), ]), - ]), - Builder\Block::make('person') - ->schema([ - TextInput::make('name') - ->label('Имя') - ->required() - ->maxLength(255), - FileUpload::make('photo') - ->label('Фотография') - ->image() - ->disk('public') - ->directory('images') - ->imageEditor(), - Forms\Components\Repeater::make('info')->schema([ + Builder\Block::make('postsList') + ->schema([ Forms\Components\Grid::make(2)->schema([ - TextInput::make('column') - ->required() - ->maxLength(255), - TextInput::make('content') - ->required() - ->maxLength(255), + TextInput::make('count') + ->label('Количество запией') + ->integer(), + Select::make('category') + ->options(Category::all()->pluck('title', 'id')) ]), - ])->minItems(1), - ]), - Builder\Block::make('stepper') - ->schema([ - TextInput::make('step_name') - ->label('Название шага') - ->required() - ->maxLength(255), - Forms\Components\Repeater::make('steps')->schema([ - TextInput::make('title') - ->required() - ->maxLength(255)->columnSpanFull(), - RichEditor::make('content')->required(), - ])->minItems(1), - ]), - Builder\Block::make('images') - ->schema([ - FileUpload::make('url') - ->label('Изображение(-я)') - ->image() - ->multiple() - ->reorderable() - ->maxFiles(5) - ->disk('public') - ->directory('images') - ->imageEditor() - ->required(), - TextInput::make('alt') - ->label('Описание') - ->placeholder('Необязяательно') - ])->label('Слайдер изображений'), - Builder\Block::make('image') - ->schema([ - FileUpload::make('url') - ->label('Изображение(-я)') - ->image() - ->multiple() - ->reorderable() - ->maxFiles(5) - ->disk('public') - ->directory('images') - ->imageEditor() - ->required(), - TextInput::make('alt') - ->label('Описание') - ->placeholder('Необязяательно') - ])->label('Изображение'), - Builder\Block::make('video') - ->schema([ - TextInput::make('mime')->readOnly(), - TextInput::make('title') - ->required() - ->maxLength(255) - ->autofocus(), - FileUpload::make('path') - ->required() - ->acceptedFileTypes([ - 'video/mp4', - 'video/quicktime', - 'video/x-msvideo', - 'video/x-ms-wmv', - 'video/avi', - 'video/webm', - 'video/ogg', - 'video/3gpp', - 'video/3gpp2', - 'video/x-m4v', - ]) - ->disk('public') - ->directory('videos') - ->afterStateUpdated(fn (callable $set, $state) => $set('mime', $state?->getMimeType())), - ]), - Builder\Block::make('postsList') - ->schema([ - Forms\Components\Grid::make(2)->schema([ - TextInput::make('count') - ->label('Количество запией') - ->integer(), - Select::make('category') - ->options(Category::all()->pluck('title', 'id')) - ]), - ])->label('Список новостей'), - ]) - ->collapsed() - ->blockNumbers(false) - ->collapsible() - ->addActionLabel('Добавить новый блок'), - ])->minItems(1), - ]), - Builder\Block::make('images')->label('Слайдер изображений') - ->schema([ - FileUpload::make('url') - ->label('Изображение(-я)') - ->image() - ->multiple() - ->reorderable() - ->maxFiles(5) - ->disk('public') - - ->directory('images') - ->imageEditor() - ->required(), - TextInput::make('alt') - ->label('Описание') - ->placeholder('Необязяательно') - ]), - Builder\Block::make('image')->label('Изображение') - ->schema([ - FileUpload::make('url') - ->label('Изображение(-я)') - ->image() - ->multiple() - ->reorderable() - ->maxFiles(5) - ->disk('public') - ->directory('images') - ->imageEditor() - ->required(), - TextInput::make('alt') - ->label('Описание') - ->placeholder('Необязяательно') - ]), - Builder\Block::make('video')->label('Видео') - ->schema([ - TextInput::make('mime')->readOnly(), - TextInput::make('title') - ->required() - ->maxLength(255) - ->autofocus(), - FileUpload::make('path') - ->required() - ->acceptedFileTypes([ - 'video/mp4', - 'video/quicktime', - 'video/x-msvideo', - 'video/x-ms-wmv', - 'video/avi', - 'video/webm', - 'video/ogg', - 'video/3gpp', - 'video/3gpp2', - 'video/x-m4v', - ]) - ->disk('public') - ->directory('videos') - ->afterStateUpdated(fn (callable $set, $state) => $set('mime', $state?->getMimeType())), - ]), - Builder\Block::make('postsList')->label('Список новостей') - ->schema([ - Forms\Components\Grid::make(2)->schema([ - TextInput::make('count') - ->label('Количество запией') - ->integer(), - Select::make('category') - ->options(Category::all()->pluck('title', 'id')) + ])->label('Список новостей'), + ]) + ->collapsed() + ->blockNumbers(false) + ->collapsible() + ->addActionLabel('Добавить новый блок'), + ])->minItems(1), ]), - ]), - Builder\Block::make('postItem')->label('Новость') - ->schema([ - Select::make('post') - ->options(Post::query()->where('status', PostStatus::PUBLISHED)->pluck('title', 'id')) - ->searchable() - ->required(), - ]), - Builder\Block::make('pageItem')->label('Страница') - ->schema([ - Select::make('page') - ->options(Page::query()->where('title', '!=' , null)->where('is_visible', true)->pluck('title', 'id')) - ->searchable() - ->required(), - ]), - ]) - ->collapsed() - ->blockNumbers(false) - ->collapsible() - ->blockPickerColumns(3) - ->blockPickerWidth('2xl') - ->addActionLabel('Добавить новый блок'), - ]), - ]), + Builder\Block::make('images') + ->schema([ + FileUpload::make('url') + ->label('Изображение(-я)') + ->image() + ->multiple() + ->reorderable() + ->maxFiles(5) + ->disk('public') + ->directory('images') + ->imageEditor() + ->required(), + TextInput::make('alt') + ->label('Описание') + ->placeholder('Необязяательно') + ])->label('Слайдер изображений'), + Builder\Block::make('image') + ->schema([ + FileUpload::make('url') + ->label('Изображение(-я)') + ->image() + ->multiple() + ->reorderable() + ->maxFiles(5) + ->disk('public') + ->directory('images') + ->imageEditor() + ->required(), + TextInput::make('alt') + ->label('Описание') + ->placeholder('Необязяательно') + ])->label('Изображение'), + Builder\Block::make('video') + ->schema([ + TextInput::make('mime')->readOnly(), + TextInput::make('title') + ->required() + ->maxLength(255) + ->autofocus(), + FileUpload::make('path') + ->required() + ->acceptedFileTypes([ + 'video/mp4', + 'video/quicktime', + 'video/x-msvideo', + 'video/x-ms-wmv', + 'video/avi', + 'video/webm', + 'video/ogg', + 'video/3gpp', + 'video/3gpp2', + 'video/x-m4v', + ]) + ->disk('public') + ->directory('videos') + ->afterStateUpdated(fn (callable $set, $state) => $set('mime', $state?->getMimeType())), + ]), + Builder\Block::make('postsList') + ->schema([ + Forms\Components\Grid::make(2)->schema([ + TextInput::make('count') + ->label('Количество запией') + ->integer(), + Select::make('category') + ->options(Category::all()->pluck('title', 'id')) + ]), + ])->label('Список новостей'), + Builder\Block::make('postItem') + ->schema([ + Select::make('post') + ->options(Post::query()->where('status', PostStatus::PUBLISHED)->pluck('title', 'id')) + ->searchable() + ->required(), + ])->label('Новость'), + Builder\Block::make('pageItem') + ->schema([ + Select::make('page') + ->options(Page::query()->where('title', '!=' , null)->where('is_visible', true)->pluck('title', 'id')) + ->searchable() + ->required(), + ])->label('Страница'), + Builder\Block::make('customForm') + ->schema([ + Select::make('form') + ->options(CustomForm::query()->where('status', CustomFormStatus::PUBLISHED)->pluck('title', 'form_id')) + ->searchable() + ->required(), + ])->label('Форма'), + ]) + ->collapsed() + ->blockNumbers(false) + ->collapsible() + ->blockPickerColumns(3) + ->blockPickerWidth('2xl') + ->addActionLabel('Добавить новый блок'), + ]), + ]), + ]), ]); } @@ -423,7 +446,9 @@ class AdditionalEducationResource extends Resource { return $table ->columns([ - // + Tables\Columns\TextColumn::make('id'), + Tables\Columns\TextColumn::make('title')->searchable()->sortable(), + Tables\Columns\ToggleColumn::make('is_active'), ]) ->filters([ // diff --git a/app/Filament/Resources/AdditionalEducationResource/Pages/CreateAdditionalEducation.php b/app/Filament/Resources/AdditionalEducationResource/Pages/CreateAdditionalEducation.php index 737a19f..ad0a65e 100644 --- a/app/Filament/Resources/AdditionalEducationResource/Pages/CreateAdditionalEducation.php +++ b/app/Filament/Resources/AdditionalEducationResource/Pages/CreateAdditionalEducation.php @@ -5,8 +5,100 @@ namespace App\Filament\Resources\AdditionalEducationResource\Pages; use App\Filament\Resources\AdditionalEducationResource; use Filament\Actions; use Filament\Resources\Pages\CreateRecord; +use Illuminate\Support\Str; class CreateAdditionalEducation extends CreateRecord { protected static string $resource = AdditionalEducationResource::class; + + protected function mutateFormDataBeforeCreate(array $data): array + { + $this->seoData = $this->generateSeo($data); + + return $data; + } + + protected function afterCreate(): void + { + $this->record->seo()->create($this->seoData); + } + + private function generateSeo(array $data) : array + { + $title = $data['title']; + $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + $description = strip_tags($rowData['data']['content']); +// $image = ($data['preview'] !== null) ? $data['preview'] : null; + + return [ + 'title' => $title, + 'description' => Str::limit($description, 160), + 'image' => "", + ]; + } + + + private function getFirstBlockByName(string $name, array $content) : array|null + { + $data = null; + foreach ($content as $block) { + $data = ($block['type'] === $name) ? $block : null; + break; + } + return $data; + } + + private function getBlockBySeoActiveState(string $name, array $content) : array|null + { + $data = []; + foreach ($content as $block) { + if ($block['type'] === $name) { + $data[] = $block; + } + } + $block = null; + foreach ($data as $item) { + if ($item['data']['seo_active'] === true) { + $block = $item; + } + } + return $block; + } + + private function getDataFromBlocks($block) : string + { + $data = ""; + switch ($block['type']) { + case 'paragraph': + $data .= strip_tags($block['data']['content']) . " "; + break; + case 'heading': + $data .= strip_tags($block['data']['content']) . " "; + break; + case 'files': + foreach ($block['data']['file'] as $file) { + $data .= $file['title'] . " "; + } + break; + case 'person': + $data .= $block['data']['name'] . " "; + break; + case 'stepper': + $data .= $block['data']['step_name'] . " "; + foreach ($block['data']['steps'] as $step) { + $data .= $step['title'] . " "; + $data .= strip_tags($step['content']) . " "; + } + break; + case 'tabs': + foreach ($block['data']['tab'] as $item) { + foreach ($item['content'] as $block) { + $data .= $this->getDataFromBlocks($block); + }; + }; + break; + + } + return $data; + } } diff --git a/app/Filament/Resources/AdditionalEducationResource/Pages/EditAdditionalEducation.php b/app/Filament/Resources/AdditionalEducationResource/Pages/EditAdditionalEducation.php index 42ce29b..7829d99 100644 --- a/app/Filament/Resources/AdditionalEducationResource/Pages/EditAdditionalEducation.php +++ b/app/Filament/Resources/AdditionalEducationResource/Pages/EditAdditionalEducation.php @@ -5,11 +5,54 @@ namespace App\Filament\Resources\AdditionalEducationResource\Pages; use App\Filament\Resources\AdditionalEducationResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; +use Illuminate\Support\Str; class EditAdditionalEducation extends EditRecord { protected static string $resource = AdditionalEducationResource::class; + protected array $seoData; + + + protected function mutateFormDataBeforeSave(array $data): array + { + $this->seoData = $this->generateSeo($data); + + return $data; + } + + protected function afterSave(): void + { + $this->record->seo()->update($this->seoData); + } + + private function generateSeo(array $data) : array + { + $title = $data['title']; + $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + $description = strip_tags($rowData['data']['content']); +// $image = ($data['preview'] !== null) ? $data['preview'] : null; + + return [ + 'title' => $title, + 'description' => Str::limit($description, 160), + 'image' => "", + ]; + } + + + private function getFirstBlockByName(string $name, array $content) : array|null + { + $data = null; + foreach ($content as $block) { + $data = ($block['type'] === $name) ? $block : null; + break; + } + return $data; + } + + + protected function getHeaderActions(): array { return [ diff --git a/app/Filament/Resources/DirectionAdditionalEducationResource.php b/app/Filament/Resources/DirectionAdditionalEducationResource.php index f39e024..9d35f7a 100644 --- a/app/Filament/Resources/DirectionAdditionalEducationResource.php +++ b/app/Filament/Resources/DirectionAdditionalEducationResource.php @@ -6,12 +6,14 @@ use App\Filament\Resources\DirectionAdditionalEducationResource\Pages; use App\Filament\Resources\DirectionAdditionalEducationResource\RelationManagers; use App\Models\DirectionAdditionalEducation; use Filament\Forms; +use Filament\Forms\Components\TextInput; use Filament\Forms\Form; use Filament\Resources\Resource; use Filament\Tables; use Filament\Tables\Table; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; +use Illuminate\Support\Str; class DirectionAdditionalEducationResource extends Resource { @@ -29,7 +31,13 @@ class DirectionAdditionalEducationResource extends Resource { return $form ->schema([ - Forms\Components\TextInput::make('title')->required()->columnSpanFull(), + TextInput::make('title')->label('Заголовок')->required() + ->live(onBlur: true) + ->afterStateUpdated(function (string $operation, string|null $state, Forms\Set $set) { + $set('slug', Str::slug($state)); + $set('seo.title', $state); + }), + TextInput::make('slug')->label('Slug')->unique(ignoreRecord: true)->readOnly()->required(), Forms\Components\Toggle::make('is_active')->columnSpanFull()->inline(false)->default(true), ]); } diff --git a/app/Filament/Resources/EducationalProgramResource.php b/app/Filament/Resources/EducationalProgramResource.php index cd48c8e..b299d0a 100644 --- a/app/Filament/Resources/EducationalProgramResource.php +++ b/app/Filament/Resources/EducationalProgramResource.php @@ -34,7 +34,6 @@ class EducationalProgramResource extends Resource protected static ?string $navigationGroup = 'Образование'; - protected static ?string $pluralLabel = 'Образовательные программы'; protected static ?string $navigationParentItem = 'Приемная-компания'; @@ -242,7 +241,7 @@ class EducationalProgramResource extends Resource { return $table ->columns([ - Tables\Columns\TextColumn::make('name'), + Tables\Columns\TextColumn::make('name')->sortable(), Tables\Columns\TextColumn::make('code_napr'), Tables\Columns\TextColumn::make('directionStudy.lvl_edu')->limit(30), ]) diff --git a/app/Filament/Resources/PageResource/Pages/CreatePage.php b/app/Filament/Resources/PageResource/Pages/CreatePage.php index a9129c6..7b782a8 100644 --- a/app/Filament/Resources/PageResource/Pages/CreatePage.php +++ b/app/Filament/Resources/PageResource/Pages/CreatePage.php @@ -43,8 +43,11 @@ class CreatePage extends CreateRecord { $title = $data['title']; $rowData = $this->getFirstBlockByName('paragraph', $data['content']); - $description = strip_tags($rowData['data']['content']); - + if ($rowData !== null) { + $description = strip_tags($rowData['data']['content']); + } else { + $description = null; + } return [ 'title' => $title, 'description' => Str::limit($description, 160), diff --git a/app/Filament/Resources/PageResource/Pages/EditPage.php b/app/Filament/Resources/PageResource/Pages/EditPage.php index 1b9d8a3..35eafff 100644 --- a/app/Filament/Resources/PageResource/Pages/EditPage.php +++ b/app/Filament/Resources/PageResource/Pages/EditPage.php @@ -54,7 +54,11 @@ class EditPage extends EditRecord { $title = $data['title']; $rowData = $this->getFirstBlockByName('paragraph', $data['content']); - $description = strip_tags($rowData['data']['content']); + if ($rowData !== null) { + $description = strip_tags($rowData['data']['content']); + } else { + $description = null; + } return [ 'title' => $title, diff --git a/app/Filament/Resources/PostResource/Pages/CreatePost.php b/app/Filament/Resources/PostResource/Pages/CreatePost.php index 7987d24..20c15a0 100644 --- a/app/Filament/Resources/PostResource/Pages/CreatePost.php +++ b/app/Filament/Resources/PostResource/Pages/CreatePost.php @@ -16,6 +16,12 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Messages\BroadcastMessage; use Illuminate\Support\Str; use PhpParser\Node\Expr\AssignOp\Mod; +use VK\Client\VKApiClient; +use VK\OAuth\Scopes\VKOAuthGroupScope; +use VK\OAuth\Scopes\VKOAuthUserScope; +use VK\OAuth\VKOAuth; +use VK\OAuth\VKOAuthDisplay; +use VK\OAuth\VKOAuthResponseType; class CreatePost extends CreateRecord { @@ -30,7 +36,6 @@ class CreatePost extends CreateRecord $data['publish_at'] = $this->setPublishDateTime($data['status']); $data['search_data'] = $this->generateSearchData($data['content']); $data['reading_time'] = $this->calculateReadingTime($data['search_data']); - return $data; } @@ -44,6 +49,9 @@ class CreatePost extends CreateRecord { $title = $data['title']; $rowData = $this->getBlockBySeoActiveState('paragraph', $data['content']); + if ($rowData === null) { + $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + } $description = strip_tags($rowData['data']['content']); $image = ($data['preview'] !== null) ? $data['preview'] : null; @@ -54,9 +62,13 @@ class CreatePost extends CreateRecord ]; } + private function setPreviewText(array $data) : string { $rowData = $this->getBlockBySeoActiveState('paragraph', $data['content']); + if ($rowData === null) { + $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + } $preview_text = strip_tags($rowData['data']['content']); return Str::limit($preview_text, 160); } diff --git a/app/Filament/Resources/PostResource/Pages/EditPost.php b/app/Filament/Resources/PostResource/Pages/EditPost.php index 6b35c04..7e35145 100644 --- a/app/Filament/Resources/PostResource/Pages/EditPost.php +++ b/app/Filament/Resources/PostResource/Pages/EditPost.php @@ -35,6 +35,9 @@ class EditPost extends EditRecord private function setPreviewText(array $data) : string { $rowData = $this->getBlockBySeoActiveState('paragraph', $data['content']); + if ($rowData === null) { + $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + } $preview_text = strip_tags($rowData['data']['content']); return Str::limit($preview_text, 160); } @@ -61,7 +64,10 @@ class EditPost extends EditRecord private function generateSeo(array $data) : array { $title = $data['title']; - $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + $rowData = $this->getBlockBySeoActiveState('paragraph', $data['content']); + if ($rowData === null) { + $rowData = $this->getFirstBlockByName('paragraph', $data['content']); + } $description = strip_tags($rowData['data']['content']); $image = ($this->record->preview !== null) ? $this->record->preview : null; diff --git a/app/Http/Controllers/ClientAdditionalEducationController.php b/app/Http/Controllers/ClientAdditionalEducationController.php index bd83dd3..055bfcd 100644 --- a/app/Http/Controllers/ClientAdditionalEducationController.php +++ b/app/Http/Controllers/ClientAdditionalEducationController.php @@ -2,6 +2,8 @@ namespace App\Http\Controllers; +use App\Enums\FormEducation; +use App\Http\Resources\AdditionalEducationCategoryPreviewResource; use App\Http\Resources\AdditionalEducationCategoryResource; use App\Http\Resources\AdditionalEducationResource; use App\Http\Resources\DirectionAdditionalEducationResource; @@ -15,30 +17,87 @@ class ClientAdditionalEducationController extends Controller { public function index(Request $request) { + $directionAdditionalEducations = DirectionAdditionalEducationResource::collection( DirectionAdditionalEducation::query() ->where('is_active', true) ->whereHas('additionalEducationCategories', function ($q) { $q->whereHas('additionalEducations'); - }) - ->get()); + })->get()); + $additionalEducations = AdditionalEducationCategoryResource::collection(AdditionalEducationCategory::query() + ->WithActivePrograms() ->where('is_active', '=', true) - ->when($request->input('dir_id'), function ($q, $direction_id) { - $q->where('dir_addit_educat_id', $direction_id); + ->when($request->input('direction'), function ($q, $direction) { + $q->whereHas('direction', function ($query) use ($direction) { + $query->where('slug', $direction); + }); + }) + ->when(request()->input('form'), function ($query, $form) { + $query->whereHas('additionalEducations', function ($q) use ($form) { + $q->where('form_education', FormEducation::fromName($form)); + }); + $query->with(['additionalEducations' => function ($q) use ($form) { + $q->where('form_education', FormEducation::fromName($form)); + }]); + }) + ->when(request()->input('category'), function ($query) { + $slugs = request()->input('category'); + if (is_array($slugs)) { + $query->whereIn('slug', $slugs); + } }) ->has('additionalEducations') - ->with('additionalEducations') ->get()); + + $categories = AdditionalEducationCategoryPreviewResource::collection( + AdditionalEducationCategory::query() + ->where('is_active', true) + ->has('additionalEducations') + ->get() + ); + $categoriesContent = []; + if (request()->input('category')) { + foreach (request()->input('category') as $item) { + $categoriesContent[$item] = new AdditionalEducationCategoryResource(AdditionalEducationCategory::where('slug', $item)->first()); + } + } + + $forms_education = []; + foreach (FormEducation::cases() as $case) { + $forms_education[$case->name] = $case->getLabel(); + } $filters = [ - 'dir_id' => request()->input('dir_id') + 'direction_filter' => [ + 'type' => 'direction', + 'value' => request()->input('direction'), + 'param' => 'direction' + ], + 'form_education_filter' => [ + 'type' => 'form', + 'value' => request()->input('form'), + 'param' => 'form' + ], + 'category_filter' => [ + 'type' => 'category', + 'value' => request()->input('category'), + 'param' => 'category', + 'content' => $categoriesContent, + ], ]; - return Inertia::render('Client/Additional-educations/Index', compact('directionAdditionalEducations', 'additionalEducations', 'filters')); + return Inertia::render('Client/Additional-educations/Index', + compact( + 'directionAdditionalEducations', + 'additionalEducations', + 'filters', + 'forms_education', + 'categories' + )); } - public function show(string $id) + public function show(string $slug) { - $additionalEducation = new AdditionalEducationResource(AdditionalEducation::query()->with('category.direction')->find($id)); + $additionalEducation = new AdditionalEducationResource(AdditionalEducation::query()->with('category.direction')->where('slug', $slug)->first()); return Inertia::render('Client/Additional-educations/Show', compact('additionalEducation')); } } diff --git a/app/Http/Controllers/ClientPostController.php b/app/Http/Controllers/ClientPostController.php index 6e67ecd..fa52d9d 100644 --- a/app/Http/Controllers/ClientPostController.php +++ b/app/Http/Controllers/ClientPostController.php @@ -58,6 +58,7 @@ class ClientPostController extends Controller ->withQueryString()); $categories = CategoryResource::collection(Category::has('posts')->get()); + $categoriesContent = []; if (request()->input('category')) { foreach (request()->input('category') as $item) { diff --git a/app/Http/Controllers/ClientProgramController.php b/app/Http/Controllers/ClientProgramController.php index 33d4141..e9b3fab 100644 --- a/app/Http/Controllers/ClientProgramController.php +++ b/app/Http/Controllers/ClientProgramController.php @@ -111,9 +111,9 @@ class ClientProgramController extends Controller )); } - public function show($id) + public function show(string $slug) { - $program = new EducationalProgramFullResource(EducationalProgram::query()->where('id', $id)->with(['admission_plans', 'directionStudy'])->first()); + $program = new EducationalProgramFullResource(EducationalProgram::query()->where('slug', $slug)->with(['admission_plans', 'directionStudy'])->first()); $formsEducational = BudgetEducation::cases(); $formsEducational = collect($formsEducational); $formsEdu = $formsEducational->mapWithKeys(function ($formEducational) { diff --git a/app/Http/Controllers/ClientWidgetAdditionalEducationalProgramController.php b/app/Http/Controllers/ClientWidgetAdditionalEducationalProgramController.php new file mode 100644 index 0000000..7726afd --- /dev/null +++ b/app/Http/Controllers/ClientWidgetAdditionalEducationalProgramController.php @@ -0,0 +1,23 @@ +where('is_active', true) + ->orderBy('title', 'desc') + ->get()); + } + +} diff --git a/app/Http/Controllers/ClientWidgetEducationalProgramController.php b/app/Http/Controllers/ClientWidgetEducationalProgramController.php new file mode 100644 index 0000000..fe96d62 --- /dev/null +++ b/app/Http/Controllers/ClientWidgetEducationalProgramController.php @@ -0,0 +1,20 @@ +where('status', EducationalProgramStatus::PUBLISHED) + ->orderBy('name', 'desc') + ->get()); + } +} diff --git a/app/Http/Controllers/ClientWidgetPostController.php b/app/Http/Controllers/ClientWidgetPostController.php index 41a78fe..49f273f 100644 --- a/app/Http/Controllers/ClientWidgetPostController.php +++ b/app/Http/Controllers/ClientWidgetPostController.php @@ -12,7 +12,6 @@ class ClientWidgetPostController extends Controller { public function index() { - return PostThumbnailResource::collection( Post::query() ->where('status', PostStatus::PUBLISHED) diff --git a/app/Http/Controllers/PageController.php b/app/Http/Controllers/PageController.php index f69275c..a57fe7c 100644 --- a/app/Http/Controllers/PageController.php +++ b/app/Http/Controllers/PageController.php @@ -4,6 +4,9 @@ namespace App\Http\Controllers; use App\Http\Requests\Page\StoreRequest; use App\Http\Requests\Page\UpdateRequest; +use App\Http\Resources\ClientBreadcrumbPage; +use App\Http\Resources\ClientBreadcrumbSection; +use App\Http\Resources\ClientBreadcrumbSubSection; use App\Http\Resources\ClientNavigationResource; use App\Http\Resources\MainSectionResource; use App\Http\Resources\PageResource; @@ -45,9 +48,9 @@ class PageController extends Controller if (isset($page->section)) { $subSectionPages = PageResource::collection($page->section->pages); $breadcrumbs = [ - 'mainSection' => $page->section->mainSection->title, - 'subSection' => $page->section->title, - 'page' => $page->title, + 'mainSection' => new ClientBreadcrumbSection($page->section->mainSection), + 'subSection' => new ClientBreadcrumbSubSection($page->section), + 'page' => new ClientBreadcrumbPage($page), ]; } else { $subSectionPages = null; diff --git a/app/Http/Controllers/VkPostController.php b/app/Http/Controllers/VkPostController.php new file mode 100644 index 0000000..5c7b73c --- /dev/null +++ b/app/Http/Controllers/VkPostController.php @@ -0,0 +1,48 @@ +vkService = new VkService(new VKApiClient()); + $this->wall_token = env('WALL_ACCESS_VK_TOKEN'); + } + + public function index() + { + $oauth = new VKOAuth(); + $client_id = 52468445; + $redirect_uri = 'https://crawdad-fresh-bream.ngrok-free.app/'; + $display = VKOAuthDisplay::PAGE; + $scope = array(VKOAuthUserScope::WALL, VKOAuthUserScope::PHOTOS); + $state = 'dJZ3N05uZc9jpcEgxD6y'; + $groups_ids = array(227826614); + + $browser_url = $oauth->getAuthorizeUrl(VKOAuthResponseType::TOKEN, $client_id, $redirect_uri, $display, $scope, $state, $groups_ids); + return redirect($browser_url); + + } + + public function wall() + { + return $this->vkService->createAlbum('Тестовый альбом'); + } + + + + +} diff --git a/app/Http/Middleware/AccessCheck.php b/app/Http/Middleware/AccessCheck.php index afdff9d..b3014b4 100644 --- a/app/Http/Middleware/AccessCheck.php +++ b/app/Http/Middleware/AccessCheck.php @@ -2,14 +2,10 @@ namespace App\Http\Middleware; -use App\Models\MainChapter; -use App\Models\MainSection; + use App\Models\Page; -use App\Models\RegisteredRoute; -use App\Models\SubChapter; use Closure; use Illuminate\Http\Request; -use Illuminate\Support\Facades\Route; use Symfony\Component\HttpFoundation\Response; class AccessCheck @@ -21,6 +17,7 @@ class AccessCheck */ public function handle(Request $request, Closure $next): Response { + // Проверяем, существует ли запись для текущего маршрута $registeredRoute = Page::where('path', '=', $request->route()->uri) ->where('is_registered', '=', true) diff --git a/app/Http/Resources/AdditionalEducationCategoryPreviewResource.php b/app/Http/Resources/AdditionalEducationCategoryPreviewResource.php new file mode 100644 index 0000000..927c82c --- /dev/null +++ b/app/Http/Resources/AdditionalEducationCategoryPreviewResource.php @@ -0,0 +1,23 @@ + + */ + public function toArray(Request $request): array + { + return [ + 'id' => $this->id, + 'title' => $this->title, + 'slug' => $this->slug, + ]; + } +} diff --git a/app/Http/Resources/AdditionalEducationSelectResource.php b/app/Http/Resources/AdditionalEducationSelectResource.php new file mode 100644 index 0000000..08ea00a --- /dev/null +++ b/app/Http/Resources/AdditionalEducationSelectResource.php @@ -0,0 +1,19 @@ + + */ + public function toArray(Request $request): array + { + return parent::toArray($request); + } +} diff --git a/app/Http/Resources/ClientBreadcrumbPage.php b/app/Http/Resources/ClientBreadcrumbPage.php new file mode 100644 index 0000000..9c43e66 --- /dev/null +++ b/app/Http/Resources/ClientBreadcrumbPage.php @@ -0,0 +1,23 @@ + + */ + public function toArray(Request $request): array + { + return [ + 'title' => $this->title, + 'slug' => $this->slug, + 'path' => $this->path + ]; + } +} diff --git a/app/Http/Resources/ClientBreadcrumbSection.php b/app/Http/Resources/ClientBreadcrumbSection.php new file mode 100644 index 0000000..58cb6a6 --- /dev/null +++ b/app/Http/Resources/ClientBreadcrumbSection.php @@ -0,0 +1,22 @@ + + */ + public function toArray(Request $request): array + { + return [ + 'title' => $this->title, + 'slug' => $this->slug, + ]; + } +} diff --git a/app/Http/Resources/ClientBreadcrumbSubSection.php b/app/Http/Resources/ClientBreadcrumbSubSection.php new file mode 100644 index 0000000..19f56be --- /dev/null +++ b/app/Http/Resources/ClientBreadcrumbSubSection.php @@ -0,0 +1,22 @@ + + */ + public function toArray(Request $request): array + { + return [ + 'title' => $this->title, + 'slug' => $this->slug, + ]; + } +} diff --git a/app/Http/Resources/ClientNavigationResource.php b/app/Http/Resources/ClientNavigationResource.php index 760cc89..983ae76 100644 --- a/app/Http/Resources/ClientNavigationResource.php +++ b/app/Http/Resources/ClientNavigationResource.php @@ -17,6 +17,7 @@ class ClientNavigationResource extends JsonResource return [ 'id' => $this->id, 'title' => $this->title, + 'slug' => $this->slug, 'subSections' => ClientSubSectionNavigateResource::collection($this->whenLoaded('subSections')->sortBy('sort')), ]; } diff --git a/app/Http/Resources/ClientSubSectionNavigateResource.php b/app/Http/Resources/ClientSubSectionNavigateResource.php index 38de38a..c14f692 100644 --- a/app/Http/Resources/ClientSubSectionNavigateResource.php +++ b/app/Http/Resources/ClientSubSectionNavigateResource.php @@ -17,6 +17,7 @@ class ClientSubSectionNavigateResource extends JsonResource return [ 'id' => $this->id, 'title' => $this->title, + 'slug' => $this->slug, 'pages' => ClientPageNavigateResource::collection($this->whenLoaded('pages')), ]; } diff --git a/app/Http/Resources/DirectionAdditionalEducationResource.php b/app/Http/Resources/DirectionAdditionalEducationResource.php index 1b6fa28..14fee9c 100644 --- a/app/Http/Resources/DirectionAdditionalEducationResource.php +++ b/app/Http/Resources/DirectionAdditionalEducationResource.php @@ -17,6 +17,7 @@ class DirectionAdditionalEducationResource extends JsonResource return [ 'id' => $this->id, 'title' => $this->title, + 'slug' => $this->slug, ]; } } diff --git a/app/Http/Resources/EducationProgramSelectResource.php b/app/Http/Resources/EducationProgramSelectResource.php new file mode 100644 index 0000000..05b2f8e --- /dev/null +++ b/app/Http/Resources/EducationProgramSelectResource.php @@ -0,0 +1,19 @@ + + */ + public function toArray(Request $request): array + { + return parent::toArray($request); + } +} diff --git a/app/Http/Resources/EducationalProgramResource.php b/app/Http/Resources/EducationalProgramResource.php index f6b7367..223a483 100644 --- a/app/Http/Resources/EducationalProgramResource.php +++ b/app/Http/Resources/EducationalProgramResource.php @@ -17,6 +17,7 @@ class EducationalProgramResource extends JsonResource return [ 'id' => $this->id, 'name' => $this->name, + 'slug' => $this->slug ]; } } diff --git a/app/Models/AdditionalEducationCategory.php b/app/Models/AdditionalEducationCategory.php index d422aa6..84c5030 100644 --- a/app/Models/AdditionalEducationCategory.php +++ b/app/Models/AdditionalEducationCategory.php @@ -2,6 +2,7 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; @@ -11,6 +12,13 @@ class AdditionalEducationCategory extends Model protected $guarded = false; + public function scopeWithActivePrograms(Builder $query) + { + return $query->with(['additionalEducations' => function ($query) { + $query->where('is_active', true); + }]); + } + public function additionalEducations() { return $this->hasMany(AdditionalEducation::class, 'category_id', 'id'); diff --git a/app/Services/VK/Album/VkAlbumService.php b/app/Services/VK/Album/VkAlbumService.php new file mode 100644 index 0000000..9f9af91 --- /dev/null +++ b/app/Services/VK/Album/VkAlbumService.php @@ -0,0 +1,49 @@ +vk = $vk; + $this->wallToken = env('WALL_ACCESS_VK_TOKEN'); + $this->serviceToken = env('SERVICE_ACCESS_VK_KEY'); + $this->publicId = env('PUBLIC_ID'); + $this->publicDomain = env('PUBLIC_DOMAIN'); + } + + public function getServerForUploadImages() + { + return $this->vk->photos()->getUploadServer($this->wallToken, array( + '' + )); + } + + public function createAlbum(string $title) + { + try { + return $this->vk->photos()->createAlbum($this->wallToken, array( + 'title' => $title, + 'group_id' => $this->publicId, + 'privacy' => 0, + + )); + } catch (\Exception $e) { + Log::error('Ошибка при создании альбома: ' . $e->getMessage()); + return [ + 'success' => false, + 'message' => 'Не удалось создать альбом: ' . $e->getMessage(), + ]; + } + } + +} \ No newline at end of file diff --git a/app/Services/VK/VkService.php b/app/Services/VK/VkService.php new file mode 100644 index 0000000..f75b87a --- /dev/null +++ b/app/Services/VK/VkService.php @@ -0,0 +1,33 @@ +wallService = new VkWallService($vk); + $this->albumService = new VkAlbumService($vk); + } + + public function getPosts(int $count = 10) + { + return $this->wallService->getPosts($count); + } + + public function createPost(string $message, int $from_group = 1) + { + return $this->wallService->createPost($message, $from_group); + } + + public function createAlbum(string $title) + { + return $this->albumService->createAlbum($title); + } + +} \ No newline at end of file diff --git a/app/Services/VK/Wall/VkWallService.php b/app/Services/VK/Wall/VkWallService.php new file mode 100644 index 0000000..b76b7bf --- /dev/null +++ b/app/Services/VK/Wall/VkWallService.php @@ -0,0 +1,50 @@ +vk = $vk; + $this->wallToken = env('WALL_ACCESS_VK_TOKEN'); + $this->serviceToken = env('SERVICE_ACCESS_VK_KEY'); + $this->publicId = env('PUBLIC_ID'); + $this->publicDomain = env('PUBLIC_DOMAIN'); + } + + public function getPosts(int $count) + { + return $this->vk->wall()->get($this->serviceToken, array( + 'owner_id' => '-'. $this->publicId, + 'domain' => $this->publicDomain, + 'count' => $count + )); + } + + public function createPost(string $message, int $from_group, string $attachments = '') + { + try { + return $this->vk->wall()->post($this->wallToken, array( + 'owner_id' => '-' . $this->publicId, + 'from_group' => $from_group, + 'message' => $message, + 'attachments' => $attachments + )); + } catch (\Exception $e) { + Log::error('Ошибка при создании поста: ' . $e->getMessage()); + return [ + 'success' => false, + 'message' => 'Не удалось создать пост: ' . $e->getMessage(), + ]; + } + } +} \ No newline at end of file diff --git a/composer.json b/composer.json index 0be82e8..b5c4b84 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ "pxlrbt/filament-excel": "^2.3", "symfony/filesystem": "^6.3", "tightenco/ziggy": "^1.0", + "vkcom/vk-php-sdk": "^5.131", "xvladqt/faker-lorem-flickr": "^1.0" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 8d1a045..b8f582e 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": "7cebd5c873e68488b13f05bc2c35a868", + "content-hash": "8ae3153fd7e3bc311dcec5d0a14ade8d", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -9358,6 +9358,46 @@ ], "time": "2024-08-12T08:25:45+00:00" }, + { + "name": "vkcom/vk-php-sdk", + "version": "5.131.0", + "source": { + "type": "git", + "url": "https://github.com/VKCOM/vk-php-sdk.git", + "reference": "0b01a07b167549d08a3d910201cec9e8a202a0ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/VKCOM/vk-php-sdk/zipball/0b01a07b167549d08a3d910201cec9e8a202a0ee", + "reference": "0b01a07b167549d08a3d910201cec9e8a202a0ee", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^7.5", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "VK\\": "src/VK" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "VK PHP SDK", + "homepage": "https://github.com/VKCOM/vk-php-sdk", + "keywords": [ + "sdk", + "vk" + ], + "support": { + "issues": "https://github.com/VKCOM/vk-php-sdk/issues", + "source": "https://github.com/VKCOM/vk-php-sdk/tree/5.131.0" + }, + "time": "2023-07-03T10:53:32+00:00" + }, { "name": "vlucas/phpdotenv", "version": "v5.6.1", diff --git a/database/migrations/15_2024_07_22_154831_create_direction_additional_education_table.php b/database/migrations/15_2024_07_22_154831_create_direction_additional_education_table.php index 1eb83d2..3a03326 100644 --- a/database/migrations/15_2024_07_22_154831_create_direction_additional_education_table.php +++ b/database/migrations/15_2024_07_22_154831_create_direction_additional_education_table.php @@ -13,7 +13,8 @@ return new class extends Migration { Schema::create('direction_additional_education', function (Blueprint $table) { $table->id(); - $table->string('title'); + $table->string('title')->unique(); + $table->string('slug')->unique(); $table->boolean('is_active'); $table->timestamps(); }); diff --git a/database/migrations/16_2024_07_06_165311_create_additional_education_categories_table.php b/database/migrations/16_2024_07_06_165311_create_additional_education_categories_table.php index eec1b22..efb2da3 100644 --- a/database/migrations/16_2024_07_06_165311_create_additional_education_categories_table.php +++ b/database/migrations/16_2024_07_06_165311_create_additional_education_categories_table.php @@ -13,7 +13,8 @@ return new class extends Migration { Schema::create('additional_education_categories', function (Blueprint $table) { $table->id(); - $table->string('title'); + $table->string('title')->unique(); + $table->string('slug')->unique(); $table->boolean('is_active'); $table->unsignedBigInteger('dir_addit_educat_id')->nullable(); $table->foreign('dir_addit_educat_id')->references('id')->on('direction_additional_education'); diff --git a/database/migrations/17_2024_07_06_165147_create_additional_education_table.php b/database/migrations/17_2024_07_06_165147_create_additional_education_table.php index 150fcaf..46ae896 100644 --- a/database/migrations/17_2024_07_06_165147_create_additional_education_table.php +++ b/database/migrations/17_2024_07_06_165147_create_additional_education_table.php @@ -14,6 +14,7 @@ return new class extends Migration Schema::create('additional_education', function (Blueprint $table) { $table->id(); $table->string('title'); + $table->string('slug')->unique(); $table->text('content'); $table->unsignedBigInteger('category_id')->nullable(); $table->foreign('category_id')->references('id')->on('additional_education_categories'); diff --git a/package-lock.json b/package-lock.json index 0b906a3..ce9d45f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@preline/copy-markup": "^2.0.1", "@preline/overlay": "^1.4.0", "@preline/scrollspy": "^2.0.0", - "@preline/select": "^2.0.1", + "@preline/select": "^2.5.0", "flowbite": "^1.8.1", "fslightbox": "^3.4.1", "fslightbox-vue": "^2.1.3", @@ -51,30 +51,30 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz", + "integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", + "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.7.tgz", + "integrity": "sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw==", "dev": true, "dependencies": { - "@babel/types": "^7.25.6" + "@babel/types": "^7.25.7" }, "bin": { "parser": "bin/babel-parser.js" @@ -84,13 +84,13 @@ } }, "node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.7.tgz", + "integrity": "sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", + "@babel/helper-string-parser": "^7.25.7", + "@babel/helper-validator-identifier": "^7.25.7", "to-fast-properties": "^2.0.0" }, "engines": { @@ -667,9 +667,9 @@ "integrity": "sha512-VDHU6VBgOyCAd85WTgWtP+AlvOWZX0K/F/F+lzhdpcp8QtiyezvSkMITHm7hs2IHTQ9/yPoNj53ZOeJHThE70g==" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz", - "integrity": "sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz", + "integrity": "sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA==", "cpu": [ "arm" ], @@ -680,9 +680,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.22.4.tgz", - "integrity": "sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.0.tgz", + "integrity": "sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==", "cpu": [ "arm64" ], @@ -693,9 +693,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.4.tgz", - "integrity": "sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.0.tgz", + "integrity": "sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==", "cpu": [ "arm64" ], @@ -706,9 +706,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.22.4.tgz", - "integrity": "sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.0.tgz", + "integrity": "sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==", "cpu": [ "x64" ], @@ -719,9 +719,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.22.4.tgz", - "integrity": "sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.0.tgz", + "integrity": "sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==", "cpu": [ "arm" ], @@ -732,9 +732,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.22.4.tgz", - "integrity": "sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.0.tgz", + "integrity": "sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==", "cpu": [ "arm" ], @@ -745,9 +745,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.22.4.tgz", - "integrity": "sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz", + "integrity": "sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==", "cpu": [ "arm64" ], @@ -758,9 +758,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.22.4.tgz", - "integrity": "sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.0.tgz", + "integrity": "sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==", "cpu": [ "arm64" ], @@ -771,9 +771,9 @@ ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.22.4.tgz", - "integrity": "sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.0.tgz", + "integrity": "sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==", "cpu": [ "ppc64" ], @@ -784,9 +784,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.22.4.tgz", - "integrity": "sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.0.tgz", + "integrity": "sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==", "cpu": [ "riscv64" ], @@ -797,9 +797,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.22.4.tgz", - "integrity": "sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.0.tgz", + "integrity": "sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==", "cpu": [ "s390x" ], @@ -810,9 +810,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.22.4.tgz", - "integrity": "sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz", + "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==", "cpu": [ "x64" ], @@ -823,9 +823,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.22.4.tgz", - "integrity": "sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.0.tgz", + "integrity": "sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==", "cpu": [ "x64" ], @@ -836,9 +836,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.22.4.tgz", - "integrity": "sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.0.tgz", + "integrity": "sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==", "cpu": [ "arm64" ], @@ -849,9 +849,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.22.4.tgz", - "integrity": "sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.0.tgz", + "integrity": "sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==", "cpu": [ "ia32" ], @@ -862,9 +862,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.4.tgz", - "integrity": "sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz", + "integrity": "sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==", "cpu": [ "x64" ], @@ -887,9 +887,9 @@ } }, "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", "dev": true }, "node_modules/@vitejs/plugin-vue": { @@ -906,39 +906,39 @@ } }, "node_modules/@vue/compiler-core": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.8.tgz", - "integrity": "sha512-Uzlxp91EPjfbpeO5KtC0KnXPkuTfGsNDeaKQJxQN718uz+RqDYarEf7UhQJGK+ZYloD2taUbHTI2J4WrUaZQNA==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.11.tgz", + "integrity": "sha512-PwAdxs7/9Hc3ieBO12tXzmTD+Ln4qhT/56S+8DvrrZ4kLDn4Z/AMUr8tXJD0axiJBS0RKIoNaR0yMuQB9v9Udg==", "dev": true, "dependencies": { "@babel/parser": "^7.25.3", - "@vue/shared": "3.5.8", + "@vue/shared": "3.5.11", "entities": "^4.5.0", "estree-walker": "^2.0.2", "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-dom": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.8.tgz", - "integrity": "sha512-GUNHWvoDSbSa5ZSHT9SnV5WkStWfzJwwTd6NMGzilOE/HM5j+9EB9zGXdtu/fCNEmctBqMs6C9SvVPpVPuk1Eg==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.11.tgz", + "integrity": "sha512-pyGf8zdbDDRkBrEzf8p7BQlMKNNF5Fk/Cf/fQ6PiUz9at4OaUfyXW0dGJTo2Vl1f5U9jSLCNf0EZJEogLXoeew==", "dev": true, "dependencies": { - "@vue/compiler-core": "3.5.8", - "@vue/shared": "3.5.8" + "@vue/compiler-core": "3.5.11", + "@vue/shared": "3.5.11" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.8.tgz", - "integrity": "sha512-taYpngQtSysrvO9GULaOSwcG5q821zCoIQBtQQSx7Uf7DxpR6CIHR90toPr9QfDD2mqHQPCSgoWBvJu0yV9zjg==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.11.tgz", + "integrity": "sha512-gsbBtT4N9ANXXepprle+X9YLg2htQk1sqH/qGJ/EApl+dgpUBdTv3yP7YlR535uHZY3n6XaR0/bKo0BgwwDniw==", "dev": true, "dependencies": { "@babel/parser": "^7.25.3", - "@vue/compiler-core": "3.5.8", - "@vue/compiler-dom": "3.5.8", - "@vue/compiler-ssr": "3.5.8", - "@vue/shared": "3.5.8", + "@vue/compiler-core": "3.5.11", + "@vue/compiler-dom": "3.5.11", + "@vue/compiler-ssr": "3.5.11", + "@vue/shared": "3.5.11", "estree-walker": "^2.0.2", "magic-string": "^0.30.11", "postcss": "^8.4.47", @@ -946,63 +946,63 @@ } }, "node_modules/@vue/compiler-ssr": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.8.tgz", - "integrity": "sha512-W96PtryNsNG9u0ZnN5Q5j27Z/feGrFV6zy9q5tzJVyJaLiwYxvC0ek4IXClZygyhjm+XKM7WD9pdKi/wIRVC/Q==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.11.tgz", + "integrity": "sha512-P4+GPjOuC2aFTk1Z4WANvEhyOykcvEd5bIj2KVNGKGfM745LaXGr++5njpdBTzVz5pZifdlR1kpYSJJpIlSePA==", "dev": true, "dependencies": { - "@vue/compiler-dom": "3.5.8", - "@vue/shared": "3.5.8" + "@vue/compiler-dom": "3.5.11", + "@vue/shared": "3.5.11" } }, "node_modules/@vue/reactivity": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.8.tgz", - "integrity": "sha512-mlgUyFHLCUZcAYkqvzYnlBRCh0t5ZQfLYit7nukn1GR96gc48Bp4B7OIcSfVSvlG1k3BPfD+p22gi1t2n9tsXg==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.11.tgz", + "integrity": "sha512-Nqo5VZEn8MJWlCce8XoyVqHZbd5P2NH+yuAaFzuNSR96I+y1cnuUiq7xfSG+kyvLSiWmaHTKP1r3OZY4mMD50w==", "dev": true, "dependencies": { - "@vue/shared": "3.5.8" + "@vue/shared": "3.5.11" } }, "node_modules/@vue/runtime-core": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.8.tgz", - "integrity": "sha512-fJuPelh64agZ8vKkZgp5iCkPaEqFJsYzxLk9vSC0X3G8ppknclNDr61gDc45yBGTaN5Xqc1qZWU3/NoaBMHcjQ==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.11.tgz", + "integrity": "sha512-7PsxFGqwfDhfhh0OcDWBG1DaIQIVOLgkwA5q6MtkPiDFjp5gohVnJEahSktwSFLq7R5PtxDKy6WKURVN1UDbzA==", "dev": true, "dependencies": { - "@vue/reactivity": "3.5.8", - "@vue/shared": "3.5.8" + "@vue/reactivity": "3.5.11", + "@vue/shared": "3.5.11" } }, "node_modules/@vue/runtime-dom": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.8.tgz", - "integrity": "sha512-DpAUz+PKjTZPUOB6zJgkxVI3GuYc2iWZiNeeHQUw53kdrparSTG6HeXUrYDjaam8dVsCdvQxDz6ZWxnyjccUjQ==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.11.tgz", + "integrity": "sha512-GNghjecT6IrGf0UhuYmpgaOlN7kxzQBhxWEn08c/SQDxv1yy4IXI1bn81JgEpQ4IXjRxWtPyI8x0/7TF5rPfYQ==", "dev": true, "dependencies": { - "@vue/reactivity": "3.5.8", - "@vue/runtime-core": "3.5.8", - "@vue/shared": "3.5.8", + "@vue/reactivity": "3.5.11", + "@vue/runtime-core": "3.5.11", + "@vue/shared": "3.5.11", "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.8.tgz", - "integrity": "sha512-7AmC9/mEeV9mmXNVyUIm1a1AjUhyeeGNbkLh39J00E7iPeGks8OGRB5blJiMmvqSh8SkaS7jkLWSpXtxUCeagA==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.11.tgz", + "integrity": "sha512-cVOwYBxR7Wb1B1FoxYvtjJD8X/9E5nlH4VSkJy2uMA1MzYNdzAAB//l8nrmN9py/4aP+3NjWukf9PZ3TeWULaA==", "dev": true, "dependencies": { - "@vue/compiler-ssr": "3.5.8", - "@vue/shared": "3.5.8" + "@vue/compiler-ssr": "3.5.11", + "@vue/shared": "3.5.11" }, "peerDependencies": { - "vue": "3.5.8" + "vue": "3.5.11" } }, "node_modules/@vue/shared": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.8.tgz", - "integrity": "sha512-mJleSWbAGySd2RJdX1RBtcrUBX6snyOc0qHpgk3lGi4l9/P/3ny3ELqFWqYdkXIwwNN/kdm8nD9ky8o6l/Lx2A==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.11.tgz", + "integrity": "sha512-W8GgysJVnFo81FthhzurdRAWP/byq3q2qIw70e0JWblzVhjgOMiC2GyovXrZTFQJnFVryYaKGP3Tc9vYzYm6PQ==", "dev": true }, "node_modules/ansi-regex": { @@ -1148,9 +1148,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.0.tgz", + "integrity": "sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==", "dev": true, "funding": [ { @@ -1167,8 +1167,8 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", + "caniuse-lite": "^1.0.30001663", + "electron-to-chromium": "^1.5.28", "node-releases": "^2.0.18", "update-browserslist-db": "^1.1.0" }, @@ -1217,9 +1217,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001663", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001663.tgz", - "integrity": "sha512-o9C3X27GLKbLeTYZ6HBOLU1tsAcBZsLis28wrVzddShCS16RujjHp9GDHKZqrB3meE0YjhawvMFsGb/igqiPzA==", + "version": "1.0.30001667", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz", + "integrity": "sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==", "dev": true, "funding": [ { @@ -1442,9 +1442,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.5.28", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.28.tgz", - "integrity": "sha512-VufdJl+rzaKZoYVUijN13QcXVF5dWPZANeFTLNy+OSpHdDL5ynXTF35+60RSBbaQYB1ae723lQXHCrf4pyLsMw==", + "version": "1.5.32", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.32.tgz", + "integrity": "sha512-M+7ph0VGBQqqpTT2YrabjNKSQ2fEl9PVx6AK3N558gDH9NO8O6XN9SXXFWRo9u9PbEg/bWq+tjXQr+eXmxubCw==", "dev": true }, "node_modules/emoji-regex": { @@ -2125,9 +2125,9 @@ } }, "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", "dev": true }, "node_modules/path-key": { @@ -2455,12 +2455,12 @@ } }, "node_modules/rollup": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.22.4.tgz", - "integrity": "sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==", + "version": "4.24.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz", + "integrity": "sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==", "dev": true, "dependencies": { - "@types/estree": "1.0.5" + "@types/estree": "1.0.6" }, "bin": { "rollup": "dist/bin/rollup" @@ -2470,22 +2470,22 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.22.4", - "@rollup/rollup-android-arm64": "4.22.4", - "@rollup/rollup-darwin-arm64": "4.22.4", - "@rollup/rollup-darwin-x64": "4.22.4", - "@rollup/rollup-linux-arm-gnueabihf": "4.22.4", - "@rollup/rollup-linux-arm-musleabihf": "4.22.4", - "@rollup/rollup-linux-arm64-gnu": "4.22.4", - "@rollup/rollup-linux-arm64-musl": "4.22.4", - "@rollup/rollup-linux-powerpc64le-gnu": "4.22.4", - "@rollup/rollup-linux-riscv64-gnu": "4.22.4", - "@rollup/rollup-linux-s390x-gnu": "4.22.4", - "@rollup/rollup-linux-x64-gnu": "4.22.4", - "@rollup/rollup-linux-x64-musl": "4.22.4", - "@rollup/rollup-win32-arm64-msvc": "4.22.4", - "@rollup/rollup-win32-ia32-msvc": "4.22.4", - "@rollup/rollup-win32-x64-msvc": "4.22.4", + "@rollup/rollup-android-arm-eabi": "4.24.0", + "@rollup/rollup-android-arm64": "4.24.0", + "@rollup/rollup-darwin-arm64": "4.24.0", + "@rollup/rollup-darwin-x64": "4.24.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.24.0", + "@rollup/rollup-linux-arm-musleabihf": "4.24.0", + "@rollup/rollup-linux-arm64-gnu": "4.24.0", + "@rollup/rollup-linux-arm64-musl": "4.24.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.24.0", + "@rollup/rollup-linux-riscv64-gnu": "4.24.0", + "@rollup/rollup-linux-s390x-gnu": "4.24.0", + "@rollup/rollup-linux-x64-gnu": "4.24.0", + "@rollup/rollup-linux-x64-musl": "4.24.0", + "@rollup/rollup-win32-arm64-msvc": "4.24.0", + "@rollup/rollup-win32-ia32-msvc": "4.24.0", + "@rollup/rollup-win32-x64-msvc": "4.24.0", "fsevents": "~2.3.2" } }, @@ -2811,9 +2811,9 @@ "dev": true }, "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", "dev": true, "funding": [ { @@ -2830,8 +2830,8 @@ } ], "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.0" }, "bin": { "update-browserslist-db": "cli.js" @@ -2847,9 +2847,9 @@ "dev": true }, "node_modules/vite": { - "version": "5.4.7", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.7.tgz", - "integrity": "sha512-5l2zxqMEPVENgvzTuBpHer2awaetimj2BGkhBPdnwKbPNOlHsODU+oiazEZzLK7KhAnOrO+XGYJYn4ZlUhDtDQ==", + "version": "5.4.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz", + "integrity": "sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ==", "dev": true, "dependencies": { "esbuild": "^0.21.3", @@ -2916,16 +2916,16 @@ } }, "node_modules/vue": { - "version": "3.5.8", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.8.tgz", - "integrity": "sha512-hvuvuCy51nP/1fSRvrrIqTLSvrSyz2Pq+KQ8S8SXCxTWVE0nMaOnSDnSOxV1eYmGfvK7mqiwvd1C59CEEz7dAQ==", + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.11.tgz", + "integrity": "sha512-/8Wurrd9J3lb72FTQS7gRMNQD4nztTtKPmuDuPuhqXmmpD6+skVjAeahNpVzsuky6Sy9gy7wn8UadqPtt9SQIg==", "dev": true, "dependencies": { - "@vue/compiler-dom": "3.5.8", - "@vue/compiler-sfc": "3.5.8", - "@vue/runtime-dom": "3.5.8", - "@vue/server-renderer": "3.5.8", - "@vue/shared": "3.5.8" + "@vue/compiler-dom": "3.5.11", + "@vue/compiler-sfc": "3.5.11", + "@vue/runtime-dom": "3.5.11", + "@vue/server-renderer": "3.5.11", + "@vue/shared": "3.5.11" }, "peerDependencies": { "typescript": "*" diff --git a/package.json b/package.json index 7cf53e1..ee78b55 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@preline/copy-markup": "^2.0.1", "@preline/overlay": "^1.4.0", "@preline/scrollspy": "^2.0.0", - "@preline/select": "^2.0.1", + "@preline/select": "^2.5.0", "flowbite": "^1.8.1", "fslightbox": "^3.4.1", "fslightbox-vue": "^2.1.3", diff --git a/public/build/assets/AdminIndexHeader-C9rCJkLR.js b/public/build/assets/AdminIndexHeader-BLYLBYAX.js similarity index 81% rename from public/build/assets/AdminIndexHeader-C9rCJkLR.js rename to public/build/assets/AdminIndexHeader-BLYLBYAX.js index 9406b2d..55f614e 100644 --- a/public/build/assets/AdminIndexHeader-C9rCJkLR.js +++ b/public/build/assets/AdminIndexHeader-BLYLBYAX.js @@ -1 +1 @@ -import{_ as r}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as o,x as s}from"./app-CBssobj-.js";const n={name:"AdminIndexHeader"},a={class:"px-4 py-4 gap-3 flex justify-center md:items-center border-gray-200"};function c(e,d,p,i,m,_){return t(),o("div",a,[s(e.$slots,"default")])}const x=r(n,[["render",c]]);export{x as A}; +import{_ as r}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as o,x as s}from"./app-lWrE2aWG.js";const n={name:"AdminIndexHeader"},a={class:"px-4 py-4 gap-3 flex justify-center md:items-center border-gray-200"};function c(e,d,p,i,m,_){return t(),o("div",a,[s(e.$slots,"default")])}const x=r(n,[["render",c]]);export{x as A}; diff --git a/public/build/assets/AdminIndexHeaderTitle-CW1E5hbW.js b/public/build/assets/AdminIndexHeaderTitle-BXYEMOTq.js similarity index 97% rename from public/build/assets/AdminIndexHeaderTitle-CW1E5hbW.js rename to public/build/assets/AdminIndexHeaderTitle-BXYEMOTq.js index 4882816..9985977 100644 --- a/public/build/assets/AdminIndexHeaderTitle-CW1E5hbW.js +++ b/public/build/assets/AdminIndexHeaderTitle-BXYEMOTq.js @@ -1 +1 @@ -import{_ as u}from"./SearchModal-BTKERLZv.js";import{o as l,c as i,b as a,m as p,p as g,h,t as b}from"./app-CBssobj-.js";import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";const f={name:"AdminIndexSearch",data(){return{searchInput:this.$page.props.filters.search}},methods:{search:u.debounce(function(){if(this.searchInput==""){let r=new URL(window.location.href);r.searchParams.delete("search");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,replace:!0})}else{let r=new URL(window.location.href);r.searchParams.delete("page");let e=r.toString();this.$inertia.visit(e,{method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})}},500)},props:["filters"]},m={class:"sm:col-span-1 w-full"},y={class:"relative"};function x(r,e,d,c,t,s){return l(),i("div",m,[e[3]||(e[3]=a("label",{for:"hs-as-table-product-review-search",class:"sr-only"},"Поиск",-1)),a("div",y,[p(a("input",{autocomplete:"off",onInput:e[0]||(e[0]=(...o)=>s.search&&s.search(...o)),"onUpdate:modelValue":e[1]||(e[1]=o=>t.searchInput=o),type:"text",id:"hs-as-table-product-review-search",name:"hs-as-table-product-review-search",class:"py-2 px-3 pl-11 block flex-1 w-full border-gray-200 shadow-sm rounded-md text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400",placeholder:"Поиск"},null,544),[[g,t.searchInput]]),e[2]||(e[2]=a("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none pl-4"},[a("svg",{class:"h-4 w-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[a("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})])],-1))])])}const B=n(f,[["render",x]]),k={name:"AdminIndexFilter",data(){return{}},methods:{},props:[]},w={class:"sm:col-span-2 md:grow"};function v(r,e,d,c,t,s){return l(),i("div",w,e[0]||(e[0]=[h('
',1)]))}const U=n(k,[["render",v]]),_={name:"AdminIndexHeaderTitle",props:["title"]},$={class:"text-lg font-semibold text-gray-800 dark:text-gray-200"};function I(r,e,d,c,t,s){return l(),i("div",null,[a("h2",$,b(d.title),1)])}const M=n(_,[["render",I]]);export{M as A,U as a,B as b}; +import{_ as u}from"./SearchModal-CGHtjMJb.js";import{o as l,c as i,b as a,m as p,p as g,h,t as b}from"./app-lWrE2aWG.js";import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";const f={name:"AdminIndexSearch",data(){return{searchInput:this.$page.props.filters.search}},methods:{search:u.debounce(function(){if(this.searchInput==""){let r=new URL(window.location.href);r.searchParams.delete("search");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,replace:!0})}else{let r=new URL(window.location.href);r.searchParams.delete("page");let e=r.toString();this.$inertia.visit(e,{method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})}},500)},props:["filters"]},m={class:"sm:col-span-1 w-full"},y={class:"relative"};function x(r,e,d,c,t,s){return l(),i("div",m,[e[3]||(e[3]=a("label",{for:"hs-as-table-product-review-search",class:"sr-only"},"Поиск",-1)),a("div",y,[p(a("input",{autocomplete:"off",onInput:e[0]||(e[0]=(...o)=>s.search&&s.search(...o)),"onUpdate:modelValue":e[1]||(e[1]=o=>t.searchInput=o),type:"text",id:"hs-as-table-product-review-search",name:"hs-as-table-product-review-search",class:"py-2 px-3 pl-11 block flex-1 w-full border-gray-200 shadow-sm rounded-md text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400",placeholder:"Поиск"},null,544),[[g,t.searchInput]]),e[2]||(e[2]=a("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none pl-4"},[a("svg",{class:"h-4 w-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[a("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})])],-1))])])}const B=n(f,[["render",x]]),k={name:"AdminIndexFilter",data(){return{}},methods:{},props:[]},w={class:"sm:col-span-2 md:grow"};function v(r,e,d,c,t,s){return l(),i("div",w,e[0]||(e[0]=[h('
',1)]))}const U=n(k,[["render",v]]),_={name:"AdminIndexHeaderTitle",props:["title"]},$={class:"text-lg font-semibold text-gray-800 dark:text-gray-200"};function I(r,e,d,c,t,s){return l(),i("div",null,[a("h2",$,b(d.title),1)])}const M=n(_,[["render",I]]);export{M as A,U as a,B as b}; diff --git a/public/build/assets/BaseTemplate-Ck405erW.js b/public/build/assets/BaseTemplate-Ck405erW.js deleted file mode 100644 index 5763686..0000000 --- a/public/build/assets/BaseTemplate-Ck405erW.js +++ /dev/null @@ -1 +0,0 @@ -import{i as u,Z as _,r as e,c as b,a,w as P,b as t,F as f,o as v,t as h}from"./app-CBssobj-.js";import{F as x}from"./v3-DnjJww8i.js";import{C as y}from"./ClientFooterDown-B1P9jP1W.js";import{P as B,a as w,b as k,c as N}from"./PageNavigateLinks-ozhWEDba.js";import{P as S}from"./PageSubSectionLinks-BEy5aimx.js";import{M as L}from"./MainPageNavbar-Cmz730h9.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";const C={name:"Page",data(){return{headerNavs:this.page.data.content.filter(n=>n.type==="heading").map(n=>({id:n.data.id,text:n.data.content}))}},props:{navigation:{type:Object},page:{type:Object},subSectionPages:{type:Object},breadcrumbs:{type:Object}},components:{MainPageNavBar:L,PageSubSectionLinks:S,PageNavigateLinks:B,PageTitle:w,PageBreadcrumbs:k,PageBuilder:N,ClientFooterDown:y,Link:u,FsLightbox:x,Head:_},methods:{},computed:{}},j={class:"flex flex-col h-screen justify-between"},D={class:"relative mx-auto mb-auto mt-[67px] max-w-screen-xl w-full px-4 py-10 md:flex md:flex-row md:py-10"},M={class:"w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6",style:{}},O={class:"space-y-5 md:space-y-5"},T={id:"page-area",class:"space-y-4"};function H(n,o,s,V,E,Y){const i=e("Head"),c=e("MainPageNavBar"),r=e("PageSubSectionLinks"),l=e("PageNavigateLinks"),d=e("PageBreadcrumbs"),m=e("PageTitle"),p=e("PageBuilder"),g=e("ClientFooterDown");return v(),b(f,null,[a(i,null,{default:P(()=>[t("title",null,h(s.page.data.title),1),o[0]||(o[0]=t("meta",{name:"description",content:"Your page description"},null,-1))]),_:1}),t("div",j,[a(c,{class:"border-b",sections:n.$page.props.navigation},null,8,["sections"]),t("div",D,[a(r,{"sub-section-pages":s.subSectionPages,"current-section":s.page.data.section},null,8,["sub-section-pages","current-section"]),a(l,{"header-navs":this.headerNavs},null,8,["header-navs"]),t("div",M,[t("div",O,[a(d,{breadcrumbs:s.breadcrumbs,"page-title":s.page.data.title},null,8,["breadcrumbs","page-title"]),a(m,{header:s.page.data.title},null,8,["header"]),t("div",T,[a(p,{blocks:this.page.data.content},null,8,["blocks"])])])])]),a(g)])],64)}const Q=F(C,[["render",H]]);export{Q as default}; diff --git a/public/build/assets/BaseTemplate-D1ScVXMq.js b/public/build/assets/BaseTemplate-D1ScVXMq.js new file mode 100644 index 0000000..6efc478 --- /dev/null +++ b/public/build/assets/BaseTemplate-D1ScVXMq.js @@ -0,0 +1 @@ +import{i as u,Z as _,r as e,c as b,a,w as P,b as t,F as f,o as v,t as h}from"./app-lWrE2aWG.js";import{F as x}from"./v3-CDJmn87G.js";import{C as y}from"./SearchModal-CGHtjMJb.js";import{P as B,a as w,b as k,c as N}from"./PageNavigateLinks-C0dfJuyt.js";import{P as S}from"./PageSubSectionLinks-DpXoUZcw.js";import{M as L}from"./MainPageNavbar-BsdceJwT.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";const C={name:"Page",data(){return{headerNavs:this.page.data.content.filter(n=>n.type==="heading").map(n=>({id:n.data.id,text:n.data.content}))}},props:{navigation:{type:Object},page:{type:Object},subSectionPages:{type:Object},breadcrumbs:{type:Object}},components:{MainPageNavBar:L,PageSubSectionLinks:S,PageNavigateLinks:B,PageTitle:w,PageBreadcrumbs:k,PageBuilder:N,ClientFooterDown:y,Link:u,FsLightbox:x,Head:_},methods:{},computed:{}},j={class:"flex flex-col h-screen justify-between"},D={class:"relative mx-auto mb-auto mt-[67px] max-w-screen-xl w-full px-4 py-10 md:flex md:flex-row md:py-10"},M={class:"w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6",style:{}},O={class:"space-y-5 md:space-y-5"},T={id:"page-area",class:"space-y-4"};function H(n,o,s,V,E,Y){const i=e("Head"),c=e("MainPageNavBar"),r=e("PageSubSectionLinks"),l=e("PageNavigateLinks"),d=e("PageBreadcrumbs"),m=e("PageTitle"),p=e("PageBuilder"),g=e("ClientFooterDown");return v(),b(f,null,[a(i,null,{default:P(()=>[t("title",null,h(s.page.data.title),1),o[0]||(o[0]=t("meta",{name:"description",content:"Your page description"},null,-1))]),_:1}),t("div",j,[a(c,{class:"border-b",sections:n.$page.props.navigation},null,8,["sections"]),t("div",D,[a(r,{"sub-section-pages":s.subSectionPages,"current-section":s.page.data.section},null,8,["sub-section-pages","current-section"]),a(l,{"header-navs":this.headerNavs},null,8,["header-navs"]),t("div",M,[t("div",O,[a(d,{breadcrumbs:s.breadcrumbs,"page-title":s.page.data.title},null,8,["breadcrumbs","page-title"]),a(m,{header:s.page.data.title},null,8,["header"]),t("div",T,[a(p,{blocks:this.page.data.content},null,8,["blocks"])])])])]),a(g)])],64)}const K=F(C,[["render",H]]);export{K as default}; diff --git a/public/build/assets/ClientEventFilter-DT5MRLcl.js b/public/build/assets/ClientEventFilter-BAYtyBIS.js similarity index 96% rename from public/build/assets/ClientEventFilter-DT5MRLcl.js rename to public/build/assets/ClientEventFilter-BAYtyBIS.js index 3b47e65..0266cad 100644 --- a/public/build/assets/ClientEventFilter-DT5MRLcl.js +++ b/public/build/assets/ClientEventFilter-BAYtyBIS.js @@ -1 +1 @@ -import{B as u,_ as h}from"./SearchModal-BTKERLZv.js";import{S as m,C as b,a as v,T as y,b as x}from"./SortingByFilter-Ds4x3JAu.js";import{i as w,o as i,c as l,b as t,m as _,v as k,r as d,h as C,a as c,g as F,t as B,f as j,F as S}from"./app-CBssobj-.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";const O={name:"IsOnlineFilter",components:{BaseIcon:u,Link:w,SearchBadge:m,CategoryBadge:b},data(){return{is_online:this.is_online_filter.value||"all"}},methods:{filter:h.debounce(function(){let o=new URL(window.location.href);o.searchParams.delete("page"),o.searchParams.delete("is_online");let e=o.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{is_online:this.is_online}})},500),clearFilter(){let o=new URL(window.location.href);o.searchParams.delete("sort"),this.tag_slug=[],this.searchTerm="";let e=o.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},props:{is_online_filter:{type:Object}}},z={class:"min-w-[12rem] py-1 space-y-3"};function V(o,e,r,p,s,a){return i(),l("div",z,[e[3]||(e[3]=t("h3",{class:"font-medium text-gray-900 text-sm mb-2"},"Сортировать по онлайн статусу",-1)),t("div",null,[_(t("select",{onChange:e[0]||(e[0]=(...n)=>a.filter&&a.filter(...n)),"onUpdate:modelValue":e[1]||(e[1]=n=>s.is_online=n),class:"py-2 px-3 pe-9 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"},e[2]||(e[2]=[t("option",{value:"all"},"Все",-1),t("option",{value:"online"},"Только онлайн",-1),t("option",{value:"offline"},"Только офлайн",-1)]),544),[[k,s.is_online]])])])}const I=g(O,[["render",V]]),M={name:"ClientEventFilter",components:{IsOnlineFilter:I,SortingByFilter:v,TagFilter:y,CategoryFilter:x,BaseIcon:u},data(){return{}},props:{categories:{type:Object},category_filter:{type:Object},sortingBy_filter:{type:Object},is_online_filter:{type:Object}}},N={id:"hs-offcanvas-example",class:"hs-overlay hs-overlay-open:translate-x-0 hidden -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full max-w-xs w-full z-[80] bg-white border-e overflow-auto",role:"dialog",tabindex:"-1","aria-labelledby":"hs-offcanvas-example-label"},U={class:"p-4"},T={class:"hs-accordion-group"},E=["id"],L={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 py-3 inline-flex items-center gap-x-3 w-full font-semibold text-start text-gray-800 hover:text-gray-500 focus:outline-none focus:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none","aria-expanded":"false","aria-controls":"hs-basic-with-arrow-collapse-two"},P={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-md text-xs font-medium border border-gray-200 bg-white text-gray-800 shadow-sm dark:bg-neutral-900 dark:border-neutral-700 dark:text-white"},D=["aria-labelledby"];function H(o,e,r,p,s,a){const n=d("IsOnlineFilter"),f=d("CategoryFilter");return i(),l(S,null,[e[4]||(e[4]=t("div",{class:""},[t("button",{type:"button",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"hs-offcanvas-example","data-hs-overlay":"#hs-offcanvas-example"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])])],-1)),t("div",N,[e[3]||(e[3]=C('

Фильтры

',1)),t("div",U,[c(n,{is_online_filter:r.is_online_filter},null,8,["is_online_filter"]),t("div",T,[t("div",{class:"hs-accordion",id:"id"+r.category_filter.type},[t("button",L,[e[0]||(e[0]=t("svg",{class:"hs-accordion-active:hidden block size-4",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",{d:"m6 9 6 6 6-6"})],-1)),e[1]||(e[1]=t("svg",{class:"hs-accordion-active:block hidden size-4",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",{d:"m18 15-6-6-6 6"})],-1)),e[2]||(e[2]=F(" Категории ")),r.category_filter.value?(i(),l("span",P,B(r.category_filter.value.length),1)):j("",!0)]),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+r.category_filter.type},[c(f,{categories:r.categories,category_filter:r.category_filter},null,8,["categories","category_filter"])],8,D)],8,E)])])])],64)}const G=g(M,[["render",H]]);export{G as C}; +import{B as u,_ as h}from"./SearchModal-CGHtjMJb.js";import{S as m,C as b,a as v,T as y,b as x}from"./SortingByFilter-DAe1p4QU.js";import{i as w,o as i,c as l,b as t,m as _,v as k,r as d,h as C,a as c,g as F,t as B,f as j,F as S}from"./app-lWrE2aWG.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";const O={name:"IsOnlineFilter",components:{BaseIcon:u,Link:w,SearchBadge:m,CategoryBadge:b},data(){return{is_online:this.is_online_filter.value||"all"}},methods:{filter:h.debounce(function(){let o=new URL(window.location.href);o.searchParams.delete("page"),o.searchParams.delete("is_online");let e=o.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{is_online:this.is_online}})},500),clearFilter(){let o=new URL(window.location.href);o.searchParams.delete("sort"),this.tag_slug=[],this.searchTerm="";let e=o.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},props:{is_online_filter:{type:Object}}},z={class:"min-w-[12rem] py-1 space-y-3"};function V(o,e,r,p,s,a){return i(),l("div",z,[e[3]||(e[3]=t("h3",{class:"font-medium text-gray-900 text-sm mb-2"},"Сортировать по онлайн статусу",-1)),t("div",null,[_(t("select",{onChange:e[0]||(e[0]=(...n)=>a.filter&&a.filter(...n)),"onUpdate:modelValue":e[1]||(e[1]=n=>s.is_online=n),class:"py-2 px-3 pe-9 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"},e[2]||(e[2]=[t("option",{value:"all"},"Все",-1),t("option",{value:"online"},"Только онлайн",-1),t("option",{value:"offline"},"Только офлайн",-1)]),544),[[k,s.is_online]])])])}const I=g(O,[["render",V]]),M={name:"ClientEventFilter",components:{IsOnlineFilter:I,SortingByFilter:v,TagFilter:y,CategoryFilter:x,BaseIcon:u},data(){return{}},props:{categories:{type:Object},category_filter:{type:Object},sortingBy_filter:{type:Object},is_online_filter:{type:Object}}},N={id:"hs-offcanvas-example",class:"hs-overlay hs-overlay-open:translate-x-0 hidden -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full max-w-xs w-full z-[80] bg-white border-e overflow-auto",role:"dialog",tabindex:"-1","aria-labelledby":"hs-offcanvas-example-label"},U={class:"p-4"},T={class:"hs-accordion-group"},E=["id"],L={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 py-3 inline-flex items-center gap-x-3 w-full font-semibold text-start text-gray-800 hover:text-gray-500 focus:outline-none focus:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none","aria-expanded":"false","aria-controls":"hs-basic-with-arrow-collapse-two"},P={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-md text-xs font-medium border border-gray-200 bg-white text-gray-800 shadow-sm dark:bg-neutral-900 dark:border-neutral-700 dark:text-white"},D=["aria-labelledby"];function H(o,e,r,p,s,a){const n=d("IsOnlineFilter"),f=d("CategoryFilter");return i(),l(S,null,[e[4]||(e[4]=t("div",{class:""},[t("button",{type:"button",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"hs-offcanvas-example","data-hs-overlay":"#hs-offcanvas-example"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])])],-1)),t("div",N,[e[3]||(e[3]=C('

Фильтры

',1)),t("div",U,[c(n,{is_online_filter:r.is_online_filter},null,8,["is_online_filter"]),t("div",T,[t("div",{class:"hs-accordion",id:"id"+r.category_filter.type},[t("button",L,[e[0]||(e[0]=t("svg",{class:"hs-accordion-active:hidden block size-4",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",{d:"m6 9 6 6 6-6"})],-1)),e[1]||(e[1]=t("svg",{class:"hs-accordion-active:block hidden size-4",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",{d:"m18 15-6-6-6 6"})],-1)),e[2]||(e[2]=F(" Категории ")),r.category_filter.value?(i(),l("span",P,B(r.category_filter.value.length),1)):j("",!0)]),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+r.category_filter.type},[c(f,{categories:r.categories,category_filter:r.category_filter},null,8,["categories","category_filter"])],8,D)],8,E)])])])],64)}const G=g(M,[["render",H]]);export{G as C}; diff --git a/public/build/assets/ClientEventSelectDate-DSCwmyIV.js b/public/build/assets/ClientEventSelectDate-UncMoO_R.js similarity index 91% rename from public/build/assets/ClientEventSelectDate-DSCwmyIV.js rename to public/build/assets/ClientEventSelectDate-UncMoO_R.js index 0dbfea5..d7e2cbb 100644 --- a/public/build/assets/ClientEventSelectDate-DSCwmyIV.js +++ b/public/build/assets/ClientEventSelectDate-UncMoO_R.js @@ -1 +1 @@ -import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as s,b as e,F as c,d as i,t as n,n as p}from"./app-CBssobj-.js";const u={name:"ClientEventSelectDate",data(){return{date:this.currentDate}},methods:{filter(o){this.date=o,this.$inertia.reload({data:{date:o}})}},props:{dates:{type:Array},currentDate:{type:String}}},f={class:"relative rounded-xl overflow-auto"},h={class:"max-w-4xl mx-auto bg-white min-w-0"},m={class:"overflow-x-scroll flex no-scrollbar"},v={class:"flex items-center gap-x-3 whitespace-nowrap"},y={class:""},g={class:"flex flex-col items-center"},b={class:"text-[12px] text-gray-500"},w={class:"flex"},C={class:"flex"},k={class:"flex flex-col items-center"},S=["onClick"],B={class:"text-[12px] text-gray-500"};function E(o,$,l,F,d,_){return t(),s("div",f,[e("div",h,[e("div",m,[e("div",v,[(t(!0),s(c,null,i(l.dates,r=>(t(),s("div",y,[e("div",g,[e("span",b,n(r.month),1)]),e("div",w,[e("div",C,[(t(!0),s(c,null,i(r.events,a=>(t(),s("div",k,[e("button",{class:p([d.date==a.date?"active-button":"","min-h-[38px] duration-300 ease-linear min-w-[38px] flex justify-center items-center text-gray-800 hover:bg-gray-100 py-2 px-3 text-sm rounded-lg focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none"]),onClick:j=>_.filter(a.date),type:"button"},n(a.day),11,S),e("span",B,n(a.dayOfWeek),1)]))),256))])])]))),256))])])])])}const D=x(u,[["render",E],["__scopeId","data-v-6d0eb2ca"]]);export{D as C}; +import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as s,b as e,F as c,d as i,t as n,n as p}from"./app-lWrE2aWG.js";const u={name:"ClientEventSelectDate",data(){return{date:this.currentDate}},methods:{filter(o){this.date=o,this.$inertia.reload({data:{date:o}})}},props:{dates:{type:Array},currentDate:{type:String}}},f={class:"relative rounded-xl overflow-auto"},h={class:"max-w-4xl mx-auto bg-white min-w-0"},m={class:"overflow-x-scroll flex no-scrollbar"},v={class:"flex items-center gap-x-3 whitespace-nowrap"},y={class:""},g={class:"flex flex-col items-center"},b={class:"text-[12px] text-gray-500"},w={class:"flex"},C={class:"flex"},k={class:"flex flex-col items-center"},S=["onClick"],B={class:"text-[12px] text-gray-500"};function E(o,$,l,F,d,_){return t(),s("div",f,[e("div",h,[e("div",m,[e("div",v,[(t(!0),s(c,null,i(l.dates,r=>(t(),s("div",y,[e("div",g,[e("span",b,n(r.month),1)]),e("div",w,[e("div",C,[(t(!0),s(c,null,i(r.events,a=>(t(),s("div",k,[e("button",{class:p([d.date==a.date?"active-button":"","min-h-[38px] duration-300 ease-linear min-w-[38px] flex justify-center items-center text-gray-800 hover:bg-gray-100 py-2 px-3 text-sm rounded-lg focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none"]),onClick:j=>_.filter(a.date),type:"button"},n(a.day),11,S),e("span",B,n(a.dayOfWeek),1)]))),256))])])]))),256))])])])])}const D=x(u,[["render",E],["__scopeId","data-v-6d0eb2ca"]]);export{D as C}; diff --git a/public/build/assets/ClientFooterDown-B1P9jP1W.js b/public/build/assets/ClientFooterDown-B1P9jP1W.js deleted file mode 100644 index f905372..0000000 --- a/public/build/assets/ClientFooterDown-B1P9jP1W.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as s,c as i,h as a}from"./app-CBssobj-.js";const l={name:"ClientFooterDown"},r={class:"w-full bg-[#1A5AAF] py-10 mx-auto"};function n(p,e,x,o,c,d){return s(),i("footer",r,e[0]||(e[0]=[a('',1)]))}const f=t(l,[["render",n]]);export{f as C}; diff --git a/public/build/assets/ClientImageSlider-CvtLuRx_.js b/public/build/assets/ClientImageSlider-ZnyNtD9R.js similarity index 93% rename from public/build/assets/ClientImageSlider-CvtLuRx_.js rename to public/build/assets/ClientImageSlider-ZnyNtD9R.js index 744fa0f..05ce668 100644 --- a/public/build/assets/ClientImageSlider-CvtLuRx_.js +++ b/public/build/assets/ClientImageSlider-ZnyNtD9R.js @@ -1 +1 @@ -import{F as g}from"./v3-DnjJww8i.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as h,o as l,c as i,b as s,F as c,d as f,n as x,t as p,a as b}from"./app-CBssobj-.js";const _={name:"ClientImageSlider",components:{FsLightbox:g},data(){return{currentIndex:0,items:this.block.data.url,toggler:!1,domainPath:null,slide:null}},props:{block:{type:Array}},methods:{prevSlide(){this.currentIndex===0?this.currentIndex=this.items.length-1:this.currentIndex--},nextSlide(){this.currentIndex===this.items.length-1?this.currentIndex=0:this.currentIndex++},openLightboxOnSlide:function(a){this.slide=a,this.toggler=!this.toggler}},mounted(){this.domainPath=window.location.origin}},v={class:"relative"},k={class:"flex"},I=["onClick","src"],S={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function y(a,n,d,C,e,o){const u=h("FsLightbox");return l(),i(c,null,[s("div",v,[s("div",k,[(l(!0),i(c,null,f(e.items,(t,r)=>(l(),i("div",{key:r,class:x(["w-full",{block:e.currentIndex===r,hidden:e.currentIndex!==r}])},[s("img",{onClick:w=>o.openLightboxOnSlide(r+1),src:"/storage/"+t,class:"mx-auto max-h-[500px] object-cover rounded-md hover:opacity-95 hover:duration-200 transition"},null,8,I)],2))),128))]),s("button",{class:"absolute top-1/2 left-4 transform -translate-y-1/2 bg-white rounded-full p-2 shadow-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:n[0]||(n[0]=(...t)=>o.prevSlide&&o.prevSlide(...t))}," ❮ "),s("button",{class:"absolute top-1/2 right-4 transform -translate-y-1/2 bg-white rounded-full p-2 shadow-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:n[1]||(n[1]=(...t)=>o.nextSlide&&o.nextSlide(...t))}," ❯ ")]),s("figcaption",S,p(d.block.data.alt),1),b(u,{class:"",slide:e.slide,toggler:e.toggler,sources:e.items.map(t=>e.domainPath+"/storage/"+t)},null,8,["slide","toggler","sources"])],64)}const P=m(_,[["render",y]]);export{P as default}; +import{F as g}from"./v3-CDJmn87G.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as h,o as l,c as i,b as s,F as c,d as f,n as x,t as p,a as b}from"./app-lWrE2aWG.js";const _={name:"ClientImageSlider",components:{FsLightbox:g},data(){return{currentIndex:0,items:this.block.data.url,toggler:!1,domainPath:null,slide:null}},props:{block:{type:Array}},methods:{prevSlide(){this.currentIndex===0?this.currentIndex=this.items.length-1:this.currentIndex--},nextSlide(){this.currentIndex===this.items.length-1?this.currentIndex=0:this.currentIndex++},openLightboxOnSlide:function(a){this.slide=a,this.toggler=!this.toggler}},mounted(){this.domainPath=window.location.origin}},v={class:"relative"},k={class:"flex"},I=["onClick","src"],S={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function y(a,n,d,C,e,o){const u=h("FsLightbox");return l(),i(c,null,[s("div",v,[s("div",k,[(l(!0),i(c,null,f(e.items,(t,r)=>(l(),i("div",{key:r,class:x(["w-full",{block:e.currentIndex===r,hidden:e.currentIndex!==r}])},[s("img",{onClick:w=>o.openLightboxOnSlide(r+1),src:"/storage/"+t,class:"mx-auto max-h-[500px] object-cover rounded-md hover:opacity-95 hover:duration-200 transition"},null,8,I)],2))),128))]),s("button",{class:"absolute top-1/2 left-4 transform -translate-y-1/2 bg-white rounded-full p-2 shadow-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:n[0]||(n[0]=(...t)=>o.prevSlide&&o.prevSlide(...t))}," ❮ "),s("button",{class:"absolute top-1/2 right-4 transform -translate-y-1/2 bg-white rounded-full p-2 shadow-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:n[1]||(n[1]=(...t)=>o.nextSlide&&o.nextSlide(...t))}," ❯ ")]),s("figcaption",S,p(d.block.data.alt),1),b(u,{class:"",slide:e.slide,toggler:e.toggler,sources:e.items.map(t=>e.domainPath+"/storage/"+t)},null,8,["slide","toggler","sources"])],64)}const P=m(_,[["render",y]]);export{P as default}; diff --git a/public/build/assets/ClientPost-DIJzEVBF.js b/public/build/assets/ClientPost-HujX0ISt.js similarity index 97% rename from public/build/assets/ClientPost-DIJzEVBF.js rename to public/build/assets/ClientPost-HujX0ISt.js index b36d2cc..0e04ea1 100644 --- a/public/build/assets/ClientPost-DIJzEVBF.js +++ b/public/build/assets/ClientPost-HujX0ISt.js @@ -1 +1 @@ -import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as i,c as n,b as t,t as a,f as c}from"./app-CBssobj-.js";const d={name:"ClientPost",data(){return{}},methods:{textLimit(s,o){if(s.length>o){let e;return e=s.substring(0,o),e+"..."}return s}},props:{post:{type:Array}}},g={class:"group cursor-pointer"},h={class:"overflow-hidden rounded-md max-h-[250px] bg-gray-100 transition-all hover:scale-105 dark:bg-gray-800"},_=["href"],u=["src"],m={class:""},p={key:0,class:"flex gap-3"},x=["href"],f={class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"},y={key:1,class:"flex gap-3"},v={class:"text-lg font-semibold leading-snug tracking-tight mt-2 dark:text-white"},k=["href"],w={class:"duration-200 group-hover:text-gray-500"},b={class:""},C={class:"mt-2 line-clamp-3 text-sm text-gray-500 dark:text-gray-400"},B=["href"],L={class:"mt-3 flex items-center space-x-3 text-gray-500 dark:text-gray-400"},z={class:"flex items-center gap-3"},N={key:0,class:"truncate text-sm"},P={class:"truncate text-sm"};function T(s,o,e,V,j,r){return i(),n("div",g,[t("div",h,[t("a",{class:"relative block aspect-square",href:s.route("client.post.show",e.post.slug)},[t("img",{alt:"Thumbnail",loading:"lazy",decoding:"async","data-nimg":"fill",class:"object-cover transition-all",style:{position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"},sizes:"(max-width: 768px) 30vw, 33vw",src:e.post.preview?"/storage/"+e.post.preview:"/img/thumbnail-1.png"},null,8,u)],8,_)]),t("div",m,[t("div",null,[e.post.category?(i(),n("div",p,[t("a",{href:s.route("client.post.index",{"category[]":e.post.category.slug})},[t("span",f,a(e.post.category?e.post.category.title:"Новости"),1)],8,x)])):(i(),n("div",y,o[0]||(o[0]=[t("span",null,[t("span",{class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"}," Новости ")],-1)]))),t("h2",v,[t("a",{href:s.route("client.post.show",e.post.slug)},[t("span",w,a(e.post.title),1)],8,k)]),t("div",b,[t("p",C,[t("a",{href:s.route("client.post.show",e.post.slug)},a(e.post.preview_text),9,B)])]),t("div",L,[t("span",null,[t("div",z,[e.post?(i(),n("span",N,a(r.textLimit(e.post.authors[0],20)),1)):c("",!0)])]),o[1]||(o[1]=t("span",{class:"text-xs text-gray-300 dark:text-gray-600"},"•",-1)),t("span",P,a(e.post.created_post),1)])])])])}const D=l(d,[["render",T]]);export{D as C}; +import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as i,c as n,b as t,t as a,f as c}from"./app-lWrE2aWG.js";const d={name:"ClientPost",data(){return{}},methods:{textLimit(s,o){if(s.length>o){let e;return e=s.substring(0,o),e+"..."}return s}},props:{post:{type:Array}}},g={class:"group cursor-pointer"},h={class:"overflow-hidden rounded-md max-h-[250px] bg-gray-100 transition-all hover:scale-105 dark:bg-gray-800"},_=["href"],u=["src"],m={class:""},p={key:0,class:"flex gap-3"},x=["href"],f={class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"},y={key:1,class:"flex gap-3"},v={class:"text-lg font-semibold leading-snug tracking-tight mt-2 dark:text-white"},k=["href"],w={class:"duration-200 group-hover:text-gray-500"},b={class:""},C={class:"mt-2 line-clamp-3 text-sm text-gray-500 dark:text-gray-400"},B=["href"],L={class:"mt-3 flex items-center space-x-3 text-gray-500 dark:text-gray-400"},z={class:"flex items-center gap-3"},N={key:0,class:"truncate text-sm"},P={class:"truncate text-sm"};function T(s,o,e,V,j,r){return i(),n("div",g,[t("div",h,[t("a",{class:"relative block aspect-square",href:s.route("client.post.show",e.post.slug)},[t("img",{alt:"Thumbnail",loading:"lazy",decoding:"async","data-nimg":"fill",class:"object-cover transition-all",style:{position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"},sizes:"(max-width: 768px) 30vw, 33vw",src:e.post.preview?"/storage/"+e.post.preview:"/img/thumbnail-1.png"},null,8,u)],8,_)]),t("div",m,[t("div",null,[e.post.category?(i(),n("div",p,[t("a",{href:s.route("client.post.index",{"category[]":e.post.category.slug})},[t("span",f,a(e.post.category?e.post.category.title:"Новости"),1)],8,x)])):(i(),n("div",y,o[0]||(o[0]=[t("span",null,[t("span",{class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"}," Новости ")],-1)]))),t("h2",v,[t("a",{href:s.route("client.post.show",e.post.slug)},[t("span",w,a(e.post.title),1)],8,k)]),t("div",b,[t("p",C,[t("a",{href:s.route("client.post.show",e.post.slug)},a(e.post.preview_text),9,B)])]),t("div",L,[t("span",null,[t("div",z,[e.post?(i(),n("span",N,a(r.textLimit(e.post.authors[0],20)),1)):c("",!0)])]),o[1]||(o[1]=t("span",{class:"text-xs text-gray-300 dark:text-gray-600"},"•",-1)),t("span",P,a(e.post.created_post),1)])])])])}const D=l(d,[["render",T]]);export{D as C}; diff --git a/public/build/assets/ClientPostSearch-B5aUVN-Q.js b/public/build/assets/ClientPostSearch-DByct-eL.js similarity index 97% rename from public/build/assets/ClientPostSearch-B5aUVN-Q.js rename to public/build/assets/ClientPostSearch-DByct-eL.js index 858d77e..7357571 100644 --- a/public/build/assets/ClientPostSearch-B5aUVN-Q.js +++ b/public/build/assets/ClientPostSearch-DByct-eL.js @@ -1 +1 @@ -import{B as m,_ as x}from"./SearchModal-BTKERLZv.js";import{a as v,T as y,b as _}from"./SortingByFilter-Ds4x3JAu.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as d,o as a,c as i,b as t,h as k,a as c,g as h,t as g,f as u,F as B,m as C,p as j}from"./app-CBssobj-.js";const F={name:"ClientPostFilter",components:{SortingByFilter:v,TagFilter:y,CategoryFilter:_,BaseIcon:m},data(){return{}},props:{items:{type:Object},category_filter:{type:Object},sortingBy_filter:{type:Object},tag_filter:{type:Object},tags:{type:Object}}},z={id:"hs-offcanvas-example",class:"hs-overlay hs-overlay-open:translate-x-0 hidden -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full max-w-xs w-full z-[80] bg-white border-e overflow-auto",role:"dialog",tabindex:"-1","aria-labelledby":"hs-offcanvas-example-label"},S={class:"p-4"},I={class:"hs-accordion-group"},M=["id"],T={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 py-3 inline-flex items-center gap-x-3 w-full font-semibold text-start text-gray-800 hover:text-gray-500 focus:outline-none focus:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none","aria-expanded":"false","aria-controls":"hs-basic-with-arrow-collapse-two"},V={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-md text-xs font-medium border border-gray-200 bg-white text-gray-800 shadow-sm dark:bg-neutral-900 dark:border-neutral-700 dark:text-white"},N=["aria-labelledby"],O=["id"],P={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 py-3 inline-flex items-center gap-x-3 w-full font-semibold text-start text-gray-800 hover:text-gray-500 focus:outline-none focus:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none","aria-expanded":"false","aria-controls":"hs-basic-with-arrow-collapse-two"},U={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-md text-xs font-medium border border-gray-200 bg-white text-gray-800 shadow-sm dark:bg-neutral-900 dark:border-neutral-700 dark:text-white"},D=["aria-labelledby"];function H(r,e,o,p,n,l){const s=d("SortingByFilter"),w=d("CategoryFilter"),b=d("TagFilter");return a(),i(B,null,[e[7]||(e[7]=t("div",{class:"sm:col-span-2 md:grow"},[t("button",{type:"button",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"hs-offcanvas-example","data-hs-overlay":"#hs-offcanvas-example"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])])],-1)),t("div",z,[e[6]||(e[6]=k('

Фильтры

',1)),t("div",S,[c(s,{sortingBy_filter:o.sortingBy_filter},null,8,["sortingBy_filter"]),t("div",I,[t("div",{class:"hs-accordion",id:"id"+o.category_filter.type},[t("button",T,[e[0]||(e[0]=t("svg",{class:"hs-accordion-active:hidden block size-4",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",{d:"m6 9 6 6 6-6"})],-1)),e[1]||(e[1]=t("svg",{class:"hs-accordion-active:block hidden size-4",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",{d:"m18 15-6-6-6 6"})],-1)),e[2]||(e[2]=h(" Категории ")),o.category_filter.value?(a(),i("span",V,g(o.category_filter.value.length),1)):u("",!0)]),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+o.tag_filter.type},[c(w,{categories:o.items,category_filter:o.category_filter},null,8,["categories","category_filter"])],8,N)],8,M),t("div",{class:"hs-accordion",id:"id"+o.tag_filter.type},[t("button",P,[e[3]||(e[3]=t("svg",{class:"hs-accordion-active:hidden block size-4",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",{d:"m6 9 6 6 6-6"})],-1)),e[4]||(e[4]=t("svg",{class:"hs-accordion-active:block hidden size-4",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",{d:"m18 15-6-6-6 6"})],-1)),e[5]||(e[5]=h(" Тэги ")),o.tag_filter.value?(a(),i("span",U,g(o.tag_filter.value.length),1)):u("",!0)]),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+o.tag_filter.type},[c(b,{tags:o.tags,tag_filter:o.tag_filter},null,8,["tags","tag_filter"])],8,D)],8,O)])])])],64)}const Q=f(F,[["render",H]]),L={name:"AdminIndexSearch",data(){return{searchInput:this.search_filter.value}},methods:{search:x.debounce(function(){if(this.searchInput==""){let r=new URL(window.location.href);r.searchParams.delete("search");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,replace:!0})}else{let r=new URL(window.location.href);r.searchParams.delete("page");let e=r.toString();this.$inertia.visit(e,{method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})}},500)},props:["search_filter"]},R={class:"sm:col-span-1 w-full"},A={class:"relative"};function E(r,e,o,p,n,l){return a(),i("div",R,[e[3]||(e[3]=t("label",{for:"hs-as-table-product-review-search",class:"sr-only"},"Поиск",-1)),t("div",A,[C(t("input",{autocomplete:"off",onInput:e[0]||(e[0]=(...s)=>l.search&&l.search(...s)),"onUpdate:modelValue":e[1]||(e[1]=s=>n.searchInput=s),type:"text",id:"hs-as-table-product-review-search",name:"hs-as-table-product-review-search",class:"py-3 px-3 pl-11 block flex-1 w-full border-gray-200 shadow-sm rounded-md text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400",placeholder:"Поиск новостей"},null,544),[[j,n.searchInput]]),e[2]||(e[2]=t("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none pl-4"},[t("svg",{class:"h-4 w-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[t("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})])],-1))])])}const W=f(L,[["render",E]]);export{Q as C,W as a}; +import{B as m,_ as x}from"./SearchModal-CGHtjMJb.js";import{a as v,T as y,b as _}from"./SortingByFilter-DAe1p4QU.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as d,o as a,c as i,b as t,h as k,a as c,g as h,t as g,f as u,F as B,m as C,p as j}from"./app-lWrE2aWG.js";const F={name:"ClientPostFilter",components:{SortingByFilter:v,TagFilter:y,CategoryFilter:_,BaseIcon:m},data(){return{}},props:{items:{type:Object},category_filter:{type:Object},sortingBy_filter:{type:Object},tag_filter:{type:Object},tags:{type:Object}}},z={id:"hs-offcanvas-example",class:"hs-overlay hs-overlay-open:translate-x-0 hidden -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full max-w-xs w-full z-[80] bg-white border-e overflow-auto",role:"dialog",tabindex:"-1","aria-labelledby":"hs-offcanvas-example-label"},S={class:"p-4"},I={class:"hs-accordion-group"},M=["id"],T={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 py-3 inline-flex items-center gap-x-3 w-full font-semibold text-start text-gray-800 hover:text-gray-500 focus:outline-none focus:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none","aria-expanded":"false","aria-controls":"hs-basic-with-arrow-collapse-two"},V={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-md text-xs font-medium border border-gray-200 bg-white text-gray-800 shadow-sm dark:bg-neutral-900 dark:border-neutral-700 dark:text-white"},N=["aria-labelledby"],O=["id"],P={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 py-3 inline-flex items-center gap-x-3 w-full font-semibold text-start text-gray-800 hover:text-gray-500 focus:outline-none focus:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none","aria-expanded":"false","aria-controls":"hs-basic-with-arrow-collapse-two"},U={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-md text-xs font-medium border border-gray-200 bg-white text-gray-800 shadow-sm dark:bg-neutral-900 dark:border-neutral-700 dark:text-white"},D=["aria-labelledby"];function H(r,e,o,p,n,l){const s=d("SortingByFilter"),w=d("CategoryFilter"),b=d("TagFilter");return a(),i(B,null,[e[7]||(e[7]=t("div",{class:"sm:col-span-2 md:grow"},[t("button",{type:"button",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"hs-offcanvas-example","data-hs-overlay":"#hs-offcanvas-example"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])])],-1)),t("div",z,[e[6]||(e[6]=k('

Фильтры

',1)),t("div",S,[c(s,{sortingBy_filter:o.sortingBy_filter},null,8,["sortingBy_filter"]),t("div",I,[t("div",{class:"hs-accordion",id:"id"+o.category_filter.type},[t("button",T,[e[0]||(e[0]=t("svg",{class:"hs-accordion-active:hidden block size-4",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",{d:"m6 9 6 6 6-6"})],-1)),e[1]||(e[1]=t("svg",{class:"hs-accordion-active:block hidden size-4",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",{d:"m18 15-6-6-6 6"})],-1)),e[2]||(e[2]=h(" Категории ")),o.category_filter.value?(a(),i("span",V,g(o.category_filter.value.length),1)):u("",!0)]),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+o.tag_filter.type},[c(w,{categories:o.items,category_filter:o.category_filter},null,8,["categories","category_filter"])],8,N)],8,M),t("div",{class:"hs-accordion",id:"id"+o.tag_filter.type},[t("button",P,[e[3]||(e[3]=t("svg",{class:"hs-accordion-active:hidden block size-4",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",{d:"m6 9 6 6 6-6"})],-1)),e[4]||(e[4]=t("svg",{class:"hs-accordion-active:block hidden size-4",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",{d:"m18 15-6-6-6 6"})],-1)),e[5]||(e[5]=h(" Тэги ")),o.tag_filter.value?(a(),i("span",U,g(o.tag_filter.value.length),1)):u("",!0)]),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+o.tag_filter.type},[c(b,{tags:o.tags,tag_filter:o.tag_filter},null,8,["tags","tag_filter"])],8,D)],8,O)])])])],64)}const Q=f(F,[["render",H]]),L={name:"AdminIndexSearch",data(){return{searchInput:this.search_filter.value}},methods:{search:x.debounce(function(){if(this.searchInput==""){let r=new URL(window.location.href);r.searchParams.delete("search");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,replace:!0})}else{let r=new URL(window.location.href);r.searchParams.delete("page");let e=r.toString();this.$inertia.visit(e,{method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})}},500)},props:["search_filter"]},R={class:"sm:col-span-1 w-full"},A={class:"relative"};function E(r,e,o,p,n,l){return a(),i("div",R,[e[3]||(e[3]=t("label",{for:"hs-as-table-product-review-search",class:"sr-only"},"Поиск",-1)),t("div",A,[C(t("input",{autocomplete:"off",onInput:e[0]||(e[0]=(...s)=>l.search&&l.search(...s)),"onUpdate:modelValue":e[1]||(e[1]=s=>n.searchInput=s),type:"text",id:"hs-as-table-product-review-search",name:"hs-as-table-product-review-search",class:"py-3 px-3 pl-11 block flex-1 w-full border-gray-200 shadow-sm rounded-md text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400",placeholder:"Поиск новостей"},null,544),[[j,n.searchInput]]),e[2]||(e[2]=t("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none pl-4"},[t("svg",{class:"h-4 w-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[t("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})])],-1))])])}const W=f(L,[["render",E]]);export{Q as C,W as a}; diff --git a/public/build/assets/ClientProgramFilter-B4xNQg9z.js b/public/build/assets/ClientProgramFilter-C-_lryip.js similarity index 98% rename from public/build/assets/ClientProgramFilter-B4xNQg9z.js rename to public/build/assets/ClientProgramFilter-C-_lryip.js index 880f75f..3588ec1 100644 --- a/public/build/assets/ClientProgramFilter-B4xNQg9z.js +++ b/public/build/assets/ClientProgramFilter-C-_lryip.js @@ -1 +1 @@ -import{i as w,m as x,v as j,o as a,c as d,b as t,l as y,F as g,d as _,t as k,r as h,a as f,s as C,u as S,h as b}from"./app-CBssobj-.js";import{B as m,_ as F}from"./SearchModal-BTKERLZv.js";import{S as E,C as B,a as U,T as L,b as O}from"./SortingByFilter-Ds4x3JAu.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";const P={name:"LevelEduFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{levelEdu:this.level_filter.value||""}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("level");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{level:this.levelEdu}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("level");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},props:{levels:{type:Object},level_filter:{type:Object}}},$=["value"];function z(r,e,i,v,c,o){return x((a(),d("select",{onChange:e[1]||(e[1]=(...s)=>o.filter&&o.filter(...s)),"onUpdate:modelValue":e[2]||(e[2]=s=>c.levelEdu=s),class:"py-3 px-4 pe-9 block w-full md:w-1/2 border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none"},[t("option",{onClick:e[0]||(e[0]=y((...s)=>o.clearFilter&&o.clearFilter(...s),["prevent"])),selected:"",value:""},"Все"),(a(!0),d(g,null,_(i.levels,(s,l)=>(a(),d("option",{value:l},k(s),9,$))),256))],544)),[[j,c.levelEdu]])}const ye=p(P,[["render",z]]),R={name:"FormEducationalFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{formEdu:this.formEdu_filter.value||[]}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("form");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{form:this.formEdu}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("form"),this.formEdu=[],this.searchTerm="";let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},computed:{},props:{forms:{type:Object},formEdu_filter:{type:Object}}},M={class:"min-w-[12rem] py-1 space-y-3"},I={class:"divide-y divide-gray-200 dark:divide-gray-700 max-h-[30vh] overflow-y-auto"},V={class:"flex flex-col ml-3"},D=["value","id"],T=["for"];function N(r,e,i,v,c,o){const s=h("BaseIcon");return a(),d("div",M,[t("button",{onClick:e[0]||(e[0]=y((...l)=>o.clearFilter&&o.clearFilter(...l),["prevent"])),class:"text-gray-500 text-sm flex gap-x-1 items-center hover:text-gray-700"},[f(s,{class:"w-4 h-4",name:"delete"}),e[3]||(e[3]=t("span",null,"Очистить",-1))]),t("div",I,[t("div",null,[t("div",V,[(a(!0),d(g,null,_(i.forms,(l,n)=>(a(),d("div",null,[x(t("input",{"onUpdate:modelValue":e[1]||(e[1]=u=>c.formEdu=u),value:n,onChange:e[2]||(e[2]=(...u)=>o.filter&&o.filter(...u)),type:"radio",class:"shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none",id:"inp-tag"+n},null,40,D),[[C,c.formEdu]]),t("label",{for:"inp-tag"+n,class:"text-sm text-gray-500 ms-3 dark:text-neutral-400"},k(l),9,T)]))),256))])])])])}const H=p(R,[["render",N]]),q={name:"BudgetFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{budgetEdu:this.budget_filter.value||[]}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("budget");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{budget:this.budgetEdu}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("budget"),this.budgetEdu=[],this.searchTerm="";let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},computed:{},props:{budgets:{type:Object},budget_filter:{type:Object}}},A={class:"min-w-[12rem] py-1 space-y-3"},G={class:"divide-y divide-gray-200 dark:divide-gray-700 max-h-[30vh] overflow-y-auto"},J={class:"flex flex-col ml-3"},K=["value","id"],Q=["for"];function W(r,e,i,v,c,o){const s=h("BaseIcon");return a(),d("div",A,[t("button",{onClick:e[0]||(e[0]=y((...l)=>o.clearFilter&&o.clearFilter(...l),["prevent"])),class:"text-gray-500 text-sm flex gap-x-1 items-center hover:text-gray-700"},[f(s,{class:"w-4 h-4",name:"delete"}),e[3]||(e[3]=t("span",null,"Очистить",-1))]),t("div",G,[t("div",null,[t("div",J,[(a(!0),d(g,null,_(i.budgets,(l,n)=>(a(),d("div",null,[x(t("input",{"onUpdate:modelValue":e[1]||(e[1]=u=>c.budgetEdu=u),value:n,onChange:e[2]||(e[2]=(...u)=>o.filter&&o.filter(...u)),type:"radio",class:"shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none",id:"inp-tag"+n},null,40,K),[[C,c.budgetEdu]]),t("label",{for:"inp-tag"+n,class:"text-sm text-gray-500 ms-3 dark:text-neutral-400"},k(l),9,Q)]))),256))])])])])}const X=p(q,[["render",W]]),Y={name:"DirectionFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{direction:this.direction_filter.value||[],tag_slug:[],searchTerm:""}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("direction[]");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{direction:this.direction}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("direction[]"),this.direction=[],this.searchTerm="";let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},computed:{},props:{direction_studies:{type:Object},direction_filter:{type:Object}}},Z={class:"min-w-[12rem] py-1 space-y-3"},ee={class:"divide-y divide-gray-200 dark:divide-gray-700 max-h-[30vh] overflow-y-auto"},te={class:"flex flex-col ml-3"},re=["value","id"],ie=["for"];function oe(r,e,i,v,c,o){const s=h("BaseIcon");return a(),d("div",Z,[t("button",{onClick:e[0]||(e[0]=y((...l)=>o.clearFilter&&o.clearFilter(...l),["prevent"])),class:"text-gray-500 text-sm flex gap-x-1 items-center hover:text-gray-700"},[f(s,{class:"w-4 h-4",name:"delete"}),e[3]||(e[3]=t("span",null,"Очистить",-1))]),t("div",ee,[t("div",null,[t("div",te,[(a(!0),d(g,null,_(i.direction_studies,l=>(a(),d("div",{key:l.id},[x(t("input",{"onUpdate:modelValue":e[1]||(e[1]=n=>c.direction=n),value:l.slug,onChange:e[2]||(e[2]=(...n)=>o.filter&&o.filter(...n)),type:"checkbox",class:"shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none",id:"inp"+l.id},null,40,re),[[S,c.direction]]),t("label",{for:"inp"+l.id,class:"text-sm text-gray-500 ms-3 dark:text-neutral-400"},k(l.name),9,ie)]))),128))])])])])}const le=p(Y,[["render",oe]]),se={name:"ClientProgramFilter",components:{DirectionFilter:le,FormEducationalFilter:H,BudgetFilter:X,SortingByFilter:U,TagFilter:L,CategoryFilter:O,BaseIcon:m},data(){return{}},props:{forms_educational:{type:Object},budget_filter:{type:Object},direction_filter:{type:Object},formEdu_filter:{type:Object},types_budget:{type:Object},direction_studies:{type:Object}}},ne={id:"hs-offcanvas-example",class:"hs-overlay hs-overlay-open:translate-x-0 hidden -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full max-w-xs w-full z-[80] bg-white border-e overflow-auto",role:"dialog",tabindex:"-1","aria-labelledby":"hs-offcanvas-example-label"},ae={class:"p-4"},de={class:"hs-accordion-group"},ce=["id"],ue=["aria-labelledby"],he=["id"],fe=["aria-labelledby"],ge=["id"],me=["aria-labelledby"];function pe(r,e,i,v,c,o){const s=h("FormEducationalFilter"),l=h("BudgetFilter"),n=h("DirectionFilter");return a(),d(g,null,[e[4]||(e[4]=t("div",{class:""},[t("button",{type:"button",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"hs-offcanvas-example","data-hs-overlay":"#hs-offcanvas-example"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])])],-1)),t("div",ne,[e[3]||(e[3]=b('

Фильтры

',1)),t("div",ae,[t("div",de,[t("div",{class:"hs-accordion",id:"id"+i.formEdu_filter.type},[e[0]||(e[0]=b('',1)),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+i.formEdu_filter.type},[f(s,{forms:i.forms_educational,formEdu_filter:i.formEdu_filter},null,8,["forms","formEdu_filter"])],8,ue)],8,ce),t("div",{class:"hs-accordion",id:"id"+i.budget_filter.type},[e[1]||(e[1]=b('',1)),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+i.formEdu_filter.type},[f(l,{budgets:i.types_budget,budget_filter:i.budget_filter},null,8,["budgets","budget_filter"])],8,fe)],8,he),t("div",{class:"hs-accordion",id:"id"+i.direction_filter.type},[e[2]||(e[2]=b('',1)),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+i.direction_filter.type},[f(n,{direction_filter:i.direction_filter,direction_studies:i.direction_studies},null,8,["direction_filter","direction_studies"])],8,me)],8,ge)])])])],64)}const _e=p(se,[["render",pe]]);export{_e as C,ye as L}; +import{i as w,m as x,v as j,o as a,c as d,b as t,l as y,F as g,d as _,t as k,r as h,a as f,s as C,u as S,h as b}from"./app-lWrE2aWG.js";import{B as m,_ as F}from"./SearchModal-CGHtjMJb.js";import{S as E,C as B,a as U,T as L,b as O}from"./SortingByFilter-DAe1p4QU.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";const P={name:"LevelEduFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{levelEdu:this.level_filter.value||""}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("level");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{level:this.levelEdu}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("level");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},props:{levels:{type:Object},level_filter:{type:Object}}},$=["value"];function z(r,e,i,v,c,o){return x((a(),d("select",{onChange:e[1]||(e[1]=(...s)=>o.filter&&o.filter(...s)),"onUpdate:modelValue":e[2]||(e[2]=s=>c.levelEdu=s),class:"py-3 px-4 pe-9 block w-full md:w-1/2 border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none"},[t("option",{onClick:e[0]||(e[0]=y((...s)=>o.clearFilter&&o.clearFilter(...s),["prevent"])),selected:"",value:""},"Все"),(a(!0),d(g,null,_(i.levels,(s,l)=>(a(),d("option",{value:l},k(s),9,$))),256))],544)),[[j,c.levelEdu]])}const ye=p(P,[["render",z]]),R={name:"FormEducationalFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{formEdu:this.formEdu_filter.value||[]}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("form");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{form:this.formEdu}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("form"),this.formEdu=[],this.searchTerm="";let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},computed:{},props:{forms:{type:Object},formEdu_filter:{type:Object}}},M={class:"min-w-[12rem] py-1 space-y-3"},I={class:"divide-y divide-gray-200 dark:divide-gray-700 max-h-[30vh] overflow-y-auto"},V={class:"flex flex-col ml-3"},D=["value","id"],T=["for"];function N(r,e,i,v,c,o){const s=h("BaseIcon");return a(),d("div",M,[t("button",{onClick:e[0]||(e[0]=y((...l)=>o.clearFilter&&o.clearFilter(...l),["prevent"])),class:"text-gray-500 text-sm flex gap-x-1 items-center hover:text-gray-700"},[f(s,{class:"w-4 h-4",name:"delete"}),e[3]||(e[3]=t("span",null,"Очистить",-1))]),t("div",I,[t("div",null,[t("div",V,[(a(!0),d(g,null,_(i.forms,(l,n)=>(a(),d("div",null,[x(t("input",{"onUpdate:modelValue":e[1]||(e[1]=u=>c.formEdu=u),value:n,onChange:e[2]||(e[2]=(...u)=>o.filter&&o.filter(...u)),type:"radio",class:"shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none",id:"inp-tag"+n},null,40,D),[[C,c.formEdu]]),t("label",{for:"inp-tag"+n,class:"text-sm text-gray-500 ms-3 dark:text-neutral-400"},k(l),9,T)]))),256))])])])])}const H=p(R,[["render",N]]),q={name:"BudgetFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{budgetEdu:this.budget_filter.value||[]}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("budget");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{budget:this.budgetEdu}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("budget"),this.budgetEdu=[],this.searchTerm="";let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},computed:{},props:{budgets:{type:Object},budget_filter:{type:Object}}},A={class:"min-w-[12rem] py-1 space-y-3"},G={class:"divide-y divide-gray-200 dark:divide-gray-700 max-h-[30vh] overflow-y-auto"},J={class:"flex flex-col ml-3"},K=["value","id"],Q=["for"];function W(r,e,i,v,c,o){const s=h("BaseIcon");return a(),d("div",A,[t("button",{onClick:e[0]||(e[0]=y((...l)=>o.clearFilter&&o.clearFilter(...l),["prevent"])),class:"text-gray-500 text-sm flex gap-x-1 items-center hover:text-gray-700"},[f(s,{class:"w-4 h-4",name:"delete"}),e[3]||(e[3]=t("span",null,"Очистить",-1))]),t("div",G,[t("div",null,[t("div",J,[(a(!0),d(g,null,_(i.budgets,(l,n)=>(a(),d("div",null,[x(t("input",{"onUpdate:modelValue":e[1]||(e[1]=u=>c.budgetEdu=u),value:n,onChange:e[2]||(e[2]=(...u)=>o.filter&&o.filter(...u)),type:"radio",class:"shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none",id:"inp-tag"+n},null,40,K),[[C,c.budgetEdu]]),t("label",{for:"inp-tag"+n,class:"text-sm text-gray-500 ms-3 dark:text-neutral-400"},k(l),9,Q)]))),256))])])])])}const X=p(q,[["render",W]]),Y={name:"DirectionFilter",components:{BaseIcon:m,Link:w,SearchBadge:E,CategoryBadge:B},data(){return{direction:this.direction_filter.value||[],tag_slug:[],searchTerm:""}},methods:{filter:F.debounce(function(){let r=new URL(window.location.href);r.searchParams.delete("page"),r.searchParams.delete("direction[]");let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0,data:{direction:this.direction}})},500),clearFilter(){let r=new URL(window.location.href);r.searchParams.delete("direction[]"),this.direction=[],this.searchTerm="";let e=r.toString();this.$inertia.visit(e,{method:"get",preserveState:!0})}},computed:{},props:{direction_studies:{type:Object},direction_filter:{type:Object}}},Z={class:"min-w-[12rem] py-1 space-y-3"},ee={class:"divide-y divide-gray-200 dark:divide-gray-700 max-h-[30vh] overflow-y-auto"},te={class:"flex flex-col ml-3"},re=["value","id"],ie=["for"];function oe(r,e,i,v,c,o){const s=h("BaseIcon");return a(),d("div",Z,[t("button",{onClick:e[0]||(e[0]=y((...l)=>o.clearFilter&&o.clearFilter(...l),["prevent"])),class:"text-gray-500 text-sm flex gap-x-1 items-center hover:text-gray-700"},[f(s,{class:"w-4 h-4",name:"delete"}),e[3]||(e[3]=t("span",null,"Очистить",-1))]),t("div",ee,[t("div",null,[t("div",te,[(a(!0),d(g,null,_(i.direction_studies,l=>(a(),d("div",{key:l.id},[x(t("input",{"onUpdate:modelValue":e[1]||(e[1]=n=>c.direction=n),value:l.slug,onChange:e[2]||(e[2]=(...n)=>o.filter&&o.filter(...n)),type:"checkbox",class:"shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none",id:"inp"+l.id},null,40,re),[[S,c.direction]]),t("label",{for:"inp"+l.id,class:"text-sm text-gray-500 ms-3 dark:text-neutral-400"},k(l.name),9,ie)]))),128))])])])])}const le=p(Y,[["render",oe]]),se={name:"ClientProgramFilter",components:{DirectionFilter:le,FormEducationalFilter:H,BudgetFilter:X,SortingByFilter:U,TagFilter:L,CategoryFilter:O,BaseIcon:m},data(){return{}},props:{forms_educational:{type:Object},budget_filter:{type:Object},direction_filter:{type:Object},formEdu_filter:{type:Object},types_budget:{type:Object},direction_studies:{type:Object}}},ne={id:"hs-offcanvas-example",class:"hs-overlay hs-overlay-open:translate-x-0 hidden -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full max-w-xs w-full z-[80] bg-white border-e overflow-auto",role:"dialog",tabindex:"-1","aria-labelledby":"hs-offcanvas-example-label"},ae={class:"p-4"},de={class:"hs-accordion-group"},ce=["id"],ue=["aria-labelledby"],he=["id"],fe=["aria-labelledby"],ge=["id"],me=["aria-labelledby"];function pe(r,e,i,v,c,o){const s=h("FormEducationalFilter"),l=h("BudgetFilter"),n=h("DirectionFilter");return a(),d(g,null,[e[4]||(e[4]=t("div",{class:""},[t("button",{type:"button",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"hs-offcanvas-example","data-hs-overlay":"#hs-offcanvas-example"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])])],-1)),t("div",ne,[e[3]||(e[3]=b('

Фильтры

',1)),t("div",ae,[t("div",de,[t("div",{class:"hs-accordion",id:"id"+i.formEdu_filter.type},[e[0]||(e[0]=b('',1)),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+i.formEdu_filter.type},[f(s,{forms:i.forms_educational,formEdu_filter:i.formEdu_filter},null,8,["forms","formEdu_filter"])],8,ue)],8,ce),t("div",{class:"hs-accordion",id:"id"+i.budget_filter.type},[e[1]||(e[1]=b('',1)),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+i.formEdu_filter.type},[f(l,{budgets:i.types_budget,budget_filter:i.budget_filter},null,8,["budgets","budget_filter"])],8,fe)],8,he),t("div",{class:"hs-accordion",id:"id"+i.direction_filter.type},[e[2]||(e[2]=b('',1)),t("div",{id:"hs-basic-with-arrow-collapse-two",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"id"+i.direction_filter.type},[f(n,{direction_filter:i.direction_filter,direction_studies:i.direction_studies},null,8,["direction_filter","direction_studies"])],8,me)],8,ge)])])])],64)}const _e=p(se,[["render",pe]]);export{_e as C,ye as L}; diff --git a/public/build/assets/ClientScrollTimeline-CnUXvyjc.js b/public/build/assets/ClientScrollTimeline-9x6SH9Qu.js similarity index 76% rename from public/build/assets/ClientScrollTimeline-CnUXvyjc.js rename to public/build/assets/ClientScrollTimeline-9x6SH9Qu.js index 583e464..bf3524e 100644 --- a/public/build/assets/ClientScrollTimeline-CnUXvyjc.js +++ b/public/build/assets/ClientScrollTimeline-9x6SH9Qu.js @@ -1 +1 @@ -import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as t}from"./app-CBssobj-.js";const r={name:"ClientScrollTimeline"},c={id:"progress"};function n(s,a,i,_,l,p){return o(),t("div",c)}const m=e(r,[["render",n],["__scopeId","data-v-ffdaa09f"]]);export{m as C}; +import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as t}from"./app-lWrE2aWG.js";const r={name:"ClientScrollTimeline"},c={id:"progress"};function n(s,a,i,_,l,p){return o(),t("div",c)}const m=e(r,[["render",n],["__scopeId","data-v-ffdaa09f"]]);export{m as C}; diff --git a/public/build/assets/CreateSchedule-SWFrYdlt.js b/public/build/assets/CreateSchedule-CmquFr42.js similarity index 99% rename from public/build/assets/CreateSchedule-SWFrYdlt.js rename to public/build/assets/CreateSchedule-CmquFr42.js index 3e9873b..39352e2 100644 --- a/public/build/assets/CreateSchedule-SWFrYdlt.js +++ b/public/build/assets/CreateSchedule-CmquFr42.js @@ -1 +1 @@ -import{o as n,c as a,b as t,F as u,d as v,x as w,i as m,r as c,a as b,w as p,t as f}from"./app-CBssobj-.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";const y={name:"Repeater",data(){return{blocks:[]}},methods:{addBlock(){this.blocks.push({})},removeBlock(s){this.blocks.splice(s,1)}}},_={class:"space-y-4"},B={class:"flex gap-x-3"},z=["onClick"];function C(s,e,k,x,d,o){return n(),a("div",null,[t("div",_,[(n(!0),a(u,null,v(d.blocks,(r,l)=>(n(),a("div",{key:l},[t("div",B,[w(s.$slots,"block",{index:l,block:r}),t("button",{class:"hover:text-gray-500",onClick:i=>o.removeBlock(l)},e[1]||(e[1]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1)]),8,z)])]))),128))]),t("button",{class:"hover:text-gray-500 flex mx-auto mt-3 gap-x-1",onClick:e[0]||(e[0]=(...r)=>o.addBlock&&o.addBlock(...r))},e[2]||(e[2]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),t("span",null,"Добавить день",-1)]))])}const j=g(y,[["render",C]]),M={name:"CreateSchedule",data(){return{days:[]}},computed:{weekDays(){return["Понедельник","Вторник","Среда","Четверг","Пятница","Суббота","Воскресенье"]}},props:{},components:{Repeater:j,Link:m},methods:{saveBlocks(){const s=JSON.stringify(this.blocks);console.log(s)}}},$={id:"sidebar-mini",class:"transform fixed top-0 start-0 bottom-0 z-[60] w-20 bg-white border-e border-gray-200 lg:block lg:translate-x-0 lg:end-auto lg:bottom-0 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-800 dark:border-neutral-700",role:"dialog",tabindex:"-1","aria-label":"Mini Sidebar"},H={class:"flex flex-col justify-center items-center gap-y-2 py-4"},S={class:"mb-4"},L={class:"relative h-screen w-full"},N={class:"py-10 lg:py-14"},R={class:"max-w-4xl px-4 sm:px-6 lg:px-8 mx-auto text-center"},D={class:"w-full py-3 border"};function F(s,e,k,x,d,o){const r=c("Link"),l=c("Repeater");return n(),a(u,null,[t("div",$,[t("div",H,[t("div",S,[b(r,{class:"flex-none text-xl font-semibold",href:"/","aria-label":"Brand"},{default:p(()=>e[1]||(e[1]=[t("img",{class:"max-w-[40px]",src:"/logos/only_logo.svg",alt:""},null,-1)])),_:1})]),e[2]||(e[2]=t("div",{class:"hs-tooltip [--placement:right] inline-block"},[t("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[t("svg",{class:"shrink-0 size-4",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",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),t("polyline",{points:"9 22 9 12 15 12 15 22"})]),t("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Home ")])],-1)),e[3]||(e[3]=t("div",{class:"hs-tooltip [--placement:right] inline-block"},[t("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[t("svg",{class:"shrink-0 size-4",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",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),t("circle",{cx:"9",cy:"7",r:"4"}),t("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),t("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]),t("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Users ")])],-1)),e[4]||(e[4]=t("div",{class:"hs-tooltip [--placement:right] inline-block"},[t("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[t("svg",{class:"shrink-0 size-4",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",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}),t("path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"})]),t("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Notifications ")])],-1))])]),t("div",L,[t("div",N,[t("div",R,[e[5]||(e[5]=t("h1",{class:"text-3xl font-bold text-gray-800 sm:text-4xl dark:text-white"}," Расписание НТГСПИ ",-1)),e[6]||(e[6]=t("p",{class:"mt-3 text-gray-600 dark:text-neutral-400"}," Онлайн веб конструктор ",-1)),t("div",null,[b(l,null,{block:p(({block:i,index:h})=>[t("div",D,f(o.weekDays[h]),1)]),_:1}),t("button",{onClick:e[0]||(e[0]=(...i)=>o.saveBlocks&&o.saveBlocks(...i)),type:"button",class:"hidden py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 text-gray-500 hover:border-blue-600 hover:text-blue-600 focus:outline-none focus:border-blue-600 focus:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-neutral-400 dark:hover:text-blue-500 dark:hover:border-blue-600 dark:focus:text-blue-500 dark:focus:border-blue-600"}," Сохранить ")])])])])],64)}const Z=g(M,[["render",F]]);export{Z as default}; +import{o as n,c as a,b as t,F as u,d as v,x as w,i as m,r as c,a as b,w as p,t as f}from"./app-lWrE2aWG.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";const y={name:"Repeater",data(){return{blocks:[]}},methods:{addBlock(){this.blocks.push({})},removeBlock(s){this.blocks.splice(s,1)}}},_={class:"space-y-4"},B={class:"flex gap-x-3"},z=["onClick"];function C(s,e,k,x,d,o){return n(),a("div",null,[t("div",_,[(n(!0),a(u,null,v(d.blocks,(r,l)=>(n(),a("div",{key:l},[t("div",B,[w(s.$slots,"block",{index:l,block:r}),t("button",{class:"hover:text-gray-500",onClick:i=>o.removeBlock(l)},e[1]||(e[1]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1)]),8,z)])]))),128))]),t("button",{class:"hover:text-gray-500 flex mx-auto mt-3 gap-x-1",onClick:e[0]||(e[0]=(...r)=>o.addBlock&&o.addBlock(...r))},e[2]||(e[2]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),t("span",null,"Добавить день",-1)]))])}const j=g(y,[["render",C]]),M={name:"CreateSchedule",data(){return{days:[]}},computed:{weekDays(){return["Понедельник","Вторник","Среда","Четверг","Пятница","Суббота","Воскресенье"]}},props:{},components:{Repeater:j,Link:m},methods:{saveBlocks(){const s=JSON.stringify(this.blocks);console.log(s)}}},$={id:"sidebar-mini",class:"transform fixed top-0 start-0 bottom-0 z-[60] w-20 bg-white border-e border-gray-200 lg:block lg:translate-x-0 lg:end-auto lg:bottom-0 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-800 dark:border-neutral-700",role:"dialog",tabindex:"-1","aria-label":"Mini Sidebar"},H={class:"flex flex-col justify-center items-center gap-y-2 py-4"},S={class:"mb-4"},L={class:"relative h-screen w-full"},N={class:"py-10 lg:py-14"},R={class:"max-w-4xl px-4 sm:px-6 lg:px-8 mx-auto text-center"},D={class:"w-full py-3 border"};function F(s,e,k,x,d,o){const r=c("Link"),l=c("Repeater");return n(),a(u,null,[t("div",$,[t("div",H,[t("div",S,[b(r,{class:"flex-none text-xl font-semibold",href:"/","aria-label":"Brand"},{default:p(()=>e[1]||(e[1]=[t("img",{class:"max-w-[40px]",src:"/logos/only_logo.svg",alt:""},null,-1)])),_:1})]),e[2]||(e[2]=t("div",{class:"hs-tooltip [--placement:right] inline-block"},[t("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[t("svg",{class:"shrink-0 size-4",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",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),t("polyline",{points:"9 22 9 12 15 12 15 22"})]),t("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Home ")])],-1)),e[3]||(e[3]=t("div",{class:"hs-tooltip [--placement:right] inline-block"},[t("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[t("svg",{class:"shrink-0 size-4",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",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),t("circle",{cx:"9",cy:"7",r:"4"}),t("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),t("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]),t("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Users ")])],-1)),e[4]||(e[4]=t("div",{class:"hs-tooltip [--placement:right] inline-block"},[t("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[t("svg",{class:"shrink-0 size-4",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",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}),t("path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"})]),t("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Notifications ")])],-1))])]),t("div",L,[t("div",N,[t("div",R,[e[5]||(e[5]=t("h1",{class:"text-3xl font-bold text-gray-800 sm:text-4xl dark:text-white"}," Расписание НТГСПИ ",-1)),e[6]||(e[6]=t("p",{class:"mt-3 text-gray-600 dark:text-neutral-400"}," Онлайн веб конструктор ",-1)),t("div",null,[b(l,null,{block:p(({block:i,index:h})=>[t("div",D,f(o.weekDays[h]),1)]),_:1}),t("button",{onClick:e[0]||(e[0]=(...i)=>o.saveBlocks&&o.saveBlocks(...i)),type:"button",class:"hidden py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 text-gray-500 hover:border-blue-600 hover:text-blue-600 focus:outline-none focus:border-blue-600 focus:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-neutral-400 dark:hover:text-blue-500 dark:hover:border-blue-600 dark:focus:text-blue-500 dark:focus:border-blue-600"}," Сохранить ")])])])])],64)}const Z=g(M,[["render",F]]);export{Z as default}; diff --git a/public/build/assets/DateBlock-B5Hbafqw.js b/public/build/assets/DateBlock-BgabaFZh.js similarity index 96% rename from public/build/assets/DateBlock-B5Hbafqw.js rename to public/build/assets/DateBlock-BgabaFZh.js index 8bfd498..fda431e 100644 --- a/public/build/assets/DateBlock-B5Hbafqw.js +++ b/public/build/assets/DateBlock-BgabaFZh.js @@ -1 +1 @@ -import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as r,c as o,b as t,t as s,n as i,f as d,F as c,d as m}from"./app-CBssobj-.js";const u={name:"DateBlock",data(){return{}},methods:{},props:{block:{type:Object},error:{type:Object}}},b={class:"mb-4 sm:mb-8"},_=["for"],f={class:"relative"},k=["required","name","id","placeholder"],x={key:0,class:"absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3"},h={key:0,class:"mt-2 text-sm text-gray-500",id:"hs-input-helper-text"},y={class:"text-sm text-red-600 mt-2",id:"hs-validation-name-error-helper"};function g(p,a,e,v,w,B){return r(),o("div",b,[t("label",{for:e.block.data.name_field+"-id",class:"block mb-2 text-sm font-medium"},s(e.block.data.title_field),9,_),t("div",f,[t("input",{required:e.block.data.rules.required,name:e.block.data.name_field,type:"date",id:e.block.data.name_field+"-id",class:i([e.error?"border-red-500 focus:border-red-500 focus:ring-red-500":"focus:border-blue-500 focus:ring-blue-500","py-3 px-4 block w-full border-gray-200 rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none"]),placeholder:e.block.data.title_field},null,10,k),e.error?(r(),o("div",x,a[0]||(a[0]=[t("svg",{class:"shrink-0 size-4 text-red-500",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("circle",{cx:"12",cy:"12",r:"10"}),t("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),t("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})],-1)]))):d("",!0)]),e.error?d("",!0):(r(),o("p",h,s(e.block.data.description),1)),(r(!0),o(c,null,m(e.error,l=>(r(),o("p",y,s(l),1))),256))])}const C=n(u,[["render",g]]);export{C as default}; +import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as r,c as o,b as t,t as s,n as i,f as d,F as c,d as m}from"./app-lWrE2aWG.js";const u={name:"DateBlock",data(){return{}},methods:{},props:{block:{type:Object},error:{type:Object}}},b={class:"mb-4 sm:mb-8"},_=["for"],f={class:"relative"},k=["required","name","id","placeholder"],x={key:0,class:"absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3"},h={key:0,class:"mt-2 text-sm text-gray-500",id:"hs-input-helper-text"},y={class:"text-sm text-red-600 mt-2",id:"hs-validation-name-error-helper"};function g(p,a,e,v,w,B){return r(),o("div",b,[t("label",{for:e.block.data.name_field+"-id",class:"block mb-2 text-sm font-medium"},s(e.block.data.title_field),9,_),t("div",f,[t("input",{required:e.block.data.rules.required,name:e.block.data.name_field,type:"date",id:e.block.data.name_field+"-id",class:i([e.error?"border-red-500 focus:border-red-500 focus:ring-red-500":"focus:border-blue-500 focus:ring-blue-500","py-3 px-4 block w-full border-gray-200 rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none"]),placeholder:e.block.data.title_field},null,10,k),e.error?(r(),o("div",x,a[0]||(a[0]=[t("svg",{class:"shrink-0 size-4 text-red-500",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("circle",{cx:"12",cy:"12",r:"10"}),t("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),t("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})],-1)]))):d("",!0)]),e.error?d("",!0):(r(),o("p",h,s(e.block.data.description),1)),(r(!0),o(c,null,m(e.error,l=>(r(),o("p",y,s(l),1))),256))])}const C=n(u,[["render",g]]);export{C as default}; diff --git a/public/build/assets/EmailBlock-Cbj5wFPK.js b/public/build/assets/EmailBlock-BS6HPJA5.js similarity index 96% rename from public/build/assets/EmailBlock-Cbj5wFPK.js rename to public/build/assets/EmailBlock-BS6HPJA5.js index bddc0c6..b817dd9 100644 --- a/public/build/assets/EmailBlock-Cbj5wFPK.js +++ b/public/build/assets/EmailBlock-BS6HPJA5.js @@ -1 +1 @@ -import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as r,c as o,b as t,t as a,n as d,f as s,F as c,d as m}from"./app-CBssobj-.js";const u={name:"EmailBlock",data(){return{}},methods:{},props:{block:{type:Object},error:{type:Object}}},b={class:"mb-4 sm:mb-8"},_=["for"],f={class:"relative"},k=["required","name","min","max","id","placeholder"],x={key:0,class:"absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3"},h={key:0,class:"mt-2 text-sm text-gray-500",id:"hs-input-helper-text"},y={class:"text-sm text-red-600 mt-2",id:"hs-validation-name-error-helper"};function g(v,l,e,w,p,B){return r(),o("div",b,[t("label",{for:e.block.data.name_field+"-id",class:"block mb-2 text-sm font-medium"},a(e.block.data.title_field),9,_),t("div",f,[t("input",{required:e.block.data.rules.required,name:e.block.data.name_field,min:e.block.data.rules.min,max:e.block.data.rules.max,type:"email",id:e.block.data.name_field+"-id",class:d([e.error?"border-red-500 focus:border-red-500 focus:ring-red-500":"focus:border-blue-500 focus:ring-blue-500","py-3 px-4 block w-full border-gray-200 rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none"]),placeholder:e.block.data.title_field},null,10,k),e.error?(r(),o("div",x,l[0]||(l[0]=[t("svg",{class:"shrink-0 size-4 text-red-500",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("circle",{cx:"12",cy:"12",r:"10"}),t("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),t("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})],-1)]))):s("",!0)]),e.error?s("",!0):(r(),o("p",h,a(e.block.data.description),1)),(r(!0),o(c,null,m(e.error,i=>(r(),o("p",y,a(i),1))),256))])}const C=n(u,[["render",g]]);export{C as default}; +import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as r,c as o,b as t,t as a,n as d,f as s,F as c,d as m}from"./app-lWrE2aWG.js";const u={name:"EmailBlock",data(){return{}},methods:{},props:{block:{type:Object},error:{type:Object}}},b={class:"mb-4 sm:mb-8"},_=["for"],f={class:"relative"},k=["required","name","min","max","id","placeholder"],x={key:0,class:"absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3"},h={key:0,class:"mt-2 text-sm text-gray-500",id:"hs-input-helper-text"},y={class:"text-sm text-red-600 mt-2",id:"hs-validation-name-error-helper"};function g(v,l,e,w,p,B){return r(),o("div",b,[t("label",{for:e.block.data.name_field+"-id",class:"block mb-2 text-sm font-medium"},a(e.block.data.title_field),9,_),t("div",f,[t("input",{required:e.block.data.rules.required,name:e.block.data.name_field,min:e.block.data.rules.min,max:e.block.data.rules.max,type:"email",id:e.block.data.name_field+"-id",class:d([e.error?"border-red-500 focus:border-red-500 focus:ring-red-500":"focus:border-blue-500 focus:ring-blue-500","py-3 px-4 block w-full border-gray-200 rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none"]),placeholder:e.block.data.title_field},null,10,k),e.error?(r(),o("div",x,l[0]||(l[0]=[t("svg",{class:"shrink-0 size-4 text-red-500",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("circle",{cx:"12",cy:"12",r:"10"}),t("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),t("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})],-1)]))):s("",!0)]),e.error?s("",!0):(r(),o("p",h,a(e.block.data.description),1)),(r(!0),o(c,null,m(e.error,i=>(r(),o("p",y,a(i),1))),256))])}const C=n(u,[["render",g]]);export{C as default}; diff --git a/public/build/assets/Error-BYb2LDW7.css b/public/build/assets/Error-BYb2LDW7.css deleted file mode 100644 index 01c5839..0000000 --- a/public/build/assets/Error-BYb2LDW7.css +++ /dev/null @@ -1 +0,0 @@ -@keyframes fade-56dd7ff7{0%{opacity:0}to{opacity:1}}.fade-enter-active[data-v-56dd7ff7],.fade-leave-active[data-v-56dd7ff7]{transition:all .3s ease}.fade-enter-from[data-v-56dd7ff7],.fade-leave-to[data-v-56dd7ff7]{opacity:0}@keyframes grow-progress-56dd7ff7{0%{transform:scaleX(0)}to{transform:scaleX(1)}}#progress[data-v-56dd7ff7]{height:2px;background:#26acb8;z-index:10000;transform-origin:0 50%;animation:grow-progress-56dd7ff7 auto linear;animation-timeline:scroll()}.active[data-v-56dd7ff7]{color:#00f!important}.example-initial-animation[data-v-56dd7ff7]{animation:initial-animation-56dd7ff7 2s ease}@keyframes initial-animation-56dd7ff7{0%{transform:rotate(0)}50%{transform:rotate(360deg)}to{transform:rotate(0)}} diff --git a/public/build/assets/Error-CiAOcUz3.css b/public/build/assets/Error-CiAOcUz3.css new file mode 100644 index 0000000..c55a184 --- /dev/null +++ b/public/build/assets/Error-CiAOcUz3.css @@ -0,0 +1 @@ +@keyframes fade-f864d284{0%{opacity:0}to{opacity:1}}.fade-enter-active[data-v-f864d284],.fade-leave-active[data-v-f864d284]{transition:all .3s ease}.fade-enter-from[data-v-f864d284],.fade-leave-to[data-v-f864d284]{opacity:0}@keyframes grow-progress-f864d284{0%{transform:scaleX(0)}to{transform:scaleX(1)}}#progress[data-v-f864d284]{height:2px;background:#26acb8;z-index:10000;transform-origin:0 50%;animation:grow-progress-f864d284 auto linear;animation-timeline:scroll()}.active[data-v-f864d284]{color:#00f!important}.example-initial-animation[data-v-f864d284]{animation:initial-animation-f864d284 2s ease}@keyframes initial-animation-f864d284{0%{transform:rotate(0)}50%{transform:rotate(360deg)}to{transform:rotate(0)}} diff --git a/public/build/assets/Error-Di_6EIG6.js b/public/build/assets/Error-Di_6EIG6.js new file mode 100644 index 0000000..d9703c4 --- /dev/null +++ b/public/build/assets/Error-Di_6EIG6.js @@ -0,0 +1 @@ +import{A as c,r as s,c as d,a as n,w as p,b as e,t as r,g as m,F as u,o as f}from"./app-lWrE2aWG.js";import"./v3-CDJmn87G.js";import{C as x}from"./SearchModal-CGHtjMJb.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import{M as g}from"./MainPageNavbar-BsdceJwT.js";const h=c({components:{ClientFooterDown:x,MainPageNavBar:g},props:{status:Number},computed:{title(){return{503:"503",500:"500",404:"404",403:"403"}[this.status]},description(){return{503:"Простите, мы проводим технические работы на странице.",500:"Упс, проблема на стороне сервера. Мы уже решаем проблему!",404:"Упс, страница не найдена!",403:"Извините, у вас нет доступа к этой секции."}[this.status]}}}),w={class:"flex flex-col h-screen justify-between"},b={class:"max-w-[50rem] flex flex-col mx-auto size-full"},v={class:"my-auto",id:"content"},y={class:"text-center py-10 px-4 sm:px-6 lg:px-8"},k={class:"block text-7xl font-bold text-gray-800 sm:text-9xl"},C={class:"text-gray-600"},B={class:"mt-5 flex flex-col justify-center items-center gap-2 sm:flex-row sm:gap-3"},N=["href"];function F(t,o,$,j,D,M){const a=s("Head"),i=s("MainPageNavBar"),l=s("ClientFooterDown");return f(),d(u,null,[n(a,null,{default:p(()=>[e("title",null,"Ошибка "+r(t.title),1),o[0]||(o[0]=e("meta",{name:"description",content:"Your page description"},null,-1))]),_:1}),e("div",w,[n(i,{class:"border-b",sections:t.$page.props.navigation},null,8,["sections"]),e("div",b,[e("main",v,[e("div",y,[e("h1",k,r(t.title),1),e("p",C,r(t.description),1),e("div",B,[e("a",{href:t.route("index"),class:"w-full sm:w-auto py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"},o[1]||(o[1]=[e("svg",{class:"flex-shrink-0 size-4",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"},[e("path",{d:"m15 18-6-6 6-6"})],-1),m(" На домашнюю страницу ")]),8,N)])])])]),n(l)])],64)}const I=_(h,[["render",F],["__scopeId","data-v-f864d284"]]);export{I as default}; diff --git a/public/build/assets/Error-ivgJWRIe.js b/public/build/assets/Error-ivgJWRIe.js deleted file mode 100644 index 176c01b..0000000 --- a/public/build/assets/Error-ivgJWRIe.js +++ /dev/null @@ -1 +0,0 @@ -import{A as d,r as s,c as p,a as n,w as c,b as e,t as r,g as m,F as f,o as x}from"./app-CBssobj-.js";import"./v3-DnjJww8i.js";import"./SearchModal-BTKERLZv.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import{M as g}from"./MainPageNavbar-Cmz730h9.js";const _=d({components:{MainPageNavBar:g}}),w={class:"max-w-[50rem] flex flex-col mx-auto size-full"},h={class:"mt-[67px]",id:"content"},b={class:"text-center py-10 px-4 sm:px-6 lg:px-8"},v={class:"block text-7xl font-bold text-gray-800 sm:text-9xl"},y={class:"text-gray-600"},k={class:"mt-5 flex flex-col justify-center items-center gap-2 sm:flex-row sm:gap-3"},B=["href"];function C(o,t,N,$,F,M){const a=s("Head"),i=s("MainPageNavBar"),l=s("ClientFooterDown");return x(),p(f,null,[n(a,null,{default:c(()=>[e("title",null,"Ошибка "+r(o.title),1),t[0]||(t[0]=e("meta",{name:"description",content:"Your page description"},null,-1))]),_:1}),n(i,{class:"border-b",sections:o.$page.props.navigation},null,8,["sections"]),e("div",w,[e("main",h,[e("div",b,[e("h1",v,r(o.title),1),t[2]||(t[2]=e("p",{class:"mt-3 text-gray-600"},"Упс! Что-то пошло не так.",-1)),e("p",y,r(o.description),1),e("div",k,[e("a",{href:o.route("index"),class:"w-full sm:w-auto py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"},t[1]||(t[1]=[e("svg",{class:"flex-shrink-0 size-4",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"},[e("path",{d:"m15 18-6-6 6-6"})],-1),m(" На домашнюю страницу ")]),8,B)])])])]),n(l)],64)}const H=u(_,[["render",C],["__scopeId","data-v-56dd7ff7"]]);export{H as default}; diff --git a/public/build/assets/EventBadgeBuilder-BAiU6h4y.js b/public/build/assets/EventBadgeBuilder-vc1rfcET.js similarity index 93% rename from public/build/assets/EventBadgeBuilder-BAiU6h4y.js rename to public/build/assets/EventBadgeBuilder-vc1rfcET.js index 304d9d7..2852696 100644 --- a/public/build/assets/EventBadgeBuilder-BAiU6h4y.js +++ b/public/build/assets/EventBadgeBuilder-vc1rfcET.js @@ -1 +1 @@ -import{i,o as l,c,g as m,t as g,b as a,l as p,f as h,d as k,e as y,k as B,F as b}from"./app-CBssobj-.js";import"./SearchModal-BTKERLZv.js";import{S as x,C as v}from"./SortingByFilter-Ds4x3JAu.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";const _={name:"TagBadge",components:{Link:i},data(){return{}},methods:{clearFilter(){let r=new URL(window.location.href);const e=[];for(const[n]of r.searchParams)n.startsWith(this.filter.param)&&e.push(n);e.forEach(n=>r.searchParams.delete(n));let t=r.toString();this.$inertia.visit(t,{method:"get"})}},props:{filter:{type:Object}}},w={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 ps-3 pe-2 rounded-full text-xs font-medium bg-blue-100 text-blue-800"};function C(r,e,t,n,d,s){return this.filter.value!==null?(l(),c("span",w,[m(g(t.filter.value.length>1?"Тэг: "+t.filter.value.length+" значений":"#"+JSON.parse(t.filter.content[t.filter.value].data.name).ru)+" ",1),a("button",{onClick:e[0]||(e[0]=p((...o)=>s.clearFilter&&s.clearFilter(...o),["prevent"])),type:"button",class:"shrink-0 size-4 inline-flex items-center justify-center rounded-full hover:bg-blue-200 focus:outline-none focus:bg-blue-200 focus:text-blue-500"},e[1]||(e[1]=[a("span",{class:"sr-only"},"Remove badge",-1),a("svg",{class:"shrink-0 size-3",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"},[a("path",{d:"M18 6 6 18"}),a("path",{d:"m6 6 12 12"})],-1)]))])):h("",!0)}const S=u(_,[["render",C]]),F={name:"EventBadgeBuilder",components:{Link:i,SearchBadge:x,CategoryBadge:v,TagBadge:S},data(){return{}},methods:{getComponent(r){return{search:"SearchBadge",category:"CategoryBadge",tag:"TagBadge"}[r]||null}},props:{filters:{type:Object}}};function T(r,e,t,n,d,s){return l(!0),c(b,null,k(t.filters,(o,f)=>(l(),y(B(s.getComponent(o.type)),{key:f,filter:o},null,8,["filter"]))),128)}const P=u(F,[["render",T]]);export{P}; +import{i,o as l,c,g as m,t as g,b as a,l as p,f as h,d as k,e as y,k as B,F as b}from"./app-lWrE2aWG.js";import"./SearchModal-CGHtjMJb.js";import{S as x,C as v}from"./SortingByFilter-DAe1p4QU.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";const _={name:"TagBadge",components:{Link:i},data(){return{}},methods:{clearFilter(){let r=new URL(window.location.href);const e=[];for(const[n]of r.searchParams)n.startsWith(this.filter.param)&&e.push(n);e.forEach(n=>r.searchParams.delete(n));let t=r.toString();this.$inertia.visit(t,{method:"get"})}},props:{filter:{type:Object}}},w={key:0,class:"inline-flex items-center gap-x-1.5 py-1.5 ps-3 pe-2 rounded-full text-xs font-medium bg-blue-100 text-blue-800"};function C(r,e,t,n,d,s){return this.filter.value!==null?(l(),c("span",w,[m(g(t.filter.value.length>1?"Тэг: "+t.filter.value.length+" значений":"#"+JSON.parse(t.filter.content[t.filter.value].data.name).ru)+" ",1),a("button",{onClick:e[0]||(e[0]=p((...o)=>s.clearFilter&&s.clearFilter(...o),["prevent"])),type:"button",class:"shrink-0 size-4 inline-flex items-center justify-center rounded-full hover:bg-blue-200 focus:outline-none focus:bg-blue-200 focus:text-blue-500"},e[1]||(e[1]=[a("span",{class:"sr-only"},"Remove badge",-1),a("svg",{class:"shrink-0 size-3",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"},[a("path",{d:"M18 6 6 18"}),a("path",{d:"m6 6 12 12"})],-1)]))])):h("",!0)}const S=u(_,[["render",C]]),F={name:"EventBadgeBuilder",components:{Link:i,SearchBadge:x,CategoryBadge:v,TagBadge:S},data(){return{}},methods:{getComponent(r){return{search:"SearchBadge",category:"CategoryBadge",tag:"TagBadge"}[r]||null}},props:{filters:{type:Object}}};function T(r,e,t,n,d,s){return l(!0),c(b,null,k(t.filters,(o,f)=>(l(),y(B(s.getComponent(o.type)),{key:f,filter:o},null,8,["filter"]))),128)}const P=u(F,[["render",T]]);export{P}; diff --git a/public/build/assets/EventBuilder-D5WodeWz.js b/public/build/assets/EventBuilder-Baz4pEov.js similarity index 98% rename from public/build/assets/EventBuilder-D5WodeWz.js rename to public/build/assets/EventBuilder-Baz4pEov.js index 5311de1..fa7e74c 100644 --- a/public/build/assets/EventBuilder-D5WodeWz.js +++ b/public/build/assets/EventBuilder-Baz4pEov.js @@ -1 +1 @@ -import{i as b,o as n,c as r,b as e,g as x,t as d,l as C,r as v,a as w,F as p,d as m,n as $,j as h,h as y,e as B,w as P,f as j,k as L}from"./app-CBssobj-.js";import{s as f}from"./SearchModal-BTKERLZv.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import S from"./ClientImageSlider-CvtLuRx_.js";import{F as k}from"./v3-DnjJww8i.js";import{P as T}from"./PageTabBuilder-Db8g88-o.js";const H={name:"EventBackButton",components:{Link:b},data(){return{}},methods:{textLimit(s,t){if(s.length>t){let l;return l=s.substring(0,t),l+"..."}return s},back(){this.$page.props.urlPrev!=="empty"&&this.$inertia.visit(this.$page.props.urlPrev)}},props:{title:{type:String}}};function V(s,t,l,u,o,i){return n(),r("a",{onClick:t[0]||(t[0]=C((...c)=>this.back&&this.back(...c),["prevent"])),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500",href:"#"},[t[1]||(t[1]=e("svg",{class:"flex-shrink-0 size-4",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"},[e("path",{d:"m15 18-6-6 6-6"})],-1)),x(" "+d(l.title),1)])}const St=g(H,[["render",V]]),z={name:"TitleEvent",components:{Link:b},data(){return{}},methods:{textLimit(s,t){if(s.length>t){let l;return l=s.substring(0,t),l+"..."}return s}},props:{header:{type:String}}},F={class:"text-brand-primary text-2xl mb-3 mt-2 md:text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"};function M(s,t,l,u,o,i){return n(),r("h1",F,d(l.header),1)}const Tt=g(z,[["render",M]]),I={name:"HeadingBlock",methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},O={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function E(s,t,l,u,o,i){return n(),r("div",null,[e("h2",O,d(l.block.data.content),1)])}const Z=g(I,[["render",E]]),N={name:"ParagraphBlock",methods:{wrapTables(s){if(s.type==="paragraph"&&s.data&&s.data.content){const t=s.data.content.replace(/]*)>([\s\S]*?)<\/table>/g,(l,u,o)=>`
${o}
`);return{...s,data:{...s.data,content:t}}}return s}},props:{block:{type:Object}}},A=["innerHTML"];function D(s,t,l,u,o,i){return n(),r("div",{class:"text-sm text-gray-600 leading-6 md:text-[16px] md:text-[#374151] md:leading-8 md:font-light paragraph-container",innerHTML:i.wrapTables(l.block).data.content},null,8,A)}const Y=g(N,[["render",D]]),q={name:"ImageBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},G=["src"];function J(s,t,l,u,o,i){const c=v("FsLightbox");return n(),r(p,null,[e("div",null,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+l.block.data.url,alt:""},null,8,G)]),w(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.url]},null,8,["toggler","sources"])],64)}const K=g(q,[["render",J]]),Q={name:"FileBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},R={class:""},U=["href"],W={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},X={class:"flex items-center"};function ee(s,t,l,u,o,i){return n(!0),r(p,null,m(l.block.data.file,c=>(n(),r("div",R,[e("a",{class:"",href:"/storage/"+c.path,download:"",type:"button"},[e("div",W,[e("div",X,[t[0]||(t[0]=e("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[e("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),e("div",null,d(c.title),1)])])],8,U)]))),256)}const te=g(Q,[["render",ee]]),se={name:"PersonBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},oe={class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},le={class:"flex items-center gap-x-4"},ne=["src"],re={class:"grow"},ae={class:"font-medium text-gray-800 hover:text-gray-500"},ie={class:"text-xs text-gray-500 mt-2"};function ce(s,t,l,u,o,i){const c=v("FsLightbox");return n(),r(p,null,[e("div",oe,[e("div",le,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"rounded-xl w-[150px]",src:"/storage/"+l.block.data.photo,alt:"Image Description"},null,8,ne),e("div",re,[e("p",ae,d(l.block.data.name),1),(n(!0),r(p,null,m(l.block.data.info,a=>(n(),r("p",ie,d(a.column)+": "+d(a.content),1))),256))])])]),w(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.photo]},null,8,["toggler","sources"])],64)}const de=g(se,[["render",ce]]),ue={name:"StepperBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},ge={class:"flex gap-x-3"},pe={class:"w-16 text-end min-w-[4rem]"},me={class:"text-xs text-gray-500"},he={class:"grow max-w-[70%] pt-0.5 pb-8 overflow-wrap break-words"},fe={class:"flex gap-x-1.5 font-semibold text-gray-800"},xe=["innerHTML"];function be(s,t,l,u,o,i){return n(),r("div",null,[(n(!0),r(p,null,m(l.block.data.steps,(c,a)=>(n(),r("div",ge,[e("div",pe,[e("span",me,d(l.block.data.step_name)+" "+d(a+1),1)]),t[0]||(t[0]=e("div",{class:"relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-3.5 after:w-px after:-translate-x-[0.5px] after:bg-gray-200"},[e("div",{class:"relative z-10 size-7 flex justify-center items-center"},[e("div",{class:"size-2 rounded-full bg-primaryBlue"})])],-1)),e("div",he,[e("h3",fe,d(c.title),1),e("p",{class:"mt-1 text-sm text-gray-600 step-content",innerHTML:c.content},null,8,xe)])]))),256))])}const ve=g(ue,[["render",be]]),_e={name:"VideoBlock",data(){return{toggler:!1,domainPath:null}},methods:{},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},we={class:"h-full w-full rounded-lg",controls:""},ke=["src","type"],ye={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function $e(s,t,l,u,o,i){return n(),r(p,null,[e("video",we,[e("source",{src:o.domainPath+"/storage/"+l.block.data.path,type:l.block.data.mime},null,8,ke),t[0]||(t[0]=x(" Your browser does not support the video tag. "))]),e("figcaption",ye,d(l.block.data.title),1)],64)}const Be=g(_e,[["render",$e]]),Pe={name:"TabBlock",components:{PageTabBuilder:T},data(){return{activeTab:0}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Ce={class:""},je={class:"-mb-0.5 flex justify-center gap-x-2","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},Le=["onClick","id","data-hs-tab","aria-controls"],Se={class:"mt-3"},Te=["id","aria-labelledby"];function He(s,t,l,u,o,i){const c=v("PageTabBuilder");return n(),r(p,null,[e("div",Ce,[e("nav",je,[(n(!0),r(p,null,m(l.block.data.tab,(a,_)=>(n(),r("button",{type:"button",class:$(["hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",o.activeTab===_?"active":""]),onClick:yt=>o.activeTab=_,id:i.generateSlug(a.title)+"-item","data-hs-tab":"#"+i.generateSlug(a.title),"aria-selected":"false","aria-controls":i.generateSlug(a.title),role:"tab"},d(a.title),11,Le))),256))])]),e("div",Se,[(n(!0),r(p,null,m(l.block.data.tab,(a,_)=>(n(),r("div",{id:i.generateSlug(a.title),class:$(o.activeTab===_?"":"hidden"),role:"tabpanel","aria-labelledby":i.generateSlug(a.title)+"-item"},[w(c,{blocks:a.content},null,8,["blocks"])],10,Te))),256))])],64)}const Ve=g(Pe,[["render",He]]),ze={name:"PostListBlock",components:{axios:h,Link:b},data(){return{posts:null,loading:!0}},methods:{getPosts(){h.get(route("client.widget.post.index"),{params:{count:this.block.data.count,category:this.block.data.category}}).then(s=>{this.posts=s.data,this.loading=!1}).catch(s=>{console.error("Ошибка:",s),this.loading=!1})}},mounted(){this.getPosts()},props:{block:{type:Object}}},Fe={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},Me={key:0,class:"flex flex-col space-y-4"},Ie={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},Oe={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},Ee={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},Ze=["src"],Ne={class:"grow"},Ae={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"},De={class:"flex justify-center"},Ye=["href"];function qe(s,t,l,u,o,i){const c=v("Link");return n(),r("div",Fe,[o.loading?(n(),r("div",Me,t[0]||(t[0]=[y('

',3)]))):(n(),r("div",Ie,[(n(!0),r(p,null,m(o.posts.data,a=>(n(),B(c,{key:a.id,class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",a.slug)},{default:P(()=>[e("div",Oe,[e("div",Ee,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:a.preview?"storage/images/"+a.preview:"/img/thumbnail-1.png"},null,8,Ze)]),e("div",Ne,[e("h3",Ae,d(a.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[x(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),128)),e("div",De,[e("a",{href:s.route("client.post.index",{category:l.block.data.category}),class:"group inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},t[3]||(t[3]=[x(" Все новости "),e("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1)]),8,Ye)])]))])}const Ge=g(ze,[["render",qe]]),Je={name:"PageItemBlock",components:{axios:h,Link:b},data(){return{page:null,breadcrumbs:null,loading:!0}},methods:{getPage(s){h.get(route("client.widget.page.single",s)).then(t=>{this.page=t.data.data.page,this.breadcrumbs=t.data.data.breadcrumbs,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPage(this.block.data.page)},props:{block:{type:Object}}},Ke={key:0,class:"flex flex-col space-y-4"},Qe={key:1,class:"w-full px-2 sm:px-3 lg:px-4mx-auto"},Re=["href"],Ue={class:"p-4 md:p-5"},We={class:"flex items-center gap-x-5"},Xe={class:"grow"},et={key:0,class:"flex items-center whitespace-nowrap"},tt={class:"inline-flex items-center"},st={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},ot={class:"inline-flex items-center"},lt={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},nt={class:"inline-flex items-center"},rt={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},at={class:"mt-1 group-hover:text-blue-600 font-semibold text-gray-700"};function it(s,t,l,u,o,i){return o.loading?(n(),r("div",Ke,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",Qe,[e("a",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:o.page.is_url?o.page.path:s.route("page.view",o.page.path)+"/"},[e("div",Ue,[e("div",We,[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"mt-1 shrink-0 size-7 text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("div",Xe,[o.breadcrumbs?(n(),r("ol",et,[e("li",tt,[e("span",st,d(o.breadcrumbs.mainSection),1),t[1]||(t[1]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",ot,[e("span",lt,d(o.breadcrumbs.mainSection),1),t[2]||(t[2]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",nt,[e("span",rt,d(o.breadcrumbs.page),1)])])):j("",!0),e("h3",at,d(o.page.title),1)])])])],8,Re)]))}const ct=g(Je,[["render",it]]),dt={name:"PostListBlock",components:{axios:h,Link:b},data(){return{post:null,loading:!0}},methods:{getPost(s){h.get(route("client.widget.post.single",s),{params:{count:this.block.data.count,category:this.block.data.category}}).then(t=>{this.post=t.data,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPost(this.block.data.post)},props:{block:{type:Object}}},ut={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},gt={key:0,class:"flex flex-col space-y-4"},pt={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},mt={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ht={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},ft=["src"],xt={class:"grow"},bt={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"};function vt(s,t,l,u,o,i){const c=v("Link");return n(),r("div",ut,[o.loading?(n(),r("div",gt,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",pt,[w(c,{class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",o.post.data.slug)},{default:P(()=>[e("div",mt,[e("div",ht,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:o.post.data.preview?"storage/images/"+o.post.data.preview:"/img/thumbnail-1.png"},null,8,ft)]),e("div",xt,[e("h3",bt,d(o.post.data.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[x(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:1},8,["href"])]))])}const _t=g(dt,[["render",vt]]),wt={name:"EventBuilder",components:{FileBlock:te,ImageBlock:K,ClientImageSlider:S,ParagraphBlock:Y,HeadingBlock:Z,PersonBlock:de,StepperBlock:ve,VideoBlock:Be,TabBlock:Ve,PostListBlock:Ge,PageItemBlock:ct,PostItemBlock:_t},methods:{getComponent(s){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[s]||null}},props:{blocks:{type:Object}}};function kt(s,t,l,u,o,i){return n(!0),r(p,null,m(l.blocks,(c,a)=>(n(),B(L(i.getComponent(c.type)),{key:a,block:c},null,8,["block"]))),128)}const Ht=g(wt,[["render",kt]]);export{Ht as E,Tt as T,St as a}; +import{i as b,o as n,c as r,b as e,g as x,t as d,l as C,r as v,a as w,F as p,d as m,n as $,j as h,h as y,e as B,w as P,f as j,k as L}from"./app-lWrE2aWG.js";import{s as f}from"./SearchModal-CGHtjMJb.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import S from"./ClientImageSlider-ZnyNtD9R.js";import{F as k}from"./v3-CDJmn87G.js";import{P as T}from"./PageTabBuilder-81M-YOIr.js";const H={name:"EventBackButton",components:{Link:b},data(){return{}},methods:{textLimit(s,t){if(s.length>t){let l;return l=s.substring(0,t),l+"..."}return s},back(){this.$page.props.urlPrev!=="empty"&&this.$inertia.visit(this.$page.props.urlPrev)}},props:{title:{type:String}}};function V(s,t,l,u,o,i){return n(),r("a",{onClick:t[0]||(t[0]=C((...c)=>this.back&&this.back(...c),["prevent"])),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500",href:"#"},[t[1]||(t[1]=e("svg",{class:"flex-shrink-0 size-4",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"},[e("path",{d:"m15 18-6-6 6-6"})],-1)),x(" "+d(l.title),1)])}const St=g(H,[["render",V]]),z={name:"TitleEvent",components:{Link:b},data(){return{}},methods:{textLimit(s,t){if(s.length>t){let l;return l=s.substring(0,t),l+"..."}return s}},props:{header:{type:String}}},F={class:"text-brand-primary text-2xl mb-3 mt-2 md:text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"};function M(s,t,l,u,o,i){return n(),r("h1",F,d(l.header),1)}const Tt=g(z,[["render",M]]),I={name:"HeadingBlock",methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},O={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function E(s,t,l,u,o,i){return n(),r("div",null,[e("h2",O,d(l.block.data.content),1)])}const Z=g(I,[["render",E]]),N={name:"ParagraphBlock",methods:{wrapTables(s){if(s.type==="paragraph"&&s.data&&s.data.content){const t=s.data.content.replace(/]*)>([\s\S]*?)<\/table>/g,(l,u,o)=>`
${o}
`);return{...s,data:{...s.data,content:t}}}return s}},props:{block:{type:Object}}},A=["innerHTML"];function D(s,t,l,u,o,i){return n(),r("div",{class:"text-sm text-gray-600 leading-6 md:text-[16px] md:text-[#374151] md:leading-8 md:font-light paragraph-container",innerHTML:i.wrapTables(l.block).data.content},null,8,A)}const Y=g(N,[["render",D]]),q={name:"ImageBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},G=["src"];function J(s,t,l,u,o,i){const c=v("FsLightbox");return n(),r(p,null,[e("div",null,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+l.block.data.url,alt:""},null,8,G)]),w(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.url]},null,8,["toggler","sources"])],64)}const K=g(q,[["render",J]]),Q={name:"FileBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},R={class:""},U=["href"],W={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},X={class:"flex items-center"};function ee(s,t,l,u,o,i){return n(!0),r(p,null,m(l.block.data.file,c=>(n(),r("div",R,[e("a",{class:"",href:"/storage/"+c.path,download:"",type:"button"},[e("div",W,[e("div",X,[t[0]||(t[0]=e("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[e("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),e("div",null,d(c.title),1)])])],8,U)]))),256)}const te=g(Q,[["render",ee]]),se={name:"PersonBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},oe={class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},le={class:"flex items-center gap-x-4"},ne=["src"],re={class:"grow"},ae={class:"font-medium text-gray-800 hover:text-gray-500"},ie={class:"text-xs text-gray-500 mt-2"};function ce(s,t,l,u,o,i){const c=v("FsLightbox");return n(),r(p,null,[e("div",oe,[e("div",le,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"rounded-xl w-[150px]",src:"/storage/"+l.block.data.photo,alt:"Image Description"},null,8,ne),e("div",re,[e("p",ae,d(l.block.data.name),1),(n(!0),r(p,null,m(l.block.data.info,a=>(n(),r("p",ie,d(a.column)+": "+d(a.content),1))),256))])])]),w(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.photo]},null,8,["toggler","sources"])],64)}const de=g(se,[["render",ce]]),ue={name:"StepperBlock",components:{FsLightbox:k},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},ge={class:"flex gap-x-3"},pe={class:"w-16 text-end min-w-[4rem]"},me={class:"text-xs text-gray-500"},he={class:"grow max-w-[70%] pt-0.5 pb-8 overflow-wrap break-words"},fe={class:"flex gap-x-1.5 font-semibold text-gray-800"},xe=["innerHTML"];function be(s,t,l,u,o,i){return n(),r("div",null,[(n(!0),r(p,null,m(l.block.data.steps,(c,a)=>(n(),r("div",ge,[e("div",pe,[e("span",me,d(l.block.data.step_name)+" "+d(a+1),1)]),t[0]||(t[0]=e("div",{class:"relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-3.5 after:w-px after:-translate-x-[0.5px] after:bg-gray-200"},[e("div",{class:"relative z-10 size-7 flex justify-center items-center"},[e("div",{class:"size-2 rounded-full bg-primaryBlue"})])],-1)),e("div",he,[e("h3",fe,d(c.title),1),e("p",{class:"mt-1 text-sm text-gray-600 step-content",innerHTML:c.content},null,8,xe)])]))),256))])}const ve=g(ue,[["render",be]]),_e={name:"VideoBlock",data(){return{toggler:!1,domainPath:null}},methods:{},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},we={class:"h-full w-full rounded-lg",controls:""},ke=["src","type"],ye={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function $e(s,t,l,u,o,i){return n(),r(p,null,[e("video",we,[e("source",{src:o.domainPath+"/storage/"+l.block.data.path,type:l.block.data.mime},null,8,ke),t[0]||(t[0]=x(" Your browser does not support the video tag. "))]),e("figcaption",ye,d(l.block.data.title),1)],64)}const Be=g(_e,[["render",$e]]),Pe={name:"TabBlock",components:{PageTabBuilder:T},data(){return{activeTab:0}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Ce={class:""},je={class:"-mb-0.5 flex justify-center gap-x-2","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},Le=["onClick","id","data-hs-tab","aria-controls"],Se={class:"mt-3"},Te=["id","aria-labelledby"];function He(s,t,l,u,o,i){const c=v("PageTabBuilder");return n(),r(p,null,[e("div",Ce,[e("nav",je,[(n(!0),r(p,null,m(l.block.data.tab,(a,_)=>(n(),r("button",{type:"button",class:$(["hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",o.activeTab===_?"active":""]),onClick:yt=>o.activeTab=_,id:i.generateSlug(a.title)+"-item","data-hs-tab":"#"+i.generateSlug(a.title),"aria-selected":"false","aria-controls":i.generateSlug(a.title),role:"tab"},d(a.title),11,Le))),256))])]),e("div",Se,[(n(!0),r(p,null,m(l.block.data.tab,(a,_)=>(n(),r("div",{id:i.generateSlug(a.title),class:$(o.activeTab===_?"":"hidden"),role:"tabpanel","aria-labelledby":i.generateSlug(a.title)+"-item"},[w(c,{blocks:a.content},null,8,["blocks"])],10,Te))),256))])],64)}const Ve=g(Pe,[["render",He]]),ze={name:"PostListBlock",components:{axios:h,Link:b},data(){return{posts:null,loading:!0}},methods:{getPosts(){h.get(route("client.widget.post.index"),{params:{count:this.block.data.count,category:this.block.data.category}}).then(s=>{this.posts=s.data,this.loading=!1}).catch(s=>{console.error("Ошибка:",s),this.loading=!1})}},mounted(){this.getPosts()},props:{block:{type:Object}}},Fe={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},Me={key:0,class:"flex flex-col space-y-4"},Ie={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},Oe={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},Ee={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},Ze=["src"],Ne={class:"grow"},Ae={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"},De={class:"flex justify-center"},Ye=["href"];function qe(s,t,l,u,o,i){const c=v("Link");return n(),r("div",Fe,[o.loading?(n(),r("div",Me,t[0]||(t[0]=[y('

',3)]))):(n(),r("div",Ie,[(n(!0),r(p,null,m(o.posts.data,a=>(n(),B(c,{key:a.id,class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",a.slug)},{default:P(()=>[e("div",Oe,[e("div",Ee,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:a.preview?"storage/images/"+a.preview:"/img/thumbnail-1.png"},null,8,Ze)]),e("div",Ne,[e("h3",Ae,d(a.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[x(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),128)),e("div",De,[e("a",{href:s.route("client.post.index",{category:l.block.data.category}),class:"group inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},t[3]||(t[3]=[x(" Все новости "),e("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1)]),8,Ye)])]))])}const Ge=g(ze,[["render",qe]]),Je={name:"PageItemBlock",components:{axios:h,Link:b},data(){return{page:null,breadcrumbs:null,loading:!0}},methods:{getPage(s){h.get(route("client.widget.page.single",s)).then(t=>{this.page=t.data.data.page,this.breadcrumbs=t.data.data.breadcrumbs,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPage(this.block.data.page)},props:{block:{type:Object}}},Ke={key:0,class:"flex flex-col space-y-4"},Qe={key:1,class:"w-full px-2 sm:px-3 lg:px-4mx-auto"},Re=["href"],Ue={class:"p-4 md:p-5"},We={class:"flex items-center gap-x-5"},Xe={class:"grow"},et={key:0,class:"flex items-center whitespace-nowrap"},tt={class:"inline-flex items-center"},st={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},ot={class:"inline-flex items-center"},lt={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},nt={class:"inline-flex items-center"},rt={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},at={class:"mt-1 group-hover:text-blue-600 font-semibold text-gray-700"};function it(s,t,l,u,o,i){return o.loading?(n(),r("div",Ke,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",Qe,[e("a",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:o.page.is_url?o.page.path:s.route("page.view",o.page.path)+"/"},[e("div",Ue,[e("div",We,[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"mt-1 shrink-0 size-7 text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("div",Xe,[o.breadcrumbs?(n(),r("ol",et,[e("li",tt,[e("span",st,d(o.breadcrumbs.mainSection),1),t[1]||(t[1]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",ot,[e("span",lt,d(o.breadcrumbs.mainSection),1),t[2]||(t[2]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",nt,[e("span",rt,d(o.breadcrumbs.page),1)])])):j("",!0),e("h3",at,d(o.page.title),1)])])])],8,Re)]))}const ct=g(Je,[["render",it]]),dt={name:"PostListBlock",components:{axios:h,Link:b},data(){return{post:null,loading:!0}},methods:{getPost(s){h.get(route("client.widget.post.single",s),{params:{count:this.block.data.count,category:this.block.data.category}}).then(t=>{this.post=t.data,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPost(this.block.data.post)},props:{block:{type:Object}}},ut={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},gt={key:0,class:"flex flex-col space-y-4"},pt={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},mt={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ht={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},ft=["src"],xt={class:"grow"},bt={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"};function vt(s,t,l,u,o,i){const c=v("Link");return n(),r("div",ut,[o.loading?(n(),r("div",gt,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",pt,[w(c,{class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",o.post.data.slug)},{default:P(()=>[e("div",mt,[e("div",ht,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:o.post.data.preview?"storage/images/"+o.post.data.preview:"/img/thumbnail-1.png"},null,8,ft)]),e("div",xt,[e("h3",bt,d(o.post.data.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[x(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:1},8,["href"])]))])}const _t=g(dt,[["render",vt]]),wt={name:"EventBuilder",components:{FileBlock:te,ImageBlock:K,ClientImageSlider:S,ParagraphBlock:Y,HeadingBlock:Z,PersonBlock:de,StepperBlock:ve,VideoBlock:Be,TabBlock:Ve,PostListBlock:Ge,PageItemBlock:ct,PostItemBlock:_t},methods:{getComponent(s){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[s]||null}},props:{blocks:{type:Object}}};function kt(s,t,l,u,o,i){return n(!0),r(p,null,m(l.blocks,(c,a)=>(n(),B(L(i.getComponent(c.type)),{key:a,block:c},null,8,["block"]))),128)}const Ht=g(wt,[["render",kt]]);export{Ht as E,Tt as T,St as a}; diff --git a/public/build/assets/FacultyBuilder-BvJuCT72.js b/public/build/assets/FacultyBuilder-CUBiLxcU.js similarity index 98% rename from public/build/assets/FacultyBuilder-BvJuCT72.js rename to public/build/assets/FacultyBuilder-CUBiLxcU.js index 6aca741..13ba661 100644 --- a/public/build/assets/FacultyBuilder-BvJuCT72.js +++ b/public/build/assets/FacultyBuilder-CUBiLxcU.js @@ -1 +1 @@ -import{s as f}from"./SearchModal-BTKERLZv.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as n,c as r,b as e,t as d,r as x,a as v,F as p,d as m,g as _,n as $,j as h,i as k,h as y,e as B,w as P,f as C,k as j}from"./app-CBssobj-.js";import H from"./ClientImageSlider-CvtLuRx_.js";import{F as w}from"./v3-DnjJww8i.js";import{P as L}from"./PageTabBuilder-Db8g88-o.js";const S={name:"HeadingBlock",methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},V={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function z(s,t,l,u,o,i){return n(),r("div",null,[e("h2",V,d(l.block.data.content),1)])}const F=g(S,[["render",z]]),T={name:"ParagraphBlock",methods:{wrapTables(s){if(s.type==="paragraph"&&s.data&&s.data.content){const t=s.data.content.replace(/]*)>([\s\S]*?)<\/table>/g,(l,u,o)=>`
${o}
`);return{...s,data:{...s.data,content:t}}}return s}},props:{block:{type:Object}}},I=["innerHTML"];function M(s,t,l,u,o,i){return n(),r("div",{class:"text-sm text-gray-600 leading-6 md:text-[16px] md:text-[#374151] md:leading-8 md:font-light paragraph-container",innerHTML:i.wrapTables(l.block).data.content},null,8,I)}const O=g(T,[["render",M]]),Z={name:"ImageBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},N=["src"];function A(s,t,l,u,o,i){const c=x("FsLightbox");return n(),r(p,null,[e("div",null,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+l.block.data.url,alt:""},null,8,N)]),v(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.url]},null,8,["toggler","sources"])],64)}const D=g(Z,[["render",A]]),E={name:"FileBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Y={class:""},q=["href"],G={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},J={class:"flex items-center"};function K(s,t,l,u,o,i){return n(!0),r(p,null,m(l.block.data.file,c=>(n(),r("div",Y,[e("a",{class:"",href:"/storage/"+c.path,download:"",type:"button"},[e("div",G,[e("div",J,[t[0]||(t[0]=e("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[e("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),e("div",null,d(c.title),1)])])],8,q)]))),256)}const Q=g(E,[["render",K]]),R={name:"PersonBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},U={class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},W={class:"flex items-center gap-x-4"},X=["src"],ee={class:"grow"},te={class:"font-medium text-gray-800 hover:text-gray-500"},se={class:"text-xs text-gray-500 mt-2"};function oe(s,t,l,u,o,i){const c=x("FsLightbox");return n(),r(p,null,[e("div",U,[e("div",W,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"rounded-xl w-[150px]",src:"/storage/"+l.block.data.photo,alt:"Image Description"},null,8,X),e("div",ee,[e("p",te,d(l.block.data.name),1),(n(!0),r(p,null,m(l.block.data.info,a=>(n(),r("p",se,d(a.column)+": "+d(a.content),1))),256))])])]),v(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.photo]},null,8,["toggler","sources"])],64)}const le=g(R,[["render",oe]]),ne={name:"StepperBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},re={class:"flex gap-x-3"},ae={class:"w-16 text-end min-w-[4rem]"},ie={class:"text-xs text-gray-500"},ce={class:"grow max-w-[70%] pt-0.5 pb-8 overflow-wrap break-words"},de={class:"flex gap-x-1.5 font-semibold text-gray-800"},ue=["innerHTML"];function ge(s,t,l,u,o,i){return n(),r("div",null,[(n(!0),r(p,null,m(l.block.data.steps,(c,a)=>(n(),r("div",re,[e("div",ae,[e("span",ie,d(l.block.data.step_name)+" "+d(a+1),1)]),t[0]||(t[0]=e("div",{class:"relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-3.5 after:w-px after:-translate-x-[0.5px] after:bg-gray-200"},[e("div",{class:"relative z-10 size-7 flex justify-center items-center"},[e("div",{class:"size-2 rounded-full bg-primaryBlue"})])],-1)),e("div",ce,[e("h3",de,d(c.title),1),e("p",{class:"mt-1 text-sm text-gray-600 step-content",innerHTML:c.content},null,8,ue)])]))),256))])}const pe=g(ne,[["render",ge]]),me={name:"VideoBlock",data(){return{toggler:!1,domainPath:null}},methods:{},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},he={class:"h-full w-full rounded-lg",controls:""},fe=["src","type"],xe={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function be(s,t,l,u,o,i){return n(),r(p,null,[e("video",he,[e("source",{src:o.domainPath+"/storage/"+l.block.data.path,type:l.block.data.mime},null,8,fe),t[0]||(t[0]=_(" Your browser does not support the video tag. "))]),e("figcaption",xe,d(l.block.data.title),1)],64)}const _e=g(me,[["render",be]]),ve={name:"TabBlock",components:{PageTabBuilder:L},data(){return{activeTab:0}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},we={class:""},ke={class:"-mb-0.5 flex justify-center gap-x-2","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},ye=["onClick","id","data-hs-tab","aria-controls"],$e={class:"mt-3"},Be=["id","aria-labelledby"];function Pe(s,t,l,u,o,i){const c=x("PageTabBuilder");return n(),r(p,null,[e("div",we,[e("nav",ke,[(n(!0),r(p,null,m(l.block.data.tab,(a,b)=>(n(),r("button",{type:"button",class:$(["hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",o.activeTab===b?"active":""]),onClick:xt=>o.activeTab=b,id:i.generateSlug(a.title)+"-item","data-hs-tab":"#"+i.generateSlug(a.title),"aria-selected":"false","aria-controls":i.generateSlug(a.title),role:"tab"},d(a.title),11,ye))),256))])]),e("div",$e,[(n(!0),r(p,null,m(l.block.data.tab,(a,b)=>(n(),r("div",{id:i.generateSlug(a.title),class:$(o.activeTab===b?"":"hidden"),role:"tabpanel","aria-labelledby":i.generateSlug(a.title)+"-item"},[v(c,{blocks:a.content},null,8,["blocks"])],10,Be))),256))])],64)}const Ce=g(ve,[["render",Pe]]),je={name:"PostListBlock",components:{axios:h,Link:k},data(){return{posts:null,loading:!0}},methods:{getPosts(){h.get(route("client.widget.post.index"),{params:{count:this.block.data.count,category:this.block.data.category}}).then(s=>{this.posts=s.data,this.loading=!1}).catch(s=>{console.error("Ошибка:",s),this.loading=!1})}},mounted(){this.getPosts()},props:{block:{type:Object}}},He={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},Le={key:0,class:"flex flex-col space-y-4"},Se={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},Ve={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ze={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},Fe=["src"],Te={class:"grow"},Ie={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"},Me={class:"flex justify-center"},Oe=["href"];function Ze(s,t,l,u,o,i){const c=x("Link");return n(),r("div",He,[o.loading?(n(),r("div",Le,t[0]||(t[0]=[y('

',3)]))):(n(),r("div",Se,[(n(!0),r(p,null,m(o.posts.data,a=>(n(),B(c,{key:a.id,class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",a.slug)},{default:P(()=>[e("div",Ve,[e("div",ze,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:a.preview?"storage/images/"+a.preview:"/img/thumbnail-1.png"},null,8,Fe)]),e("div",Te,[e("h3",Ie,d(a.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[_(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),128)),e("div",Me,[e("a",{href:s.route("client.post.index",{category:l.block.data.category}),class:"group inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},t[3]||(t[3]=[_(" Все новости "),e("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1)]),8,Oe)])]))])}const Ne=g(je,[["render",Ze]]),Ae={name:"PageItemBlock",components:{axios:h,Link:k},data(){return{page:null,breadcrumbs:null,loading:!0}},methods:{getPage(s){h.get(route("client.widget.page.single",s)).then(t=>{this.page=t.data.data.page,this.breadcrumbs=t.data.data.breadcrumbs,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPage(this.block.data.page)},props:{block:{type:Object}}},De={key:0,class:"flex flex-col space-y-4"},Ee={key:1,class:"w-full px-2 sm:px-3 lg:px-4mx-auto"},Ye=["href"],qe={class:"p-4 md:p-5"},Ge={class:"flex items-center gap-x-5"},Je={class:"grow"},Ke={key:0,class:"flex items-center whitespace-nowrap"},Qe={class:"inline-flex items-center"},Re={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Ue={class:"inline-flex items-center"},We={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Xe={class:"inline-flex items-center"},et={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},tt={class:"mt-1 group-hover:text-blue-600 font-semibold text-gray-700"};function st(s,t,l,u,o,i){return o.loading?(n(),r("div",De,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",Ee,[e("a",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:o.page.is_url?o.page.path:s.route("page.view",o.page.path)+"/"},[e("div",qe,[e("div",Ge,[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"mt-1 shrink-0 size-7 text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("div",Je,[o.breadcrumbs?(n(),r("ol",Ke,[e("li",Qe,[e("span",Re,d(o.breadcrumbs.mainSection),1),t[1]||(t[1]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Ue,[e("span",We,d(o.breadcrumbs.mainSection),1),t[2]||(t[2]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Xe,[e("span",et,d(o.breadcrumbs.page),1)])])):C("",!0),e("h3",tt,d(o.page.title),1)])])])],8,Ye)]))}const ot=g(Ae,[["render",st]]),lt={name:"PostListBlock",components:{axios:h,Link:k},data(){return{post:null,loading:!0}},methods:{getPost(s){h.get(route("client.widget.post.single",s),{params:{count:this.block.data.count,category:this.block.data.category}}).then(t=>{this.post=t.data,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPost(this.block.data.post)},props:{block:{type:Object}}},nt={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},rt={key:0,class:"flex flex-col space-y-4"},at={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},it={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ct={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},dt=["src"],ut={class:"grow"},gt={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"};function pt(s,t,l,u,o,i){const c=x("Link");return n(),r("div",nt,[o.loading?(n(),r("div",rt,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",at,[v(c,{class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",o.post.data.slug)},{default:P(()=>[e("div",it,[e("div",ct,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:o.post.data.preview?"storage/images/"+o.post.data.preview:"/img/thumbnail-1.png"},null,8,dt)]),e("div",ut,[e("h3",gt,d(o.post.data.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[_(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:1},8,["href"])]))])}const mt=g(lt,[["render",pt]]),ht={name:"FacultyBuilder",components:{FileBlock:Q,ImageBlock:D,ClientImageSlider:H,ParagraphBlock:O,HeadingBlock:F,PersonBlock:le,StepperBlock:pe,VideoBlock:_e,TabBlock:Ce,PostListBlock:Ne,PageItemBlock:ot,PostItemBlock:mt},methods:{getComponent(s){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[s]||null}},props:{blocks:{type:Object}}};function ft(s,t,l,u,o,i){return n(!0),r(p,null,m(l.blocks,(c,a)=>(n(),B(j(i.getComponent(c.type)),{key:a,block:c},null,8,["block"]))),128)}const $t=g(ht,[["render",ft]]);export{$t as F}; +import{s as f}from"./SearchModal-CGHtjMJb.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as n,c as r,b as e,t as d,r as x,a as v,F as p,d as m,g as _,n as $,j as h,i as k,h as y,e as B,w as P,f as C,k as j}from"./app-lWrE2aWG.js";import H from"./ClientImageSlider-ZnyNtD9R.js";import{F as w}from"./v3-CDJmn87G.js";import{P as L}from"./PageTabBuilder-81M-YOIr.js";const S={name:"HeadingBlock",methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},V={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function z(s,t,l,u,o,i){return n(),r("div",null,[e("h2",V,d(l.block.data.content),1)])}const F=g(S,[["render",z]]),T={name:"ParagraphBlock",methods:{wrapTables(s){if(s.type==="paragraph"&&s.data&&s.data.content){const t=s.data.content.replace(/]*)>([\s\S]*?)<\/table>/g,(l,u,o)=>`
${o}
`);return{...s,data:{...s.data,content:t}}}return s}},props:{block:{type:Object}}},I=["innerHTML"];function M(s,t,l,u,o,i){return n(),r("div",{class:"text-sm text-gray-600 leading-6 md:text-[16px] md:text-[#374151] md:leading-8 md:font-light paragraph-container",innerHTML:i.wrapTables(l.block).data.content},null,8,I)}const O=g(T,[["render",M]]),Z={name:"ImageBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},N=["src"];function A(s,t,l,u,o,i){const c=x("FsLightbox");return n(),r(p,null,[e("div",null,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+l.block.data.url,alt:""},null,8,N)]),v(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.url]},null,8,["toggler","sources"])],64)}const D=g(Z,[["render",A]]),E={name:"FileBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Y={class:""},q=["href"],G={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},J={class:"flex items-center"};function K(s,t,l,u,o,i){return n(!0),r(p,null,m(l.block.data.file,c=>(n(),r("div",Y,[e("a",{class:"",href:"/storage/"+c.path,download:"",type:"button"},[e("div",G,[e("div",J,[t[0]||(t[0]=e("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[e("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),e("div",null,d(c.title),1)])])],8,q)]))),256)}const Q=g(E,[["render",K]]),R={name:"PersonBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},U={class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},W={class:"flex items-center gap-x-4"},X=["src"],ee={class:"grow"},te={class:"font-medium text-gray-800 hover:text-gray-500"},se={class:"text-xs text-gray-500 mt-2"};function oe(s,t,l,u,o,i){const c=x("FsLightbox");return n(),r(p,null,[e("div",U,[e("div",W,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"rounded-xl w-[150px]",src:"/storage/"+l.block.data.photo,alt:"Image Description"},null,8,X),e("div",ee,[e("p",te,d(l.block.data.name),1),(n(!0),r(p,null,m(l.block.data.info,a=>(n(),r("p",se,d(a.column)+": "+d(a.content),1))),256))])])]),v(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.photo]},null,8,["toggler","sources"])],64)}const le=g(R,[["render",oe]]),ne={name:"StepperBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},re={class:"flex gap-x-3"},ae={class:"w-16 text-end min-w-[4rem]"},ie={class:"text-xs text-gray-500"},ce={class:"grow max-w-[70%] pt-0.5 pb-8 overflow-wrap break-words"},de={class:"flex gap-x-1.5 font-semibold text-gray-800"},ue=["innerHTML"];function ge(s,t,l,u,o,i){return n(),r("div",null,[(n(!0),r(p,null,m(l.block.data.steps,(c,a)=>(n(),r("div",re,[e("div",ae,[e("span",ie,d(l.block.data.step_name)+" "+d(a+1),1)]),t[0]||(t[0]=e("div",{class:"relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-3.5 after:w-px after:-translate-x-[0.5px] after:bg-gray-200"},[e("div",{class:"relative z-10 size-7 flex justify-center items-center"},[e("div",{class:"size-2 rounded-full bg-primaryBlue"})])],-1)),e("div",ce,[e("h3",de,d(c.title),1),e("p",{class:"mt-1 text-sm text-gray-600 step-content",innerHTML:c.content},null,8,ue)])]))),256))])}const pe=g(ne,[["render",ge]]),me={name:"VideoBlock",data(){return{toggler:!1,domainPath:null}},methods:{},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},he={class:"h-full w-full rounded-lg",controls:""},fe=["src","type"],xe={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function be(s,t,l,u,o,i){return n(),r(p,null,[e("video",he,[e("source",{src:o.domainPath+"/storage/"+l.block.data.path,type:l.block.data.mime},null,8,fe),t[0]||(t[0]=_(" Your browser does not support the video tag. "))]),e("figcaption",xe,d(l.block.data.title),1)],64)}const _e=g(me,[["render",be]]),ve={name:"TabBlock",components:{PageTabBuilder:L},data(){return{activeTab:0}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},we={class:""},ke={class:"-mb-0.5 flex justify-center gap-x-2","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},ye=["onClick","id","data-hs-tab","aria-controls"],$e={class:"mt-3"},Be=["id","aria-labelledby"];function Pe(s,t,l,u,o,i){const c=x("PageTabBuilder");return n(),r(p,null,[e("div",we,[e("nav",ke,[(n(!0),r(p,null,m(l.block.data.tab,(a,b)=>(n(),r("button",{type:"button",class:$(["hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",o.activeTab===b?"active":""]),onClick:xt=>o.activeTab=b,id:i.generateSlug(a.title)+"-item","data-hs-tab":"#"+i.generateSlug(a.title),"aria-selected":"false","aria-controls":i.generateSlug(a.title),role:"tab"},d(a.title),11,ye))),256))])]),e("div",$e,[(n(!0),r(p,null,m(l.block.data.tab,(a,b)=>(n(),r("div",{id:i.generateSlug(a.title),class:$(o.activeTab===b?"":"hidden"),role:"tabpanel","aria-labelledby":i.generateSlug(a.title)+"-item"},[v(c,{blocks:a.content},null,8,["blocks"])],10,Be))),256))])],64)}const Ce=g(ve,[["render",Pe]]),je={name:"PostListBlock",components:{axios:h,Link:k},data(){return{posts:null,loading:!0}},methods:{getPosts(){h.get(route("client.widget.post.index"),{params:{count:this.block.data.count,category:this.block.data.category}}).then(s=>{this.posts=s.data,this.loading=!1}).catch(s=>{console.error("Ошибка:",s),this.loading=!1})}},mounted(){this.getPosts()},props:{block:{type:Object}}},He={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},Le={key:0,class:"flex flex-col space-y-4"},Se={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},Ve={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ze={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},Fe=["src"],Te={class:"grow"},Ie={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"},Me={class:"flex justify-center"},Oe=["href"];function Ze(s,t,l,u,o,i){const c=x("Link");return n(),r("div",He,[o.loading?(n(),r("div",Le,t[0]||(t[0]=[y('

',3)]))):(n(),r("div",Se,[(n(!0),r(p,null,m(o.posts.data,a=>(n(),B(c,{key:a.id,class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",a.slug)},{default:P(()=>[e("div",Ve,[e("div",ze,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:a.preview?"storage/images/"+a.preview:"/img/thumbnail-1.png"},null,8,Fe)]),e("div",Te,[e("h3",Ie,d(a.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[_(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),128)),e("div",Me,[e("a",{href:s.route("client.post.index",{category:l.block.data.category}),class:"group inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},t[3]||(t[3]=[_(" Все новости "),e("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1)]),8,Oe)])]))])}const Ne=g(je,[["render",Ze]]),Ae={name:"PageItemBlock",components:{axios:h,Link:k},data(){return{page:null,breadcrumbs:null,loading:!0}},methods:{getPage(s){h.get(route("client.widget.page.single",s)).then(t=>{this.page=t.data.data.page,this.breadcrumbs=t.data.data.breadcrumbs,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPage(this.block.data.page)},props:{block:{type:Object}}},De={key:0,class:"flex flex-col space-y-4"},Ee={key:1,class:"w-full px-2 sm:px-3 lg:px-4mx-auto"},Ye=["href"],qe={class:"p-4 md:p-5"},Ge={class:"flex items-center gap-x-5"},Je={class:"grow"},Ke={key:0,class:"flex items-center whitespace-nowrap"},Qe={class:"inline-flex items-center"},Re={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Ue={class:"inline-flex items-center"},We={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Xe={class:"inline-flex items-center"},et={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},tt={class:"mt-1 group-hover:text-blue-600 font-semibold text-gray-700"};function st(s,t,l,u,o,i){return o.loading?(n(),r("div",De,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",Ee,[e("a",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:o.page.is_url?o.page.path:s.route("page.view",o.page.path)+"/"},[e("div",qe,[e("div",Ge,[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"mt-1 shrink-0 size-7 text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("div",Je,[o.breadcrumbs?(n(),r("ol",Ke,[e("li",Qe,[e("span",Re,d(o.breadcrumbs.mainSection),1),t[1]||(t[1]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Ue,[e("span",We,d(o.breadcrumbs.mainSection),1),t[2]||(t[2]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Xe,[e("span",et,d(o.breadcrumbs.page),1)])])):C("",!0),e("h3",tt,d(o.page.title),1)])])])],8,Ye)]))}const ot=g(Ae,[["render",st]]),lt={name:"PostListBlock",components:{axios:h,Link:k},data(){return{post:null,loading:!0}},methods:{getPost(s){h.get(route("client.widget.post.single",s),{params:{count:this.block.data.count,category:this.block.data.category}}).then(t=>{this.post=t.data,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPost(this.block.data.post)},props:{block:{type:Object}}},nt={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},rt={key:0,class:"flex flex-col space-y-4"},at={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},it={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ct={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},dt=["src"],ut={class:"grow"},gt={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"};function pt(s,t,l,u,o,i){const c=x("Link");return n(),r("div",nt,[o.loading?(n(),r("div",rt,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",at,[v(c,{class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",o.post.data.slug)},{default:P(()=>[e("div",it,[e("div",ct,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:o.post.data.preview?"storage/images/"+o.post.data.preview:"/img/thumbnail-1.png"},null,8,dt)]),e("div",ut,[e("h3",gt,d(o.post.data.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[_(" Читать далее "),e("svg",{class:"shrink-0 size-4",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:1},8,["href"])]))])}const mt=g(lt,[["render",pt]]),ht={name:"FacultyBuilder",components:{FileBlock:Q,ImageBlock:D,ClientImageSlider:H,ParagraphBlock:O,HeadingBlock:F,PersonBlock:le,StepperBlock:pe,VideoBlock:_e,TabBlock:Ce,PostListBlock:Ne,PageItemBlock:ot,PostItemBlock:mt},methods:{getComponent(s){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[s]||null}},props:{blocks:{type:Object}}};function ft(s,t,l,u,o,i){return n(!0),r(p,null,m(l.blocks,(c,a)=>(n(),B(j(i.getComponent(c.type)),{key:a,block:c},null,8,["block"]))),128)}const $t=g(ht,[["render",ft]]);export{$t as F}; diff --git a/public/build/assets/FileBlock-CW3mTqrc.js b/public/build/assets/FileBlock-CP4fXArx.js similarity index 91% rename from public/build/assets/FileBlock-CW3mTqrc.js rename to public/build/assets/FileBlock-CP4fXArx.js index 8891c9e..fbafd79 100644 --- a/public/build/assets/FileBlock-CW3mTqrc.js +++ b/public/build/assets/FileBlock-CP4fXArx.js @@ -1 +1 @@ -import{s as i}from"./SearchModal-BTKERLZv.js";import{F as l}from"./v3-DnjJww8i.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as r,c as n,d,b as t,t as u,F as m}from"./app-CBssobj-.js";const p={name:"FileBlock",components:{FsLightbox:l},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return i(e,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},f={class:""},C=["href"],g={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},h={class:"flex items-center"};function _(e,o,a,V,w,x){return r(!0),n(m,null,d(a.block.data.file,s=>(r(),n("div",f,[t("a",{class:"",href:"/storage/"+s.path,download:"",type:"button"},[t("div",g,[t("div",h,[o[0]||(o[0]=t("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[t("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),t("div",null,u(s.title),1)])])],8,C)]))),256)}const y=c(p,[["render",_]]);export{y as default}; +import{s as i}from"./SearchModal-CGHtjMJb.js";import{F as l}from"./v3-CDJmn87G.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as r,c as n,d,b as t,t as u,F as m}from"./app-lWrE2aWG.js";const p={name:"FileBlock",components:{FsLightbox:l},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return i(e,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},f={class:""},C=["href"],g={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},h={class:"flex items-center"};function _(e,o,a,V,w,x){return r(!0),n(m,null,d(a.block.data.file,s=>(r(),n("div",f,[t("a",{class:"",href:"/storage/"+s.path,download:"",type:"button"},[t("div",g,[t("div",h,[o[0]||(o[0]=t("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[t("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),t("div",null,u(s.title),1)])])],8,C)]))),256)}const y=c(p,[["render",_]]);export{y as default}; diff --git a/public/build/assets/FileBlock-Blx3yiDN.js b/public/build/assets/FileBlock-DP4RAJQp.js similarity index 85% rename from public/build/assets/FileBlock-Blx3yiDN.js rename to public/build/assets/FileBlock-DP4RAJQp.js index 2528165..8921baa 100644 --- a/public/build/assets/FileBlock-Blx3yiDN.js +++ b/public/build/assets/FileBlock-DP4RAJQp.js @@ -1 +1 @@ -import{B as d,s as m}from"./SearchModal-BTKERLZv.js";import{F as u}from"./v3-DnjJww8i.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as _,o as r,c as a,d as f,b as t,a as h,t as i,F as g}from"./app-CBssobj-.js";const x={name:"FileBlock",components:{BaseIcon:d,FsLightbox:u},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return m(e,{lower:!0,strict:!0,locale:"ru"})},textLimit(e,n){if(e.length>n){let s;return s=e.substring(0,n),s+"..."}return e}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},b={class:"mb-4"},y=["href"],B={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},w={class:"flex items-center justify-between"},k={class:"min-w-[30px] min-h-[30px] bg-[#303030] flex justify-center items-center rounded-md mr-2"},v={class:"text-sm text-gray-400"};function F(e,n,s,L,j,c){const l=_("BaseIcon");return r(!0),a(g,null,f(s.block.data.file,o=>(r(),a("div",b,[t("a",{class:"",href:"/storage/"+o.path,download:"",type:"button"},[t("div",B,[t("div",w,[t("div",k,[h(l,{name:o.expansion,class:"w-5 h-5 flex-shrink-0"},null,8,["name"])]),t("div",null,i(c.textLimit(o.title,70)),1)]),t("span",v,i(o.size),1)])],8,y)]))),256)}const V=p(x,[["render",F]]);export{V as default}; +import{B as d,s as m}from"./SearchModal-CGHtjMJb.js";import{F as u}from"./v3-CDJmn87G.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as _,o as r,c as a,d as f,b as t,a as h,t as i,F as g}from"./app-lWrE2aWG.js";const x={name:"FileBlock",components:{BaseIcon:d,FsLightbox:u},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return m(e,{lower:!0,strict:!0,locale:"ru"})},textLimit(e,n){if(e.length>n){let s;return s=e.substring(0,n),s+"..."}return e}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},b={class:"mb-4"},y=["href"],B={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},w={class:"flex items-center justify-between"},k={class:"min-w-[30px] min-h-[30px] bg-[#303030] flex justify-center items-center rounded-md mr-2"},v={class:"text-sm text-gray-400"};function F(e,n,s,L,j,c){const l=_("BaseIcon");return r(!0),a(g,null,f(s.block.data.file,o=>(r(),a("div",b,[t("a",{class:"",href:"/storage/"+o.path,download:"",type:"button"},[t("div",B,[t("div",w,[t("div",k,[h(l,{name:o.expansion,class:"w-5 h-5 flex-shrink-0"},null,8,["name"])]),t("div",null,i(c.textLimit(o.title,70)),1)]),t("span",v,i(o.size),1)])],8,y)]))),256)}const V=p(x,[["render",F]]);export{V as default}; diff --git a/public/build/assets/FormBlock-BFIDbHeW.js b/public/build/assets/FormBlock-BVey85an.js similarity index 86% rename from public/build/assets/FormBlock-BFIDbHeW.js rename to public/build/assets/FormBlock-BVey85an.js index 92d4e8b..286c341 100644 --- a/public/build/assets/FormBlock-BFIDbHeW.js +++ b/public/build/assets/FormBlock-BVey85an.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TextBlock-C6erClxS.js","assets/app-CBssobj-.js","assets/app-DChzJ_Ea.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/PhoneBlock-vU16TdOR.js","assets/EmailBlock-Cbj5wFPK.js","assets/TextAreaBlock-DkHjNvJF.js","assets/MultipleChoiceBlock-CrWoZ9rQ.js","assets/SingleChoiceBlock-DJ3-3dBh.js","assets/DateBlock-B5Hbafqw.js"])))=>i.map(i=>d[i]); -import"./SearchModal-BTKERLZv.js";import"./v3-DnjJww8i.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as i,c as a,b as o,t as u,h as f,q as y,j as p,r as _,F as g,d as w,e as v,k as E,a as b,w as B,f as D,T as F,_ as n,i as T}from"./app-CBssobj-.js";const S={name:"SubmitBlock",methods:{},props:{block:{type:Object}}},N={class:"mt-6 grid"},$={type:"submit",class:"w-full py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"};function A(t,e,r,l,s,d){return i(),a("div",N,[o("button",$,u(r.block),1)])}const C=m(S,[["render",A]]),z={name:"SuccessNotification",data(){return{}},props:{text:{type:String,default:"Успех!"}}},R={id:"dismiss-alert",class:"fixed bottom-10 left-3 right-3 md:w-[500px] md:left-auto md:right-5 z-10000 hs-removing:translate-x-5 hs-removing:opacity-0 transition duration-300 bg-teal-50 border border-teal-200 text-sm text-teal-800 rounded-lg p-4",role:"alert",tabindex:"-1","aria-labelledby":"hs-dismiss-button-label"},V={class:"flex"},j={class:"ms-2"},I={id:"hs-dismiss-button-label",class:"text-sm font-medium"};function O(t,e,r,l,s,d){return i(),a("div",R,[o("div",V,[e[0]||(e[0]=o("div",{class:"shrink-0"},[o("svg",{class:"shrink-0 size-4 mt-0.5",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"},[o("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),o("path",{d:"m9 12 2 2 4-4"})])],-1)),o("div",j,[o("h3",I,u(r.text),1)]),e[1]||(e[1]=f('
',1))])])}const P=m(z,[["render",O]]),L={name:"FormBuilder",components:{SuccessNotification:P,SubmitBlock:C},data(){return{formData:{},errors:null,success:!1,message:null}},methods:{getComponent(t){return y({text:()=>n(()=>import("./TextBlock-C6erClxS.js"),__vite__mapDeps([0,1,2,3])),phone:()=>n(()=>import("./PhoneBlock-vU16TdOR.js"),__vite__mapDeps([4,3,1,2])),email:()=>n(()=>import("./EmailBlock-Cbj5wFPK.js"),__vite__mapDeps([5,3,1,2])),textarea:()=>n(()=>import("./TextAreaBlock-DkHjNvJF.js"),__vite__mapDeps([6,1,2,3])),multiple_choice:()=>n(()=>import("./MultipleChoiceBlock-CrWoZ9rQ.js"),__vite__mapDeps([7,3,1,2])),single_choice:()=>n(()=>import("./SingleChoiceBlock-DJ3-3dBh.js"),__vite__mapDeps([8,3,1,2])),date:()=>n(()=>import("./DateBlock-B5Hbafqw.js"),__vite__mapDeps([9,3,1,2]))}[t]||null)},submitForm(t){t.preventDefault(),this.formData=this.getFormData(t.target.elements),this.sendDataToServer()},getFormData(t){const e={};for(let r=0;r',1)),o("div",X,[e[1]||(e[1]=o("h3",{id:"hs-bordered-success-style-label",class:"text-gray-800 font-semibold dark:text-white"}," Успешно отправлено! ",-1)),o("p",q,u(s.message),1)])])])):(i(),a("div",W,[o("div",G,[o("div",H,[o("h2",J,u(r.blocks.data.title),1)]),o("div",K,[o("form",{onSubmit:e[0]||(e[0]=(...c)=>d.submitForm&&d.submitForm(...c))},[(i(!0),a(g,null,w(r.blocks.data.columns,(c,k)=>(i(),v(E(d.getComponent(c.type)),{key:k,block:c,error:s.errors&&s.errors[c.data.name_field]?s.errors[c.data.name_field]:null},null,8,["block","error"]))),128)),b(h,{block:r.blocks.data.button},null,8,["block"])],32)])])])),b(F,{name:"fade"},{default:B(()=>[s.success?(i(),v(x,{key:0,text:s.message},null,8,["text"])):D("",!0)]),_:1})],64)}const Y=m(L,[["render",Q],["__scopeId","data-v-11318db0"]]),Z={name:"FormBlock",components:{FormBuilder:Y,axios:p,Link:T},data(){return{form:null,loading:!0}},methods:{getForm(t){p.get(route("client.widget.form.single",t)).then(e=>{this.form=e.data,this.loading=!1}).catch(e=>{console.error("Ошибка:",e)})}},mounted(){this.getForm(this.block.data.form)},props:{block:{type:Object}}},ee={key:0,class:"flex flex-col space-y-4"},te={key:1};function se(t,e,r,l,s,d){const h=_("FormBuilder");return s.loading?(i(),a("div",ee,e[0]||(e[0]=[f('

',1)]))):(i(),a("div",te,[b(h,{blocks:s.form},null,8,["blocks"])]))}const ae=m(Z,[["render",se]]);export{ae as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TextBlock-Bs0eACeo.js","assets/app-lWrE2aWG.js","assets/app-BuUCQLTR.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/PhoneBlock-CgCKsfpu.js","assets/EmailBlock-BS6HPJA5.js","assets/TextAreaBlock-CkH9Ctih.js","assets/MultipleChoiceBlock-B8DiNy04.js","assets/SingleChoiceBlock-DlS4AC1v.js","assets/DateBlock-BgabaFZh.js"])))=>i.map(i=>d[i]); +import"./SearchModal-CGHtjMJb.js";import"./v3-CDJmn87G.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as i,c as a,b as o,t as u,h as f,q as y,j as p,r as _,F as g,d as w,e as v,k as E,a as b,w as B,f as D,T as F,_ as n,i as T}from"./app-lWrE2aWG.js";const S={name:"SubmitBlock",methods:{},props:{block:{type:Object}}},N={class:"mt-6 grid"},$={type:"submit",class:"w-full py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"};function A(t,e,r,l,s,d){return i(),a("div",N,[o("button",$,u(r.block),1)])}const C=m(S,[["render",A]]),z={name:"SuccessNotification",data(){return{}},props:{text:{type:String,default:"Успех!"}}},R={id:"dismiss-alert",class:"fixed bottom-10 left-3 right-3 md:w-[500px] md:left-auto md:right-5 z-10000 hs-removing:translate-x-5 hs-removing:opacity-0 transition duration-300 bg-teal-50 border border-teal-200 text-sm text-teal-800 rounded-lg p-4",role:"alert",tabindex:"-1","aria-labelledby":"hs-dismiss-button-label"},V={class:"flex"},j={class:"ms-2"},I={id:"hs-dismiss-button-label",class:"text-sm font-medium"};function O(t,e,r,l,s,d){return i(),a("div",R,[o("div",V,[e[0]||(e[0]=o("div",{class:"shrink-0"},[o("svg",{class:"shrink-0 size-4 mt-0.5",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"},[o("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),o("path",{d:"m9 12 2 2 4-4"})])],-1)),o("div",j,[o("h3",I,u(r.text),1)]),e[1]||(e[1]=f('
',1))])])}const P=m(z,[["render",O]]),L={name:"FormBuilder",components:{SuccessNotification:P,SubmitBlock:C},data(){return{formData:{},errors:null,success:!1,message:null}},methods:{getComponent(t){return y({text:()=>n(()=>import("./TextBlock-Bs0eACeo.js"),__vite__mapDeps([0,1,2,3])),phone:()=>n(()=>import("./PhoneBlock-CgCKsfpu.js"),__vite__mapDeps([4,3,1,2])),email:()=>n(()=>import("./EmailBlock-BS6HPJA5.js"),__vite__mapDeps([5,3,1,2])),textarea:()=>n(()=>import("./TextAreaBlock-CkH9Ctih.js"),__vite__mapDeps([6,1,2,3])),multiple_choice:()=>n(()=>import("./MultipleChoiceBlock-B8DiNy04.js"),__vite__mapDeps([7,3,1,2])),single_choice:()=>n(()=>import("./SingleChoiceBlock-DlS4AC1v.js"),__vite__mapDeps([8,3,1,2])),date:()=>n(()=>import("./DateBlock-BgabaFZh.js"),__vite__mapDeps([9,3,1,2]))}[t]||null)},submitForm(t){t.preventDefault(),this.formData=this.getFormData(t.target.elements),this.sendDataToServer()},getFormData(t){const e={};for(let r=0;r',1)),o("div",X,[e[1]||(e[1]=o("h3",{id:"hs-bordered-success-style-label",class:"text-gray-800 font-semibold dark:text-white"}," Успешно отправлено! ",-1)),o("p",q,u(s.message),1)])])])):(i(),a("div",W,[o("div",G,[o("div",H,[o("h2",J,u(r.blocks.data.title),1)]),o("div",K,[o("form",{onSubmit:e[0]||(e[0]=(...c)=>d.submitForm&&d.submitForm(...c))},[(i(!0),a(g,null,w(r.blocks.data.columns,(c,k)=>(i(),v(E(d.getComponent(c.type)),{key:k,block:c,error:s.errors&&s.errors[c.data.name_field]?s.errors[c.data.name_field]:null},null,8,["block","error"]))),128)),b(h,{block:r.blocks.data.button},null,8,["block"])],32)])])])),b(F,{name:"fade"},{default:B(()=>[s.success?(i(),v(x,{key:0,text:s.message},null,8,["text"])):D("",!0)]),_:1})],64)}const Y=m(L,[["render",Q],["__scopeId","data-v-11318db0"]]),Z={name:"FormBlock",components:{FormBuilder:Y,axios:p,Link:T},data(){return{form:null,loading:!0}},methods:{getForm(t){p.get(route("client.widget.form.single",t)).then(e=>{this.form=e.data,this.loading=!1}).catch(e=>{console.error("Ошибка:",e)})}},mounted(){this.getForm(this.block.data.form)},props:{block:{type:Object}}},ee={key:0,class:"flex flex-col space-y-4"},te={key:1};function se(t,e,r,l,s,d){const h=_("FormBuilder");return s.loading?(i(),a("div",ee,e[0]||(e[0]=[f('

',1)]))):(i(),a("div",te,[b(h,{blocks:s.form},null,8,["blocks"])]))}const ae=m(Z,[["render",se]]);export{ae as default}; diff --git a/public/build/assets/HeadingBlock-Cp3_jF4x.js b/public/build/assets/HeadingBlock-C6Vf5Cih.js similarity index 74% rename from public/build/assets/HeadingBlock-Cp3_jF4x.js rename to public/build/assets/HeadingBlock-C6Vf5Cih.js index 9bfbb8e..74d3d42 100644 --- a/public/build/assets/HeadingBlock-Cp3_jF4x.js +++ b/public/build/assets/HeadingBlock-C6Vf5Cih.js @@ -1 +1 @@ -import{s as o}from"./SearchModal-BTKERLZv.js";import{_ as r}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c,b as n,t as s}from"./app-CBssobj-.js";const l={name:"HeadingBlock",methods:{generateSlug:function(t){return o(t,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},i={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function d(t,m,e,u,f,p){return a(),c("div",null,[n("h2",i,s(e.block.data.content),1)])}const k=r(l,[["render",d]]);export{k as default}; +import{s as o}from"./SearchModal-CGHtjMJb.js";import{_ as r}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c,b as n,t as s}from"./app-lWrE2aWG.js";const l={name:"HeadingBlock",methods:{generateSlug:function(t){return o(t,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},i={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function d(t,m,e,u,f,p){return a(),c("div",null,[n("h2",i,s(e.block.data.content),1)])}const k=r(l,[["render",d]]);export{k as default}; diff --git a/public/build/assets/HeadingBlock-B6vgs5RT.js b/public/build/assets/HeadingBlock-iaPv_EZx.js similarity index 75% rename from public/build/assets/HeadingBlock-B6vgs5RT.js rename to public/build/assets/HeadingBlock-iaPv_EZx.js index 6d0c796..d33b96d 100644 --- a/public/build/assets/HeadingBlock-B6vgs5RT.js +++ b/public/build/assets/HeadingBlock-iaPv_EZx.js @@ -1 +1 @@ -import{s as a}from"./SearchModal-BTKERLZv.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as n,c as r,b as s,t as l}from"./app-CBssobj-.js";const i={name:"HeadingBlock",methods:{generateSlug:function(t){return a(t,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},d=["id"];function u(t,f,e,_,m,o){return n(),r("div",null,[s("h2",{id:o.generateSlug(e.block.data.content),class:"font-bold text-xl"},l(e.block.data.content),9,d)])}const b=c(i,[["render",u]]);export{b as default}; +import{s as a}from"./SearchModal-CGHtjMJb.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as n,c as r,b as s,t as l}from"./app-lWrE2aWG.js";const i={name:"HeadingBlock",methods:{generateSlug:function(t){return a(t,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},d=["id"];function u(t,f,e,_,m,o){return n(),r("div",null,[s("h2",{id:o.generateSlug(e.block.data.content),class:"font-bold text-xl"},l(e.block.data.content),9,d)])}const b=c(i,[["render",u]]);export{b as default}; diff --git a/public/build/assets/ImageBlock-DXMXSgRL.js b/public/build/assets/ImageBlock-BPZJdxPA.js similarity index 79% rename from public/build/assets/ImageBlock-DXMXSgRL.js rename to public/build/assets/ImageBlock-BPZJdxPA.js index d6ee926..02542db 100644 --- a/public/build/assets/ImageBlock-DXMXSgRL.js +++ b/public/build/assets/ImageBlock-BPZJdxPA.js @@ -1 +1 @@ -import{s as a}from"./SearchModal-BTKERLZv.js";import{F as l}from"./v3-DnjJww8i.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as i,o as g,c as m,b as n,a as u,F as d}from"./app-CBssobj-.js";const p={name:"ImageBlock",components:{FsLightbox:l},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return a(e,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},f=["src"];function _(e,t,r,h,o,b){const s=i("FsLightbox");return g(),m(d,null,[n("div",null,[n("img",{onClick:t[0]||(t[0]=k=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+r.block.data.url,alt:""},null,8,f)]),u(s,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+r.block.data.url]},null,8,["toggler","sources"])],64)}const y=c(p,[["render",_]]);export{y as default}; +import{s as a}from"./SearchModal-CGHtjMJb.js";import{F as l}from"./v3-CDJmn87G.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as i,o as g,c as m,b as n,a as u,F as d}from"./app-lWrE2aWG.js";const p={name:"ImageBlock",components:{FsLightbox:l},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return a(e,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},f=["src"];function _(e,t,r,h,o,b){const s=i("FsLightbox");return g(),m(d,null,[n("div",null,[n("img",{onClick:t[0]||(t[0]=k=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+r.block.data.url,alt:""},null,8,f)]),u(s,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+r.block.data.url]},null,8,["toggler","sources"])],64)}const y=c(p,[["render",_]]);export{y as default}; diff --git a/public/build/assets/ImageBlock-DYPERL6F.js b/public/build/assets/ImageBlock-Bz4NDWK1.js similarity index 79% rename from public/build/assets/ImageBlock-DYPERL6F.js rename to public/build/assets/ImageBlock-Bz4NDWK1.js index d6ee926..02542db 100644 --- a/public/build/assets/ImageBlock-DYPERL6F.js +++ b/public/build/assets/ImageBlock-Bz4NDWK1.js @@ -1 +1 @@ -import{s as a}from"./SearchModal-BTKERLZv.js";import{F as l}from"./v3-DnjJww8i.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as i,o as g,c as m,b as n,a as u,F as d}from"./app-CBssobj-.js";const p={name:"ImageBlock",components:{FsLightbox:l},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return a(e,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},f=["src"];function _(e,t,r,h,o,b){const s=i("FsLightbox");return g(),m(d,null,[n("div",null,[n("img",{onClick:t[0]||(t[0]=k=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+r.block.data.url,alt:""},null,8,f)]),u(s,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+r.block.data.url]},null,8,["toggler","sources"])],64)}const y=c(p,[["render",_]]);export{y as default}; +import{s as a}from"./SearchModal-CGHtjMJb.js";import{F as l}from"./v3-CDJmn87G.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as i,o as g,c as m,b as n,a as u,F as d}from"./app-lWrE2aWG.js";const p={name:"ImageBlock",components:{FsLightbox:l},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(e){return a(e,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},f=["src"];function _(e,t,r,h,o,b){const s=i("FsLightbox");return g(),m(d,null,[n("div",null,[n("img",{onClick:t[0]||(t[0]=k=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+r.block.data.url,alt:""},null,8,f)]),u(s,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+r.block.data.url]},null,8,["toggler","sources"])],64)}const y=c(p,[["render",_]]);export{y as default}; diff --git a/public/build/assets/Index-1LZENQqm.js b/public/build/assets/Index-1LZENQqm.js deleted file mode 100644 index 23d1f49..0000000 --- a/public/build/assets/Index-1LZENQqm.js +++ /dev/null @@ -1 +0,0 @@ -import{M as h}from"./MainNavbar-DYfeRcdr.js";import{i as y,Z as v,r as n,c,a as o,w as d,b as t,t as i,F as m,d as b,o as a,e as C}from"./app-CBssobj-.js";import{F as w}from"./v3-DnjJww8i.js";import{C as D}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as F}from"./ClientFooterDown-B1P9jP1W.js";import{A as k,a as A,b as E}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as B}from"./AdminIndexHeader-C9rCJkLR.js";import{C as S,a as I}from"./ClientPostSearch-B5aUVN-Q.js";import{C as M}from"./ClientPost-DIJzEVBF.js";import{C as N}from"./ClientEventSelectDate-DSCwmyIV.js";import{C as P}from"./ClientEventFilter-DT5MRLcl.js";import{M as H}from"./MainPageNavbar-Cmz730h9.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */import"./SortingByFilter-Ds4x3JAu.js";const j={name:"Index",components:{MainPageNavBar:H,ClientEventFilter:P,ClientEventSelectDate:N,AdminIndexHeaderTitle:k,AdminIndexHeader:B,AdminIndexFilter:A,AdminIndexSearch:E,ClientFooterDown:F,ClientScrollTimeline:D,ClientPostFilter:S,Link:y,MainNavbar:h,FsLightbox:w,Head:v,ClientPost:M,ClientPostSearch:I},props:{events:{type:Array},currentDate:{type:String},eventDates:{type:Array},navigation:{type:Array},filters:{type:Array},categories:{type:Array}},methods:{}},T={class:"flex flex-col h-screen"},V={class:"flex-grow"},G={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},Y={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},Z={class:"space-y-5 md:space-y-4"},q={class:"flex items-center w-full justify-center"},z={class:"my-10 justify-center flex gap-x-3 items-center"},J={class:"shadow-sm w-[35px]"},K={class:"block w-[35px] h-[27px] bg-white text-center font-medium"},O={class:"font-light text-xl"},Q={class:"space-y-5 md:space-y-4"},R={class:"grid gap-y-10 mt-10"},U={class:"grow"},W={class:"flex flex-col h-full"},X={class:"mb-3"},$={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-[12px] text-gray-600"},tt={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},et={class:"text-lg sm:text-2xl font-semibold text-gray-800 group-hover:text-blue-600"};function st(l,e,s,nt,ot,it){const p=n("Head"),x=n("MainPageNavBar"),_=n("ClientEventFilter"),f=n("ClientEventSelectDate"),g=n("Link"),u=n("ClientFooterDown");return a(),c(m,null,[o(p,null,{default:d(()=>e[0]||(e[0]=[t("title",null,"Мероприятия",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(x,{class:"border-b",sections:l.$page.props.navigation},null,8,["sections"]),t("div",T,[t("main",V,[t("div",G,[t("div",Y,[t("div",null,[t("div",Z,[t("div",q,[e[1]||(e[1]=t("h1",{class:"block text-brand-primary text-center mb-3 mt-2 mr-4 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"}," Мероприятия НТГСПИ ",-1)),o(_,{is_online_filter:s.filters.is_online_filter,categories:this.categories,category_filter:s.filters.category_filter,"sorting-by_filter":s.filters.sortingBy_filter},null,8,["is_online_filter","categories","category_filter","sorting-by_filter"])]),t("div",z,[e[3]||(e[3]=t("h3",{class:"font-light text-xl"},"Мероприятия на ",-1)),t("div",J,[e[2]||(e[2]=t("div",{class:"block w-[35px] h-[8px] bg-red-400 rounded-t"},null,-1)),t("div",K,i(s.currentDate.day),1)]),t("h3",O,i(s.currentDate.month),1)]),t("div",Q,[t("div",null,[o(f,{"current-date":s.currentDate.fullDate,dates:s.eventDates},null,8,["current-date","dates"])])])]),t("div",R,[(a(!0),c(m,null,b(s.events.data,r=>(a(),C(g,{class:"group sm:flex rounded-xl",href:l.route("client.event.show",r.slug)},{default:d(()=>[t("div",U,[t("div",W,[t("div",X,[t("p",$,i(r.event_time_start),1),t("p",tt,i(r.category),1)]),t("h3",et,i(r.title),1),e[4]||(e[4]=t("p",{class:"mt-2 text-gray-600"}," Great news we're eager to share. ",-1))])])]),_:2},1032,["href"]))),256))])])])])]),o(u)])],64)}const Ct=L(j,[["render",st]]);export{Ct as default}; diff --git a/public/build/assets/Index-5U2ab9wb.js b/public/build/assets/Index-5U2ab9wb.js new file mode 100644 index 0000000..956e3cb --- /dev/null +++ b/public/build/assets/Index-5U2ab9wb.js @@ -0,0 +1 @@ +import{M as f}from"./MainNavbar-Ox7xJRDB.js";import{B as y,C as w,_ as k}from"./SearchModal-CGHtjMJb.js";import{i as _,r as i,c as o,a as n,b as e,m as B,p as M,y as I,l as C,h as N,w as F,z as j,F as r,o as a,d,g as D,t as h}from"./app-lWrE2aWG.js";import{M as V}from"./MainPageNavbar-BsdceJwT.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */const S={name:"Index",data(){return{searchInput:this.searchRequest}},components:{BaseIcon:y,MainPageNavBar:V,ClientFooterDown:w,MainNavbar:f,Link:_},props:["educationalGroups","mainSections","searchRequest","navigation"],methods:{search:k.debounce(function(){this.$inertia.reload({method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})},300)}},P={class:"flex flex-col h-screen"},T={class:"flex-grow"},q={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},K={class:"w-full min-w-0 mt-4 px-1 md:px-6"},L={class:"relative overflow-hidden"},R={class:"max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8 py-10 sm:pb-12 sm:py-5"},E={class:"text-center"},G={class:"mt-7 sm:mt-12 mx-auto max-w-xl relative space-y-4"},H={class:"relative z-10 space-x-3 p-3 bg-white border rounded-lg shadow-lg shadow-gray-100"},U={class:"flex justify-between"},$={class:"flex w-full"},A={class:""},J={class:"grid grid-cols-2 gap-3"},O={type:"button",class:"flex w-full py-2 px-4 items-center gap-x-2 text-xs font-medium rounded-lg border border-gray-200 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"},Q={class:"mx-auto max-w-2xl hs-accordion-group grid grid-cols-1 lg:grid-cols-2 gap-3"},W={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 inline-flex justify-between items-center gap-x-3 w-full font-semibold text-start text-gray-800 py-4 px-5 hover:text-gray-500 disabled:opacity-50 disabled:pointer-events-none dark:hs-accordion-active:text-blue-500 dark:text-gray-200 dark:hover:text-gray-400 dark:focus:outline-none dark:focus:text-gray-400","aria-controls":"hs-basic-active-bordered-collapse-one"},X={id:"hs-basic-active-bordered-collapse-one",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300","aria-labelledby":"hs-active-bordered-heading-one"},Y={class:"pb-4 px-5 grid gap-3 grid-cols-1"},Z=["href"];function ee(u,t,x,te,l,c){const b=i("MainPageNavBar"),v=i("BaseIcon"),m=i("ClientFooterDown");return a(),o(r,null,[n(b,{class:"border-b",sections:u.$page.props.navigation},null,8,["sections"]),e("div",P,[e("main",T,[e("div",q,[e("article",K,[e("div",L,[e("div",R,[e("div",E,[t[6]||(t[6]=e("h1",{class:"text-2xl sm:text-4xl font-bold text-gray-800 dark:text-gray-200"}," Расписание занятий ",-1)),t[7]||(t[7]=e("div",{class:"text-center"},[e("p",{class:"mt-3 text-gray-600 dark:text-gray-400"}," Просто введите название группы ")],-1)),e("div",G,[e("form",null,[e("div",H,[e("div",U,[e("div",$,[t[3]||(t[3]=e("label",{for:"hs-search-article-1",class:"block text-sm text-gray-700 font-medium dark:text-white"},[e("span",{class:"sr-only"},"Поиск")],-1)),B(e("input",{onKeydown:t[0]||(t[0]=I(C(()=>{},["prevent"]),["enter"])),autocomplete:"off","onUpdate:modelValue":t[1]||(t[1]=s=>l.searchInput=s),onInput:t[2]||(t[2]=(...s)=>c.search&&c.search(...s)),type:"search",id:"hs-search-article-1",class:"py-2.5 px-4 block w-full border-transparent rounded-lg",placeholder:"Поиск"},null,544),[[M,l.searchInput]])])])])]),e("div",A,[e("div",J,[e("button",O,[n(v,{name:"heart",class:"shrink-0 size-4"}),t[4]||(t[4]=e("span",null,"Избранные расписания",-1))]),t[5]||(t[5]=N('',1))])])])])])]),e("div",Q,[n(j,{name:"fade"},{default:F(()=>[(a(!0),o(r,null,d(x.educationalGroups.data,s=>(a(),o("div",{key:s.id,class:"hs-accordion hs-accordion-active:border-gray-200 bg-white border-b dark:hs-accordion-active:border-gray-700 dark:bg-gray-800 dark:border-transparent",id:"hs-active-bordered-heading-one"},[e("button",W,[D(h(s.title)+" ",1),t[8]||(t[8]=e("svg",{class:"hs-accordion-active:hidden block w-3.5 h-3.5",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"},[e("path",{d:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)),t[9]||(t[9]=e("svg",{class:"hs-accordion-active:block hidden w-3.5 h-3.5",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"},[e("path",{d:"M5 12h14"})],-1))]),e("div",X,[e("div",Y,[(a(!0),o(r,null,d(s.schedules,p=>(a(),o(r,{key:p.id},[(a(!0),o(r,null,d(p.file,g=>(a(),o("a",{href:"storage/"+g.path,target:"_blank",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-500 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h(g.title),9,Z))),256))],64))),128))])])]))),128))]),_:1})])])])]),n(m)])],64)}const de=z(S,[["render",ee],["__scopeId","data-v-a071b57e"]]);export{de as default}; diff --git a/public/build/assets/Index-BBwGUJwz.js b/public/build/assets/Index-BBwGUJwz.js new file mode 100644 index 0000000..32a2b6d --- /dev/null +++ b/public/build/assets/Index-BBwGUJwz.js @@ -0,0 +1 @@ +import{M as P}from"./MainNavbar-Ox7xJRDB.js";import{i as k,Z as F,r as o,c as n,a as l,w as h,b as e,t as f,F as c,d as p,o as s,e as E,g as w}from"./app-lWrE2aWG.js";import{F as L}from"./v3-CDJmn87G.js";import{C as B}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as N}from"./SearchModal-CGHtjMJb.js";import{A as T,a as M,b as I}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A as H}from"./AdminIndexHeader-BLYLBYAX.js";import{C as S,a as D}from"./ClientPostSearch-DByct-eL.js";import{C as V}from"./ClientPost-HujX0ISt.js";import{C as j,L as G}from"./ClientProgramFilter-C-_lryip.js";import{P as R,d as Y,c as Z,a as q,b as J}from"./PostGallery-BpzMY_Fm.js";import{P as K}from"./PostBuilder-BikqjS2v.js";import{M as O}from"./MainPageNavbar-BsdceJwT.js";import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./SortingByFilter-DAe1p4QU.js";const U={name:"Index",components:{MainPageNavBar:O,PostGallery:R,PostBuilder:K,PostTitle:Y,PostBackButton:Z,PostTimeRead:q,PostAuthorsList:J,ClientProgramFilter:j,LevelEduFilter:G,AdminIndexHeaderTitle:T,AdminIndexHeader:H,AdminIndexFilter:M,AdminIndexSearch:I,ClientFooterDown:N,ClientScrollTimeline:B,ClientPostFilter:S,Link:k,MainNavbar:P,FsLightbox:L,Head:F,ClientPost:V,ClientPostSearch:D},data(){return{}},props:{campaignName:{type:String},levelsEducational:{type:Array},naprs:{type:Array},filters:{type:Array},formsEdu:{type:Array},budgetEdu:{type:Array},direction_studies:{type:Array}},methods:{transformToColumns(r){return((m,u)=>m.reduce((d,x,a)=>a%u?d:[...d,m.slice(a,a+u)],[]))(r,Math.ceil(r.length/2)).reverse()},textLimit(r,i){if(r.length>i){let t;return t=r.substring(0,i),t+"..."}return r}},mounted(){}},W={class:"flex flex-col h-screen"},X={class:"flex-grow"},z={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:py-10"},$={class:"w-100"},ee={class:"space-y-5 md:space-y-4"},te={class:"text-brand-primary text-center mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"},re={class:"space-y-5 md:space-y-10"},se={class:"my-10 flex items-center justify-center gap-x-2"},ie={class:"container mx-auto xl:px-5 py-5 lg:py-4"},oe={class:"w-full mx-auto gap-x3 flex flex-wrap lg:justify-center"},ne={class:"flex flex-col"},ae={style:{height:"max-content"},class:"px-4"},le={class:"text-brand-primary mb-2 mt-2 text-lg font-semibold upper tracking-tight dark:text-white lg:text-md lg:leading-tight"};function de(r,i,t,m,u,d){const x=o("Head"),a=o("MainPageNavBar"),y=o("LevelEduFilter"),v=o("ClientProgramFilter"),b=o("Link"),C=o("ClientFooterDown");return s(),n(c,null,[l(x,null,{default:h(()=>i[0]||(i[0]=[e("title",null,"Приемная компания",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),l(a,{class:"border-b",sections:r.$page.props.navigation},null,8,["sections"]),e("div",W,[e("main",X,[e("div",z,[e("div",$,[e("div",null,[e("div",ee,[e("h1",te,f(this.campaignName),1),e("div",re,[e("div",null,[e("div",se,[l(y,{levels:t.levelsEducational,level_filter:t.filters.level_filter},null,8,["levels","level_filter"]),l(v,{budget_filter:t.filters.budget_filter,direction_filter:t.filters.direction_filter,formEdu_filter:t.filters.formEdu_filter,types_budget:t.budgetEdu,direction_studies:t.direction_studies,forms_educational:t.formsEdu},null,8,["budget_filter","direction_filter","formEdu_filter","types_budget","direction_studies","forms_educational"])]),e("div",ie,[e("div",oe,[(s(!0),n(c,null,p(d.transformToColumns(this.naprs.data),A=>(s(),n("div",ne,[(s(!0),n(c,null,p(A,g=>(s(),n("div",ae,[e("h1",le,f(g.name),1),(s(!0),n(c,null,p(g.programs,_=>(s(),E(b,{key:_.id,class:"block text-[#1E57A3] hover:text-blue-600 duration-200 text-sm underline underline-offset-2 py-1",href:r.route("client.program.show",_)},{default:h(()=>[w(f(_.name),1)]),_:2},1032,["href"]))),128))]))),256))]))),256))])])])])])])])])]),l(C)])],64)}const Fe=Q(U,[["render",de]]);export{Fe as default}; diff --git a/public/build/assets/Index-Bc3nPRSA.js b/public/build/assets/Index-Bc3nPRSA.js new file mode 100644 index 0000000..fa9032e --- /dev/null +++ b/public/build/assets/Index-Bc3nPRSA.js @@ -0,0 +1 @@ +import{M as y}from"./MainNavbar-Ox7xJRDB.js";import{i as h,Z as b,r as t,c as p,a as o,w as r,b as e,F as m,d as k,o as a,e as w}from"./app-lWrE2aWG.js";import{F as C}from"./v3-CDJmn87G.js";import{C as P}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as A}from"./SearchModal-CGHtjMJb.js";import{A as B,a as F,b as I}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A as H}from"./AdminIndexHeader-BLYLBYAX.js";import{C as M,a as $}from"./ClientPostSearch-DByct-eL.js";import{C as N}from"./ClientPost-HujX0ISt.js";import{E,a as L,T as S}from"./EventBuilder-Baz4pEov.js";import{M as T}from"./MainPageNavbar-BsdceJwT.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./SortingByFilter-DAe1p4QU.js";import"./ClientImageSlider-ZnyNtD9R.js";import"./PageTabBuilder-81M-YOIr.js";import"./HeadingBlock-iaPv_EZx.js";import"./ParagraphBlock-64oJsNrU.js";import"./ImageBlock-Bz4NDWK1.js";import"./FileBlock-DP4RAJQp.js";import"./PersonBlock-C8nng2Wc.js";import"./StepperBlock-Cnp91vN2.js";import"./VideoBlock-NJG_Gd3K.js";import"./PostListBlock-BoZg3Tch.js";const D={name:"Index",components:{MainPageNavBar:T,EventBuilder:E,EventBackButton:L,TitleEvent:S,AdminIndexHeaderTitle:B,AdminIndexHeader:H,AdminIndexFilter:F,AdminIndexSearch:I,ClientFooterDown:A,ClientScrollTimeline:P,ClientPostFilter:M,Link:h,MainNavbar:y,FsLightbox:C,Head:b,ClientPost:N,ClientPostSearch:$},data(){return{}},props:{posts:{type:Array},filters:{type:Array},categories:{type:Array},navigation:{type:Array}},methods:{},mounted(){}},z={class:"flex flex-col h-screen"},V={class:"flex-grow"},Y={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},Z={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},q={class:"space-y-5 md:space-y-4"},G={class:"space-y-5 md:space-y-4"},J={class:"container px-8 mx-auto xl:px-5 max-w-screen-lg py-5 lg:py-8"},K={class:"mt-10 grid gap-10 md:grid-cols-2 lg:gap-10 xl:grid-cols-3"},O={class:"mt-10 flex items-center justify-center"},Q={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function R(n,s,i,U,W,X){const c=t("Head"),u=t("MainPageNavBar"),g=t("ClientPostSearch"),x=t("ClientPostFilter"),f=t("AdminIndexHeader"),_=t("ClientPost"),l=t("Link"),v=t("ClientFooterDown");return a(),p(m,null,[o(c,null,{default:r(()=>s[0]||(s[0]=[e("title",null,"Новости",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(u,{class:"border-b",sections:n.$page.props.navigation},null,8,["sections"]),e("div",z,[e("main",V,[e("div",Y,[e("div",Z,[e("div",null,[o(f,null,{default:r(()=>[o(g),o(x,{items:i.categories},null,8,["items"])]),_:1}),e("div",q,[e("div",G,[e("div",null,[e("div",J,[e("div",K,[(a(!0),p(m,null,k(i.posts.data,d=>(a(),w(_,{key:d.id,post:d},null,8,["post"]))),128))]),e("div",O,[e("nav",Q,[o(l,{as:"button",href:n.$props.posts.links.prev,disabled:n.$props.posts.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>s[1]||(s[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),e("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),o(l,{as:"button",href:n.$props.posts.links.next,disabled:n.$props.posts.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>s[2]||(s[2]=[e("span",null,"Следующая",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])])])]),o(v)])],64)}const Ce=j(D,[["render",R]]);export{Ce as default}; diff --git a/public/build/assets/Index-BgLUU4Lv.js b/public/build/assets/Index-BgLUU4Lv.js deleted file mode 100644 index 7dc8084..0000000 --- a/public/build/assets/Index-BgLUU4Lv.js +++ /dev/null @@ -1 +0,0 @@ -import{M as f}from"./MainNavbar-DYfeRcdr.js";import{C as y}from"./ClientFooterDown-B1P9jP1W.js";import{B as w,_ as k}from"./SearchModal-BTKERLZv.js";import{i as _,r as i,c as s,a as n,b as e,m as B,p as M,y as I,l as C,h as N,w as F,z as j,F as r,o as a,d,g as D,t as h}from"./app-CBssobj-.js";import{M as V}from"./MainPageNavbar-Cmz730h9.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */const S={name:"Index",data(){return{searchInput:this.searchRequest}},components:{BaseIcon:w,MainPageNavBar:V,ClientFooterDown:y,MainNavbar:f,Link:_},props:["educationalGroups","mainSections","searchRequest","navigation"],methods:{search:k.debounce(function(){this.$inertia.reload({method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})},300)}},P={class:"flex flex-col h-screen"},T={class:"flex-grow"},q={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},K={class:"w-full min-w-0 mt-4 px-1 md:px-6"},L={class:"relative overflow-hidden"},R={class:"max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8 py-10 sm:pb-12 sm:py-5"},E={class:"text-center"},G={class:"mt-7 sm:mt-12 mx-auto max-w-xl relative space-y-4"},H={class:"relative z-10 space-x-3 p-3 bg-white border rounded-lg shadow-lg shadow-gray-100"},U={class:"flex justify-between"},$={class:"flex w-full"},A={class:""},J={class:"grid grid-cols-2 gap-3"},O={type:"button",class:"flex w-full py-2 px-4 items-center gap-x-2 text-xs font-medium rounded-lg border border-gray-200 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"},Q={class:"mx-auto max-w-2xl hs-accordion-group grid grid-cols-1 lg:grid-cols-2 gap-3"},W={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 inline-flex justify-between items-center gap-x-3 w-full font-semibold text-start text-gray-800 py-4 px-5 hover:text-gray-500 disabled:opacity-50 disabled:pointer-events-none dark:hs-accordion-active:text-blue-500 dark:text-gray-200 dark:hover:text-gray-400 dark:focus:outline-none dark:focus:text-gray-400","aria-controls":"hs-basic-active-bordered-collapse-one"},X={id:"hs-basic-active-bordered-collapse-one",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300","aria-labelledby":"hs-active-bordered-heading-one"},Y={class:"pb-4 px-5 grid gap-3 grid-cols-1"},Z=["href"];function ee(u,t,x,te,l,c){const b=i("MainPageNavBar"),m=i("BaseIcon"),v=i("ClientFooterDown");return a(),s(r,null,[n(b,{class:"border-b",sections:u.$page.props.navigation},null,8,["sections"]),e("div",P,[e("main",T,[e("div",q,[e("article",K,[e("div",L,[e("div",R,[e("div",E,[t[6]||(t[6]=e("h1",{class:"text-2xl sm:text-4xl font-bold text-gray-800 dark:text-gray-200"}," Расписание занятий ",-1)),t[7]||(t[7]=e("div",{class:"text-center"},[e("p",{class:"mt-3 text-gray-600 dark:text-gray-400"}," Просто введите название группы ")],-1)),e("div",G,[e("form",null,[e("div",H,[e("div",U,[e("div",$,[t[3]||(t[3]=e("label",{for:"hs-search-article-1",class:"block text-sm text-gray-700 font-medium dark:text-white"},[e("span",{class:"sr-only"},"Поиск")],-1)),B(e("input",{onKeydown:t[0]||(t[0]=I(C(()=>{},["prevent"]),["enter"])),autocomplete:"off","onUpdate:modelValue":t[1]||(t[1]=o=>l.searchInput=o),onInput:t[2]||(t[2]=(...o)=>c.search&&c.search(...o)),type:"search",id:"hs-search-article-1",class:"py-2.5 px-4 block w-full border-transparent rounded-lg",placeholder:"Поиск"},null,544),[[M,l.searchInput]])])])])]),e("div",A,[e("div",J,[e("button",O,[n(m,{name:"heart",class:"shrink-0 size-4"}),t[4]||(t[4]=e("span",null,"Избранные расписания",-1))]),t[5]||(t[5]=N('',1))])])])])])]),e("div",Q,[n(j,{name:"fade"},{default:F(()=>[(a(!0),s(r,null,d(x.educationalGroups.data,o=>(a(),s("div",{key:o.id,class:"hs-accordion hs-accordion-active:border-gray-200 bg-white border-b dark:hs-accordion-active:border-gray-700 dark:bg-gray-800 dark:border-transparent",id:"hs-active-bordered-heading-one"},[e("button",W,[D(h(o.title)+" ",1),t[8]||(t[8]=e("svg",{class:"hs-accordion-active:hidden block w-3.5 h-3.5",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"},[e("path",{d:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)),t[9]||(t[9]=e("svg",{class:"hs-accordion-active:block hidden w-3.5 h-3.5",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"},[e("path",{d:"M5 12h14"})],-1))]),e("div",X,[e("div",Y,[(a(!0),s(r,null,d(o.schedules,p=>(a(),s(r,{key:p.id},[(a(!0),s(r,null,d(p.file,g=>(a(),s("a",{href:"storage/"+g.path,target:"_blank",class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-500 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h(g.title),9,Z))),256))],64))),128))])])]))),128))]),_:1})])])])]),n(v)])],64)}const le=z(S,[["render",ee],["__scopeId","data-v-a071b57e"]]);export{le as default}; diff --git a/public/build/assets/Index-BoTKbR4i.js b/public/build/assets/Index-BoTKbR4i.js deleted file mode 100644 index 6ce4109..0000000 --- a/public/build/assets/Index-BoTKbR4i.js +++ /dev/null @@ -1 +0,0 @@ -import{i as u,Z as _,r as s,c as r,a as o,w as l,b as e,F as d,d as h,o as n,e as f,t as v}from"./app-CBssobj-.js";import"./SearchModal-BTKERLZv.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import{F as b}from"./v3-DnjJww8i.js";import{C as y}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as k}from"./ClientFooterDown-B1P9jP1W.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A}from"./AdminIndexHeader-C9rCJkLR.js";import{C as I,a as P}from"./ClientPostSearch-B5aUVN-Q.js";import{C as H}from"./ClientPost-DIJzEVBF.js";import{M as L}from"./MainPageNavbar-Cmz730h9.js";import"./SortingByFilter-Ds4x3JAu.js";const N={name:"Index",components:{MainPageNavBar:L,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:y,ClientPostFilter:I,Link:u,FsLightbox:b,Head:_,ClientPost:H,ClientPostSearch:P},data(){return{}},props:{divisions:{type:Array}},methods:{},mounted(){}},D={class:"flex flex-col h-screen"},M={class:"flex-grow"},S={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},$={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},j={class:"space-y-5 md:space-y-4"},T={class:"space-y-5 md:space-y-4"},V={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},z={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},E={class:"p-4 md:p-5 w-full"},W={class:"flex justify-between items-center gap-x-3"},Y={class:"grow"},Z={class:"group-hover:text-blue-600 font-semibold text-gray-800"};function q(a,t,m,G,J,K){const c=s("Head"),p=s("MainPageNavBar"),x=s("Link"),g=s("ClientFooterDown");return n(),r(d,null,[o(c,null,{default:l(()=>t[0]||(t[0]=[e("title",null,"Подразделения института",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(p,{class:"border-b",sections:a.$page.props.navigation},null,8,["sections"]),e("div",D,[e("main",M,[e("div",S,[e("div",$,[e("div",null,[e("div",j,[e("div",T,[e("div",V,[t[2]||(t[2]=e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Подразделения института"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")],-1)),e("div",z,[(n(!0),r(d,null,h(m.divisions.data,i=>(n(),f(x,{href:a.route("client.division.show",i.slug),class:"group flex items-center bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:l(()=>[e("div",E,[e("div",W,[e("div",Y,[e("h3",Z,v(i.title),1)]),t[1]||(t[1]=e("div",null,[e("svg",{class:"shrink-0 size-5 text-gray-800",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),o(g)])],64)}const le=w(N,[["render",q]]);export{le as default}; diff --git a/public/build/assets/Index-Bqt5Cqha.js b/public/build/assets/Index-Bqt5Cqha.js deleted file mode 100644 index 50db9a1..0000000 --- a/public/build/assets/Index-Bqt5Cqha.js +++ /dev/null @@ -1 +0,0 @@ -import{M as y}from"./MainNavbar-DYfeRcdr.js";import{i as h,Z as b,r as t,c as p,a as o,w as r,b as e,F as m,d as k,o as a,e as w}from"./app-CBssobj-.js";import{F as C}from"./v3-DnjJww8i.js";import{C as P}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as A}from"./ClientFooterDown-B1P9jP1W.js";import{A as B,a as F,b as I}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as H}from"./AdminIndexHeader-C9rCJkLR.js";import{C as M,a as $}from"./ClientPostSearch-B5aUVN-Q.js";import{C as N}from"./ClientPost-DIJzEVBF.js";import{E,a as L,T as S}from"./EventBuilder-D5WodeWz.js";import{M as T}from"./MainPageNavbar-Cmz730h9.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */import"./SortingByFilter-Ds4x3JAu.js";import"./ClientImageSlider-CvtLuRx_.js";import"./PageTabBuilder-Db8g88-o.js";import"./HeadingBlock-B6vgs5RT.js";import"./ParagraphBlock-BweYyzkY.js";import"./ImageBlock-DYPERL6F.js";import"./FileBlock-Blx3yiDN.js";import"./PersonBlock-BPXTqyzY.js";import"./StepperBlock-CW2_9ZUx.js";import"./VideoBlock-C-U8CRac.js";import"./PostListBlock-CLMN_FUG.js";const D={name:"Index",components:{MainPageNavBar:T,EventBuilder:E,EventBackButton:L,TitleEvent:S,AdminIndexHeaderTitle:B,AdminIndexHeader:H,AdminIndexFilter:F,AdminIndexSearch:I,ClientFooterDown:A,ClientScrollTimeline:P,ClientPostFilter:M,Link:h,MainNavbar:y,FsLightbox:C,Head:b,ClientPost:N,ClientPostSearch:$},data(){return{}},props:{posts:{type:Array},filters:{type:Array},categories:{type:Array},navigation:{type:Array}},methods:{},mounted(){}},z={class:"flex flex-col h-screen"},V={class:"flex-grow"},Y={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},Z={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},q={class:"space-y-5 md:space-y-4"},G={class:"space-y-5 md:space-y-4"},J={class:"container px-8 mx-auto xl:px-5 max-w-screen-lg py-5 lg:py-8"},K={class:"mt-10 grid gap-10 md:grid-cols-2 lg:gap-10 xl:grid-cols-3"},O={class:"mt-10 flex items-center justify-center"},Q={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function R(n,s,i,U,W,X){const c=t("Head"),u=t("MainPageNavBar"),g=t("ClientPostSearch"),x=t("ClientPostFilter"),f=t("AdminIndexHeader"),_=t("ClientPost"),l=t("Link"),v=t("ClientFooterDown");return a(),p(m,null,[o(c,null,{default:r(()=>s[0]||(s[0]=[e("title",null,"Новости",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(u,{class:"border-b",sections:n.$page.props.navigation},null,8,["sections"]),e("div",z,[e("main",V,[e("div",Y,[e("div",Z,[e("div",null,[o(f,null,{default:r(()=>[o(g),o(x,{items:i.categories},null,8,["items"])]),_:1}),e("div",q,[e("div",G,[e("div",null,[e("div",J,[e("div",K,[(a(!0),p(m,null,k(i.posts.data,d=>(a(),w(_,{key:d.id,post:d},null,8,["post"]))),128))]),e("div",O,[e("nav",Q,[o(l,{as:"button",href:n.$props.posts.links.prev,disabled:n.$props.posts.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>s[1]||(s[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),e("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),o(l,{as:"button",href:n.$props.posts.links.next,disabled:n.$props.posts.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>s[2]||(s[2]=[e("span",null,"Следующая",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])])])]),o(v)])],64)}const Pe=j(D,[["render",R]]);export{Pe as default}; diff --git a/public/build/assets/Index-Bt3p4TYn.js b/public/build/assets/Index-Bt3p4TYn.js deleted file mode 100644 index 745046e..0000000 --- a/public/build/assets/Index-Bt3p4TYn.js +++ /dev/null @@ -1 +0,0 @@ -import{M as b}from"./MainNavbar-DYfeRcdr.js";import{i as v,Z as w,r as s,c as l,a as o,w as r,b as t,t as k,f as C,F as m,d as P,o as n,e as B}from"./app-CBssobj-.js";import{F}from"./v3-DnjJww8i.js";import{C as j}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as A}from"./ClientFooterDown-B1P9jP1W.js";import{A as I,a as H,b as M}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as N}from"./AdminIndexHeader-C9rCJkLR.js";import{C as S,a as L}from"./ClientPostSearch-B5aUVN-Q.js";import{C as O}from"./ClientPost-DIJzEVBF.js";import{P as D}from"./EventBadgeBuilder-BAiU6h4y.js";import{M as V}from"./MainPageNavbar-Cmz730h9.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */import"./SortingByFilter-Ds4x3JAu.js";const T={name:"Index",components:{MainPageNavBar:V,PostBadge:D,AdminIndexHeaderTitle:I,AdminIndexHeader:N,AdminIndexFilter:H,AdminIndexSearch:M,ClientFooterDown:A,ClientScrollTimeline:j,ClientPostFilter:S,Link:v,MainNavbar:b,FsLightbox:F,Head:w,ClientPost:O,ClientPostSearch:L},data(){return{}},props:{posts:{type:Object},filters:{type:Object},categories:{type:Object},tags:{type:Object},navigation:{type:Object}},methods:{},mounted(){}},E={class:"flex flex-col h-screen"},Y={class:"flex-grow"},Z={class:"relative mx-auto mt-[67px] max-w-screen-xl py-10 md:flex md:flex-row md:py-10"},q={class:"pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},G={class:"px-6"},J={key:0,class:"text-sm text-gray-500 mb-4"},K={class:"flex-wrap flex gap-3 md:items-center"},Q={class:"space-y-5 md:space-y-4"},R={class:"space-y-5 md:space-y-4"},U={class:"container px-4 mx-auto xl:px-5 max-w-screen-lg py-5 lg:py-8"},W={class:"mt-10 grid gap-10 md:grid-cols-2 lg:gap-10 xl:grid-cols-3"},X={class:"mt-10 flex items-center justify-center"},$={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function tt(i,a,e,et,st,ot){const p=s("Head"),g=s("MainPageNavBar"),f=s("ClientPostSearch"),x=s("ClientPostFilter"),_=s("AdminIndexHeader"),u=s("PostBadge"),h=s("ClientPost"),d=s("Link"),y=s("ClientFooterDown");return n(),l(m,null,[o(p,null,{default:r(()=>a[0]||(a[0]=[t("title",null,"Новости",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(g,{class:"border-b",sections:i.$page.props.navigation},null,8,["sections"]),t("div",E,[t("main",Y,[t("div",Z,[t("div",q,[a[3]||(a[3]=t("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[t("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Новости НТГСПИ"),t("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"Узнайте последние новости любимого вуза")],-1)),t("div",null,[o(_,null,{default:r(()=>[o(f,{search_filter:this.filters.search_filter},null,8,["search_filter"]),o(x,{"sorting-by_filter":this.filters.sortingBy_filter,category_filter:this.filters.category_filter,tag_filter:this.filters.tag_filter,tags:e.tags,items:e.categories},null,8,["sorting-by_filter","category_filter","tag_filter","tags","items"])]),_:1}),t("div",G,[e.filters.category_filter.value||e.filters.tag_filter.value||e.filters.search_filter.value?(n(),l("h3",J,"Найдено новостей: "+k(e.posts.meta.total),1)):C("",!0),t("div",K,[o(u,{filters:this.filters},null,8,["filters"])])]),t("div",Q,[t("div",R,[t("div",null,[t("div",U,[t("div",W,[(n(!0),l(m,null,P(e.posts.data,c=>(n(),B(h,{key:c.id,post:c},null,8,["post"]))),128))]),t("div",X,[t("nav",$,[o(d,{as:"button",href:e.posts.links.prev,disabled:i.$props.posts.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>a[1]||(a[1]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),t("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),o(d,{as:"button",href:e.posts.links.next,disabled:i.$props.posts.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>a[2]||(a[2]=[t("span",null,"Следующая",-1),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])])])]),o(y)])],64)}const yt=z(T,[["render",tt]]);export{yt as default}; diff --git a/public/build/assets/Index-CEZaH6MJ.js b/public/build/assets/Index-CEZaH6MJ.js deleted file mode 100644 index 451b28d..0000000 --- a/public/build/assets/Index-CEZaH6MJ.js +++ /dev/null @@ -1 +0,0 @@ -import{M as _}from"./MainNavbar-DYfeRcdr.js";import{i as h,Z as f,r as s,c as i,a,w as l,b as e,F as d,d as v,o as n,e as w,t as m}from"./app-CBssobj-.js";import{F as b}from"./v3-DnjJww8i.js";import{C as y}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as k}from"./ClientFooterDown-B1P9jP1W.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A}from"./AdminIndexHeader-C9rCJkLR.js";import{C as I,a as M}from"./ClientPostSearch-B5aUVN-Q.js";import{C as N}from"./ClientPost-DIJzEVBF.js";import{M as P}from"./MainPageNavbar-Cmz730h9.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */import"./SortingByFilter-Ds4x3JAu.js";const L={name:"Index",components:{MainPageNavBar:P,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:y,ClientPostFilter:I,Link:h,MainNavbar:_,FsLightbox:b,Head:f,ClientPost:N,ClientPostSearch:M},data(){return{}},props:{faculties:{type:Array}},methods:{},mounted(){}},D={class:"flex flex-col h-screen"},S={class:"flex-grow"},$={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},T={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},j={class:"space-y-5 md:space-y-4"},V={class:"space-y-5 md:space-y-4"},z={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},E={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},W={class:"p-4 md:p-5"},Y={class:"flex justify-between items-center gap-x-3"},Z={class:"grow"},q={class:"group-hover:text-blue-600 font-semibold text-gray-800"},G={class:"text-sm text-gray-500"};function J(r,t,c,K,O,Q){const p=s("Head"),x=s("MainPageNavBar"),g=s("Link"),u=s("ClientFooterDown");return n(),i(d,null,[a(p,null,{default:l(()=>t[0]||(t[0]=[e("title",null,"Факультеты",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),a(x,{class:"border-b",sections:r.$page.props.navigation},null,8,["sections"]),e("div",D,[e("main",S,[e("div",$,[e("div",T,[e("div",null,[e("div",j,[e("div",V,[e("div",z,[t[2]||(t[2]=e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Факультеты и кафедры"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")],-1)),e("div",E,[(n(!0),i(d,null,v(c.faculties.data,o=>(n(),w(g,{href:r.route("client.faculty.show",o.slug),class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:l(()=>[e("div",W,[e("div",Y,[e("div",Z,[e("h3",q,m(o.shortTitle),1),e("p",G,m(o.title),1)]),t[1]||(t[1]=e("div",null,[e("svg",{class:"shrink-0 size-5 text-gray-800",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),a(u)])],64)}const ce=H(L,[["render",J]]);export{ce as default}; diff --git a/public/build/assets/Index-Ce32AtE_.js b/public/build/assets/Index-Ce32AtE_.js new file mode 100644 index 0000000..43bc15d --- /dev/null +++ b/public/build/assets/Index-Ce32AtE_.js @@ -0,0 +1 @@ +import{M as _}from"./MainNavbar-Ox7xJRDB.js";import{i as h,Z as f,r as s,c as i,a,w as l,b as e,F as d,d as v,o as n,e as w,t as m}from"./app-lWrE2aWG.js";import{F as b}from"./v3-CDJmn87G.js";import{C as y}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as k}from"./SearchModal-CGHtjMJb.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A}from"./AdminIndexHeader-BLYLBYAX.js";import{C as I,a as M}from"./ClientPostSearch-DByct-eL.js";import{C as N}from"./ClientPost-HujX0ISt.js";import{M as P}from"./MainPageNavbar-BsdceJwT.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./SortingByFilter-DAe1p4QU.js";const L={name:"Index",components:{MainPageNavBar:P,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:y,ClientPostFilter:I,Link:h,MainNavbar:_,FsLightbox:b,Head:f,ClientPost:N,ClientPostSearch:M},data(){return{}},props:{faculties:{type:Array}},methods:{},mounted(){}},D={class:"flex flex-col h-screen"},S={class:"flex-grow"},$={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},T={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},j={class:"space-y-5 md:space-y-4"},V={class:"space-y-5 md:space-y-4"},z={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},E={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},W={class:"p-4 md:p-5"},Y={class:"flex justify-between items-center gap-x-3"},Z={class:"grow"},q={class:"group-hover:text-blue-600 font-semibold text-gray-800"},G={class:"text-sm text-gray-500"};function J(r,t,c,K,O,Q){const p=s("Head"),x=s("MainPageNavBar"),g=s("Link"),u=s("ClientFooterDown");return n(),i(d,null,[a(p,null,{default:l(()=>t[0]||(t[0]=[e("title",null,"Факультеты",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),a(x,{class:"border-b",sections:r.$page.props.navigation},null,8,["sections"]),e("div",D,[e("main",S,[e("div",$,[e("div",T,[e("div",null,[e("div",j,[e("div",V,[e("div",z,[t[2]||(t[2]=e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Факультеты и кафедры"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")],-1)),e("div",E,[(n(!0),i(d,null,v(c.faculties.data,o=>(n(),w(g,{href:r.route("client.faculty.show",o.slug),class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:l(()=>[e("div",W,[e("div",Y,[e("div",Z,[e("h3",q,m(o.shortTitle),1),e("p",G,m(o.title),1)]),t[1]||(t[1]=e("div",null,[e("svg",{class:"shrink-0 size-5 text-gray-800",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),a(u)])],64)}const me=H(L,[["render",J]]);export{me as default}; diff --git a/public/build/assets/Index-CoDoJ7xk.js b/public/build/assets/Index-CoDoJ7xk.js deleted file mode 100644 index 6e47772..0000000 --- a/public/build/assets/Index-CoDoJ7xk.js +++ /dev/null @@ -1 +0,0 @@ -import{i as g,Z as _,r as o,c as r,a as s,w as i,b as e,F as l,d as h,o as a,e as f,t as v}from"./app-CBssobj-.js";import{F as w}from"./v3-DnjJww8i.js";import{C as b}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as y}from"./ClientFooterDown-B1P9jP1W.js";import{A as k,a as C,b as F}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as B}from"./AdminIndexHeader-C9rCJkLR.js";import{C as A,a as I}from"./ClientPostSearch-B5aUVN-Q.js";import{C as P}from"./ClientPost-DIJzEVBF.js";import{M as H}from"./MainPageNavbar-Cmz730h9.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";import"./SortingByFilter-Ds4x3JAu.js";const N={name:"Index",components:{MainPageNavBar:H,AdminIndexHeaderTitle:k,AdminIndexHeader:B,AdminIndexFilter:C,AdminIndexSearch:F,ClientFooterDown:y,ClientScrollTimeline:b,ClientPostFilter:A,Link:g,FsLightbox:w,Head:_,ClientPost:P,ClientPostSearch:I},data(){return{}},props:{journals:{type:Array}},methods:{},mounted(){}},j={class:"flex flex-col h-screen"},D={class:"flex-grow"},M={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},S={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},$={class:"space-y-5 md:space-y-4"},T={class:"space-y-5 md:space-y-4"},V={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},q={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},z={class:"p-4 md:p-5 w-full"},E={class:"flex justify-between items-center gap-x-3"},J={class:"grow"},W={class:"group-hover:text-blue-600 font-semibold text-gray-800"};function Y(n,t,d,Z,G,K){const m=o("Head"),c=o("MainPageNavBar"),p=o("Link"),x=o("ClientFooterDown");return a(),r(l,null,[s(m,null,{default:i(()=>t[0]||(t[0]=[e("title",null,"Научные периодические издания НТГСПИ",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),s(c,{class:"border-b",sections:n.$page.props.navigation},null,8,["sections"]),e("div",j,[e("main",D,[e("div",M,[e("div",S,[e("div",null,[e("div",$,[e("div",T,[e("div",V,[t[2]||(t[2]=e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Научные периодические издания НТГСПИ"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")],-1)),e("div",q,[(a(!0),r(l,null,h(d.journals.data,u=>(a(),f(p,{href:n.route("client.academicJournals.show","aliqua-dolor-vel"),class:"group flex items-center bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:i(()=>[e("div",z,[e("div",E,[e("div",J,[e("h3",W,v(u.title),1)]),t[1]||(t[1]=e("div",null,[e("svg",{class:"shrink-0 size-5 text-gray-800",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),s(x)])],64)}const ie=L(N,[["render",Y]]);export{ie as default}; diff --git a/public/build/assets/Index-CxSKFcq0.js b/public/build/assets/Index-CxSKFcq0.js new file mode 100644 index 0000000..42658a7 --- /dev/null +++ b/public/build/assets/Index-CxSKFcq0.js @@ -0,0 +1 @@ +import{i as g,Z as _,r as s,c as i,a as o,w as l,b as e,F as d,d as h,o as n,e as f,t as w}from"./app-lWrE2aWG.js";import{F as v}from"./v3-CDJmn87G.js";import{C as b}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as y}from"./SearchModal-CGHtjMJb.js";import{A as k,a as C,b as F}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A as B}from"./AdminIndexHeader-BLYLBYAX.js";import{C as A,a as I}from"./ClientPostSearch-DByct-eL.js";import{C as P}from"./ClientPost-HujX0ISt.js";import{M as H}from"./MainPageNavbar-BsdceJwT.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SortingByFilter-DAe1p4QU.js";const N={name:"Index",components:{MainPageNavBar:H,AdminIndexHeaderTitle:k,AdminIndexHeader:B,AdminIndexFilter:C,AdminIndexSearch:F,ClientFooterDown:y,ClientScrollTimeline:b,ClientPostFilter:A,Link:g,FsLightbox:v,Head:_,ClientPost:P,ClientPostSearch:I},data(){return{}},props:{journals:{type:Array}},methods:{},mounted(){}},D={class:"flex flex-col h-screen"},M={class:"flex-grow"},S={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},$={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},j={class:"space-y-5 md:space-y-4"},T={class:"space-y-5 md:space-y-4"},V={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},z={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},E={class:"p-4 md:p-5 w-full"},J={class:"flex justify-between items-center gap-x-3"},W={class:"grow"},Y={class:"group-hover:text-blue-600 font-semibold text-gray-800"};function Z(a,t,m,q,G,K){const c=s("Head"),p=s("MainPageNavBar"),x=s("Link"),u=s("ClientFooterDown");return n(),i(d,null,[o(c,null,{default:l(()=>t[0]||(t[0]=[e("title",null,"Научные периодические издания НТГСПИ",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(p,{class:"border-b",sections:a.$page.props.navigation},null,8,["sections"]),e("div",D,[e("main",M,[e("div",S,[e("div",$,[e("div",null,[e("div",j,[e("div",T,[e("div",V,[t[2]||(t[2]=e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Научные периодические издания НТГСПИ"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")],-1)),e("div",z,[(n(!0),i(d,null,h(m.journals.data,r=>(n(),f(x,{href:a.route("client.academicJournals.show",r.slug),class:"group flex items-center bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:l(()=>[e("div",E,[e("div",J,[e("div",W,[e("h3",Y,w(r.title),1)]),t[1]||(t[1]=e("div",null,[e("svg",{class:"shrink-0 size-5 text-gray-800",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),o(u)])],64)}const re=L(N,[["render",Z]]);export{re as default}; diff --git a/public/build/assets/Index-D3WMQLwm.js b/public/build/assets/Index-D3WMQLwm.js new file mode 100644 index 0000000..b50b530 --- /dev/null +++ b/public/build/assets/Index-D3WMQLwm.js @@ -0,0 +1 @@ +import{M as f}from"./MainNavbar-Ox7xJRDB.js";import{i as h,Z as _,r as n,c,a,w as r,b as e,F as p,d as b,o as d,e as v,t as i}from"./app-lWrE2aWG.js";import{F as y}from"./v3-CDJmn87G.js";import{C as w}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as k}from"./SearchModal-CGHtjMJb.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A}from"./AdminIndexHeader-BLYLBYAX.js";import{C as M,a as P}from"./ClientPostSearch-DByct-eL.js";import{C as I}from"./ClientPost-HujX0ISt.js";import{C as N}from"./ClientEventSelectDate-UncMoO_R.js";import{M as D}from"./MainPageNavbar-BsdceJwT.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./SortingByFilter-DAe1p4QU.js";const L={name:"Index",components:{MainPageNavBar:D,ClientEventSelectDate:N,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:w,ClientPostFilter:M,Link:h,MainNavbar:f,FsLightbox:y,Head:_,ClientPost:I,ClientPostSearch:P},props:{posts:{type:Array}},methods:{},mounted(){}},S={class:"flex flex-col h-screen"},E={class:"flex-grow"},j={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},z={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},T={class:"container px-8 mx-auto xl:px-5 max-w-screen-md"},V={class:"my-10 sm:my-14"},W={class:"grow"},Y={class:"flex flex-col h-full"},Z={class:"mb-3"},q={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-[12px] text-gray-600"},G={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},J={class:"text-lg sm:text-2xl font-semibold text-gray-800 group-hover:text-blue-600"},K={class:"mt-2 text-gray-600"},O={class:"mt-10 flex items-center justify-center"},Q={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function R(m,t,s,U,X,$){const x=n("Head"),g=n("MainPageNavBar"),l=n("Link"),u=n("ClientFooterDown");return d(),c(p,null,[a(x,null,{default:r(()=>t[0]||(t[0]=[e("title",null,"Мероприятия",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),a(g,{class:"border-b",sections:m.$page.props.navigation},null,8,["sections"]),e("div",S,[e("main",E,[e("div",j,[e("div",z,[e("div",null,[t[3]||(t[3]=e("div",{class:"space-y-5 md:space-y-4"},[e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Заметки библиотеки"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")])],-1)),e("div",T,[e("div",V,[(d(!0),c(p,null,b(s.posts.data,o=>(d(),v(l,{href:m.route("client.library.news.show",o.id),class:"group sm:flex rounded-xl mb-4"},{default:r(()=>[e("div",W,[e("div",Y,[e("div",Z,[e("p",q,i(o.created_at),1),e("p",G,i(o.category),1)]),e("h3",J,i(o.title),1),e("p",K,i(o.preview_text),1)])])]),_:2},1032,["href"]))),256)),e("div",O,[e("nav",Q,[a(l,{as:"button",href:s.posts.links.prev,disabled:s.posts.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[1]||(t[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),e("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),a(l,{as:"button",href:s.posts.links.next,disabled:s.posts.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[2]||(t[2]=[e("span",null,"Следующая",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])]),a(u)])],64)}const ge=H(L,[["render",R]]);export{ge as default}; diff --git a/public/build/assets/Index-DbP0fdPj.js b/public/build/assets/Index-DbP0fdPj.js new file mode 100644 index 0000000..ef5ae65 --- /dev/null +++ b/public/build/assets/Index-DbP0fdPj.js @@ -0,0 +1 @@ +import{i as A,Z as E,r as c,c as s,a as u,w as m,b as t,n as w,F as l,d as p,o as n,g as b,e as C,t as g}from"./app-lWrE2aWG.js";import{F}from"./v3-CDJmn87G.js";import{C as B}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as I}from"./SearchModal-CGHtjMJb.js";import{A as L,a as N,b as P}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A as T}from"./AdminIndexHeader-BLYLBYAX.js";import{C as j,a as H}from"./ClientPostSearch-DByct-eL.js";import{C as M}from"./ClientPost-HujX0ISt.js";import S from"./ClientImageSlider-ZnyNtD9R.js";import{M as D}from"./MainPageNavbar-BsdceJwT.js";import{_ as O}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SortingByFilter-DAe1p4QU.js";const V={name:"Index",components:{MainPageNavBar:D,ClientImageSlider:S,AdminIndexHeaderTitle:L,AdminIndexHeader:T,AdminIndexFilter:N,AdminIndexSearch:P,ClientFooterDown:I,ClientScrollTimeline:B,ClientPostFilter:j,Link:A,FsLightbox:F,Head:E,ClientPost:M,ClientPostSearch:H},data(){return{direction_id:this.filters.dir_id}},props:{directionAdditionalEducations:{type:Object},additionalEducations:{type:Object},filters:{type:Object}},methods:{transformToColumns(e){return((x,f)=>x.reduce((d,v,a)=>a%f?d:[...d,x.slice(a,a+f)],[]))(e,Math.ceil(e.length/2)).reverse()},textLimit(e,i){if(e.length>i){let r;return r=e.substring(0,i),r+"..."}return e}},mounted(){}},$={class:"flex flex-col h-screen"},Y={class:"flex-grow"},Z={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:py-10"},q={class:"w-100"},z={class:"space-y-5 md:space-y-4"},G={class:"space-y-5 md:space-y-4"},J={class:""},K={class:"-mb-0.5 flex justify-center space-x-6 flex-wrap"},Q={class:"container mx-auto xl:px-5 py-5 lg:py-4"},R={class:"w-full mx-auto gap-x3 flex flex-wrap lg:justify-center"},U={class:"flex flex-col"},W={style:{height:"max-content"},class:"px-2"},X={class:"text-brand-primary mb-2 mt-2 text-lg font-semibold upper tracking-tight dark:text-white lg:text-md lg:leading-tight"};function tt(e,i,r,x,f,d){const v=c("Head"),a=c("MainPageNavBar"),h=c("Link"),k=c("ClientFooterDown");return n(),s(l,null,[u(v,null,{default:m(()=>i[0]||(i[0]=[t("title",null,"Дополнительное образование",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),u(a,{class:"border-b",sections:e.$page.props.navigation},null,8,["sections"]),t("div",$,[t("main",Y,[t("div",Z,[t("div",q,[t("div",null,[t("div",z,[i[2]||(i[2]=t("h1",{class:"text-brand-primary text-center mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"}," Дополнительное образование ",-1)),t("div",G,[t("div",null,[t("div",J,[t("nav",K,[u(h,{class:w([{"border-blue-500 text-blue-600":this.direction_id===null,"text-gray-500 border-transparent":this.direction_id!==null},"py-2 px-1 inline-flex items-center gap-2 border-b text-sm whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600"]),href:e.route("client.additionalEducation.index")},{default:m(()=>i[1]||(i[1]=[b(" Все программы ")])),_:1},8,["class","href"]),(n(!0),s(l,null,p(r.directionAdditionalEducations.data,o=>(n(),C(h,{class:w([{"border-blue-500 text-blue-600":o.id==this.filters.dir_id,"text-gray-500 border-transparent":o.id!=this.direction_id},"py-2 px-1 inline-flex items-center gap-2 border-b text-sm whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600"]),href:e.route("client.additionalEducation.index",{dir_id:o.id})},{default:m(()=>[b(g(o.title),1)]),_:2},1032,["class","href"]))),256))])]),t("div",Q,[t("div",R,[(n(!0),s(l,null,p(d.transformToColumns(this.additionalEducations.data),o=>(n(),s("div",U,[(n(!0),s(l,null,p(o,y=>(n(),s("div",W,[t("h1",X,g(y.title),1),(n(!0),s(l,null,p(y.additionalEducations,_=>(n(),C(h,{key:_.id,class:"block text-[#1E57A3] hover:text-blue-600 duration-200 text-sm underline underline-offset-2 py-1",href:e.route("client.additionalEducation.show",_)},{default:m(()=>[b(g(_.title),1)]),_:2},1032,["href"]))),128))]))),256))]))),256))])])])])])])])])]),u(k)])],64)}const pt=O(V,[["render",tt]]);export{pt as default}; diff --git a/public/build/assets/Index-Dcp5JBBk.js b/public/build/assets/Index-Dcp5JBBk.js deleted file mode 100644 index 25f9246..0000000 --- a/public/build/assets/Index-Dcp5JBBk.js +++ /dev/null @@ -1 +0,0 @@ -import{M as f}from"./MainNavbar-DYfeRcdr.js";import{i as h,Z as _,r as n,c,a,w as r,b as e,F as p,d as b,o as d,e as v,t as i}from"./app-CBssobj-.js";import{F as y}from"./v3-DnjJww8i.js";import{C as w}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as k}from"./ClientFooterDown-B1P9jP1W.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A}from"./AdminIndexHeader-C9rCJkLR.js";import{C as M,a as P}from"./ClientPostSearch-B5aUVN-Q.js";import{C as I}from"./ClientPost-DIJzEVBF.js";import{C as N}from"./ClientEventSelectDate-DSCwmyIV.js";import{M as D}from"./MainPageNavbar-Cmz730h9.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */import"./SortingByFilter-Ds4x3JAu.js";const L={name:"Index",components:{MainPageNavBar:D,ClientEventSelectDate:N,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:w,ClientPostFilter:M,Link:h,MainNavbar:f,FsLightbox:y,Head:_,ClientPost:I,ClientPostSearch:P},props:{posts:{type:Array}},methods:{},mounted(){}},S={class:"flex flex-col h-screen"},E={class:"flex-grow"},j={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},z={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},T={class:"container px-8 mx-auto xl:px-5 max-w-screen-md"},V={class:"my-10 sm:my-14"},W={class:"grow"},Y={class:"flex flex-col h-full"},Z={class:"mb-3"},q={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-[12px] text-gray-600"},G={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},J={class:"text-lg sm:text-2xl font-semibold text-gray-800 group-hover:text-blue-600"},K={class:"mt-2 text-gray-600"},O={class:"mt-10 flex items-center justify-center"},Q={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function R(m,t,s,U,X,$){const x=n("Head"),g=n("MainPageNavBar"),l=n("Link"),u=n("ClientFooterDown");return d(),c(p,null,[a(x,null,{default:r(()=>t[0]||(t[0]=[e("title",null,"Мероприятия",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),a(g,{class:"border-b",sections:m.$page.props.navigation},null,8,["sections"]),e("div",S,[e("main",E,[e("div",j,[e("div",z,[e("div",null,[t[3]||(t[3]=e("div",{class:"space-y-5 md:space-y-4"},[e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Заметки библиотеки"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")])],-1)),e("div",T,[e("div",V,[(d(!0),c(p,null,b(s.posts.data,o=>(d(),v(l,{href:m.route("client.library.news.show",o.id),class:"group sm:flex rounded-xl mb-4"},{default:r(()=>[e("div",W,[e("div",Y,[e("div",Z,[e("p",q,i(o.created_at),1),e("p",G,i(o.category),1)]),e("h3",J,i(o.title),1),e("p",K,i(o.preview_text),1)])])]),_:2},1032,["href"]))),256)),e("div",O,[e("nav",Q,[a(l,{as:"button",href:s.posts.links.prev,disabled:s.posts.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[1]||(t[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),e("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),a(l,{as:"button",href:s.posts.links.next,disabled:s.posts.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[2]||(t[2]=[e("span",null,"Следующая",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])]),a(u)])],64)}const ue=H(L,[["render",R]]);export{ue as default}; diff --git a/public/build/assets/Index-DiTvP9AK.js b/public/build/assets/Index-DiTvP9AK.js deleted file mode 100644 index cef2642..0000000 --- a/public/build/assets/Index-DiTvP9AK.js +++ /dev/null @@ -1 +0,0 @@ -import{M as f}from"./MainNavbar-DYfeRcdr.js";import{i as h,Z as b,r as a,c,a as n,w as r,b as e,F as x,d as _,o as d,e as v,t as i}from"./app-CBssobj-.js";import{F as y}from"./v3-DnjJww8i.js";import{C as w}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as k}from"./ClientFooterDown-B1P9jP1W.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A}from"./AdminIndexHeader-C9rCJkLR.js";import{C as M}from"./ClientEventSelectDate-DSCwmyIV.js";import{M as I}from"./MainPageNavbar-Cmz730h9.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */const D={name:"Index",components:{MainPageNavBar:I,ClientEventSelectDate:M,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:w,Link:h,MainNavbar:f,FsLightbox:y,Head:b},props:{exhibitions:{type:Array}},methods:{},mounted(){}},H={class:"flex flex-col h-screen"},L={class:"flex-grow"},E={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},P={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},S={class:"container px-8 mx-auto xl:px-5 max-w-screen-md"},j={class:"my-10 sm:my-14"},z={class:"grow"},T={class:"flex flex-col h-full"},V={class:"mb-3"},W={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-[12px] text-gray-600"},Y={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},Z={class:"text-lg sm:text-2xl font-semibold text-gray-800 group-hover:text-blue-600"},q={class:"mt-2 text-gray-600"},G={class:"mt-10 flex items-center justify-center"},J={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function K(m,t,s,O,Q,R){const p=a("Head"),g=a("MainPageNavBar"),l=a("Link"),u=a("ClientFooterDown");return d(),c(x,null,[n(p,null,{default:r(()=>t[0]||(t[0]=[e("title",null,"Виртуальные выставки",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),n(g,{class:"border-b",sections:m.$page.props.navigation},null,8,["sections"]),e("div",H,[e("main",L,[e("div",E,[e("div",P,[e("div",null,[t[3]||(t[3]=e("div",{class:"space-y-5 md:space-y-4"},[e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Виртуальные выставки"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")])],-1)),e("div",S,[e("div",j,[(d(!0),c(x,null,_(s.exhibitions.data,o=>(d(),v(l,{href:m.route("client.library.exhibition.show",o.id),class:"group sm:flex rounded-xl mb-4"},{default:r(()=>[e("div",z,[e("div",T,[e("div",V,[e("p",W,i(o.created_at),1),e("p",Y,i(o.category),1)]),e("h3",Z,i(o.title),1),e("p",q,i(o.preview_text),1)])])]),_:2},1032,["href"]))),256)),e("div",G,[e("nav",J,[n(l,{as:"button",href:s.exhibitions.links.prev,disabled:s.exhibitions.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[1]||(t[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),e("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),n(l,{as:"button",href:s.exhibitions.links.next,disabled:s.exhibitions.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[2]||(t[2]=[e("span",null,"Следующая",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])]),n(u)])],64)}const de=N(D,[["render",K]]);export{de as default}; diff --git a/public/build/assets/Index-DrBHgd9y.js b/public/build/assets/Index-DrBHgd9y.js new file mode 100644 index 0000000..71406ea --- /dev/null +++ b/public/build/assets/Index-DrBHgd9y.js @@ -0,0 +1 @@ +import{M as f}from"./MainNavbar-Ox7xJRDB.js";import{i as h,Z as b,r as a,c,a as n,w as r,b as e,F as x,d as _,o as d,e as v,t as i}from"./app-lWrE2aWG.js";import{F as y}from"./v3-CDJmn87G.js";import{C as w}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as k}from"./SearchModal-CGHtjMJb.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A}from"./AdminIndexHeader-BLYLBYAX.js";import{C as M}from"./ClientEventSelectDate-UncMoO_R.js";import{M as I}from"./MainPageNavbar-BsdceJwT.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */const D={name:"Index",components:{MainPageNavBar:I,ClientEventSelectDate:M,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:k,ClientScrollTimeline:w,Link:h,MainNavbar:f,FsLightbox:y,Head:b},props:{exhibitions:{type:Array}},methods:{},mounted(){}},H={class:"flex flex-col h-screen"},L={class:"flex-grow"},E={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},P={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},S={class:"container px-8 mx-auto xl:px-5 max-w-screen-md"},j={class:"my-10 sm:my-14"},z={class:"grow"},T={class:"flex flex-col h-full"},V={class:"mb-3"},W={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-[12px] text-gray-600"},Y={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},Z={class:"text-lg sm:text-2xl font-semibold text-gray-800 group-hover:text-blue-600"},q={class:"mt-2 text-gray-600"},G={class:"mt-10 flex items-center justify-center"},J={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function K(m,t,s,O,Q,R){const p=a("Head"),g=a("MainPageNavBar"),l=a("Link"),u=a("ClientFooterDown");return d(),c(x,null,[n(p,null,{default:r(()=>t[0]||(t[0]=[e("title",null,"Виртуальные выставки",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),n(g,{class:"border-b",sections:m.$page.props.navigation},null,8,["sections"]),e("div",H,[e("main",L,[e("div",E,[e("div",P,[e("div",null,[t[3]||(t[3]=e("div",{class:"space-y-5 md:space-y-4"},[e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Виртуальные выставки"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")])],-1)),e("div",S,[e("div",j,[(d(!0),c(x,null,_(s.exhibitions.data,o=>(d(),v(l,{href:m.route("client.library.exhibition.show",o.id),class:"group sm:flex rounded-xl mb-4"},{default:r(()=>[e("div",z,[e("div",T,[e("div",V,[e("p",W,i(o.created_at),1),e("p",Y,i(o.category),1)]),e("h3",Z,i(o.title),1),e("p",q,i(o.preview_text),1)])])]),_:2},1032,["href"]))),256)),e("div",G,[e("nav",J,[n(l,{as:"button",href:s.exhibitions.links.prev,disabled:s.exhibitions.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[1]||(t[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),e("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),n(l,{as:"button",href:s.exhibitions.links.next,disabled:s.exhibitions.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>t[2]||(t[2]=[e("span",null,"Следующая",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])]),n(u)])],64)}const le=N(D,[["render",K]]);export{le as default}; diff --git a/public/build/assets/Index-PPUxqHy0.js b/public/build/assets/Index-PPUxqHy0.js deleted file mode 100644 index 0b50dc9..0000000 --- a/public/build/assets/Index-PPUxqHy0.js +++ /dev/null @@ -1 +0,0 @@ -import{i as A,Z as E,r as c,c as s,a as u,w as m,b as t,n as w,F as l,d as p,o as n,g as b,e as C,t as g}from"./app-CBssobj-.js";import{F}from"./v3-DnjJww8i.js";import{C as B}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as I}from"./ClientFooterDown-B1P9jP1W.js";import{A as L,a as N,b as P}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as T}from"./AdminIndexHeader-C9rCJkLR.js";import{C as j,a as H}from"./ClientPostSearch-B5aUVN-Q.js";import{C as M}from"./ClientPost-DIJzEVBF.js";import S from"./ClientImageSlider-CvtLuRx_.js";import{M as D}from"./MainPageNavbar-Cmz730h9.js";import{_ as O}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";import"./SortingByFilter-Ds4x3JAu.js";const V={name:"Index",components:{MainPageNavBar:D,ClientImageSlider:S,AdminIndexHeaderTitle:L,AdminIndexHeader:T,AdminIndexFilter:N,AdminIndexSearch:P,ClientFooterDown:I,ClientScrollTimeline:B,ClientPostFilter:j,Link:A,FsLightbox:F,Head:E,ClientPost:M,ClientPostSearch:H},data(){return{direction_id:this.filters.dir_id}},props:{directionAdditionalEducations:{type:Object},additionalEducations:{type:Object},filters:{type:Object}},methods:{transformToColumns(e){return((x,f)=>x.reduce((d,v,a)=>a%f?d:[...d,x.slice(a,a+f)],[]))(e,Math.ceil(e.length/2)).reverse()},textLimit(e,i){if(e.length>i){let r;return r=e.substring(0,i),r+"..."}return e}},mounted(){}},$={class:"flex flex-col h-screen"},Y={class:"flex-grow"},Z={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:py-10"},q={class:"w-100"},z={class:"space-y-5 md:space-y-4"},G={class:"space-y-5 md:space-y-4"},J={class:""},K={class:"-mb-0.5 flex justify-center space-x-6 flex-wrap"},Q={class:"container mx-auto xl:px-5 py-5 lg:py-4"},R={class:"w-full mx-auto gap-x3 flex flex-wrap lg:justify-center"},U={class:"flex flex-col"},W={style:{height:"max-content"},class:"px-2"},X={class:"text-brand-primary mb-2 mt-2 text-lg font-semibold upper tracking-tight dark:text-white lg:text-md lg:leading-tight"};function tt(e,i,r,x,f,d){const v=c("Head"),a=c("MainPageNavBar"),h=c("Link"),k=c("ClientFooterDown");return n(),s(l,null,[u(v,null,{default:m(()=>i[0]||(i[0]=[t("title",null,"Дополнительное образование",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),u(a,{class:"border-b",sections:e.$page.props.navigation},null,8,["sections"]),t("div",$,[t("main",Y,[t("div",Z,[t("div",q,[t("div",null,[t("div",z,[i[2]||(i[2]=t("h1",{class:"text-brand-primary text-center mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"}," Дополнительное образование ",-1)),t("div",G,[t("div",null,[t("div",J,[t("nav",K,[u(h,{class:w([{"border-blue-500 text-blue-600":this.direction_id===null,"text-gray-500 border-transparent":this.direction_id!==null},"py-2 px-1 inline-flex items-center gap-2 border-b text-sm whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600"]),href:e.route("client.additionalEducation.index")},{default:m(()=>i[1]||(i[1]=[b(" Все программы ")])),_:1},8,["class","href"]),(n(!0),s(l,null,p(r.directionAdditionalEducations.data,o=>(n(),C(h,{class:w([{"border-blue-500 text-blue-600":o.id==this.filters.dir_id,"text-gray-500 border-transparent":o.id!=this.direction_id},"py-2 px-1 inline-flex items-center gap-2 border-b text-sm whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600"]),href:e.route("client.additionalEducation.index",{dir_id:o.id})},{default:m(()=>[b(g(o.title),1)]),_:2},1032,["class","href"]))),256))])]),t("div",Q,[t("div",R,[(n(!0),s(l,null,p(d.transformToColumns(this.additionalEducations.data),o=>(n(),s("div",U,[(n(!0),s(l,null,p(o,y=>(n(),s("div",W,[t("h1",X,g(y.title),1),(n(!0),s(l,null,p(y.additionalEducations,_=>(n(),C(h,{key:_.id,class:"block text-[#1E57A3] hover:text-blue-600 duration-200 text-sm underline underline-offset-2 py-1",href:e.route("client.additionalEducation.show",_)},{default:m(()=>[b(g(_.title),1)]),_:2},1032,["href"]))),128))]))),256))]))),256))])])])])])])])])]),u(k)])],64)}const xt=O(V,[["render",tt]]);export{xt as default}; diff --git a/public/build/assets/Index-PaoQq1iX.js b/public/build/assets/Index-PaoQq1iX.js deleted file mode 100644 index 4188cb0..0000000 --- a/public/build/assets/Index-PaoQq1iX.js +++ /dev/null @@ -1 +0,0 @@ -import{M as P}from"./MainNavbar-DYfeRcdr.js";import{i as k,Z as F,r as o,c as n,a as l,w as h,b as e,t as f,F as c,d as p,o as i,e as E,g as w}from"./app-CBssobj-.js";import{F as L}from"./v3-DnjJww8i.js";import{C as B}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as N}from"./ClientFooterDown-B1P9jP1W.js";import{A as T,a as M,b as I}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as H}from"./AdminIndexHeader-C9rCJkLR.js";import{C as S,a as D}from"./ClientPostSearch-B5aUVN-Q.js";import{C as V}from"./ClientPost-DIJzEVBF.js";import{C as j,L as G}from"./ClientProgramFilter-B4xNQg9z.js";import{P as R,d as Y,c as Z,a as q,b as J}from"./PostGallery-ChF90UKK.js";import{P as K}from"./PostBuilder-8yTdSitL.js";import{M as O}from"./MainPageNavbar-Cmz730h9.js";import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";/* empty css */import"./SortingByFilter-Ds4x3JAu.js";const U={name:"Index",components:{MainPageNavBar:O,PostGallery:R,PostBuilder:K,PostTitle:Y,PostBackButton:Z,PostTimeRead:q,PostAuthorsList:J,ClientProgramFilter:j,LevelEduFilter:G,AdminIndexHeaderTitle:T,AdminIndexHeader:H,AdminIndexFilter:M,AdminIndexSearch:I,ClientFooterDown:N,ClientScrollTimeline:B,ClientPostFilter:S,Link:k,MainNavbar:P,FsLightbox:L,Head:F,ClientPost:V,ClientPostSearch:D},data(){return{}},props:{campaignName:{type:String},levelsEducational:{type:Array},naprs:{type:Array},filters:{type:Array},formsEdu:{type:Array},budgetEdu:{type:Array},direction_studies:{type:Array}},methods:{transformToColumns(r){return((m,u)=>m.reduce((d,x,a)=>a%u?d:[...d,m.slice(a,a+u)],[]))(r,Math.ceil(r.length/2)).reverse()},textLimit(r,s){if(r.length>s){let t;return t=r.substring(0,s),t+"..."}return r}},mounted(){}},W={class:"flex flex-col h-screen"},X={class:"flex-grow"},z={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:py-10"},$={class:"w-100"},ee={class:"space-y-5 md:space-y-4"},te={class:"text-brand-primary text-center mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"},re={class:"space-y-5 md:space-y-10"},ie={class:"my-10 flex items-center justify-center gap-x-2"},se={class:"container mx-auto xl:px-5 py-5 lg:py-4"},oe={class:"w-full mx-auto gap-x3 flex flex-wrap lg:justify-center"},ne={class:"flex flex-col"},ae={style:{height:"max-content"},class:"px-4"},le={class:"text-brand-primary mb-2 mt-2 text-lg font-semibold upper tracking-tight dark:text-white lg:text-md lg:leading-tight"};function de(r,s,t,m,u,d){const x=o("Head"),a=o("MainPageNavBar"),y=o("LevelEduFilter"),v=o("ClientProgramFilter"),b=o("Link"),C=o("ClientFooterDown");return i(),n(c,null,[l(x,null,{default:h(()=>s[0]||(s[0]=[e("title",null,"Приемная компания",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),l(a,{class:"border-b",sections:r.$page.props.navigation},null,8,["sections"]),e("div",W,[e("main",X,[e("div",z,[e("div",$,[e("div",null,[e("div",ee,[e("h1",te,f(this.campaignName),1),e("div",re,[e("div",null,[e("div",ie,[l(y,{levels:t.levelsEducational,level_filter:t.filters.level_filter},null,8,["levels","level_filter"]),l(v,{budget_filter:t.filters.budget_filter,direction_filter:t.filters.direction_filter,formEdu_filter:t.filters.formEdu_filter,types_budget:t.budgetEdu,direction_studies:t.direction_studies,forms_educational:t.formsEdu},null,8,["budget_filter","direction_filter","formEdu_filter","types_budget","direction_studies","forms_educational"])]),e("div",se,[e("div",oe,[(i(!0),n(c,null,p(d.transformToColumns(this.naprs.data),A=>(i(),n("div",ne,[(i(!0),n(c,null,p(A,g=>(i(),n("div",ae,[e("h1",le,f(g.name),1),(i(!0),n(c,null,p(g.programs,_=>(i(),E(b,{key:_.id,class:"block text-[#1E57A3] hover:text-blue-600 duration-200 text-sm underline underline-offset-2 py-1",href:r.route("client.program.show",_)},{default:h(()=>[w(f(_.name),1)]),_:2},1032,["href"]))),128))]))),256))]))),256))])])])])])])])])]),l(C)])],64)}const Ee=Q(U,[["render",de]]);export{Ee as default}; diff --git a/public/build/assets/Index-Vq2d78iS.js b/public/build/assets/Index-Vq2d78iS.js new file mode 100644 index 0000000..27f5690 --- /dev/null +++ b/public/build/assets/Index-Vq2d78iS.js @@ -0,0 +1 @@ +import{i as u,Z as _,r as s,c as r,a as o,w as l,b as e,F as d,d as h,o as n,e as f,t as v}from"./app-lWrE2aWG.js";import{C as w}from"./SearchModal-CGHtjMJb.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import{F as y}from"./v3-CDJmn87G.js";import{C as k}from"./ClientScrollTimeline-9x6SH9Qu.js";import{A as C,a as F,b as B}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A}from"./AdminIndexHeader-BLYLBYAX.js";import{C as I,a as P}from"./ClientPostSearch-DByct-eL.js";import{C as H}from"./ClientPost-HujX0ISt.js";import{M as L}from"./MainPageNavbar-BsdceJwT.js";import"./SortingByFilter-DAe1p4QU.js";const N={name:"Index",components:{MainPageNavBar:L,AdminIndexHeaderTitle:C,AdminIndexHeader:A,AdminIndexFilter:F,AdminIndexSearch:B,ClientFooterDown:w,ClientScrollTimeline:k,ClientPostFilter:I,Link:u,FsLightbox:y,Head:_,ClientPost:H,ClientPostSearch:P},data(){return{}},props:{divisions:{type:Array}},methods:{},mounted(){}},D={class:"flex flex-col h-screen"},M={class:"flex-grow"},S={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},$={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},j={class:"space-y-5 md:space-y-4"},T={class:"space-y-5 md:space-y-4"},V={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},z={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},E={class:"p-4 md:p-5 w-full"},W={class:"flex justify-between items-center gap-x-3"},Y={class:"grow"},Z={class:"group-hover:text-blue-600 font-semibold text-gray-800"};function q(a,t,m,G,J,K){const c=s("Head"),p=s("MainPageNavBar"),x=s("Link"),g=s("ClientFooterDown");return n(),r(d,null,[o(c,null,{default:l(()=>t[0]||(t[0]=[e("title",null,"Подразделения института",-1),e("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(p,{class:"border-b",sections:a.$page.props.navigation},null,8,["sections"]),e("div",D,[e("main",M,[e("div",S,[e("div",$,[e("div",null,[e("div",j,[e("div",T,[e("div",V,[t[2]||(t[2]=e("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Подразделения института"),e("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.")],-1)),e("div",z,[(n(!0),r(d,null,h(m.divisions.data,i=>(n(),f(x,{href:a.route("client.division.show",i.slug),class:"group flex items-center bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:l(()=>[e("div",E,[e("div",W,[e("div",Y,[e("h3",Z,v(i.title),1)]),t[1]||(t[1]=e("div",null,[e("svg",{class:"shrink-0 size-5 text-gray-800",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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),o(g)])],64)}const re=b(N,[["render",q]]);export{re as default}; diff --git a/public/build/assets/Index-c1ZyGYqw.js b/public/build/assets/Index-c1ZyGYqw.js new file mode 100644 index 0000000..72d42e8 --- /dev/null +++ b/public/build/assets/Index-c1ZyGYqw.js @@ -0,0 +1 @@ +import{M as h}from"./MainNavbar-Ox7xJRDB.js";import{i as y,Z as v,r as n,c,a as o,w as d,b as t,t as i,F as m,d as b,o as a,e as C}from"./app-lWrE2aWG.js";import{F as w}from"./v3-CDJmn87G.js";import{C as D}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as F}from"./SearchModal-CGHtjMJb.js";import{A as k,a as A,b as E}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A as B}from"./AdminIndexHeader-BLYLBYAX.js";import{C as S,a as I}from"./ClientPostSearch-DByct-eL.js";import{C as M}from"./ClientPost-HujX0ISt.js";import{C as N}from"./ClientEventSelectDate-UncMoO_R.js";import{C as P}from"./ClientEventFilter-BAYtyBIS.js";import{M as H}from"./MainPageNavbar-BsdceJwT.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./SortingByFilter-DAe1p4QU.js";const j={name:"Index",components:{MainPageNavBar:H,ClientEventFilter:P,ClientEventSelectDate:N,AdminIndexHeaderTitle:k,AdminIndexHeader:B,AdminIndexFilter:A,AdminIndexSearch:E,ClientFooterDown:F,ClientScrollTimeline:D,ClientPostFilter:S,Link:y,MainNavbar:h,FsLightbox:w,Head:v,ClientPost:M,ClientPostSearch:I},props:{events:{type:Array},currentDate:{type:String},eventDates:{type:Array},navigation:{type:Array},filters:{type:Array},categories:{type:Array}},methods:{}},T={class:"flex flex-col h-screen"},V={class:"flex-grow"},G={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},Y={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},Z={class:"space-y-5 md:space-y-4"},q={class:"flex items-center w-full justify-center"},z={class:"my-10 justify-center flex gap-x-3 items-center"},J={class:"shadow-sm w-[35px]"},K={class:"block w-[35px] h-[27px] bg-white text-center font-medium"},O={class:"font-light text-xl"},Q={class:"space-y-5 md:space-y-4"},R={class:"grid gap-y-10 mt-10"},U={class:"grow"},W={class:"flex flex-col h-full"},X={class:"mb-3"},$={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-[12px] text-gray-600"},tt={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},et={class:"text-lg sm:text-2xl font-semibold text-gray-800 group-hover:text-blue-600"};function st(l,e,s,nt,ot,it){const p=n("Head"),x=n("MainPageNavBar"),_=n("ClientEventFilter"),f=n("ClientEventSelectDate"),g=n("Link"),u=n("ClientFooterDown");return a(),c(m,null,[o(p,null,{default:d(()=>e[0]||(e[0]=[t("title",null,"Мероприятия",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(x,{class:"border-b",sections:l.$page.props.navigation},null,8,["sections"]),t("div",T,[t("main",V,[t("div",G,[t("div",Y,[t("div",null,[t("div",Z,[t("div",q,[e[1]||(e[1]=t("h1",{class:"block text-brand-primary text-center mb-3 mt-2 mr-4 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"}," Мероприятия НТГСПИ ",-1)),o(_,{is_online_filter:s.filters.is_online_filter,categories:this.categories,category_filter:s.filters.category_filter,"sorting-by_filter":s.filters.sortingBy_filter},null,8,["is_online_filter","categories","category_filter","sorting-by_filter"])]),t("div",z,[e[3]||(e[3]=t("h3",{class:"font-light text-xl"},"Мероприятия на ",-1)),t("div",J,[e[2]||(e[2]=t("div",{class:"block w-[35px] h-[8px] bg-red-400 rounded-t"},null,-1)),t("div",K,i(s.currentDate.day),1)]),t("h3",O,i(s.currentDate.month),1)]),t("div",Q,[t("div",null,[o(f,{"current-date":s.currentDate.fullDate,dates:s.eventDates},null,8,["current-date","dates"])])])]),t("div",R,[(a(!0),c(m,null,b(s.events.data,r=>(a(),C(g,{class:"group sm:flex rounded-xl",href:l.route("client.event.show",r.slug)},{default:d(()=>[t("div",U,[t("div",W,[t("div",X,[t("p",$,i(r.event_time_start),1),t("p",tt,i(r.category),1)]),t("h3",et,i(r.title),1),e[4]||(e[4]=t("p",{class:"mt-2 text-gray-600"}," Great news we're eager to share. ",-1))])])]),_:2},1032,["href"]))),256))])])])])]),o(u)])],64)}const bt=L(j,[["render",st]]);export{bt as default}; diff --git a/public/build/assets/Index-c__ouhs3.js b/public/build/assets/Index-c__ouhs3.js new file mode 100644 index 0000000..79d5c83 --- /dev/null +++ b/public/build/assets/Index-c__ouhs3.js @@ -0,0 +1 @@ +import{M as b}from"./MainNavbar-Ox7xJRDB.js";import{i as v,Z as w,r as s,c as l,a as o,w as r,b as t,t as k,f as C,F as m,d as P,o as n,e as B}from"./app-lWrE2aWG.js";import{F}from"./v3-CDJmn87G.js";import{C as j}from"./ClientScrollTimeline-9x6SH9Qu.js";import{C as A}from"./SearchModal-CGHtjMJb.js";import{A as I,a as H,b as M}from"./AdminIndexHeaderTitle-BXYEMOTq.js";import{A as N}from"./AdminIndexHeader-BLYLBYAX.js";import{C as S,a as L}from"./ClientPostSearch-DByct-eL.js";import{C as O}from"./ClientPost-HujX0ISt.js";import{P as D}from"./EventBadgeBuilder-vc1rfcET.js";import{M as V}from"./MainPageNavbar-BsdceJwT.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./SortingByFilter-DAe1p4QU.js";const T={name:"Index",components:{MainPageNavBar:V,PostBadge:D,AdminIndexHeaderTitle:I,AdminIndexHeader:N,AdminIndexFilter:H,AdminIndexSearch:M,ClientFooterDown:A,ClientScrollTimeline:j,ClientPostFilter:S,Link:v,MainNavbar:b,FsLightbox:F,Head:w,ClientPost:O,ClientPostSearch:L},data(){return{}},props:{posts:{type:Object},filters:{type:Object},categories:{type:Object},tags:{type:Object},navigation:{type:Object}},methods:{},mounted(){}},E={class:"flex flex-col h-screen"},Y={class:"flex-grow"},Z={class:"relative mx-auto mt-[67px] max-w-screen-xl py-10 md:flex md:flex-row md:py-10"},q={class:"pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},G={class:"px-6"},J={key:0,class:"text-sm text-gray-500 mb-4"},K={class:"flex-wrap flex gap-3 md:items-center"},Q={class:"space-y-5 md:space-y-4"},R={class:"space-y-5 md:space-y-4"},U={class:"container px-4 mx-auto xl:px-5 max-w-screen-lg py-5 lg:py-8"},W={class:"mt-10 grid gap-10 md:grid-cols-2 lg:gap-10 xl:grid-cols-3"},X={class:"mt-10 flex items-center justify-center"},$={class:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"};function tt(i,a,e,et,st,ot){const p=s("Head"),g=s("MainPageNavBar"),f=s("ClientPostSearch"),x=s("ClientPostFilter"),_=s("AdminIndexHeader"),u=s("PostBadge"),h=s("ClientPost"),d=s("Link"),y=s("ClientFooterDown");return n(),l(m,null,[o(p,null,{default:r(()=>a[0]||(a[0]=[t("title",null,"Новости",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),o(g,{class:"border-b",sections:i.$page.props.navigation},null,8,["sections"]),t("div",E,[t("main",Y,[t("div",Z,[t("div",q,[a[3]||(a[3]=t("div",{class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},[t("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Новости НТГСПИ"),t("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"Узнайте последние новости любимого вуза")],-1)),t("div",null,[o(_,null,{default:r(()=>[o(f,{search_filter:this.filters.search_filter},null,8,["search_filter"]),o(x,{"sorting-by_filter":this.filters.sortingBy_filter,category_filter:this.filters.category_filter,tag_filter:this.filters.tag_filter,tags:e.tags,items:e.categories},null,8,["sorting-by_filter","category_filter","tag_filter","tags","items"])]),_:1}),t("div",G,[e.filters.category_filter.value||e.filters.tag_filter.value||e.filters.search_filter.value?(n(),l("h3",J,"Найдено новостей: "+k(e.posts.meta.total),1)):C("",!0),t("div",K,[o(u,{filters:this.filters},null,8,["filters"])])]),t("div",Q,[t("div",R,[t("div",null,[t("div",U,[t("div",W,[(n(!0),l(m,null,P(e.posts.data,c=>(n(),B(h,{key:c.id,post:c},null,8,["post"]))),128))]),t("div",X,[t("nav",$,[o(d,{as:"button",href:e.posts.links.prev,disabled:i.$props.posts.links.prev===null,class:"relative inline-flex items-center gap-1 rounded-l-md border border-gray-300 bg-white px-3 py-2 pr-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>a[1]||(a[1]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1),t("span",null,"Предыдущая",-1)])),_:1},8,["href","disabled"]),o(d,{as:"button",href:e.posts.links.next,disabled:i.$props.posts.links.next===null,class:"relative inline-flex items-center gap-1 rounded-r-md border border-gray-300 bg-white px-3 py-2 pl-4 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20 disabled:pointer-events-none disabled:opacity-40 dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300"},{default:r(()=>a[2]||(a[2]=[t("span",null,"Следующая",-1),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",class:"h-3 w-3"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1},8,["href","disabled"])])])])])])])])])])]),o(y)])],64)}const ht=z(T,[["render",tt]]);export{ht as default}; diff --git a/public/build/assets/Main-CbSGhlrp.js b/public/build/assets/Main-CbSGhlrp.js new file mode 100644 index 0000000..844284b --- /dev/null +++ b/public/build/assets/Main-CbSGhlrp.js @@ -0,0 +1 @@ +var C=Object.defineProperty;var D=(n,e,a)=>e in n?C(n,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[e]=a;var s=(n,e,a)=>D(n,typeof e!="symbol"?e+"":e,a);import{i as k,o as i,c,b as t,F as x,d as h,n as I,t as o,B as N,f as E,Z as P,r as g,a as _,w as b,g as A,h as M,e as R}from"./app-lWrE2aWG.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{C as F}from"./SearchModal-CGHtjMJb.js";import{M as G}from"./MainPageNavbar-BsdceJwT.js";import{C as L}from"./ClientPost-HujX0ISt.js";const $={name:"slider",components:{Link:k},props:{slidersCarousel:{type:Object}},data(){return{currentIndex:0,percentage:0,intervalId:null}},methods:{next(){this.currentIndex=(this.currentIndex+1)%this.slidersCarousel.data.length,this.resetTimer()},prev(){this.currentIndex=(this.currentIndex-1+this.slidersCarousel.data.length)%this.slidersCarousel.data.length,this.resetTimer()},progressStatus(){this.percentage>=100?(this.resetTimer(),this.next()):this.percentage++},startTimer(){this.intervalId=setInterval(this.progressStatus,60)},stopTimer(){clearInterval(this.intervalId)},resetTimer(){this.percentage=0,this.stopTimer(),this.startTimer()}},mounted(){this.$emit("slider-mounted",this.$refs.sliderRef),this.startTimer()}},j={ref:"sliderRef",class:"relative z-0 min-h-[calc(100vh)] items-center"},B={class:"absolute -z-10 h-full w-full before:absolute before:z-10 before:h-full before:w-full before:bg-black/30"},H=["src"],U={class:"text-brand-primary mb-3 mt-2 text-3xl font-semibold tracking-tight text-white lg:text-5xl lg:leading-tight"},z={class:"mt-8 flex space-x-3 text-gray-500 mb-8"},V={class:"flex flex-col gap-3 md:flex-row md:items-center"},Y={class:"flex gap-3"},J={class:"text-gray-100 line-clamp-3"},K={href:"/author/erika-oliver"},Z=["href"],Q={key:0,class:"mx-auto max-w-screen-md px-5"},W={class:"mt-8 text-gray-500 text-white absolute bottom-[100px]"},q={class:""},X={class:"flex space-x-3 items-center justify-between"},tt={class:"flex space-x-3 w-[100px] items-center font-semibold text-xl"},et={class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"};function st(n,e,a,v,d,m){return i(),c("div",j,[t("div",B,[(i(!0),c(x,null,h(a.slidersCarousel.data,(r,p)=>(i(),c("img",{alt:"Thumbnail",loading:"eager",decoding:"async","data-nimg":"fill",class:I(["object-cover brightness-[0.7] transition-opacity duration-1000",{"opacity-1":d.currentIndex===p,"opacity-0":d.currentIndex!==p}]),sizes:"100vw",key:p,src:"/storage/"+r.image,style:{position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"}},null,10,H))),128))]),(i(!0),c(x,null,h(a.slidersCarousel.data,(r,p)=>(i(),c("div",{class:I([{block:d.currentIndex===p,hidden:d.currentIndex!==p},"mx-auto max-w-screen-md px-5 pt-[150px] pb-0"]),key:p},[t("h1",U,o(r.title),1),t("div",z,[t("div",V,[t("div",Y,[t("p",J,[t("a",K,o(r.content),1)])])])]),t("a",{href:r.link,class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-white text-white hover:border-white/70 hover:text-white/70 disabled:opacity-50 disabled:pointer-events-none"},o(r.link_text),9,Z)],2))),128)),a.slidersCarousel.data.length>=2?(i(),c("div",Q,[t("div",W,[t("div",q,[t("div",X,[t("button",{onClick:e[0]||(e[0]=(...r)=>m.prev&&m.prev(...r)),class:"bg-gray-200 w-8 h-8 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[2]||(e[2]=[t("svg",{class:"w-4 h-4 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),t("div",tt,[t("span",null,o(this.currentIndex+1),1),t("div",et,[t("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500 my-slider-progress-bar",style:N({width:`${d.percentage}%`})},null,4)]),t("span",null,o(a.slidersCarousel.data.length),1)]),t("button",{onClick:e[1]||(e[1]=(...r)=>m.next&&m.next(...r)),class:"bg-gray-200 w-8 h-8 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[3]||(e[3]=[t("svg",{class:"w-4 h-4 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19l7-7-7-7"})],-1)]))])])])])):E("",!0)],512)}const lt=f($,[["render",st]]),ot={name:"TestTimer",data(){return{percentage:0,intervalId:null}},methods:{progressStatus(){this.percentage>=100?this.resetTimer():this.percentage++},startTimer(){this.intervalId=setInterval(this.progressStatus,60)},stopTimer(){clearInterval(this.intervalId)},resetTimer(){this.percentage=0,this.stopTimer(),this.startTimer()}},mounted(){this.startTimer()}},rt={class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"};function it(n,e,a,v,d,m){return i(),c("div",rt,[t("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500",style:N({width:`${d.percentage}%`})},null,4)])}const nt=f(ot,[["render",it]]),at={name:"sliderSecond",components:{TestTimer:nt},data(){return{photos:[{url:"https://www.ntspi.ru/upload/iblock/d6b/z1xKGOXRrLE.jpg",title:"Студенты ФППО провели занятия для педклассов школ города",description:"«Учителем быть престижно!» Под таким девизом в течение трех дней (6, 7 и 10 июня) на факультете психолого-педагогического образования студенты группы Нт-203о ППП (психологический клуб «Форсайт») под руководством Марины Вячеславовны Манаковой проводили познавательные мероприятие для педагогических классов школ города (№№ 61, 44, 75/42)"},{url:"https://www.ntspi.ru/upload/iblock/eaf/IMG_8259.jpg",title:"Интеллектуальный турнир «Моя страна – моя Россия» для педагогических классов города!",description:"11 июня в читальном зале НТГСПИ на базе педагогических классов школ города (№№ 44, 75/42, 61) студенты СГФ под руководством декана Ирины Викторовны Даренской и заместителя декана Анны Саввишны Аникиной провели интеллектуальный турнир в соревновательном формате «Моя страна – моя Россия!»"},{url:"https://www.ntspi.ru/upload/iblock/ee6/DSC01893.JPG",title:"Филологи 20 лет спустя",description:"Спустя 20 лет на ФФМК встретились выпускники 2004 г. специальности «Русский язык и литература». Приятным и волнительным для филологов было возвращение на свой «третий этаж», ставший родным за пять лет обучения в вузе. Самый трогательный момент − встреча с дорогими преподавателями, которые за прошедшие годы совсем не изменились."},{url:"https://www.ntspi.ru/upload/iblock/f04/2.jpg",title:"Старт целины Штаба СО НТ – 2024",description:"7 мая в Городском дворце молодежи состоятся творческий старт сезона 2024 года студенческих отрядов города Нижний Тагил. Зажигательные, яркие, творческие бойцы отрядов показали свои выступления в преддверии старта сезона! Выступления отрядов, среди которых были и строительные, и педагогические, проводники и социальные отряды, были энергичными и фантастическими: торжественный выход с флагами отрядов, выступления по профилю работы, поразили выступления смешанных составов!"},{url:"https://www.ntspi.ru/upload/iblock/fc9/p-dIqCDymRY.jpg",title:"Студенты ФСБЖ – участники летней оздоровительной кампании – 2024",description:"3 июня студенты 3 курса факультета спорта и безопасности жизнедеятельности приняли участие в открытии лагеря с дневным пребыванием «Лето НТ» под девизом «Быть в движении!» Для 75 мальчишек и девчонок была подготовлена и проведена насыщенная интересными событиями программа. Открытие лагеря было посвящено Международному Дню защиты детей, где дети приняли участие в концертно-игровой программе «Планета детства»."}],currentIndex:0,percentage:0,intervalId:null}},methods:{next(){this.currentIndex=(this.currentIndex+1)%this.photos.length,this.resetTimer()},prev(){this.currentIndex=(this.currentIndex-1+this.photos.length)%this.photos.length,this.resetTimer()},progressStatus(){this.percentage>=100?(this.resetTimer(),this.next()):this.percentage++},startTimer(){this.intervalId=setInterval(this.progressStatus,60)},stopTimer(){clearInterval(this.intervalId)},resetTimer(){this.percentage=0,this.stopTimer(),this.startTimer()}},mounted(){this.startTimer()}},dt={class:"z-0 min-h-[calc(100vh-10vh)] items-center"},ct={class:"flex items-center pt-[150px] px-20"},pt={class:"text-brand-primary mb-3 mt-2 text-3xl font-semibold tracking-tight text-black lg:text-5xl lg:leading-tight"},ut={class:"mt-8 flex space-x-3 text-gray-500"},mt={class:"flex flex-col gap-3 md:flex-row md:items-center"},xt={class:"flex gap-3"},ht={class:"text-black"},gt={href:"/author/erika-oliver"},_t=["src"],bt={class:"mx-auto max-w-screen-md px-5"},ft={class:"mt-8 text-gray-500"},vt={class:"flex space-x-3 items-center justify-between"},wt={class:"flex space-x-3 w-[100px] items-center font-semibold text-xl"},It={class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"},yt={class:"space-x-2"};function At(n,e,a,v,d,m){return i(),c("div",dt,[t("div",ct,[(i(!0),c(x,null,h(d.photos,(r,p)=>(i(),c("div",{class:I([{block:d.currentIndex===p,hidden:d.currentIndex!==p},"mx-auto max-w-screen-md px-5 pb-0"]),key:p},[t("h1",pt,o(r.title),1),t("div",ut,[t("div",mt,[t("div",xt,[t("p",ht,[t("a",gt,o(r.description),1)])])])])],2))),128)),(i(!0),c(x,null,h(d.photos,(r,p)=>(i(),c("img",{alt:"Thumbnail",loading:"eager",decoding:"async","data-nimg":"fill",class:I(["w-[500px] h-[500px] brightness-[0.7] object-cover transition-opacity duration-1000 rounded-full",{block:d.currentIndex===p,hidden:d.currentIndex!==p}]),sizes:"100vw",key:p,src:r.url,style:{color:"transparent"}},null,10,_t))),128))]),t("div",bt,[t("div",ft,[t("div",vt,[t("div",wt,[t("span",null,o(this.currentIndex+1),1),t("div",It,[t("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500 my-slider-progress-bar",style:N({width:`${d.percentage}%`})},null,4)]),t("span",null,o(d.photos.length),1)]),t("div",yt,[t("button",{onClick:e[0]||(e[0]=(...r)=>m.prev&&m.prev(...r)),class:"bg-gray-200 w-10 h-10 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[2]||(e[2]=[t("svg",{class:"w-6 h-6 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),t("button",{onClick:e[1]||(e[1]=(...r)=>m.next&&m.next(...r)),class:"bg-gray-200 w-10 h-10 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[3]||(e[3]=[t("svg",{class:"w-6 h-6 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19l7-7-7-7"})],-1)]))])])])])])}const Rt=f(at,[["render",At]]);class l{static fromName(e){return this[e]||null}getName(){return this.name}}s(l,"PREPARATION_OF_QUALIFIED_WORKERS",{value:1,label:"Подготовка квалифицированных рабочих, служащих",color:"info",name:"PREPARATION_OF_QUALIFIED_WORKERS",type_label:"Среднее образование"}),s(l,"MIDDLE_LEVEL_SPECIALIST_TRAINING",{value:2,label:"Среднее профессиональное образование",color:"primary",name:"MIDDLE_LEVEL_SPECIALIST_TRAINING",type_label:"Среднее образование"}),s(l,"BACHELOR",{value:3,label:"Бакалавриат",color:"success",name:"BACHELOR",type_label:"Высшее образование"}),s(l,"MASTER",{value:4,label:"Магистратура",color:"success",name:"MASTER",type_label:"Высшее образование"}),s(l,"SPECIALIST",{value:5,label:"Специалитет",color:"warning",name:"SPECIALIST",type_label:"Высшее образование"}),s(l,"POSTGRADUATE",{value:6,label:"Аспирантура",color:"warning",name:"POSTGRADUATE",type_label:"Высшее образование"}),s(l,"ADJUNCTURE",{value:7,label:"Адъюнктура",color:"secondary",name:"ADJUNCTURE"}),s(l,"RESIDENCY",{value:8,label:"Ординатура",color:"secondary",name:"RESIDENCY"}),s(l,"INTERNSHIP",{value:9,label:"Ассистентура - стажировка",color:"light",name:"INTERNSHIP"}),s(l,"PROFESSIONAL_TRAINING",{value:10,label:"Профессиональная подготовка по профессиям рабочих, должностям служащих",color:"info",name:"PROFESSIONAL_TRAINING"}),s(l,"RETRAINING",{value:11,label:"Переподготовка рабочих, служащих",color:"danger",name:"RETRAINING"}),s(l,"ADVANCED_TRAINING",{value:12,label:"Повышение квалификации рабочих, служащих",color:"success",name:"ADVANCED_TRAINING"}),s(l,"ADDITIONAL_GENERAL_DEVELOPMENT_PROGRAM",{value:13,label:"Дополнительная общеразвивающая программа",color:"info",name:"ADDITIONAL_GENERAL_DEVELOPMENT_PROGRAM"}),s(l,"ADDITIONAL_PREPROFESSIONAL_PROGRAM",{value:14,label:"Дополнительная предпрофессиональная программа",color:"info",name:"ADDITIONAL_PREPROFESSIONAL_PROGRAM"}),s(l,"ADDITIONAL_PREPROFESSIONAL_ART_PROGRAM",{value:15,label:"Дополнительная предпрофессиональная программа в сфере искусств",color:"info",name:"ADDITIONAL_PREPROFESSIONAL_ART_PROGRAM"}),s(l,"PROFESSIONAL_ADVANCEMENT",{value:16,label:"Повышение квалификации",color:"success",name:"PROFESSIONAL_ADVANCEMENT"}),s(l,"PROFESSIONAL_RETRAINING",{value:17,label:"Профессиональная переподготовка",color:"danger",name:"PROFESSIONAL_RETRAINING"}),s(l,"PRESCHOOL_EDUCATION",{value:18,label:"Дошкольное образование",color:"success",name:"PRESCHOOL_EDUCATION"}),s(l,"PRIMARY_GENERAL_EDUCATION",{value:19,label:"Начальное общее образование",color:"success",name:"PRIMARY_GENERAL_EDUCATION"}),s(l,"BASIC_GENERAL_EDUCATION",{value:20,label:"Основное общее образование",color:"success",name:"BASIC_GENERAL_EDUCATION"}),s(l,"SECONDARY_GENERAL_EDUCATION",{value:21,label:"Среднее общее образование",color:"success",name:"SECONDARY_GENERAL_EDUCATION"}),s(l,"INTERNSHIP_PROGRAM",{value:22,label:"Интернатура",color:"light",name:"INTERNSHIP_PROGRAM"}),s(l,"ADDITIONAL_PREPROFESSIONAL_SPORT_PROGRAM",{value:23,label:"Дополнительная предпрофессиональная программа в сфере физической культуры и спорта",color:"info",name:"ADDITIONAL_PREPROFESSIONAL_SPORT_PROGRAM"}),s(l,"BASIC_HIGHER_EDUCATION",{value:24,label:"Базовое высшее образование",color:"success",name:"BASIC_HIGHER_EDUCATION"}),s(l,"SPECIALIZED_HIGHER_EDUCATION",{value:25,label:"Специализированное высшее образование",color:"success",name:"SPECIALIZED_HIGHER_EDUCATION"});const Et={name:"BaseMetaHead",data(){return{}},methods:{},props:{title:{type:String},description:{type:String},robots:{type:Array},og_title:{type:String},og_description:{type:String},og_image:{type:String}}};function Nt(n,e,a,v,d,m){return null}const kt=f(Et,[["render",Nt]]),Tt={name:"Main",computed:{LevelEducational(){return l}},data(){return{sliderRef:null}},props:{posts:{type:Object},events:{type:Object},sliders:{type:Object},educations:{type:Object},icons:{type:String}},components:{BaseMetaHead:kt,ClientPost:L,MainPageNavBar:G,ClientFooterDown:F,ClientMainSlider:lt,ClientMainSliderSecond:Rt,Head:P,Link:k},methods:{setSliderRef(n){this.sliderRef=n}}},St={class:"max-w-screen-xl w-full mx-auto px-4 py-3 pb-10"},Ot={class:"grid gap-10 pb-10 md:grid-cols-2 lg:gap-10 xl:grid-cols-3"},Ct={class:"flex justify-center"},Dt=["href"],Pt={class:"max-w-[85rem] pb-10 sm:px-6 lg:px-8 lg:pb-14 mx-auto"},Mt={class:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6"},Ft={class:"aspect-w-16 aspect-h-10"},Gt={class:"w-full h-[250px] object-cover rounded-xl bg-[#F8F9FB]"},Lt={class:"flex flex-col px-5 py-5 w-full h-full"},$t={class:"flex flex-col gap-3 mb-4"},jt={class:"gap-3 flex items-center"},Bt={class:"shadow-sm"},Ht={class:"block w-[35px] h-[27px] bg-white rounded-b text-center font-medium"},Ut={class:"block first-letter:uppercase"},zt={class:"flex"},Vt={class:"bg-[#E9F2FE] text-sm text-blue-600 px-2 py-1 rounded block"},Yt={class:"flex gap-2"},Jt={key:0,class:"bg-[#E9F2FE] text-sm text-blue-600 px-2 py-1 rounded block"},Kt={key:1},Zt={class:"bg-[#E9F2FE] text-sm text-blue-600 px-2 py-1 rounded block"},Qt={class:"mt-5 text-xl text-gray-800"},Wt={class:"flex justify-center"},qt={class:"w-full mx-auto"},Xt={class:"grid sm:grid-cols-2 lg:grid-cols-2 gap-6"},te={class:"group flex flex-col h-full bg-white hover:opacity-70 hover:border-secondDarkBlue duration-300 border border-gray-200 shadow-sm rounded-xl"},ee={class:"p-4 md:p-6"},se={class:"block mb-1 text-xs font-semibold uppercase text-blue-600"},le={class:"text-3xl font-semibold text-gray-800"},oe={class:"mt-auto p-4 md:p-6 grid grid-cols-2 lg:grid-cols-3 sm:space-y-0"},re={class:"pb-4"},ie={class:"text-2xl font-semibold text-blue-600"},ne={class:"pb-4"},ae={class:"text-2xl font-semibold text-blue-600"},de={class:"pb-4"},ce={class:"text-2xl font-semibold text-blue-600"},pe={class:"pb-4"},ue={class:"text-2xl font-semibold text-blue-600"},me={class:"pb-4"},xe={class:"text-2xl font-semibold text-blue-600"},he={class:"group flex flex-col h-full bg-white hover:opacity-70 hover:border-secondDarkBlue duration-300 border border-gray-200 shadow-sm rounded-xl"},ge={class:"mt-auto p-4 md:p-6 grid grid-cols-2 lg:grid-cols-3 sm:space-y-0 space-y-3"},_e={class:"pb-4"},be={class:"text-2xl font-semibold text-blue-600"},fe={class:"pb-4"},ve={class:"text-2xl font-semibold text-blue-600"};function we(n,e,a,v,d,m){const r=g("Head"),p=g("MainPageNavBar"),T=g("ClientMainSlider"),S=g("ClientPost"),w=g("Link"),O=g("ClientFooterDown");return i(),c(x,null,[_(r,null,{default:b(()=>e[0]||(e[0]=[t("title",null,"Главная",-1),t("meta",{name:"description",content:"Your page description"},null,-1),t("meta",{name:"robots",content:"index, follow"},null,-1),t("meta",{property:"og:title",content:"Заголовок страницы"},null,-1),t("meta",{property:"og:description",content:"Описание страницы"},null,-1),t("meta",{property:"og:image",content:"URL_изображения"},null,-1)])),_:1}),_(p,{sections:n.$page.props.navigation,"slider-ref":d.sliderRef},null,8,["sections","slider-ref"]),_(T,{onSliderMounted:m.setSliderRef,slidersCarousel:a.sliders},null,8,["onSliderMounted","slidersCarousel"]),t("section",St,[e[14]||(e[14]=t("h2",{class:"text-brand-primary my-6 md:mb-[50px] md:mt-[80px] text-2xl font-semibold tracking-tight text-black lg:text-[32px] lg:leading-tight"},"Последние новости",-1)),t("div",Ot,[(i(!0),c(x,null,h(a.posts.data,u=>(i(),R(S,{key:u.id,post:u},null,8,["post"]))),128))]),t("div",Ct,[t("a",{href:n.route("client.post.index"),class:"group mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-primaryBlue"},e[1]||(e[1]=[A(" Все новости "),t("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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",{d:"m9 18 6-6-6-6"})],-1)]),8,Dt)]),e[15]||(e[15]=t("h2",{class:"text-brand-primary my-6 md:mb-[50px] md:mt-[80px] text-2xl font-semibold tracking-tight text-black lg:text-[32px] lg:leading-tight"},"Мероприятия",-1)),t("div",Pt,[t("div",Mt,[(i(!0),c(x,null,h(a.events.data,u=>(i(),R(w,{class:"group hover:bg-gray-100 rounded-xl p-5 transition-all",href:n.route("client.event.show",u.slug)},{default:b(()=>[t("div",Ft,[t("div",Gt,[t("div",Lt,[t("div",$t,[t("div",jt,[t("div",Bt,[e[2]||(e[2]=t("div",{class:"block w-[35px] h-[8px] bg-red-400 rounded-t"},null,-1)),t("div",Ht,o(u.event_date_start.day),1)]),t("span",Ut,o(u.event_date_start.month),1),t("div",zt,[t("span",Vt,"Начало - "+o(u.event_date_start.time),1)])])]),t("div",Yt,[u.is_online===1?(i(),c("span",Jt,"Онлайн")):E("",!0),u.is_online===0?(i(),c("div",Kt,[t("span",Zt,o(u.address),1)])):E("",!0)])])])]),t("h3",Qt,o(u.title),1),e[3]||(e[3]=t("p",{class:"mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-gray-800"},[A(" Перейти "),t("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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",{d:"m9 18 6-6-6-6"})])],-1))]),_:2},1032,["href"]))),256))])]),t("div",Wt,[_(w,{href:n.route("client.event.index"),class:"group mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},{default:b(()=>e[4]||(e[4]=[A(" Все мероприятия "),t("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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",{d:"m9 18 6-6-6-6"})],-1)])),_:1},8,["href"])]),e[16]||(e[16]=t("h2",{class:"text-brand-primary my-10 md:mb-[50px] md:mt-[80px] text-2xl font-semibold tracking-tight text-black lg:text-[32px] lg:leading-tight"},"Образование",-1)),t("div",qt,[t("div",Xt,[(i(!0),c(x,null,h(a.educations.admission_campaign,(u,y)=>(i(),R(w,{href:n.route("client.program.index",{level:m.LevelEducational[y].name})},{default:b(()=>[t("div",te,[t("div",ee,[t("span",se,o(m.LevelEducational[y].type_label),1),t("h3",le,o(m.LevelEducational[y].label),1),e[5]||(e[5]=t("p",{class:"mt-3 text-gray-500"}," Построй свою индивидуальную траекторию ",-1))]),t("div",oe,[t("div",re,[t("p",ie,o(u.total_programs),1),e[6]||(e[6]=t("p",{class:"mt-1 text-sm text-gray-500"},"Программ",-1))]),t("div",ne,[t("p",ae,o(u.places.och_count),1),e[7]||(e[7]=t("p",{class:"mt-1 text-sm text-gray-500"},"Очных",-1))]),t("div",de,[t("p",ce,o(u.places.zaoch_count),1),e[8]||(e[8]=t("p",{class:"mt-1 text-sm text-gray-500"},"Заочных",-1))]),t("div",pe,[t("p",ue,o(u.places.budget_places),1),e[9]||(e[9]=t("p",{class:"mt-1 text-sm text-gray-500"},"Бюджетных",-1))]),t("div",me,[t("p",xe,o(u.places.non_budget_places),1),e[10]||(e[10]=t("p",{class:"mt-1 text-sm text-gray-500"},"Платных",-1))])])])]),_:2},1032,["href"]))),256)),_(w,{href:n.route("client.additionalEducation.index")},{default:b(()=>[t("div",he,[e[13]||(e[13]=t("div",{class:"p-4 md:p-6"},[t("span",{class:"block mb-1 text-xs font-semibold uppercase text-blue-600"}," Доп. образование "),t("h3",{class:"text-3xl font-semibold text-gray-800"}," Дополнительное образование "),t("p",{class:"mt-3 text-gray-500"}," Построй свою индивидуальную траекторию ")],-1)),t("div",ge,[t("div",_e,[t("p",be,o(a.educations.additional_education.educations_count),1),e[11]||(e[11]=t("p",{class:"mt-1 text-sm text-gray-500"},"Программ",-1))]),t("div",fe,[t("p",ve,o(a.educations.additional_education.categories_count),1),e[12]||(e[12]=t("p",{class:"mt-1 text-sm text-gray-500"},"Направлений",-1))])])])]),_:1},8,["href"])])])]),e[17]||(e[17]=M('

Контакты

Главный корпус

622031, Нижний Тагил, Красногвардейская 57

Свяжитесь с нами

+7(906)-802-55-59

ntgspi@yandex.ru

Приемная комиссия

Расписание

Понедельник - Пятница с 08.30 до 17.00

Ответственный секретарь приемной комиссии

+7(906)-802-55-59

ntgspi@yandex.ru

Полезное

Главный корпус

Понедельник - Пятница
с 08.30 до 17.00

Ответственный секретарь
приемной комиссии

+7(906)-802-55-59

ntgspi@yandex.ru

',1)),_(O)],64)}const ke=f(Tt,[["render",we]]);export{ke as default}; diff --git a/public/build/assets/Main-DieNWOPM.js b/public/build/assets/Main-DieNWOPM.js deleted file mode 100644 index 6b4d59a..0000000 --- a/public/build/assets/Main-DieNWOPM.js +++ /dev/null @@ -1 +0,0 @@ -var C=Object.defineProperty;var D=(n,e,a)=>e in n?C(n,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[e]=a;var s=(n,e,a)=>D(n,typeof e!="symbol"?e+"":e,a);import{i as k,o as i,c,b as t,F as x,d as h,n as I,t as o,B as N,f as E,Z as P,r as g,a as _,w as b,g as A,h as M,e as R}from"./app-CBssobj-.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{C as F}from"./ClientFooterDown-B1P9jP1W.js";import{M as G}from"./MainPageNavbar-Cmz730h9.js";import{C as L}from"./ClientPost-DIJzEVBF.js";import"./SearchModal-BTKERLZv.js";const $={name:"slider",components:{Link:k},props:{slidersCarousel:{type:Object}},data(){return{currentIndex:0,percentage:0,intervalId:null}},methods:{next(){this.currentIndex=(this.currentIndex+1)%this.slidersCarousel.data.length,this.resetTimer()},prev(){this.currentIndex=(this.currentIndex-1+this.slidersCarousel.data.length)%this.slidersCarousel.data.length,this.resetTimer()},progressStatus(){this.percentage>=100?(this.resetTimer(),this.next()):this.percentage++},startTimer(){this.intervalId=setInterval(this.progressStatus,60)},stopTimer(){clearInterval(this.intervalId)},resetTimer(){this.percentage=0,this.stopTimer(),this.startTimer()}},mounted(){this.$emit("slider-mounted",this.$refs.sliderRef),this.startTimer()}},j={ref:"sliderRef",class:"relative z-0 min-h-[calc(100vh)] items-center"},B={class:"absolute -z-10 h-full w-full before:absolute before:z-10 before:h-full before:w-full before:bg-black/30"},H=["src"],U={class:"text-brand-primary mb-3 mt-2 text-3xl font-semibold tracking-tight text-white lg:text-5xl lg:leading-tight"},z={class:"mt-8 flex space-x-3 text-gray-500 mb-8"},V={class:"flex flex-col gap-3 md:flex-row md:items-center"},Y={class:"flex gap-3"},J={class:"text-gray-100 line-clamp-3"},K={href:"/author/erika-oliver"},Z=["href"],Q={key:0,class:"mx-auto max-w-screen-md px-5"},W={class:"mt-8 text-gray-500 text-white absolute bottom-[100px]"},q={class:""},X={class:"flex space-x-3 items-center justify-between"},tt={class:"flex space-x-3 w-[100px] items-center font-semibold text-xl"},et={class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"};function st(n,e,a,v,d,m){return i(),c("div",j,[t("div",B,[(i(!0),c(x,null,h(a.slidersCarousel.data,(r,p)=>(i(),c("img",{alt:"Thumbnail",loading:"eager",decoding:"async","data-nimg":"fill",class:I(["object-cover brightness-[0.7] transition-opacity duration-1000",{"opacity-1":d.currentIndex===p,"opacity-0":d.currentIndex!==p}]),sizes:"100vw",key:p,src:"/storage/"+r.image,style:{position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"}},null,10,H))),128))]),(i(!0),c(x,null,h(a.slidersCarousel.data,(r,p)=>(i(),c("div",{class:I([{block:d.currentIndex===p,hidden:d.currentIndex!==p},"mx-auto max-w-screen-md px-5 pt-[150px] pb-0"]),key:p},[t("h1",U,o(r.title),1),t("div",z,[t("div",V,[t("div",Y,[t("p",J,[t("a",K,o(r.content),1)])])])]),t("a",{href:r.link,class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-white text-white hover:border-white/70 hover:text-white/70 disabled:opacity-50 disabled:pointer-events-none"},o(r.link_text),9,Z)],2))),128)),a.slidersCarousel.data.length>=2?(i(),c("div",Q,[t("div",W,[t("div",q,[t("div",X,[t("button",{onClick:e[0]||(e[0]=(...r)=>m.prev&&m.prev(...r)),class:"bg-gray-200 w-8 h-8 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[2]||(e[2]=[t("svg",{class:"w-4 h-4 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),t("div",tt,[t("span",null,o(this.currentIndex+1),1),t("div",et,[t("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500 my-slider-progress-bar",style:N({width:`${d.percentage}%`})},null,4)]),t("span",null,o(a.slidersCarousel.data.length),1)]),t("button",{onClick:e[1]||(e[1]=(...r)=>m.next&&m.next(...r)),class:"bg-gray-200 w-8 h-8 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[3]||(e[3]=[t("svg",{class:"w-4 h-4 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19l7-7-7-7"})],-1)]))])])])])):E("",!0)],512)}const lt=f($,[["render",st]]),ot={name:"TestTimer",data(){return{percentage:0,intervalId:null}},methods:{progressStatus(){this.percentage>=100?this.resetTimer():this.percentage++},startTimer(){this.intervalId=setInterval(this.progressStatus,60)},stopTimer(){clearInterval(this.intervalId)},resetTimer(){this.percentage=0,this.stopTimer(),this.startTimer()}},mounted(){this.startTimer()}},rt={class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"};function it(n,e,a,v,d,m){return i(),c("div",rt,[t("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500",style:N({width:`${d.percentage}%`})},null,4)])}const nt=f(ot,[["render",it]]),at={name:"sliderSecond",components:{TestTimer:nt},data(){return{photos:[{url:"https://www.ntspi.ru/upload/iblock/d6b/z1xKGOXRrLE.jpg",title:"Студенты ФППО провели занятия для педклассов школ города",description:"«Учителем быть престижно!» Под таким девизом в течение трех дней (6, 7 и 10 июня) на факультете психолого-педагогического образования студенты группы Нт-203о ППП (психологический клуб «Форсайт») под руководством Марины Вячеславовны Манаковой проводили познавательные мероприятие для педагогических классов школ города (№№ 61, 44, 75/42)"},{url:"https://www.ntspi.ru/upload/iblock/eaf/IMG_8259.jpg",title:"Интеллектуальный турнир «Моя страна – моя Россия» для педагогических классов города!",description:"11 июня в читальном зале НТГСПИ на базе педагогических классов школ города (№№ 44, 75/42, 61) студенты СГФ под руководством декана Ирины Викторовны Даренской и заместителя декана Анны Саввишны Аникиной провели интеллектуальный турнир в соревновательном формате «Моя страна – моя Россия!»"},{url:"https://www.ntspi.ru/upload/iblock/ee6/DSC01893.JPG",title:"Филологи 20 лет спустя",description:"Спустя 20 лет на ФФМК встретились выпускники 2004 г. специальности «Русский язык и литература». Приятным и волнительным для филологов было возвращение на свой «третий этаж», ставший родным за пять лет обучения в вузе. Самый трогательный момент − встреча с дорогими преподавателями, которые за прошедшие годы совсем не изменились."},{url:"https://www.ntspi.ru/upload/iblock/f04/2.jpg",title:"Старт целины Штаба СО НТ – 2024",description:"7 мая в Городском дворце молодежи состоятся творческий старт сезона 2024 года студенческих отрядов города Нижний Тагил. Зажигательные, яркие, творческие бойцы отрядов показали свои выступления в преддверии старта сезона! Выступления отрядов, среди которых были и строительные, и педагогические, проводники и социальные отряды, были энергичными и фантастическими: торжественный выход с флагами отрядов, выступления по профилю работы, поразили выступления смешанных составов!"},{url:"https://www.ntspi.ru/upload/iblock/fc9/p-dIqCDymRY.jpg",title:"Студенты ФСБЖ – участники летней оздоровительной кампании – 2024",description:"3 июня студенты 3 курса факультета спорта и безопасности жизнедеятельности приняли участие в открытии лагеря с дневным пребыванием «Лето НТ» под девизом «Быть в движении!» Для 75 мальчишек и девчонок была подготовлена и проведена насыщенная интересными событиями программа. Открытие лагеря было посвящено Международному Дню защиты детей, где дети приняли участие в концертно-игровой программе «Планета детства»."}],currentIndex:0,percentage:0,intervalId:null}},methods:{next(){this.currentIndex=(this.currentIndex+1)%this.photos.length,this.resetTimer()},prev(){this.currentIndex=(this.currentIndex-1+this.photos.length)%this.photos.length,this.resetTimer()},progressStatus(){this.percentage>=100?(this.resetTimer(),this.next()):this.percentage++},startTimer(){this.intervalId=setInterval(this.progressStatus,60)},stopTimer(){clearInterval(this.intervalId)},resetTimer(){this.percentage=0,this.stopTimer(),this.startTimer()}},mounted(){this.startTimer()}},dt={class:"z-0 min-h-[calc(100vh-10vh)] items-center"},ct={class:"flex items-center pt-[150px] px-20"},pt={class:"text-brand-primary mb-3 mt-2 text-3xl font-semibold tracking-tight text-black lg:text-5xl lg:leading-tight"},ut={class:"mt-8 flex space-x-3 text-gray-500"},mt={class:"flex flex-col gap-3 md:flex-row md:items-center"},xt={class:"flex gap-3"},ht={class:"text-black"},gt={href:"/author/erika-oliver"},_t=["src"],bt={class:"mx-auto max-w-screen-md px-5"},ft={class:"mt-8 text-gray-500"},vt={class:"flex space-x-3 items-center justify-between"},wt={class:"flex space-x-3 w-[100px] items-center font-semibold text-xl"},It={class:"flex w-full h-1 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"},yt={class:"space-x-2"};function At(n,e,a,v,d,m){return i(),c("div",dt,[t("div",ct,[(i(!0),c(x,null,h(d.photos,(r,p)=>(i(),c("div",{class:I([{block:d.currentIndex===p,hidden:d.currentIndex!==p},"mx-auto max-w-screen-md px-5 pb-0"]),key:p},[t("h1",pt,o(r.title),1),t("div",ut,[t("div",mt,[t("div",xt,[t("p",ht,[t("a",gt,o(r.description),1)])])])])],2))),128)),(i(!0),c(x,null,h(d.photos,(r,p)=>(i(),c("img",{alt:"Thumbnail",loading:"eager",decoding:"async","data-nimg":"fill",class:I(["w-[500px] h-[500px] brightness-[0.7] object-cover transition-opacity duration-1000 rounded-full",{block:d.currentIndex===p,hidden:d.currentIndex!==p}]),sizes:"100vw",key:p,src:r.url,style:{color:"transparent"}},null,10,_t))),128))]),t("div",bt,[t("div",ft,[t("div",vt,[t("div",wt,[t("span",null,o(this.currentIndex+1),1),t("div",It,[t("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500 my-slider-progress-bar",style:N({width:`${d.percentage}%`})},null,4)]),t("span",null,o(d.photos.length),1)]),t("div",yt,[t("button",{onClick:e[0]||(e[0]=(...r)=>m.prev&&m.prev(...r)),class:"bg-gray-200 w-10 h-10 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[2]||(e[2]=[t("svg",{class:"w-6 h-6 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])),t("button",{onClick:e[1]||(e[1]=(...r)=>m.next&&m.next(...r)),class:"bg-gray-200 w-10 h-10 hover:bg-gray-300 text-gray-800 font-bold rounded-full"},e[3]||(e[3]=[t("svg",{class:"w-6 h-6 mx-auto my-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19l7-7-7-7"})],-1)]))])])])])])}const Rt=f(at,[["render",At]]);class l{static fromName(e){return this[e]||null}getName(){return this.name}}s(l,"PREPARATION_OF_QUALIFIED_WORKERS",{value:1,label:"Подготовка квалифицированных рабочих, служащих",color:"info",name:"PREPARATION_OF_QUALIFIED_WORKERS",type_label:"Среднее образование"}),s(l,"MIDDLE_LEVEL_SPECIALIST_TRAINING",{value:2,label:"Среднее профессиональное образование",color:"primary",name:"MIDDLE_LEVEL_SPECIALIST_TRAINING",type_label:"Среднее образование"}),s(l,"BACHELOR",{value:3,label:"Бакалавриат",color:"success",name:"BACHELOR",type_label:"Высшее образование"}),s(l,"MASTER",{value:4,label:"Магистратура",color:"success",name:"MASTER",type_label:"Высшее образование"}),s(l,"SPECIALIST",{value:5,label:"Специалитет",color:"warning",name:"SPECIALIST",type_label:"Высшее образование"}),s(l,"POSTGRADUATE",{value:6,label:"Аспирантура",color:"warning",name:"POSTGRADUATE",type_label:"Высшее образование"}),s(l,"ADJUNCTURE",{value:7,label:"Адъюнктура",color:"secondary",name:"ADJUNCTURE"}),s(l,"RESIDENCY",{value:8,label:"Ординатура",color:"secondary",name:"RESIDENCY"}),s(l,"INTERNSHIP",{value:9,label:"Ассистентура - стажировка",color:"light",name:"INTERNSHIP"}),s(l,"PROFESSIONAL_TRAINING",{value:10,label:"Профессиональная подготовка по профессиям рабочих, должностям служащих",color:"info",name:"PROFESSIONAL_TRAINING"}),s(l,"RETRAINING",{value:11,label:"Переподготовка рабочих, служащих",color:"danger",name:"RETRAINING"}),s(l,"ADVANCED_TRAINING",{value:12,label:"Повышение квалификации рабочих, служащих",color:"success",name:"ADVANCED_TRAINING"}),s(l,"ADDITIONAL_GENERAL_DEVELOPMENT_PROGRAM",{value:13,label:"Дополнительная общеразвивающая программа",color:"info",name:"ADDITIONAL_GENERAL_DEVELOPMENT_PROGRAM"}),s(l,"ADDITIONAL_PREPROFESSIONAL_PROGRAM",{value:14,label:"Дополнительная предпрофессиональная программа",color:"info",name:"ADDITIONAL_PREPROFESSIONAL_PROGRAM"}),s(l,"ADDITIONAL_PREPROFESSIONAL_ART_PROGRAM",{value:15,label:"Дополнительная предпрофессиональная программа в сфере искусств",color:"info",name:"ADDITIONAL_PREPROFESSIONAL_ART_PROGRAM"}),s(l,"PROFESSIONAL_ADVANCEMENT",{value:16,label:"Повышение квалификации",color:"success",name:"PROFESSIONAL_ADVANCEMENT"}),s(l,"PROFESSIONAL_RETRAINING",{value:17,label:"Профессиональная переподготовка",color:"danger",name:"PROFESSIONAL_RETRAINING"}),s(l,"PRESCHOOL_EDUCATION",{value:18,label:"Дошкольное образование",color:"success",name:"PRESCHOOL_EDUCATION"}),s(l,"PRIMARY_GENERAL_EDUCATION",{value:19,label:"Начальное общее образование",color:"success",name:"PRIMARY_GENERAL_EDUCATION"}),s(l,"BASIC_GENERAL_EDUCATION",{value:20,label:"Основное общее образование",color:"success",name:"BASIC_GENERAL_EDUCATION"}),s(l,"SECONDARY_GENERAL_EDUCATION",{value:21,label:"Среднее общее образование",color:"success",name:"SECONDARY_GENERAL_EDUCATION"}),s(l,"INTERNSHIP_PROGRAM",{value:22,label:"Интернатура",color:"light",name:"INTERNSHIP_PROGRAM"}),s(l,"ADDITIONAL_PREPROFESSIONAL_SPORT_PROGRAM",{value:23,label:"Дополнительная предпрофессиональная программа в сфере физической культуры и спорта",color:"info",name:"ADDITIONAL_PREPROFESSIONAL_SPORT_PROGRAM"}),s(l,"BASIC_HIGHER_EDUCATION",{value:24,label:"Базовое высшее образование",color:"success",name:"BASIC_HIGHER_EDUCATION"}),s(l,"SPECIALIZED_HIGHER_EDUCATION",{value:25,label:"Специализированное высшее образование",color:"success",name:"SPECIALIZED_HIGHER_EDUCATION"});const Et={name:"BaseMetaHead",data(){return{}},methods:{},props:{title:{type:String},description:{type:String},robots:{type:Array},og_title:{type:String},og_description:{type:String},og_image:{type:String}}};function Nt(n,e,a,v,d,m){return null}const kt=f(Et,[["render",Nt]]),Tt={name:"Main",computed:{LevelEducational(){return l}},data(){return{sliderRef:null}},props:{posts:{type:Object},events:{type:Object},sliders:{type:Object},educations:{type:Object},icons:{type:String}},components:{BaseMetaHead:kt,ClientPost:L,MainPageNavBar:G,ClientFooterDown:F,ClientMainSlider:lt,ClientMainSliderSecond:Rt,Head:P,Link:k},methods:{setSliderRef(n){this.sliderRef=n}}},St={class:"max-w-screen-xl w-full mx-auto px-4 py-3 pb-10"},Ot={class:"grid gap-10 pb-10 md:grid-cols-2 lg:gap-10 xl:grid-cols-3"},Ct={class:"flex justify-center"},Dt=["href"],Pt={class:"max-w-[85rem] pb-10 sm:px-6 lg:px-8 lg:pb-14 mx-auto"},Mt={class:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6"},Ft={class:"aspect-w-16 aspect-h-10"},Gt={class:"w-full h-[250px] object-cover rounded-xl bg-[#F8F9FB]"},Lt={class:"flex flex-col px-5 py-5 w-full h-full"},$t={class:"flex flex-col gap-3 mb-4"},jt={class:"gap-3 flex items-center"},Bt={class:"shadow-sm"},Ht={class:"block w-[35px] h-[27px] bg-white rounded-b text-center font-medium"},Ut={class:"block first-letter:uppercase"},zt={class:"flex"},Vt={class:"bg-[#E9F2FE] text-sm text-blue-600 px-2 py-1 rounded block"},Yt={class:"flex gap-2"},Jt={key:0,class:"bg-[#E9F2FE] text-sm text-blue-600 px-2 py-1 rounded block"},Kt={key:1},Zt={class:"bg-[#E9F2FE] text-sm text-blue-600 px-2 py-1 rounded block"},Qt={class:"mt-5 text-xl text-gray-800"},Wt={class:"flex justify-center"},qt={class:"w-full mx-auto"},Xt={class:"grid sm:grid-cols-2 lg:grid-cols-2 gap-6"},te={class:"group flex flex-col h-full bg-white hover:opacity-70 hover:border-secondDarkBlue duration-300 border border-gray-200 shadow-sm rounded-xl"},ee={class:"p-4 md:p-6"},se={class:"block mb-1 text-xs font-semibold uppercase text-blue-600"},le={class:"text-3xl font-semibold text-gray-800"},oe={class:"mt-auto p-4 md:p-6 grid grid-cols-2 lg:grid-cols-3 sm:space-y-0"},re={class:"pb-4"},ie={class:"text-2xl font-semibold text-blue-600"},ne={class:"pb-4"},ae={class:"text-2xl font-semibold text-blue-600"},de={class:"pb-4"},ce={class:"text-2xl font-semibold text-blue-600"},pe={class:"pb-4"},ue={class:"text-2xl font-semibold text-blue-600"},me={class:"pb-4"},xe={class:"text-2xl font-semibold text-blue-600"},he={class:"group flex flex-col h-full bg-white hover:opacity-70 hover:border-secondDarkBlue duration-300 border border-gray-200 shadow-sm rounded-xl"},ge={class:"mt-auto p-4 md:p-6 grid grid-cols-2 lg:grid-cols-3 sm:space-y-0 space-y-3"},_e={class:"pb-4"},be={class:"text-2xl font-semibold text-blue-600"},fe={class:"pb-4"},ve={class:"text-2xl font-semibold text-blue-600"};function we(n,e,a,v,d,m){const r=g("Head"),p=g("MainPageNavBar"),T=g("ClientMainSlider"),S=g("ClientPost"),w=g("Link"),O=g("ClientFooterDown");return i(),c(x,null,[_(r,null,{default:b(()=>e[0]||(e[0]=[t("title",null,"Главная",-1),t("meta",{name:"description",content:"Your page description"},null,-1),t("meta",{name:"robots",content:"index, follow"},null,-1),t("meta",{property:"og:title",content:"Заголовок страницы"},null,-1),t("meta",{property:"og:description",content:"Описание страницы"},null,-1),t("meta",{property:"og:image",content:"URL_изображения"},null,-1)])),_:1}),_(p,{sections:n.$page.props.navigation,"slider-ref":d.sliderRef},null,8,["sections","slider-ref"]),_(T,{onSliderMounted:m.setSliderRef,slidersCarousel:a.sliders},null,8,["onSliderMounted","slidersCarousel"]),t("section",St,[e[14]||(e[14]=t("h2",{class:"text-brand-primary my-6 md:mb-[50px] md:mt-[80px] text-2xl font-semibold tracking-tight text-black lg:text-[32px] lg:leading-tight"},"Последние новости",-1)),t("div",Ot,[(i(!0),c(x,null,h(a.posts.data,u=>(i(),R(S,{key:u.id,post:u},null,8,["post"]))),128))]),t("div",Ct,[t("a",{href:n.route("client.post.index"),class:"group mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-primaryBlue"},e[1]||(e[1]=[A(" Все новости "),t("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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",{d:"m9 18 6-6-6-6"})],-1)]),8,Dt)]),e[15]||(e[15]=t("h2",{class:"text-brand-primary my-6 md:mb-[50px] md:mt-[80px] text-2xl font-semibold tracking-tight text-black lg:text-[32px] lg:leading-tight"},"Мероприятия",-1)),t("div",Pt,[t("div",Mt,[(i(!0),c(x,null,h(a.events.data,u=>(i(),R(w,{class:"group hover:bg-gray-100 rounded-xl p-5 transition-all",href:n.route("client.event.show",u.slug)},{default:b(()=>[t("div",Ft,[t("div",Gt,[t("div",Lt,[t("div",$t,[t("div",jt,[t("div",Bt,[e[2]||(e[2]=t("div",{class:"block w-[35px] h-[8px] bg-red-400 rounded-t"},null,-1)),t("div",Ht,o(u.event_date_start.day),1)]),t("span",Ut,o(u.event_date_start.month),1),t("div",zt,[t("span",Vt,"Начало - "+o(u.event_date_start.time),1)])])]),t("div",Yt,[u.is_online===1?(i(),c("span",Jt,"Онлайн")):E("",!0),u.is_online===0?(i(),c("div",Kt,[t("span",Zt,o(u.address),1)])):E("",!0)])])])]),t("h3",Qt,o(u.title),1),e[3]||(e[3]=t("p",{class:"mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-gray-800"},[A(" Перейти "),t("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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",{d:"m9 18 6-6-6-6"})])],-1))]),_:2},1032,["href"]))),256))])]),t("div",Wt,[_(w,{href:n.route("client.event.index"),class:"group mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},{default:b(()=>e[4]||(e[4]=[A(" Все мероприятия "),t("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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",{d:"m9 18 6-6-6-6"})],-1)])),_:1},8,["href"])]),e[16]||(e[16]=t("h2",{class:"text-brand-primary my-10 md:mb-[50px] md:mt-[80px] text-2xl font-semibold tracking-tight text-black lg:text-[32px] lg:leading-tight"},"Образование",-1)),t("div",qt,[t("div",Xt,[(i(!0),c(x,null,h(a.educations.admission_campaign,(u,y)=>(i(),R(w,{href:n.route("client.program.index",{level:m.LevelEducational[y].name})},{default:b(()=>[t("div",te,[t("div",ee,[t("span",se,o(m.LevelEducational[y].type_label),1),t("h3",le,o(m.LevelEducational[y].label),1),e[5]||(e[5]=t("p",{class:"mt-3 text-gray-500"}," Построй свою индивидуальную траекторию ",-1))]),t("div",oe,[t("div",re,[t("p",ie,o(u.total_programs),1),e[6]||(e[6]=t("p",{class:"mt-1 text-sm text-gray-500"},"Программ",-1))]),t("div",ne,[t("p",ae,o(u.places.och_count),1),e[7]||(e[7]=t("p",{class:"mt-1 text-sm text-gray-500"},"Очных",-1))]),t("div",de,[t("p",ce,o(u.places.zaoch_count),1),e[8]||(e[8]=t("p",{class:"mt-1 text-sm text-gray-500"},"Заочных",-1))]),t("div",pe,[t("p",ue,o(u.places.budget_places),1),e[9]||(e[9]=t("p",{class:"mt-1 text-sm text-gray-500"},"Бюджетных",-1))]),t("div",me,[t("p",xe,o(u.places.non_budget_places),1),e[10]||(e[10]=t("p",{class:"mt-1 text-sm text-gray-500"},"Платных",-1))])])])]),_:2},1032,["href"]))),256)),_(w,{href:n.route("client.additionalEducation.index")},{default:b(()=>[t("div",he,[e[13]||(e[13]=t("div",{class:"p-4 md:p-6"},[t("span",{class:"block mb-1 text-xs font-semibold uppercase text-blue-600"}," Доп. образование "),t("h3",{class:"text-3xl font-semibold text-gray-800"}," Дополнительное образование "),t("p",{class:"mt-3 text-gray-500"}," Построй свою индивидуальную траекторию ")],-1)),t("div",ge,[t("div",_e,[t("p",be,o(a.educations.additional_education.educations_count),1),e[11]||(e[11]=t("p",{class:"mt-1 text-sm text-gray-500"},"Программ",-1))]),t("div",fe,[t("p",ve,o(a.educations.additional_education.categories_count),1),e[12]||(e[12]=t("p",{class:"mt-1 text-sm text-gray-500"},"Направлений",-1))])])])]),_:1},8,["href"])])])]),e[17]||(e[17]=M('

Контакты

Главный корпус

622031, Нижний Тагил, Красногвардейская 57

Свяжитесь с нами

+7(906)-802-55-59

ntgspi@yandex.ru

Приемная комиссия

Расписание

Понедельник - Пятница с 08.30 до 17.00

Ответственный секретарь приемной комиссии

+7(906)-802-55-59

ntgspi@yandex.ru

Полезное

Главный корпус

Понедельник - Пятница
с 08.30 до 17.00

Ответственный секретарь
приемной комиссии

+7(906)-802-55-59

ntgspi@yandex.ru

',1)),_(O)],64)}const Te=f(Tt,[["render",we]]);export{Te as default}; diff --git a/public/build/assets/MainNavbar-DYfeRcdr.js b/public/build/assets/MainNavbar-Ox7xJRDB.js similarity index 94% rename from public/build/assets/MainNavbar-DYfeRcdr.js rename to public/build/assets/MainNavbar-Ox7xJRDB.js index 8acee2c..f72f44d 100644 --- a/public/build/assets/MainNavbar-DYfeRcdr.js +++ b/public/build/assets/MainNavbar-Ox7xJRDB.js @@ -1 +1 @@ -import{i as y,r as d,o,c as l,b as e,a as r,w as v,h as w,F as i,d as m,t as u,n as _}from"./app-CBssobj-.js";import{S as k,M as S,B,C as M}from"./SearchModal-BTKERLZv.js";/* empty css */import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";const j={name:"MainNavBar",props:{sections:{type:Object}},data(){return{}},components:{SearchModal:k,MobileNavbar:S,BaseIcon:B,ClientGlobalSearch:M,Link:y},methods:{isSameRoute(s){if(s===this.$page.props.ziggy.location)return!0;const t=this.$page.props.ziggy.location,n=this.$page.props.ziggy.url+"/"+s;return t===n},hasActivePage(s){if(s.pages)return s.pages.some(t=>this.isSameRoute(t.path));if(s.subSections)return s.subSections.some(t=>this.hasActivePage(t))}}},C={class:"flex duration-500 fixed top-0 left-0 right-0 flex-wrap lg:justify-start lg:flex-nowrap z-50 w-full text-sm py-3 lg:py-0 header-filter"},z={class:"max-w-screen-xl w-full mx-auto px-4 py-3","aria-label":"Global"},L={class:"relative lg:flex lg:items-center lg:justify-between"},I={class:"flex items-center justify-between"},R={id:"navbar-collapse-with-animation",class:"hs-collapse hidden overflow-hidden transition-all duration-300 basis-full grow lg:block"},$={class:"overflow-hidden overflow-y-auto max-h-[75vh] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300"},V={class:"flex flex-col gap-x-0 mt-5 md:flex-row md:items-center md:justify-end md:gap-x-7 md:mt-0 md:ps-7 md:divide-y-0 md:divide-solid"},A={type:"button",class:"active:text-blue-600 flex items-center w-full text-black hover:text-gray-300 font-medium"},D={class:"hs-dropdown-menu transition-opacity duration-150 md:duration-500 hs-dropdown-open:opacity-100 opacity-0 w-full hidden z-10 top-full start-0 min-w-[15rem] bg-white md:shadow-2xl rounded-lg py-2 md:p-4 before:absolute before:-top-5 before:start-0 before:w-full before:h-5"},F={class:"grid px-5 grid-cols-1 md:grid-cols-10"},G={class:"flex flex-col py-6 px-3 md:px-6"},P={class:"space-y-4"},E={class:"flex items-center mb-2 gap-x-2"},O={class:"text-xs font-bold uppercase text-gray-800"},U=["href"],q={class:"grow"},H={href:"#",class:"hover:opacity-70 py-3 className"},J={class:"hover:opacity-70 py-3 cursor-pointer","data-hs-overlay":"#hs-full-screen-modal-below-md"};function K(s,t,n,Q,T,f){const b=d("Link"),c=d("BaseIcon"),x=d("MobileNavbar"),g=d("SearchModal");return o(),l(i,null,[e("header",C,[e("nav",z,[e("div",L,[e("div",I,[r(b,{class:"flex-none text-xl font-semibold",href:"/","aria-label":"Brand"},{default:v(()=>t[0]||(t[0]=[e("img",{class:"max-w-[300px]",src:"/logos/ntspi-logo.svg",alt:""},null,-1)])),_:1}),t[1]||(t[1]=w('
',1))]),e("div",R,[e("div",$,[e("div",V,[(o(!0),l(i,null,m(this.sections.data,h=>(o(),l("div",{key:h.id,class:"hs-dropdown [--strategy:static] md:[--strategy:absolute] [--adaptive:none] md:[--trigger:hover] py-3 md:py-6"},[e("button",A,u(h.title),1),e("div",D,[e("div",F,[(o(!0),l(i,null,m(h.subSections,p=>(o(),l("div",{key:p.id,class:"md:col-span-3"},[e("div",G,[e("div",P,[e("div",E,[e("span",O,u(p.title),1)]),(o(!0),l(i,null,m(p.pages,a=>(o(),l("a",{key:a.id,class:_([{"text-secondDarkBlue hover:text-gray-800 font-semibold ":f.isSameRoute(a.path),"text-gray-800 hover:text-gray-500":!f.isSameRoute(a.path)},"flex items-center gap-x-2"]),href:a.is_url?a.path:s.route("page.view",a.path)+"/"},[e("div",q,[e("p",null,u(a.title),1)])],10,U))),128))])])]))),128))])])]))),128)),e("a",H,[r(c,{name:"eye",class:"w-6 h-6 duration-300 md:block hidden"}),t[2]||(t[2]=e("span",{class:"md:hidden"},"Режим для слабовидящих",-1))]),r(b,{href:s.route("client.schedule"),class:"hover:opacity-70 py-3"},{default:v(()=>[r(c,{name:"schedule",class:"w-6 h-6 text-black md:block hidden"}),t[3]||(t[3]=e("span",{class:"md:hidden text-black"},"Расписание",-1))]),_:1},8,["href"]),e("a",J,[r(c,{name:"search",class:"w-6 h-6 text-black md:block hidden"}),t[4]||(t[4]=e("span",{class:"md:hidden text-black"},"Поиск",-1))])])])])])])]),r(x,{sections:n.sections},null,8,["sections"]),r(g,{open_id:"hs-full-screen-modal-below-md"})],64)}const ee=N(j,[["render",K],["__scopeId","data-v-dc2022ad"]]);export{ee as M}; +import{i as y,r as d,o,c as l,b as e,a as r,w as v,h as w,F as i,d as m,t as u,n as _}from"./app-lWrE2aWG.js";import{S as k,M as S,B,a as M}from"./SearchModal-CGHtjMJb.js";/* empty css */import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";const j={name:"MainNavBar",props:{sections:{type:Object}},data(){return{}},components:{SearchModal:k,MobileNavbar:S,BaseIcon:B,ClientGlobalSearch:M,Link:y},methods:{isSameRoute(s){if(s===this.$page.props.ziggy.location)return!0;const t=this.$page.props.ziggy.location,n=this.$page.props.ziggy.url+"/"+s;return t===n},hasActivePage(s){if(s.pages)return s.pages.some(t=>this.isSameRoute(t.path));if(s.subSections)return s.subSections.some(t=>this.hasActivePage(t))}}},z={class:"flex duration-500 fixed top-0 left-0 right-0 flex-wrap lg:justify-start lg:flex-nowrap z-50 w-full text-sm py-3 lg:py-0 header-filter"},C={class:"max-w-screen-xl w-full mx-auto px-4 py-3","aria-label":"Global"},L={class:"relative lg:flex lg:items-center lg:justify-between"},I={class:"flex items-center justify-between"},R={id:"navbar-collapse-with-animation",class:"hs-collapse hidden overflow-hidden transition-all duration-300 basis-full grow lg:block"},$={class:"overflow-hidden overflow-y-auto max-h-[75vh] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300"},V={class:"flex flex-col gap-x-0 mt-5 md:flex-row md:items-center md:justify-end md:gap-x-7 md:mt-0 md:ps-7 md:divide-y-0 md:divide-solid"},A={type:"button",class:"active:text-blue-600 flex items-center w-full text-black hover:text-gray-300 font-medium"},D={class:"hs-dropdown-menu transition-opacity duration-150 md:duration-500 hs-dropdown-open:opacity-100 opacity-0 w-full hidden z-10 top-full start-0 min-w-[15rem] bg-white md:shadow-2xl rounded-lg py-2 md:p-4 before:absolute before:-top-5 before:start-0 before:w-full before:h-5"},F={class:"grid px-5 grid-cols-1 md:grid-cols-10"},G={class:"flex flex-col py-6 px-3 md:px-6"},P={class:"space-y-4"},E={class:"flex items-center mb-2 gap-x-2"},O={class:"text-xs font-bold uppercase text-gray-800"},U=["href"],q={class:"grow"},H={href:"#",class:"hover:opacity-70 py-3 className"},J={class:"hover:opacity-70 py-3 cursor-pointer","data-hs-overlay":"#hs-full-screen-modal-below-md"};function K(s,t,n,Q,T,f){const b=d("Link"),c=d("BaseIcon"),x=d("MobileNavbar"),g=d("SearchModal");return o(),l(i,null,[e("header",z,[e("nav",C,[e("div",L,[e("div",I,[r(b,{class:"flex-none text-xl font-semibold",href:"/","aria-label":"Brand"},{default:v(()=>t[0]||(t[0]=[e("img",{class:"max-w-[300px]",src:"/logos/ntspi-logo.svg",alt:""},null,-1)])),_:1}),t[1]||(t[1]=w('
',1))]),e("div",R,[e("div",$,[e("div",V,[(o(!0),l(i,null,m(this.sections.data,h=>(o(),l("div",{key:h.id,class:"hs-dropdown [--strategy:static] md:[--strategy:absolute] [--adaptive:none] md:[--trigger:hover] py-3 md:py-6"},[e("button",A,u(h.title),1),e("div",D,[e("div",F,[(o(!0),l(i,null,m(h.subSections,p=>(o(),l("div",{key:p.id,class:"md:col-span-3"},[e("div",G,[e("div",P,[e("div",E,[e("span",O,u(p.title),1)]),(o(!0),l(i,null,m(p.pages,a=>(o(),l("a",{key:a.id,class:_([{"text-secondDarkBlue hover:text-gray-800 font-semibold ":f.isSameRoute(a.path),"text-gray-800 hover:text-gray-500":!f.isSameRoute(a.path)},"flex items-center gap-x-2"]),href:a.is_url?a.path:s.route("page.view",a.path)+"/"},[e("div",q,[e("p",null,u(a.title),1)])],10,U))),128))])])]))),128))])])]))),128)),e("a",H,[r(c,{name:"eye",class:"w-6 h-6 duration-300 md:block hidden"}),t[2]||(t[2]=e("span",{class:"md:hidden"},"Режим для слабовидящих",-1))]),r(b,{href:s.route("client.schedule"),class:"hover:opacity-70 py-3"},{default:v(()=>[r(c,{name:"schedule",class:"w-6 h-6 text-black md:block hidden"}),t[3]||(t[3]=e("span",{class:"md:hidden text-black"},"Расписание",-1))]),_:1},8,["href"]),e("a",J,[r(c,{name:"search",class:"w-6 h-6 text-black md:block hidden"}),t[4]||(t[4]=e("span",{class:"md:hidden text-black"},"Поиск",-1))])])])])])])]),r(x,{sections:n.sections},null,8,["sections"]),r(g,{open_id:"hs-full-screen-modal-below-md"})],64)}const ee=N(j,[["render",K],["__scopeId","data-v-dc2022ad"]]);export{ee as M}; diff --git a/public/build/assets/MainPageNavbar-BsdceJwT.js b/public/build/assets/MainPageNavbar-BsdceJwT.js new file mode 100644 index 0000000..735bb2f --- /dev/null +++ b/public/build/assets/MainPageNavbar-BsdceJwT.js @@ -0,0 +1,105 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SearchModal-CGHtjMJb.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/app-lWrE2aWG.js","assets/app-BuUCQLTR.css","assets/SearchModal-wAgUXteK.css"])))=>i.map(i=>d[i]); +import{bU as Ce,q as ze,i as xe,r as ie,o as N,c as P,b as g,F as ne,d as fe,n as I,g as De,t as me,a as re,w as je,_ as Fe,h as Ne,B as Pe}from"./app-lWrE2aWG.js";import{j as Te,B as Le,S as Me,M as Re,a as Ge}from"./SearchModal-CGHtjMJb.js";import{_ as Be}from"./_plugin-vue_export-helper-DlAUqK2U.js";var Ee={exports:{}};/*! + * Button visually impaired - v1.0.0 https://bvi.isvek.ru + * Copyright 2014-2021 Oleg Korotenko . + * Licensed MIT (https://github.com/veks/button-visually-impaired-javascript/blob/master/LICENSE.md) + */(function(y,w){(function(L,$){y.exports=$()})(Ce,function(){function L(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function $(a){for(var e=1;ea.length)&&(e=a.length);for(var t=0,n=new Array(e);t=0;--v){var l=this.tryEntries[v],A=l.completion;if(l.tryLoc==="root")return c("end");if(l.tryLoc<=this.prev){var O=x.call(l,"catchLoc"),F=x.call(l,"finallyLoc");if(O&&F){if(this.prev=0;--c){var v=this.tryEntries[c];if(v.tryLoc<=this.prev&&x.call(v,"finallyLoc")&&this.prev=0;--i){var c=this.tryEntries[i];if(c.finallyLoc===r)return this.complete(c.completion,c.afterLoc),ue(c),p}},catch:function(r){for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i];if(c.tryLoc===r){var v=c.completion;if(v.type==="throw"){var l=v.arg;ue(c)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(r,i,c){return this.delegate={iterator:he(r),resultName:i,nextLoc:c},this.method==="next"&&(this.arg=n),p}},t}({});try{regeneratorRuntime=e}catch{(typeof globalThis>"u"?"undefined":T(globalThis))==="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(a){a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(n){var s=n instanceof Node;t.appendChild(s?n:document.createTextNode(String(n)))}),this.insertBefore(t,this.firstChild)}})}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach);var j=function(a){switch(a){case"on":case"true":case"1":return!0;default:return!1}},pe=function(a,e,t){for(typeof e=="string"&&(e=document.createElement(e)),a.appendChild(e).className=t;a.firstChild!==e;)e.appendChild(a.firstChild)},oe=function(a){var e=document.createDocumentFragment();if(a){for(;a.firstChild;){var t=a.removeChild(a.firstChild);e.appendChild(t)}a.parentNode.replaceChild(e,a)}},J=function(a,e){Object.keys(a).forEach(function(t){typeof e=="function"&&e(t)})},ae=function(a,e){Array.from(a).forEach(function(t){typeof e=="function"&&e(t)})},Y=function(){return window.speechSynthesis},_=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=new Date,n=t.getTime();n+=864e5,t.setTime(n),document.cookie="bvi_".concat(a,"=").concat(e,";path=/;expires=").concat(t.toUTCString(),";domain=").concat(location.host)},B=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";a="bvi_".concat(a,"=");for(var e=decodeURIComponent(document.cookie),t=e.split(";"),n=0;n0&&arguments[0]!==void 0?arguments[0]:"";document.cookie="bvi_".concat(a,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(location.host)},ge={"ru-RU":{text:{fontSize:"Размер шрифта",siteColors:"Цвета сайта",images:"Изображения",speech:"Синтез речи",settings:"Настройки",regularVersionOfTheSite:"Обычная версия сайта",letterSpacing:"Межбуквенное расстояние",normal:"Стандартный",average:"Средний",big:"Большой",lineHeight:"Межстрочный интервал",font:"Шрифт",arial:"Без засечек",times:"С засечками",builtElements:"Встроенные элементы (Видео, карты и тд.)",on:"Включить",off:"Выключить",reset:"Сбросить настройки",plural_0:"пиксель",plural_1:"пекселя",plural_2:"пикселей"},voice:{fontSizePlus:"Размер шрифта увели́чен",fontSizeMinus:"Размер шрифта уме́ньшен",siteColorBlackOnWhite:"Цвет сайта черным по белому",siteColorWhiteOnBlack:"Цвет сайта белым по черному",siteColorDarkBlueOnBlue:"Цвет сайта тёмно-синим по голубому",siteColorBeigeBrown:"Цвет сайта кори́чневым по бе́жевому",siteColorGreenOnDarkBrown:"Цвет сайта зеленым по тёмно-коричневому",imagesOn:"Изображения включены",imagesOFF:"Изображения выключены",imagesGrayscale:"Изображения чёрно-белые",speechOn:"Синтез речи включён",speechOff:"Синтез речи вы́ключен",lineHeightNormal:"Межстрочный интервал стандартный",lineHeightAverage:"Межстрочный интервал средний",lineHeightBig:"Межстрочный интервал большой",LetterSpacingNormal:"Интервал между буквами стандартный",LetterSpacingAverage:"Интервал между буквами средний",LetterSpacingBig:"Интервал между буквами большой",fontArial:"Шрифт без засечек",fontTimes:"Шрифт с засечками",builtElementsOn:"Встроенные элементы включены",builtElementsOFF:"Встроенные элементы выключены",resetSettings:"Установлены настройки по умолча́нию",panelShow:"Панель открыта",panelHide:"Панель скрыта",panelOn:"Версия сайта для слабови́дящий",panelOff:"Обычная версия сайта"}},"en-US":{text:{fontSize:"Font size",siteColors:"Site colors",images:"Images",speech:"Speech synthesis",settings:"Settings",regularVersionOfTheSite:"Regular version Of The site",letterSpacing:"Letter spacing",normal:"Single",average:"One and a half",big:"Double",lineHeight:"Line spacing",font:"Font",arial:"Sans Serif - Arial",times:"Serif - Times New Roman",builtElements:"Include inline elements (Videos, maps, etc.)",on:"Enable",off:"Disabled",reset:"Reset settings",plural_0:"pixel",plural_1:"pixels",plural_2:"pixels"},voice:{fontSizePlus:"Font size increased",fontSizeMinus:"Font size reduced",siteColorBlackOnWhite:"Site color black on white",siteColorWhiteOnBlack:"Site color white on black",siteColorDarkBlueOnBlue:"Site color dark blue on cyan",siteColorBeigeBrown:"SiteColorBeigeBrown",siteColorGreenOnDarkBrown:"Site color green on dark brown",imagesOn:"Images enable",imagesOFF:"Images disabled",imagesGrayscale:"Images gray scale",speechOn:"Synthesis speech enable",speechOff:"Synthesis speech disabled",lineHeightNormal:"Line spacing single",lineHeightAverage:"Line spacing one and a half",lineHeightBig:"Line spacing double",LetterSpacingNormal:"Letter spacing single",LetterSpacingAverage:"Letter spacing one and a half",LetterSpacingBig:"Letter spacing letter double",fontArial:"Sans Serif - Arial",fontTimes:"Serif - Times New Roman",builtElementsOn:"Include inline elements are enabled",builtElementsOFF:"Include inline elements are disabled",resetSettings:"Default settings have been set",panelShow:"Panel show",panelHide:"Panel hide",panelOn:"Site version for visually impaired",panelOff:"Regular version of the site"}}},Ae=function(){function a(e){W(this,a),this._config=e}return D(a,[{key:"t",value:function(e){return ge[this._config.lang].text[e]}},{key:"v",value:function(e){return ge[this._config.lang].voice[e]}}]),a}(),be={target:".bvi-open",fontSize:16,theme:"white",images:"grayscale",letterSpacing:"normal",lineHeight:"normal",speech:!0,fontFamily:"arial",builtElements:!1,panelFixed:!0,panelHide:!1,reload:!1,lang:"ru-RU"},Oe={target:"string",fontSize:"number",theme:"string",images:"(string|boolean)",letterSpacing:"string",lineHeight:"string",speech:"boolean",fontFamily:"string",builtElements:"boolean",panelFixed:"boolean",panelHide:"boolean",reload:"boolean",lang:"string"},qe={target:"",fontSize:"(^[1-9]$|^[1-3][0-9]?$|^39$)",theme:"(white|black|blue|brown|green)",images:"(true|false|grayscale)",letterSpacing:"(normal|average|big)",lineHeight:"(normal|average|big)",speech:"(true|false)",fontFamily:"(arial|times)",builtElements:"(true|false)",panelFixed:"(true|false)",panelHide:"(true|false)",reload:"(true|false)",lang:"(ru-RU|en-US)"};return{Bvi:function(){function a(e){W(this,a),this._config=this._getConfig(e),this._elements=document.querySelectorAll(this._config.target),this._i18n=new Ae({lang:this._config.lang}),this._addEventListeners(),this._init(),console.log("Bvi console: ready Button visually impaired v1.0.0")}return D(a,[{key:"_init",value:function(){J(this._config,function(e){B(e)===void 0&&se("panelActive")}),j(B("panelActive"))?(this._set(),this._getPanel(),this._addEventListenersPanel(),this._images(),this._speechPlayer(),"speechSynthesis"in window&&j(B("speech"))&&setInterval(function(){if(Y().pending===!1){var e=document.querySelectorAll(".bvi-speech-play"),t=document.querySelectorAll(".bvi-speech-pause"),n=document.querySelectorAll(".bvi-speech-resume"),s=document.querySelectorAll(".bvi-speech-stop"),x=function(o,S){o.forEach(function(f){return S(f)})};x(e,function(o){return o.classList.remove("disabled")}),x(t,function(o){return o.classList.add("disabled")}),x(n,function(o){return o.classList.add("disabled")}),x(s,function(o){return o.classList.add("disabled")})}},1e3)):this._remove()}},{key:"_addEventListeners",value:function(){var e=this;if(!this._elements)return!1;this._elements.forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),J(e._config,function(s){return _(s,e._config[s])}),_("panelActive",!0),e._init(),e._speech("".concat(e._i18n.v("panelOn")))})})}},{key:"_addEventListenersPanel",value:function(){var e=this,t={fontSizeMinus:document.querySelector(".bvi-fontSize-minus"),fontSizePlus:document.querySelector(".bvi-fontSize-plus"),themeWhite:document.querySelector(".bvi-theme-white"),themeBlack:document.querySelector(".bvi-theme-black"),themeBlue:document.querySelector(".bvi-theme-blue"),themeBrown:document.querySelector(".bvi-theme-brown"),themeGreen:document.querySelector(".bvi-theme-green"),imagesOn:document.querySelector(".bvi-images-on"),imagesOff:document.querySelector(".bvi-images-off"),imagesGrayscale:document.querySelector(".bvi-images-grayscale"),speechOn:document.querySelector(".bvi-speech-on"),speechOff:document.querySelector(".bvi-speech-off"),lineHeightNormal:document.querySelector(".bvi-line-height-normal"),lineHeightAverage:document.querySelector(".bvi-line-height-average"),lineHeightBig:document.querySelector(".bvi-line-height-big"),letterSpacingNormal:document.querySelector(".bvi-letter-spacing-normal"),letterSpacingAverage:document.querySelector(".bvi-letter-spacing-average"),letterSpacingBig:document.querySelector(".bvi-letter-spacing-big"),fontFamilyArial:document.querySelector(".bvi-font-family-arial"),fontFamilyTimes:document.querySelector(".bvi-font-family-times"),builtElementsOn:document.querySelector(".bvi-built-elements-on"),builtElementsOff:document.querySelector(".bvi-built-elements-off"),reset:document.querySelector(".bvi-reset"),links:document.querySelectorAll(".bvi-link"),modal:document.querySelector(".bvi-modal")},n=function(o){var S,f=function(m,u){var d=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!d){if(Array.isArray(m)||(d=function(p,R){if(p){if(typeof p=="string")return M(p,R);var E=Object.prototype.toString.call(p).slice(8,-1);return E==="Object"&&p.constructor&&(E=p.constructor.name),E==="Map"||E==="Set"?Array.from(p):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?M(p,R):void 0}}(m))||u){d&&(m=d);var h=0,b=function(){};return{s:b,n:function(){return h>=m.length?{done:!0}:{done:!1,value:m[h++]}},e:function(p){throw p},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var q,C=!0,H=!1;return{s:function(){d=d.call(m)},n:function(){var p=d.next();return C=p.done,p},e:function(p){H=!0,q=p},f:function(){try{C||d.return==null||d.return()}finally{if(H)throw q}}}}(o.parentNode.children);try{for(f.s();!(S=f.n()).done;)S.value.classList.remove("active")}catch(m){f.e(m)}finally{f.f()}o.classList.add("active")},s=function(o,S){o.addEventListener("click",function(f){f.preventDefault(),typeof S=="function"&&S(f)})},x=function(){document.querySelectorAll(".bvi-link").forEach(function(o){o.classList.remove("active")}),J(e._config,function(o){if(o==="theme"){var S=B(o);document.querySelector(".bvi-theme-".concat(S)).classList.add("active")}if(o==="images"){var f=B(o)==="grayscale"?"grayscale":j(B(o))?"on":"off";document.querySelector(".bvi-images-".concat(f)).classList.add("active")}if(o==="speech"){var m=j(B(o))?"on":"off";document.querySelector(".bvi-speech-".concat(m)).classList.add("active")}if(o==="lineHeight"){var u=B(o);document.querySelector(".bvi-line-height-".concat(u)).classList.add("active")}if(o==="letterSpacing"){var d=B(o);document.querySelector(".bvi-letter-spacing-".concat(d)).classList.add("active")}if(o==="fontFamily"){var h=B(o);document.querySelector(".bvi-font-family-".concat(h)).classList.add("active")}if(o==="builtElements"){var b=j(B(o))?"on":"off";document.querySelector(".bvi-built-elements-".concat(b)).classList.add("active")}})};x(),s(t.fontSizeMinus,function(){var o=parseFloat(B("fontSize"))-1;o!==0&&(e._setAttrDataBviBody("fontSize",o),_("fontSize",o),e._speech("".concat(e._i18n.v("fontSizeMinus"))),n(t.fontSizeMinus))}),s(t.fontSizePlus,function(){var o=parseFloat(B("fontSize"))+1;o!==40&&(e._setAttrDataBviBody("fontSize",o),_("fontSize",o),e._speech("".concat(e._i18n.v("fontSizePlus"))),n(t.fontSizePlus))}),s(t.themeWhite,function(){e._setAttrDataBviBody("theme","white"),_("theme","white"),e._speech("".concat(e._i18n.v("siteColorBlackOnWhite"))),n(t.themeWhite)}),s(t.themeBlack,function(){e._setAttrDataBviBody("theme","black"),_("theme","black"),e._speech("".concat(e._i18n.v("siteColorWhiteOnBlack"))),n(t.themeBlack)}),s(t.themeBlue,function(){e._setAttrDataBviBody("theme","blue"),_("theme","blue"),e._speech("".concat(e._i18n.v("siteColorDarkBlueOnBlue"))),n(t.themeBlue)}),s(t.themeBrown,function(){e._setAttrDataBviBody("theme","brown"),_("theme","brown"),e._speech("".concat(e._i18n.v("siteColorBeigeBrown"))),n(t.themeBrown)}),s(t.themeGreen,function(){e._setAttrDataBviBody("theme","green"),_("theme","green"),e._speech("".concat(e._i18n.v("siteColorGreenOnDarkBrown"))),n(t.themeGreen)}),s(t.imagesOn,function(){e._setAttrDataBviBody("images","true"),_("images","true"),e._speech("".concat(e._i18n.v("imagesOn"))),n(t.imagesOn)}),s(t.imagesOff,function(){e._setAttrDataBviBody("images","false"),_("images","false"),e._speech("".concat(e._i18n.v("imagesOFF"))),n(t.imagesOff)}),s(t.imagesGrayscale,function(){e._setAttrDataBviBody("images","grayscale"),_("images","grayscale"),e._speech("".concat(e._i18n.v("imagesGrayscale"))),n(t.imagesGrayscale)}),s(t.speechOn,function(){e._setAttrDataBviBody("speech","true"),_("speech","true"),e._speech("".concat(e._i18n.v("speechOn"))),n(t.speechOn),e._speechPlayer()}),s(t.speechOff,function(){e._speech("".concat(e._i18n.v("speechOff"))),e._setAttrDataBviBody("speech","false"),_("speech","false"),n(t.speechOff),e._speechPlayer()}),s(t.lineHeightNormal,function(){e._setAttrDataBviBody("lineHeight","normal"),_("lineHeight","normal"),e._speech("".concat(e._i18n.v("lineHeightNormal"))),n(t.lineHeightNormal)}),s(t.lineHeightAverage,function(){e._setAttrDataBviBody("lineHeight","average"),_("lineHeight","average"),e._speech("".concat(e._i18n.v("lineHeightAverage"))),n(t.lineHeightAverage)}),s(t.lineHeightBig,function(){e._setAttrDataBviBody("lineHeight","big"),_("lineHeight","big"),e._speech("".concat(e._i18n.v("lineHeightBig"))),n(t.lineHeightBig)}),s(t.letterSpacingNormal,function(){e._setAttrDataBviBody("letterSpacing","normal"),_("letterSpacing","normal"),e._speech("".concat(e._i18n.v("LetterSpacingNormal"))),n(t.letterSpacingNormal)}),s(t.letterSpacingAverage,function(){e._setAttrDataBviBody("letterSpacing","average"),_("letterSpacing","average"),e._speech("".concat(e._i18n.v("LetterSpacingAverage"))),n(t.letterSpacingAverage)}),s(t.letterSpacingBig,function(){e._setAttrDataBviBody("letterSpacing","big"),_("letterSpacing","big"),e._speech("".concat(e._i18n.v("LetterSpacingBig"))),n(t.letterSpacingBig)}),s(t.fontFamilyArial,function(){e._setAttrDataBviBody("fontFamily","arial"),_("fontFamily","arial"),e._speech("".concat(e._i18n.v("fontArial"))),n(t.fontFamilyArial)}),s(t.fontFamilyTimes,function(){e._setAttrDataBviBody("fontFamily","times"),_("fontFamily","times"),e._speech("".concat(e._i18n.v("fontTimes"))),n(t.fontFamilyTimes)}),s(t.builtElementsOn,function(){e._setAttrDataBviBody("builtElements","true"),_("builtElements","true"),e._speech("".concat(e._i18n.v("builtElementsOn"))),n(t.builtElementsOn)}),s(t.builtElementsOff,function(){e._setAttrDataBviBody("builtElements","false"),_("builtElements","false"),e._speech("".concat(e._i18n.v("builtElementsOFF"))),n(t.builtElementsOff)}),s(t.reset,function(){e._speech("".concat(e._i18n.v("resetSettings"))),J(e._config,function(o){e._setAttrDataBviBody(o,e._config[o]),_(o,e._config[o]),x()})}),ae(t.links,function(o){s(o,function(S){var f=S.target.getAttribute("data-bvi");f==="close"&&(e._setAttrDataBviBody("panelActive","false"),_("panelActive","false"),e._init()),f==="modal"&&(document.body.style.overflow="hidden",document.body.classList.add("bvi-noscroll"),t.modal.classList.toggle("show")),f==="modal-close"&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",t.modal.classList.remove("show")),f==="panel-hide"&&(document.querySelector(".bvi-panel").classList.add("bvi-panel-hide"),document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-hide"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-show"),_("panelHide","true"),e._speech("".concat(e._i18n.v("panelHide")))),f==="panel-show"&&(document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-show"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-hide"),document.querySelector(".bvi-panel").classList.remove("bvi-panel-hide"),_("panelHide","false"),e._speech("".concat(e._i18n.v("panelShow"))))})}),s(t.modal,function(o){o.target.contains(t.modal)&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",t.modal.classList.remove("show"))})}},{key:"_getPanel",value:function(){var e=function(){var o=window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;j(B("panelFixed"))&&(o>200?document.querySelector(".bvi-panel").classList.add("bvi-fixed-top"):document.querySelector(".bvi-panel").classList.remove("bvi-fixed-top"))},t=j(B("panelHide"))?" bvi-panel-hide":"",n=j(B("panelHide"))?"bvi-show":" bvi-hide",s=` +
+
+
+
`).concat(this._i18n.t("fontSize"),`
+ А- + А+ +
+
+
`).concat(this._i18n.t("siteColors"),`
+ Ц + Ц + Ц + Ц + Ц +
+
+
`).concat(this._i18n.t("images"),`
+ + + + + + + + + +
+
+
`).concat(this._i18n.t("speech"),`
+ + + + + + +
+
+
`).concat(this._i18n.t("settings"),`
+ + + + + `).concat(this._i18n.t("regularVersionOfTheSite"),` + + + + +
+
+
+
+
+
+
`).concat(this._i18n.t("settings"),`
+ × +
+ + +
+
+
+
`),x='')+'';window.addEventListener("scroll",e),document.querySelector(".bvi-body").insertAdjacentHTML("beforebegin",s),document.querySelector(".bvi-body").insertAdjacentHTML("afterbegin",x),e()}},{key:"_set",value:function(){var e=this;document.body.classList.add("bvi-active"),pe(document.body,"div","bvi-body"),J(this._config,function(t){return e._setAttrDataBviBody(t,B(t))}),ae(this._elements,function(t){return t.style.display="none"}),document.querySelectorAll("img").forEach(function(t){t.classList.contains("bvi-img")&&t.classList.remove("bvi-img")}),document.querySelectorAll("body *").forEach(function(t){t.classList.contains("bvi-background-image")&&t.classList.remove("bvi-background-image")})}},{key:"_remove",value:function(){var e=document.querySelector(".bvi-panel"),t=document.querySelector(".bvi-body"),n=document.querySelector(".bvi-link-fixed-top");e&&e.remove(),t&&oe(t),n&&n.remove(),this._speech("".concat(this._i18n.v("panelOff"))),document.body.classList.remove("bvi-active"),ae(this._elements,function(s){return s.style.display=""}),j(B("reload"))&&document.location.reload(),J(this._config,function(s){se(s)}),this._speechPlayer(),se("panelActive")}},{key:"_images",value:function(){document.querySelectorAll("img").forEach(function(e){e.classList.contains("bvi-no-style")||e.classList.add("bvi-img")}),document.querySelectorAll(".bvi-body *").forEach(function(e){var t=getComputedStyle(e);t.backgroundImage==="none"||t.background==="none"||e.classList.contains("bvi-no-style")||e.classList.add("bvi-background-image")})}},{key:"_getConfig",value:function(e){e=$($({},be),e);var t={};for(var n in be)t[n]=e[n];return function(s,x,o){Object.keys(x).forEach(function(S){var f,m=x[S],u=s[S],d=u&&(f=u)&&T(f)==="object"&&f.nodeType!==void 0?"element":function(h){return h==null?"".concat(h):{}.toString.call(h).match(/\s([a-z]+)/i)[1].toLowerCase()}(u);if(!new RegExp(m).test(d))throw new TypeError('Bvi console: Опция "'.concat(S,'" предоставленный тип "').concat(d,'", ожидаемый тип "').concat(m,'".'))}),Object.keys(o).forEach(function(S){var f=o[S],m=s[S];if(!new RegExp(f).test(m))throw new TypeError('Bvi console: Опция "'.concat(S,'" параметр "').concat(m,'", ожидаемый параметр "').concat(f,'".'))})}(t,Oe,qe),t}},{key:"_setAttrDataBviBody",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";document.querySelector(".bvi-body").setAttribute("data-bvi-".concat(e),t)}},{key:"_speechPlayer",value:function(){var e=this,t=document.querySelectorAll(".bvi-speech-text"),n=document.querySelectorAll(".bvi-speech-link"),s=document.querySelectorAll(".bvi-speech");if("speechSynthesis"in window&&j(B("speech"))){if(s){t&&t.forEach(function(u){return oe(u)}),n&&n.forEach(function(u){return u.remove()}),s.forEach(function(u,d){var h="bvi-speech-text-id-".concat(d+1);pe(u,"div","bvi-speech-text ".concat(h)),u.insertAdjacentHTML("afterbegin",` + `)});var x=document.querySelectorAll(".bvi-speech-play"),o=document.querySelectorAll(".bvi-speech-pause"),S=document.querySelectorAll(".bvi-speech-resume"),f=document.querySelectorAll(".bvi-speech-stop"),m=function(u,d){u.forEach(function(h){h.addEventListener("click",function(b){if(b.preventDefault(),typeof d=="function")return d(h,b)},!1)})};m(x,function(u,d){var h=d.target,b=h.parentNode.nextElementSibling,q=d.target.closest(".bvi-speech-link"),C=document.querySelectorAll(".bvi-speech-play"),H=document.querySelectorAll(".bvi-speech-pause"),p=document.querySelectorAll(".bvi-speech-resume"),R=document.querySelectorAll(".bvi-speech-stop");e._speech(b.textContent,b,!0),C.forEach(function(E){return E.classList.remove("disabled")}),H.forEach(function(E){return E.classList.add("disabled")}),p.forEach(function(E){return E.classList.add("disabled")}),R.forEach(function(E){return E.classList.add("disabled")}),h.classList.add("disabled"),q.querySelector(".bvi-speech-pause").classList.remove("disabled"),q.querySelector(".bvi-speech-stop").classList.remove("disabled")}),m(o,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-resume").classList.remove("disabled"),Y().pause()}),m(S,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.remove("disabled"),Y().resume()}),m(f,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.add("disabled"),b.querySelector(".bvi-speech-play").classList.remove("disabled"),Y().cancel()})}}else t&&t.forEach(function(u){return oe(u)}),n&&n.forEach(function(u){return u.remove()})}},{key:"_speech",value:function(e,t){var n=this,s=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if("speechSynthesis"in window&&j(B("speech"))){Y().cancel();for(var x=function(d,h){d=String(d),h=Number(h)>>>0;var b=d.slice(0,h+1).search(/\S+$/),q=d.slice(h).search(/\s/);return q<0?d.slice(b):d.slice(b,q+h)},o=120,S=new RegExp("^[\\s\\S]{"+Math.floor(o/2)+","+o+"}[.!?,]{1}|^[\\s\\S]{1,"+o+"}$|^[\\s\\S]{1,"+o+"} "),f=[],m=e,u=Y().getVoices();m.length>0;)f.push(m.match(S)[0]),m=m.substring(f[f.length-1].length);f.forEach(function(d){var h=new SpeechSynthesisUtterance(d.trim());h.volume=1,h.rate=1,h.pitch=1,h.lang=n._config.lang;for(var b=0;b]+>)*$1(<[^>]+>)*)"),R=new RegExp("("+p+")","gi");H=(H=H.replace(R,"$1")).replace(/([^<>]*)((<[^>]+>)+)([^<>]*<\/mark>)/,"$1$2$4"),t.innerHTML=H},h.onend=function(q){t.classList.remove("bvi-highlighting");var C=t.textContent;C=C.replace(/($1<\/mark>)/,"$1"),t.innerHTML=C}),Y().speak(h)})}}}]),a}()}})})(Ee);var Ie=Ee.exports;const $e={name:"DesktopNavBar",props:{sections:{type:Object},underSliderHeader:{type:HTMLDivElement}},data(){return{icons:Te}},components:{BaseIcon:Le,ClientGlobalSearch:ze(()=>Fe(()=>import("./SearchModal-CGHtjMJb.js").then(y=>y.b),__vite__mapDeps([0,1,2,3,4]))),Link:xe},methods:{isSameRoute(y){if(y===this.$page.props.ziggy.location)return!0;const w=this.$page.props.ziggy.location,L=this.$page.props.ziggy.url+"/"+y;return w===L},hasActivePage(y){if(y.pages)return y.pages.some(w=>this.isSameRoute(w.path));if(y.subSections)return y.subSections.some(w=>this.hasActivePage(w))}}},Ve={id:"desktop-nav",class:"hs-collapse hidden overflow-hidden transition-all duration-300 basis-full grow lg:block"},Ue={class:"overflow-hidden overflow-y-auto max-h-[75vh] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300"},We={class:"flex flex-col gap-x-0 mt-5 md:flex-row md:items-center md:justify-end md:gap-x-7 md:mt-0 md:ps-7 md:divide-y-0 md:divide-solid"},Ye=["id"],Ze=["id"],Je=["id"],Ke={class:"grid px-5 grid-cols-1 md:grid-cols-10"},Qe=["id"],Xe={class:"flex flex-col py-4 px-3 md:px-6"},et={class:"space-y-4"},tt={class:"flex items-center mb-2 gap-x-2"},it=["id"],nt=["href"],rt={class:"grow"},ot={href:"#",class:"hover:opacity-70 py-3 className"},at={class:"hover:opacity-70 py-3 cursor-pointer","data-hs-overlay":"#open-search-modal"};function st(y,w,L,$,T,W){const Q=ie("Link");return N(),P("div",Ve,[g("div",Ue,[g("div",We,[(N(!0),P(ne,null,fe(this.sections.data,D=>(N(),P("div",{key:D.id,id:"nav-section-"+D.slug,class:"hs-dropdown [--strategy:static] md:[--strategy:absolute] [--adaptive:none] md:[--trigger:hover] py-3 md:py-6"},[g("button",{id:"nav-section-btn-"+D.slug,type:"button",class:I([L.underSliderHeader?"text-black":"text-white","duration-300 flex items-center w-full hover:text-primaryBlue font-medium hs-dropdown-open:mb-4 md:hs-dropdown-open:mb-0"])},[De(me(D.title)+" ",1),w[0]||(w[0]=g("svg",{class:"flex-shrink-0 ms-2 w-4 h-4",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"},[g("path",{d:"m6 9 6 6 6-6"})],-1))],10,Ze),g("div",{id:"nav-section-menu-"+D.slug,class:"hs-dropdown-menu transition-opacity duration-150 md:duration-500 hs-dropdown-open:opacity-100 opacity-0 w-full hidden z-10 top-full start-0 min-w-[15rem] bg-white md:shadow-2xl rounded-lg py-2 md:p-4 before:absolute before:-top-5 before:start-0 before:w-full before:h-5"},[g("div",Ke,[(N(!0),P(ne,null,fe(D.subSections,V=>(N(),P("div",{key:V.id,id:"nav-sub-section-block-"+V.slug,class:"md:col-span-3"},[g("div",Xe,[g("div",et,[g("div",tt,[g("span",{id:"nav-sub-section-title-"+V.slug,class:"text-xs font-bold uppercase text-gray-800 dark:text-gray-200"},me(V.title),9,it)]),(N(!0),P(ne,null,fe(V.pages,M=>(N(),P("a",{key:M.id,class:I([{"text-[#135aae] hover:text-gray-800 font-semibold ":W.isSameRoute(M.path),"text-gray-800 hover:text-[#2C6288]":!W.isSameRoute(M.path)},"flex items-center gap-x-2"]),href:M.is_url?M.path:y.route("page.view",M.path)+"/"},[g("div",rt,[g("p",null,me(M.title),1)])],10,nt))),128))])])],8,Qe))),128))])],8,Je)],8,Ye))),128)),g("a",ot,[(N(),P("svg",{class:I([L.underSliderHeader?"text-black":"text-white","w-6 h-6 duration-300 md:block hidden"]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},w[1]||(w[1]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"},null,-1),g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"},null,-1)]),2)),g("span",{class:I([L.underSliderHeader?"text-black":"text-white","md:hidden"])},"Режим для слабовидящих",2)]),re(Q,{href:y.route("client.schedule"),class:"hover:opacity-70 py-3"},{default:je(()=>[(N(),P("svg",{class:I([L.underSliderHeader?"text-black":"text-white","w-6 h-6 duration-300 md:block hidden"]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},w[2]||(w[2]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"},null,-1)]),2)),g("span",{class:I([L.underSliderHeader?"text-black":"text-white","md:hidden"])},"Расписание",2)]),_:1},8,["href"]),g("a",at,[(N(),P("svg",{class:I([L.underSliderHeader?"text-black":"text-white","w-6 h-6 duration-300 md:block hidden"]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},w[3]||(w[3]=[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"},null,-1)]),2)),g("span",{class:I([L.underSliderHeader?"text-black":"text-white","md:hidden"])},"Поиск",2)])])])])}const lt=Be($e,[["render",st],["__scopeId","data-v-2a88d49e"]]),ct={name:"MainPageNavBar",components:{DesktopNavBar:lt,SearchModal:Me,MobileNavbar:Re,BaseIcon:Le,ClientGlobalSearch:Ge,Link:xe},props:{sections:{type:Object},sliderRef:{type:HTMLDivElement,default:!0}},data(){return{scrollPosition:0,headerFilter:!1,underSliderHeader:this.sliderRef,bvi:null,logos:{default:"/logos/white_ntspi_logo.svg",alternate:"/logos/ntspi-logo.svg"}}},methods:{isSameRoute(y){if(y===this.$page.props.ziggy.location)return!0;const w=this.$page.props.ziggy.location,L=this.$page.props.ziggy.url+"/"+y;return w===L},hasActivePage(y){if(y.pages)return y.pages.some(w=>this.isSameRoute(w.path));if(y.subSections)return y.subSections.some(w=>this.hasActivePage(w))},handleScroll(){if(typeof this.sliderRef=="object"){const y=this.sliderRef;this.underSliderHeader=y.getBoundingClientRect().bottom<50,this.scrollPosition=window.pageYOffset,this.headerFilter=this.scrollPosition>90}else this.headerFilter=!0},getCookie(y){let w=document.cookie.split(";");for(let L=0;L',2)]),2)])]),g("div",null,[re(Q,{sections:L.sections,"under-slider-header":T.underSliderHeader},null,8,["sections","under-slider-header"]),re(D,{sections:L.sections},null,8,["sections"])])])])],6),re(V,{open_id:"open-search-modal"})],64)}const _t=Be(ct,[["render",pt],["__scopeId","data-v-5f666814"]]);export{_t as M}; diff --git a/public/build/assets/MainPageNavbar-CC0e5dc9.css b/public/build/assets/MainPageNavbar-CC0e5dc9.css deleted file mode 100644 index 99f039f..0000000 --- a/public/build/assets/MainPageNavbar-CC0e5dc9.css +++ /dev/null @@ -1 +0,0 @@ -.header-filter[data-v-9905b1e8]{transition:all .3s;-webkit-backdrop-filter:saturate(180%) blur(7px);backdrop-filter:saturate(180%) blur(7px)} diff --git a/public/build/assets/MainPageNavbar-Cmz730h9.js b/public/build/assets/MainPageNavbar-Cmz730h9.js deleted file mode 100644 index 390f5e1..0000000 --- a/public/build/assets/MainPageNavbar-Cmz730h9.js +++ /dev/null @@ -1,104 +0,0 @@ -import{bU as Ae,i as qe,r as ve,o as M,c as R,b as g,n as G,h as He,F as te,d as fe,g as Ce,t as me,a as pe,w as ze,B as je}from"./app-CBssobj-.js";import{S as Fe,M as De,B as Ne,C as Pe}from"./SearchModal-BTKERLZv.js";import{_ as Te}from"./_plugin-vue_export-helper-DlAUqK2U.js";var xe={exports:{}};/*! - * Button visually impaired - v1.0.0 https://bvi.isvek.ru - * Copyright 2014-2021 Oleg Korotenko . - * Licensed MIT (https://github.com/veks/button-visually-impaired-javascript/blob/master/LICENSE.md) - */(function(B,k){(function(F,V){B.exports=V()})(Ae,function(){function F(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function V(a){for(var e=1;ea.length)&&(e=a.length);for(var t=0,n=new Array(e);t=0;--v){var l=this.tryEntries[v],E=l.completion;if(l.tryLoc==="root")return c("end");if(l.tryLoc<=this.prev){var A=_.call(l,"catchLoc"),D=_.call(l,"finallyLoc");if(A&&D){if(this.prev=0;--c){var v=this.tryEntries[c];if(v.tryLoc<=this.prev&&_.call(v,"finallyLoc")&&this.prev=0;--i){var c=this.tryEntries[i];if(c.finallyLoc===r)return this.complete(c.completion,c.afterLoc),ce(c),p}},catch:function(r){for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i];if(c.tryLoc===r){var v=c.completion;if(v.type==="throw"){var l=v.arg;ce(c)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(r,i,c){return this.delegate={iterator:de(r),resultName:i,nextLoc:c},this.method==="next"&&(this.arg=n),p}},t}({});try{regeneratorRuntime=e}catch{(typeof globalThis>"u"?"undefined":O(globalThis))==="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(a){a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(n){var s=n instanceof Node;t.appendChild(s?n:document.createTextNode(String(n)))}),this.insertBefore(t,this.firstChild)}})}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach);var q=function(a){switch(a){case"on":case"true":case"1":return!0;default:return!1}},N=function(a,e,t){for(typeof e=="string"&&(e=document.createElement(e)),a.appendChild(e).className=t;a.firstChild!==e;)e.appendChild(a.firstChild)},re=function(a){var e=document.createDocumentFragment();if(a){for(;a.firstChild;){var t=a.removeChild(a.firstChild);e.appendChild(t)}a.parentNode.replaceChild(e,a)}},Y=function(a,e){Object.keys(a).forEach(function(t){typeof e=="function"&&e(t)})},oe=function(a,e){Array.from(a).forEach(function(t){typeof e=="function"&&e(t)})},U=function(){return window.speechSynthesis},y=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=new Date,n=t.getTime();n+=864e5,t.setTime(n),document.cookie="bvi_".concat(a,"=").concat(e,";path=/;expires=").concat(t.toUTCString(),";domain=").concat(location.host)},x=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";a="bvi_".concat(a,"=");for(var e=decodeURIComponent(document.cookie),t=e.split(";"),n=0;n0&&arguments[0]!==void 0?arguments[0]:"";document.cookie="bvi_".concat(a,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(location.host)},ge={"ru-RU":{text:{fontSize:"Размер шрифта",siteColors:"Цвета сайта",images:"Изображения",speech:"Синтез речи",settings:"Настройки",regularVersionOfTheSite:"Обычная версия сайта",letterSpacing:"Межбуквенное расстояние",normal:"Стандартный",average:"Средний",big:"Большой",lineHeight:"Межстрочный интервал",font:"Шрифт",arial:"Без засечек",times:"С засечками",builtElements:"Встроенные элементы (Видео, карты и тд.)",on:"Включить",off:"Выключить",reset:"Сбросить настройки",plural_0:"пиксель",plural_1:"пекселя",plural_2:"пикселей"},voice:{fontSizePlus:"Размер шрифта увели́чен",fontSizeMinus:"Размер шрифта уме́ньшен",siteColorBlackOnWhite:"Цвет сайта черным по белому",siteColorWhiteOnBlack:"Цвет сайта белым по черному",siteColorDarkBlueOnBlue:"Цвет сайта тёмно-синим по голубому",siteColorBeigeBrown:"Цвет сайта кори́чневым по бе́жевому",siteColorGreenOnDarkBrown:"Цвет сайта зеленым по тёмно-коричневому",imagesOn:"Изображения включены",imagesOFF:"Изображения выключены",imagesGrayscale:"Изображения чёрно-белые",speechOn:"Синтез речи включён",speechOff:"Синтез речи вы́ключен",lineHeightNormal:"Межстрочный интервал стандартный",lineHeightAverage:"Межстрочный интервал средний",lineHeightBig:"Межстрочный интервал большой",LetterSpacingNormal:"Интервал между буквами стандартный",LetterSpacingAverage:"Интервал между буквами средний",LetterSpacingBig:"Интервал между буквами большой",fontArial:"Шрифт без засечек",fontTimes:"Шрифт с засечками",builtElementsOn:"Встроенные элементы включены",builtElementsOFF:"Встроенные элементы выключены",resetSettings:"Установлены настройки по умолча́нию",panelShow:"Панель открыта",panelHide:"Панель скрыта",panelOn:"Версия сайта для слабови́дящий",panelOff:"Обычная версия сайта"}},"en-US":{text:{fontSize:"Font size",siteColors:"Site colors",images:"Images",speech:"Speech synthesis",settings:"Settings",regularVersionOfTheSite:"Regular version Of The site",letterSpacing:"Letter spacing",normal:"Single",average:"One and a half",big:"Double",lineHeight:"Line spacing",font:"Font",arial:"Sans Serif - Arial",times:"Serif - Times New Roman",builtElements:"Include inline elements (Videos, maps, etc.)",on:"Enable",off:"Disabled",reset:"Reset settings",plural_0:"pixel",plural_1:"pixels",plural_2:"pixels"},voice:{fontSizePlus:"Font size increased",fontSizeMinus:"Font size reduced",siteColorBlackOnWhite:"Site color black on white",siteColorWhiteOnBlack:"Site color white on black",siteColorDarkBlueOnBlue:"Site color dark blue on cyan",siteColorBeigeBrown:"SiteColorBeigeBrown",siteColorGreenOnDarkBrown:"Site color green on dark brown",imagesOn:"Images enable",imagesOFF:"Images disabled",imagesGrayscale:"Images gray scale",speechOn:"Synthesis speech enable",speechOff:"Synthesis speech disabled",lineHeightNormal:"Line spacing single",lineHeightAverage:"Line spacing one and a half",lineHeightBig:"Line spacing double",LetterSpacingNormal:"Letter spacing single",LetterSpacingAverage:"Letter spacing one and a half",LetterSpacingBig:"Letter spacing letter double",fontArial:"Sans Serif - Arial",fontTimes:"Serif - Times New Roman",builtElementsOn:"Include inline elements are enabled",builtElementsOFF:"Include inline elements are disabled",resetSettings:"Default settings have been set",panelShow:"Panel show",panelHide:"Panel hide",panelOn:"Site version for visually impaired",panelOff:"Regular version of the site"}}},Le=function(){function a(e){J(this,a),this._config=e}return Q(a,[{key:"t",value:function(e){return ge[this._config.lang].text[e]}},{key:"v",value:function(e){return ge[this._config.lang].voice[e]}}]),a}(),be={target:".bvi-open",fontSize:16,theme:"white",images:"grayscale",letterSpacing:"normal",lineHeight:"normal",speech:!0,fontFamily:"arial",builtElements:!1,panelFixed:!0,panelHide:!1,reload:!1,lang:"ru-RU"},Be={target:"string",fontSize:"number",theme:"string",images:"(string|boolean)",letterSpacing:"string",lineHeight:"string",speech:"boolean",fontFamily:"string",builtElements:"boolean",panelFixed:"boolean",panelHide:"boolean",reload:"boolean",lang:"string"},Ee={target:"",fontSize:"(^[1-9]$|^[1-3][0-9]?$|^39$)",theme:"(white|black|blue|brown|green)",images:"(true|false|grayscale)",letterSpacing:"(normal|average|big)",lineHeight:"(normal|average|big)",speech:"(true|false)",fontFamily:"(arial|times)",builtElements:"(true|false)",panelFixed:"(true|false)",panelHide:"(true|false)",reload:"(true|false)",lang:"(ru-RU|en-US)"};return{Bvi:function(){function a(e){J(this,a),this._config=this._getConfig(e),this._elements=document.querySelectorAll(this._config.target),this._i18n=new Le({lang:this._config.lang}),this._addEventListeners(),this._init(),console.log("Bvi console: ready Button visually impaired v1.0.0")}return Q(a,[{key:"_init",value:function(){Y(this._config,function(e){x(e)===void 0&&ae("panelActive")}),q(x("panelActive"))?(this._set(),this._getPanel(),this._addEventListenersPanel(),this._images(),this._speechPlayer(),"speechSynthesis"in window&&q(x("speech"))&&setInterval(function(){if(U().pending===!1){var e=document.querySelectorAll(".bvi-speech-play"),t=document.querySelectorAll(".bvi-speech-pause"),n=document.querySelectorAll(".bvi-speech-resume"),s=document.querySelectorAll(".bvi-speech-stop"),_=function(o,w){o.forEach(function(f){return w(f)})};_(e,function(o){return o.classList.remove("disabled")}),_(t,function(o){return o.classList.add("disabled")}),_(n,function(o){return o.classList.add("disabled")}),_(s,function(o){return o.classList.add("disabled")})}},1e3)):this._remove()}},{key:"_addEventListeners",value:function(){var e=this;if(!this._elements)return!1;this._elements.forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),Y(e._config,function(s){return y(s,e._config[s])}),y("panelActive",!0),e._init(),e._speech("".concat(e._i18n.v("panelOn")))})})}},{key:"_addEventListenersPanel",value:function(){var e=this,t={fontSizeMinus:document.querySelector(".bvi-fontSize-minus"),fontSizePlus:document.querySelector(".bvi-fontSize-plus"),themeWhite:document.querySelector(".bvi-theme-white"),themeBlack:document.querySelector(".bvi-theme-black"),themeBlue:document.querySelector(".bvi-theme-blue"),themeBrown:document.querySelector(".bvi-theme-brown"),themeGreen:document.querySelector(".bvi-theme-green"),imagesOn:document.querySelector(".bvi-images-on"),imagesOff:document.querySelector(".bvi-images-off"),imagesGrayscale:document.querySelector(".bvi-images-grayscale"),speechOn:document.querySelector(".bvi-speech-on"),speechOff:document.querySelector(".bvi-speech-off"),lineHeightNormal:document.querySelector(".bvi-line-height-normal"),lineHeightAverage:document.querySelector(".bvi-line-height-average"),lineHeightBig:document.querySelector(".bvi-line-height-big"),letterSpacingNormal:document.querySelector(".bvi-letter-spacing-normal"),letterSpacingAverage:document.querySelector(".bvi-letter-spacing-average"),letterSpacingBig:document.querySelector(".bvi-letter-spacing-big"),fontFamilyArial:document.querySelector(".bvi-font-family-arial"),fontFamilyTimes:document.querySelector(".bvi-font-family-times"),builtElementsOn:document.querySelector(".bvi-built-elements-on"),builtElementsOff:document.querySelector(".bvi-built-elements-off"),reset:document.querySelector(".bvi-reset"),links:document.querySelectorAll(".bvi-link"),modal:document.querySelector(".bvi-modal")},n=function(o){var w,f=function(m,u){var d=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!d){if(Array.isArray(m)||(d=function(p,P){if(p){if(typeof p=="string")return $(p,P);var L=Object.prototype.toString.call(p).slice(8,-1);return L==="Object"&&p.constructor&&(L=p.constructor.name),L==="Map"||L==="Set"?Array.from(p):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?$(p,P):void 0}}(m))||u){d&&(m=d);var h=0,b=function(){};return{s:b,n:function(){return h>=m.length?{done:!0}:{done:!1,value:m[h++]}},e:function(p){throw p},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,z=!0,C=!1;return{s:function(){d=d.call(m)},n:function(){var p=d.next();return z=p.done,p},e:function(p){C=!0,H=p},f:function(){try{z||d.return==null||d.return()}finally{if(C)throw H}}}}(o.parentNode.children);try{for(f.s();!(w=f.n()).done;)w.value.classList.remove("active")}catch(m){f.e(m)}finally{f.f()}o.classList.add("active")},s=function(o,w){o.addEventListener("click",function(f){f.preventDefault(),typeof w=="function"&&w(f)})},_=function(){document.querySelectorAll(".bvi-link").forEach(function(o){o.classList.remove("active")}),Y(e._config,function(o){if(o==="theme"){var w=x(o);document.querySelector(".bvi-theme-".concat(w)).classList.add("active")}if(o==="images"){var f=x(o)==="grayscale"?"grayscale":q(x(o))?"on":"off";document.querySelector(".bvi-images-".concat(f)).classList.add("active")}if(o==="speech"){var m=q(x(o))?"on":"off";document.querySelector(".bvi-speech-".concat(m)).classList.add("active")}if(o==="lineHeight"){var u=x(o);document.querySelector(".bvi-line-height-".concat(u)).classList.add("active")}if(o==="letterSpacing"){var d=x(o);document.querySelector(".bvi-letter-spacing-".concat(d)).classList.add("active")}if(o==="fontFamily"){var h=x(o);document.querySelector(".bvi-font-family-".concat(h)).classList.add("active")}if(o==="builtElements"){var b=q(x(o))?"on":"off";document.querySelector(".bvi-built-elements-".concat(b)).classList.add("active")}})};_(),s(t.fontSizeMinus,function(){var o=parseFloat(x("fontSize"))-1;o!==0&&(e._setAttrDataBviBody("fontSize",o),y("fontSize",o),e._speech("".concat(e._i18n.v("fontSizeMinus"))),n(t.fontSizeMinus))}),s(t.fontSizePlus,function(){var o=parseFloat(x("fontSize"))+1;o!==40&&(e._setAttrDataBviBody("fontSize",o),y("fontSize",o),e._speech("".concat(e._i18n.v("fontSizePlus"))),n(t.fontSizePlus))}),s(t.themeWhite,function(){e._setAttrDataBviBody("theme","white"),y("theme","white"),e._speech("".concat(e._i18n.v("siteColorBlackOnWhite"))),n(t.themeWhite)}),s(t.themeBlack,function(){e._setAttrDataBviBody("theme","black"),y("theme","black"),e._speech("".concat(e._i18n.v("siteColorWhiteOnBlack"))),n(t.themeBlack)}),s(t.themeBlue,function(){e._setAttrDataBviBody("theme","blue"),y("theme","blue"),e._speech("".concat(e._i18n.v("siteColorDarkBlueOnBlue"))),n(t.themeBlue)}),s(t.themeBrown,function(){e._setAttrDataBviBody("theme","brown"),y("theme","brown"),e._speech("".concat(e._i18n.v("siteColorBeigeBrown"))),n(t.themeBrown)}),s(t.themeGreen,function(){e._setAttrDataBviBody("theme","green"),y("theme","green"),e._speech("".concat(e._i18n.v("siteColorGreenOnDarkBrown"))),n(t.themeGreen)}),s(t.imagesOn,function(){e._setAttrDataBviBody("images","true"),y("images","true"),e._speech("".concat(e._i18n.v("imagesOn"))),n(t.imagesOn)}),s(t.imagesOff,function(){e._setAttrDataBviBody("images","false"),y("images","false"),e._speech("".concat(e._i18n.v("imagesOFF"))),n(t.imagesOff)}),s(t.imagesGrayscale,function(){e._setAttrDataBviBody("images","grayscale"),y("images","grayscale"),e._speech("".concat(e._i18n.v("imagesGrayscale"))),n(t.imagesGrayscale)}),s(t.speechOn,function(){e._setAttrDataBviBody("speech","true"),y("speech","true"),e._speech("".concat(e._i18n.v("speechOn"))),n(t.speechOn),e._speechPlayer()}),s(t.speechOff,function(){e._speech("".concat(e._i18n.v("speechOff"))),e._setAttrDataBviBody("speech","false"),y("speech","false"),n(t.speechOff),e._speechPlayer()}),s(t.lineHeightNormal,function(){e._setAttrDataBviBody("lineHeight","normal"),y("lineHeight","normal"),e._speech("".concat(e._i18n.v("lineHeightNormal"))),n(t.lineHeightNormal)}),s(t.lineHeightAverage,function(){e._setAttrDataBviBody("lineHeight","average"),y("lineHeight","average"),e._speech("".concat(e._i18n.v("lineHeightAverage"))),n(t.lineHeightAverage)}),s(t.lineHeightBig,function(){e._setAttrDataBviBody("lineHeight","big"),y("lineHeight","big"),e._speech("".concat(e._i18n.v("lineHeightBig"))),n(t.lineHeightBig)}),s(t.letterSpacingNormal,function(){e._setAttrDataBviBody("letterSpacing","normal"),y("letterSpacing","normal"),e._speech("".concat(e._i18n.v("LetterSpacingNormal"))),n(t.letterSpacingNormal)}),s(t.letterSpacingAverage,function(){e._setAttrDataBviBody("letterSpacing","average"),y("letterSpacing","average"),e._speech("".concat(e._i18n.v("LetterSpacingAverage"))),n(t.letterSpacingAverage)}),s(t.letterSpacingBig,function(){e._setAttrDataBviBody("letterSpacing","big"),y("letterSpacing","big"),e._speech("".concat(e._i18n.v("LetterSpacingBig"))),n(t.letterSpacingBig)}),s(t.fontFamilyArial,function(){e._setAttrDataBviBody("fontFamily","arial"),y("fontFamily","arial"),e._speech("".concat(e._i18n.v("fontArial"))),n(t.fontFamilyArial)}),s(t.fontFamilyTimes,function(){e._setAttrDataBviBody("fontFamily","times"),y("fontFamily","times"),e._speech("".concat(e._i18n.v("fontTimes"))),n(t.fontFamilyTimes)}),s(t.builtElementsOn,function(){e._setAttrDataBviBody("builtElements","true"),y("builtElements","true"),e._speech("".concat(e._i18n.v("builtElementsOn"))),n(t.builtElementsOn)}),s(t.builtElementsOff,function(){e._setAttrDataBviBody("builtElements","false"),y("builtElements","false"),e._speech("".concat(e._i18n.v("builtElementsOFF"))),n(t.builtElementsOff)}),s(t.reset,function(){e._speech("".concat(e._i18n.v("resetSettings"))),Y(e._config,function(o){e._setAttrDataBviBody(o,e._config[o]),y(o,e._config[o]),_()})}),oe(t.links,function(o){s(o,function(w){var f=w.target.getAttribute("data-bvi");f==="close"&&(e._setAttrDataBviBody("panelActive","false"),y("panelActive","false"),e._init()),f==="modal"&&(document.body.style.overflow="hidden",document.body.classList.add("bvi-noscroll"),t.modal.classList.toggle("show")),f==="modal-close"&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",t.modal.classList.remove("show")),f==="panel-hide"&&(document.querySelector(".bvi-panel").classList.add("bvi-panel-hide"),document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-hide"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-show"),y("panelHide","true"),e._speech("".concat(e._i18n.v("panelHide")))),f==="panel-show"&&(document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-show"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-hide"),document.querySelector(".bvi-panel").classList.remove("bvi-panel-hide"),y("panelHide","false"),e._speech("".concat(e._i18n.v("panelShow"))))})}),s(t.modal,function(o){o.target.contains(t.modal)&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",t.modal.classList.remove("show"))})}},{key:"_getPanel",value:function(){var e=function(){var o=window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;q(x("panelFixed"))&&(o>200?document.querySelector(".bvi-panel").classList.add("bvi-fixed-top"):document.querySelector(".bvi-panel").classList.remove("bvi-fixed-top"))},t=q(x("panelHide"))?" bvi-panel-hide":"",n=q(x("panelHide"))?"bvi-show":" bvi-hide",s=` -
-
-
-
`).concat(this._i18n.t("fontSize"),`
- А- - А+ -
-
-
`).concat(this._i18n.t("siteColors"),`
- Ц - Ц - Ц - Ц - Ц -
-
-
`).concat(this._i18n.t("images"),`
- - - - - - - - - -
-
-
`).concat(this._i18n.t("speech"),`
- - - - - - -
-
-
`).concat(this._i18n.t("settings"),`
- - - - - `).concat(this._i18n.t("regularVersionOfTheSite"),` - - - - -
-
-
-
-
-
-
`).concat(this._i18n.t("settings"),`
- × -
- - -
-
-
-
`),_='')+'';window.addEventListener("scroll",e),document.querySelector(".bvi-body").insertAdjacentHTML("beforebegin",s),document.querySelector(".bvi-body").insertAdjacentHTML("afterbegin",_),e()}},{key:"_set",value:function(){var e=this;document.body.classList.add("bvi-active"),N(document.body,"div","bvi-body"),Y(this._config,function(t){return e._setAttrDataBviBody(t,x(t))}),oe(this._elements,function(t){return t.style.display="none"}),document.querySelectorAll("img").forEach(function(t){t.classList.contains("bvi-img")&&t.classList.remove("bvi-img")}),document.querySelectorAll("body *").forEach(function(t){t.classList.contains("bvi-background-image")&&t.classList.remove("bvi-background-image")})}},{key:"_remove",value:function(){var e=document.querySelector(".bvi-panel"),t=document.querySelector(".bvi-body"),n=document.querySelector(".bvi-link-fixed-top");e&&e.remove(),t&&re(t),n&&n.remove(),this._speech("".concat(this._i18n.v("panelOff"))),document.body.classList.remove("bvi-active"),oe(this._elements,function(s){return s.style.display=""}),q(x("reload"))&&document.location.reload(),Y(this._config,function(s){ae(s)}),this._speechPlayer(),ae("panelActive")}},{key:"_images",value:function(){document.querySelectorAll("img").forEach(function(e){e.classList.contains("bvi-no-style")||e.classList.add("bvi-img")}),document.querySelectorAll(".bvi-body *").forEach(function(e){var t=getComputedStyle(e);t.backgroundImage==="none"||t.background==="none"||e.classList.contains("bvi-no-style")||e.classList.add("bvi-background-image")})}},{key:"_getConfig",value:function(e){e=V(V({},be),e);var t={};for(var n in be)t[n]=e[n];return function(s,_,o){Object.keys(_).forEach(function(w){var f,m=_[w],u=s[w],d=u&&(f=u)&&O(f)==="object"&&f.nodeType!==void 0?"element":function(h){return h==null?"".concat(h):{}.toString.call(h).match(/\s([a-z]+)/i)[1].toLowerCase()}(u);if(!new RegExp(m).test(d))throw new TypeError('Bvi console: Опция "'.concat(w,'" предоставленный тип "').concat(d,'", ожидаемый тип "').concat(m,'".'))}),Object.keys(o).forEach(function(w){var f=o[w],m=s[w];if(!new RegExp(f).test(m))throw new TypeError('Bvi console: Опция "'.concat(w,'" параметр "').concat(m,'", ожидаемый параметр "').concat(f,'".'))})}(t,Be,Ee),t}},{key:"_setAttrDataBviBody",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";document.querySelector(".bvi-body").setAttribute("data-bvi-".concat(e),t)}},{key:"_speechPlayer",value:function(){var e=this,t=document.querySelectorAll(".bvi-speech-text"),n=document.querySelectorAll(".bvi-speech-link"),s=document.querySelectorAll(".bvi-speech");if("speechSynthesis"in window&&q(x("speech"))){if(s){t&&t.forEach(function(u){return re(u)}),n&&n.forEach(function(u){return u.remove()}),s.forEach(function(u,d){var h="bvi-speech-text-id-".concat(d+1);N(u,"div","bvi-speech-text ".concat(h)),u.insertAdjacentHTML("afterbegin",` - `)});var _=document.querySelectorAll(".bvi-speech-play"),o=document.querySelectorAll(".bvi-speech-pause"),w=document.querySelectorAll(".bvi-speech-resume"),f=document.querySelectorAll(".bvi-speech-stop"),m=function(u,d){u.forEach(function(h){h.addEventListener("click",function(b){if(b.preventDefault(),typeof d=="function")return d(h,b)},!1)})};m(_,function(u,d){var h=d.target,b=h.parentNode.nextElementSibling,H=d.target.closest(".bvi-speech-link"),z=document.querySelectorAll(".bvi-speech-play"),C=document.querySelectorAll(".bvi-speech-pause"),p=document.querySelectorAll(".bvi-speech-resume"),P=document.querySelectorAll(".bvi-speech-stop");e._speech(b.textContent,b,!0),z.forEach(function(L){return L.classList.remove("disabled")}),C.forEach(function(L){return L.classList.add("disabled")}),p.forEach(function(L){return L.classList.add("disabled")}),P.forEach(function(L){return L.classList.add("disabled")}),h.classList.add("disabled"),H.querySelector(".bvi-speech-pause").classList.remove("disabled"),H.querySelector(".bvi-speech-stop").classList.remove("disabled")}),m(o,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-resume").classList.remove("disabled"),U().pause()}),m(w,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.remove("disabled"),U().resume()}),m(f,function(u,d){var h=d.target,b=d.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.add("disabled"),b.querySelector(".bvi-speech-play").classList.remove("disabled"),U().cancel()})}}else t&&t.forEach(function(u){return re(u)}),n&&n.forEach(function(u){return u.remove()})}},{key:"_speech",value:function(e,t){var n=this,s=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if("speechSynthesis"in window&&q(x("speech"))){U().cancel();for(var _=function(d,h){d=String(d),h=Number(h)>>>0;var b=d.slice(0,h+1).search(/\S+$/),H=d.slice(h).search(/\s/);return H<0?d.slice(b):d.slice(b,H+h)},o=120,w=new RegExp("^[\\s\\S]{"+Math.floor(o/2)+","+o+"}[.!?,]{1}|^[\\s\\S]{1,"+o+"}$|^[\\s\\S]{1,"+o+"} "),f=[],m=e,u=U().getVoices();m.length>0;)f.push(m.match(w)[0]),m=m.substring(f[f.length-1].length);f.forEach(function(d){var h=new SpeechSynthesisUtterance(d.trim());h.volume=1,h.rate=1,h.pitch=1,h.lang=n._config.lang;for(var b=0;b]+>)*$1(<[^>]+>)*)"),P=new RegExp("("+p+")","gi");C=(C=C.replace(P,"$1")).replace(/([^<>]*)((<[^>]+>)+)([^<>]*<\/mark>)/,"$1$2$4"),t.innerHTML=C},h.onend=function(H){t.classList.remove("bvi-highlighting");var z=t.textContent;z=z.replace(/($1<\/mark>)/,"$1"),t.innerHTML=z}),U().speak(h)})}}}]),a}()}})})(xe);var Me=xe.exports;const Re={name:"MainPageNavBar",components:{SearchModal:Fe,MobileNavbar:De,BaseIcon:Ne,ClientGlobalSearch:Pe,Link:qe},props:{sections:{type:Object},sliderRef:{type:HTMLDivElement,default:!0}},data(){return{scrollPosition:0,headerFilter:!1,underSliderHeader:this.sliderRef,bvi:null}},methods:{isSameRoute(B){if(B===this.$page.props.ziggy.location)return!0;const k=this.$page.props.ziggy.location,F=this.$page.props.ziggy.url+"/"+B;return k===F},hasActivePage(B){if(B.pages)return B.pages.some(k=>this.isSameRoute(k.path));if(B.subSections)return B.subSections.some(k=>this.hasActivePage(k))},handleScroll(){if(typeof this.sliderRef=="object"){const B=this.sliderRef;this.underSliderHeader=B.getBoundingClientRect().bottom<50,this.scrollPosition=window.pageYOffset,this.headerFilter=this.scrollPosition>90}else this.headerFilter=!0},getCookie(B){let k=document.cookie.split(";");for(let F=0;F