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"),`
`),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};