import{bJ as qe,i as He,r as fe,o as N,c as T,b as g,n as M,F as ie,d as me,g as Ce,t as pe,a as ge,w as ze,B as Fe,z as je,A as De,h as Pe}from"./app-DmJ8GS-7.js";import{C as Ne}from"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";import{S as Te,M as Me,B as Ge}from"./ClientFooterDown-D8UuGhzW.js";import{_ as Re}from"./_plugin-vue_export-helper-DlAUqK2U.js";var Le={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(L,R){(function(I,J){L.exports=J()})(qe,function(){function I(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 J(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],B=l.completion;if(l.tryLoc==="root")return c("end");if(l.tryLoc<=this.prev){var O=S.call(l,"catchLoc"),F=S.call(l,"finallyLoc");if(O&&F){if(this.prev=0;--c){var v=this.tryEntries[c];if(v.tryLoc<=this.prev&&S.call(v,"finallyLoc")&&this.prev=0;--i){var c=this.tryEntries[i];if(c.finallyLoc===r)return this.complete(c.completion,c.afterLoc),de(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;de(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":E(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 A=function(a){switch(a){case"on":case"true":case"1":return!0;default:return!1}},j=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)}},Y=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)})},V=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)},k=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)},be={"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"}}},Be=function(){function a(e){Z(this,a),this._config=e}return X(a,[{key:"t",value:function(e){return be[this._config.lang].text[e]}},{key:"v",value:function(e){return be[this._config.lang].voice[e]}}]),a}(),ye={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"},Ee={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"},Oe={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){Z(this,a),this._config=this._getConfig(e),this._elements=document.querySelectorAll(this._config.target),this._i18n=new Be({lang:this._config.lang}),this._addEventListeners(),this._init(),console.log("Bvi console: ready Button visually impaired v1.0.0")}return X(a,[{key:"_init",value:function(){Y(this._config,function(e){k(e)===void 0&&se("panelActive")}),A(k("panelActive"))?(this._set(),this._getPanel(),this._addEventListenersPanel(),this._images(),this._speechPlayer(),"speechSynthesis"in window&&A(k("speech"))&&setInterval(function(){if(V().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"),S=function(o,_){o.forEach(function(f){return _(f)})};S(e,function(o){return o.classList.remove("disabled")}),S(t,function(o){return o.classList.add("disabled")}),S(n,function(o){return o.classList.add("disabled")}),S(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 _,f=function(m,d){var u=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!u){if(Array.isArray(m)||(u=function(p,D){if(p){if(typeof p=="string")return W(p,D);var x=Object.prototype.toString.call(p).slice(8,-1);return x==="Object"&&p.constructor&&(x=p.constructor.name),x==="Map"||x==="Set"?Array.from(p):x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?W(p,D):void 0}}(m))||d){u&&(m=u);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(){u=u.call(m)},n:function(){var p=u.next();return C=p.done,p},e:function(p){H=!0,q=p},f:function(){try{C||u.return==null||u.return()}finally{if(H)throw q}}}}(o.parentNode.children);try{for(f.s();!(_=f.n()).done;)_.value.classList.remove("active")}catch(m){f.e(m)}finally{f.f()}o.classList.add("active")},s=function(o,_){o.addEventListener("click",function(f){f.preventDefault(),typeof _=="function"&&_(f)})},S=function(){document.querySelectorAll(".bvi-link").forEach(function(o){o.classList.remove("active")}),Y(e._config,function(o){if(o==="theme"){var _=k(o);document.querySelector(".bvi-theme-".concat(_)).classList.add("active")}if(o==="images"){var f=k(o)==="grayscale"?"grayscale":A(k(o))?"on":"off";document.querySelector(".bvi-images-".concat(f)).classList.add("active")}if(o==="speech"){var m=A(k(o))?"on":"off";document.querySelector(".bvi-speech-".concat(m)).classList.add("active")}if(o==="lineHeight"){var d=k(o);document.querySelector(".bvi-line-height-".concat(d)).classList.add("active")}if(o==="letterSpacing"){var u=k(o);document.querySelector(".bvi-letter-spacing-".concat(u)).classList.add("active")}if(o==="fontFamily"){var h=k(o);document.querySelector(".bvi-font-family-".concat(h)).classList.add("active")}if(o==="builtElements"){var b=A(k(o))?"on":"off";document.querySelector(".bvi-built-elements-".concat(b)).classList.add("active")}})};S(),s(t.fontSizeMinus,function(){var o=parseFloat(k("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(k("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]),S()})}),ae(t.links,function(o){s(o,function(_){var f=_.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;A(k("panelFixed"))&&(o>200?document.querySelector(".bvi-panel").classList.add("bvi-fixed-top"):document.querySelector(".bvi-panel").classList.remove("bvi-fixed-top"))},t=A(k("panelHide"))?" bvi-panel-hide":"",n=A(k("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"),`
`),S='')+'';window.addEventListener("scroll",e),document.querySelector(".bvi-body").insertAdjacentHTML("beforebegin",s),document.querySelector(".bvi-body").insertAdjacentHTML("afterbegin",S),e()}},{key:"_set",value:function(){var e=this;document.body.classList.add("bvi-active"),j(document.body,"div","bvi-body"),Y(this._config,function(t){return e._setAttrDataBviBody(t,k(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=""}),A(k("reload"))&&document.location.reload(),Y(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=J(J({},ye),e);var t={};for(var n in ye)t[n]=e[n];return function(s,S,o){Object.keys(S).forEach(function(_){var f,m=S[_],d=s[_],u=d&&(f=d)&&E(f)==="object"&&f.nodeType!==void 0?"element":function(h){return h==null?"".concat(h):{}.toString.call(h).match(/\s([a-z]+)/i)[1].toLowerCase()}(d);if(!new RegExp(m).test(u))throw new TypeError('Bvi console: Опция "'.concat(_,'" предоставленный тип "').concat(u,'", ожидаемый тип "').concat(m,'".'))}),Object.keys(o).forEach(function(_){var f=o[_],m=s[_];if(!new RegExp(f).test(m))throw new TypeError('Bvi console: Опция "'.concat(_,'" параметр "').concat(m,'", ожидаемый параметр "').concat(f,'".'))})}(t,Ee,Oe),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&&A(k("speech"))){if(s){t&&t.forEach(function(d){return oe(d)}),n&&n.forEach(function(d){return d.remove()}),s.forEach(function(d,u){var h="bvi-speech-text-id-".concat(u+1);j(d,"div","bvi-speech-text ".concat(h)),d.insertAdjacentHTML("afterbegin",` `)});var S=document.querySelectorAll(".bvi-speech-play"),o=document.querySelectorAll(".bvi-speech-pause"),_=document.querySelectorAll(".bvi-speech-resume"),f=document.querySelectorAll(".bvi-speech-stop"),m=function(d,u){d.forEach(function(h){h.addEventListener("click",function(b){if(b.preventDefault(),typeof u=="function")return u(h,b)},!1)})};m(S,function(d,u){var h=u.target,b=h.parentNode.nextElementSibling,q=u.target.closest(".bvi-speech-link"),C=document.querySelectorAll(".bvi-speech-play"),H=document.querySelectorAll(".bvi-speech-pause"),p=document.querySelectorAll(".bvi-speech-resume"),D=document.querySelectorAll(".bvi-speech-stop");e._speech(b.textContent,b,!0),C.forEach(function(x){return x.classList.remove("disabled")}),H.forEach(function(x){return x.classList.add("disabled")}),p.forEach(function(x){return x.classList.add("disabled")}),D.forEach(function(x){return x.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(d,u){var h=u.target,b=u.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-resume").classList.remove("disabled"),V().pause()}),m(_,function(d,u){var h=u.target,b=u.target.closest(".bvi-speech-link");h.classList.add("disabled"),b.querySelector(".bvi-speech-pause").classList.remove("disabled"),V().resume()}),m(f,function(d,u){var h=u.target,b=u.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"),V().cancel()})}}else t&&t.forEach(function(d){return oe(d)}),n&&n.forEach(function(d){return d.remove()})}},{key:"_speech",value:function(e,t){var n=this,s=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if("speechSynthesis"in window&&A(k("speech"))){V().cancel();for(var S=function(u,h){u=String(u),h=Number(h)>>>0;var b=u.slice(0,h+1).search(/\S+$/),q=u.slice(h).search(/\s/);return q<0?u.slice(b):u.slice(b,q+h)},o=120,_=new RegExp("^[\\s\\S]{"+Math.floor(o/2)+","+o+"}[.!?,]{1}|^[\\s\\S]{1,"+o+"}$|^[\\s\\S]{1,"+o+"} "),f=[],m=e,d=V().getVoices();m.length>0;)f.push(m.match(_)[0]),m=m.substring(f[f.length-1].length);f.forEach(function(u){var h=new SpeechSynthesisUtterance(u.trim());h.volume=1,h.rate=1,h.pitch=1,h.lang=n._config.lang;for(var b=0;b]+>)*$1(<[^>]+>)*)"),D=new RegExp("("+p+")","gi");H=(H=H.replace(D,"$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}),V().speak(h)})}}}]),a}()}})})(Le);var Ie=Le.exports;const Ve={name:"MainPageNavBar",props:{sections:{type:Object}},data(){return{scrollPosition:0,headerFilter:!1,underSliderHeader:!1}},components:{SearchModal:Te,MobileNavbar:Me,BaseIcon:Ge,ClientGlobalSearch:Ne,Link:He},methods:{isSameRoute(L){if(L===this.$page.props.ziggy.location)return!0;const R=this.$page.props.ziggy.location,I=this.$page.props.ziggy.url+"/"+L;return R===I?(console.log(L),!0):!1},hasActivePage(L){if(L.pages)return L.pages.some(R=>this.isSameRoute(R.path));if(L.subSections)return L.subSections.some(R=>this.hasActivePage(R))},handleScroll(){this.underSliderHeader=window.pageYOffset>window.innerHeight*100/100-50,this.scrollPosition=window.pageYOffset,this.headerFilter=this.scrollPosition>90},toggleHeaderFilter(){this.scrollPosition<90&&(this.headerFilter=!this.headerFilter)}},mounted(){window.addEventListener("scroll",this.handleScroll),window.addEventListener("scroll",this.checkSlider),new Ie.Bvi({target:".className",fontSize:24,theme:"black",speech:!1})},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("scroll",this.checkSlider)}},Q=L=>(je("data-v-9053d4b2"),L=L(),De(),L),Ue={class:"max-w-screen-xl w-full mx-auto px-4 py-3","aria-label":"Global"},We={class:"relative lg:flex md:items-center md:justify-between"},Ye={class:"flex items-center justify-between"},$e={class:"flex-none text-xl font-semibold dark:text-white dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600",href:"/","aria-label":"Brand"},Je=["src"],Ze={class:"lg:hidden"},Ke=Pe('',2),Qe=[Ke],Xe={id:"navbar-collapse-with-animation",class:"hs-collapse hidden overflow-hidden transition-all duration-300 basis-full grow lg:block"},et={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 dark:[&::-webkit-scrollbar-track]:bg-slate-700 dark:[&::-webkit-scrollbar-thumb]:bg-slate-500"},tt={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 dark:divide-gray-700"},it=Q(()=>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)),nt={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"},rt={class:"grid px-5 grid-cols-1 md:grid-cols-10"},ot={class:"flex flex-col py-4 px-3 md:px-6"},at={class:"space-y-4"},st={class:"flex items-center mb-2 gap-x-2"},lt={class:"text-xs font-bold uppercase text-gray-800 dark:text-gray-200"},ct=["href"],dt={class:"grow"},ut={href:"#",class:"hover:opacity-70 py-3 className"},ht=Q(()=>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)),vt=Q(()=>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)),ft=[ht,vt],mt=Q(()=>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)),pt=[mt],gt={class:"hover:opacity-70 py-3 cursor-pointer","data-hs-overlay":"#open-search-modal"},bt=Q(()=>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)),yt=[bt];function _t(L,R,I,J,E,Z){const ne=fe("Link"),X=fe("MobileNavbar"),re=fe("SearchModal");return N(),T(ie,null,[g("header",{style:Fe(E.underSliderHeader?"background: hsla(0,0%,100%,.6)":""),class:M([{"header-filter":E.headerFilter},"flex duration-500 fixed top-0 left-0 right-0 flex-wrap md:justify-start md:flex-nowrap z-50 w-full text-sm py-3 md:py-0"])},[g("nav",Ue,[g("div",We,[g("div",Ye,[g("a",$e,[g("img",{class:"max-w-[300px]",src:E.underSliderHeader?"/logos/ntspi-logo.svg":"/logos/white_ntspi_logo.svg",alt:""},null,8,Je)]),g("div",Ze,[g("button",{class:M([E.underSliderHeader?"text-black":"text-white","flex justify-center items-center w-9 h-9 text-sm font-semibold rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-gray-800 disabled:opacity-50 disabled:pointer-events-none"]),type:"button","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"open-mobile-nav","data-hs-overlay":"#open-mobile-nav"},Qe,2)])]),g("div",Xe,[g("div",et,[g("div",tt,[(N(!0),T(ie,null,me(this.sections.data,W=>(N(),T("div",{key:W.id,class:"hs-dropdown [--strategy:static] md:[--strategy:absolute] [--adaptive:none] md:[--trigger:hover] py-3 md:py-6"},[g("button",{type:"button",class:M([E.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"])},[Ce(pe(W.title)+" ",1),it],2),g("div",nt,[g("div",rt,[(N(!0),T(ie,null,me(W.subSections,A=>(N(),T("div",{key:A.id,class:"md:col-span-3"},[g("div",ot,[g("div",at,[g("div",st,[g("span",lt,pe(A.title),1)]),(N(!0),T(ie,null,me(A.pages,j=>(N(),T("a",{key:j.id,class:M([{"text-[#135aae] hover:text-gray-800 font-semibold ":Z.isSameRoute(j.path),"text-gray-800 hover:text-[#2C6288]":!Z.isSameRoute(j.path)},"flex items-center gap-x-2"]),href:j.is_url?j.path:L.route("page.view",j.path)+"/"},[g("div",dt,[g("p",null,pe(j.title),1)])],10,ct))),128))])])]))),128))])])]))),128)),g("a",ut,[(N(),T("svg",{class:M([E.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"},ft,2)),g("span",{class:M([E.underSliderHeader?"text-black":"text-white","md:hidden"])},"Режим для слабовидящих",2)]),ge(ne,{href:L.route("client.schedule"),class:"hover:opacity-70 py-3"},{default:ze(()=>[(N(),T("svg",{class:M([E.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"},pt,2)),g("span",{class:M([E.underSliderHeader?"text-black":"text-white","md:hidden"])},"Расписание",2)]),_:1},8,["href"]),g("a",gt,[(N(),T("svg",{class:M([E.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"},yt,2)),g("span",{class:M([E.underSliderHeader?"text-black":"text-white","md:hidden"])},"Поиск",2)])])])])])])],6),ge(X,{sections:I.sections},null,8,["sections"]),ge(re,{open_id:"open-search-modal"})],64)}const Lt=Re(Ve,[["render",_t],["__scopeId","data-v-9053d4b2"]]);export{Lt as M};