106 lines
48 KiB
JavaScript
106 lines
48 KiB
JavaScript
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 <bvi@isvek.ru>.
|
||
* 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;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?L(Object(t),!0).forEach(function(n){V(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function T(a){return(T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function W(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function Q(a,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function D(a,e,t){return e&&Q(a.prototype,e),a}function V(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function M(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=a[t];return n}(function(a){var e=function(t){var n,s=Object.prototype,x=s.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},S=o.iterator||"@@iterator",f=o.asyncIterator||"@@asyncIterator",m=o.toStringTag||"@@toStringTag";function u(r,i,c){return Object.defineProperty(r,i,{value:c,enumerable:!0,configurable:!0,writable:!0}),r[i]}try{u({},"")}catch{u=function(i,c,v){return i[c]=v}}function d(r,i,c,v){var l=i&&i.prototype instanceof R?i:R,A=Object.create(l.prototype),O=new de(v||[]);return A._invoke=function(F,U,k){var z=b;return function(G,we){if(z===C)throw new Error("Generator is already running");if(z===H){if(G==="throw")throw we;return Se()}for(k.method=G,k.arg=we;;){var ke=k.delegate;if(ke){var ve=_e(ke,k);if(ve){if(ve===p)continue;return ve}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(z===b)throw z=H,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);z=C;var X=h(F,U,k);if(X.type==="normal"){if(z=k.done?H:q,X.arg===p)continue;return{value:X.arg,done:k.done}}X.type==="throw"&&(z=H,k.method="throw",k.arg=X.arg)}}}(r,c,O),A}function h(r,i,c){try{return{type:"normal",arg:r.call(i,c)}}catch(v){return{type:"throw",arg:v}}}t.wrap=d;var b="suspendedStart",q="suspendedYield",C="executing",H="completed",p={};function R(){}function E(){}function Z(){}var le={};u(le,S,function(){return this});var ce=Object.getPrototypeOf,ee=ce&&ce(ce(he([])));ee&&ee!==s&&x.call(ee,S)&&(le=ee);var K=Z.prototype=R.prototype=Object.create(le);function ye(r){["next","throw","return"].forEach(function(i){u(r,i,function(c){return this._invoke(i,c)})})}function te(r,i){function c(l,A,O,F){var U=h(r[l],r,A);if(U.type!=="throw"){var k=U.arg,z=k.value;return z&&T(z)==="object"&&x.call(z,"__await")?i.resolve(z.__await).then(function(G){c("next",G,O,F)},function(G){c("throw",G,O,F)}):i.resolve(z).then(function(G){k.value=G,O(k)},function(G){return c("throw",G,O,F)})}F(U.arg)}var v;this._invoke=function(l,A){function O(){return new i(function(F,U){c(l,A,F,U)})}return v=v?v.then(O,O):O()}}function _e(r,i){var c=r.iterator[i.method];if(c===n){if(i.delegate=null,i.method==="throw"){if(r.iterator.return&&(i.method="return",i.arg=n,_e(r,i),i.method==="throw"))return p;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var v=h(c,r.iterator,i.arg);if(v.type==="throw")return i.method="throw",i.arg=v.arg,i.delegate=null,p;var l=v.arg;return l?l.done?(i[r.resultName]=l.value,i.next=r.nextLoc,i.method!=="return"&&(i.method="next",i.arg=n),i.delegate=null,p):l:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,p)}function He(r){var i={tryLoc:r[0]};1 in r&&(i.catchLoc=r[1]),2 in r&&(i.finallyLoc=r[2],i.afterLoc=r[3]),this.tryEntries.push(i)}function ue(r){var i=r.completion||{};i.type="normal",delete i.arg,r.completion=i}function de(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(He,this),this.reset(!0)}function he(r){if(r){var i=r[S];if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var c=-1,v=function l(){for(;++c<r.length;)if(x.call(r,c))return l.value=r[c],l.done=!1,l;return l.value=n,l.done=!0,l};return v.next=v}}return{next:Se}}function Se(){return{value:n,done:!0}}return E.prototype=Z,u(K,"constructor",Z),u(Z,"constructor",E),E.displayName=u(Z,m,"GeneratorFunction"),t.isGeneratorFunction=function(r){var i=typeof r=="function"&&r.constructor;return!!i&&(i===E||(i.displayName||i.name)==="GeneratorFunction")},t.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,Z):(r.__proto__=Z,u(r,m,"GeneratorFunction")),r.prototype=Object.create(K),r},t.awrap=function(r){return{__await:r}},ye(te.prototype),u(te.prototype,f,function(){return this}),t.AsyncIterator=te,t.async=function(r,i,c,v,l){l===void 0&&(l=Promise);var A=new te(d(r,i,c,v),l);return t.isGeneratorFunction(i)?A:A.next().then(function(O){return O.done?O.value:A.next()})},ye(K),u(K,m,"Generator"),u(K,S,function(){return this}),u(K,"toString",function(){return"[object Generator]"}),t.keys=function(r){var i=[];for(var c in r)i.push(c);return i.reverse(),function v(){for(;i.length;){var l=i.pop();if(l in r)return v.value=l,v.done=!1,v}return v.done=!0,v}},t.values=he,de.prototype={constructor:de,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(ue),!r)for(var i in this)i.charAt(0)==="t"&&x.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=n)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if(r.type==="throw")throw r.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function c(U,k){return A.type="throw",A.arg=r,i.next=U,k&&(i.method="next",i.arg=n),!!k}for(var v=this.tryEntries.length-1;v>=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<l.catchLoc)return c(l.catchLoc,!0);if(this.prev<l.finallyLoc)return c(l.finallyLoc)}else if(O){if(this.prev<l.catchLoc)return c(l.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return c(l.finallyLoc)}}}},abrupt:function(r,i){for(var c=this.tryEntries.length-1;c>=0;--c){var v=this.tryEntries[c];if(v.tryLoc<=this.prev&&x.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var l=v;break}}l&&(r==="break"||r==="continue")&&l.tryLoc<=i&&i<=l.finallyLoc&&(l=null);var A=l?l.completion:{};return A.type=r,A.arg=i,l?(this.method="next",this.next=l.finallyLoc,p):this.complete(A)},complete:function(r,i){if(r.type==="throw")throw r.arg;return r.type==="break"||r.type==="continue"?this.next=r.arg:r.type==="return"?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):r.type==="normal"&&i&&(this.next=i),p},finish:function(r){for(var i=this.tryEntries.length-1;i>=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;n<t.length;n++){var s=t[n].trim();if(s.indexOf(a)!==-1)return s.substring(a.length,s.length)}},se=function(){var a=arguments.length>0&&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=`
|
||
<div class='bvi-panel`.concat(t,`'>
|
||
<div class="bvi-blocks bvi-block-center">
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("fontSize"),`</div>
|
||
<a class="bvi-link bvi-fontSize-minus">А-</a>
|
||
<a class="bvi-link bvi-fontSize-plus">А+</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("siteColors"),`</div>
|
||
<a href="#" class="bvi-link bvi-theme-white">Ц</a>
|
||
<a href="#" class="bvi-link bvi-theme-black">Ц</a>
|
||
<a href="#" class="bvi-link bvi-theme-blue">Ц</a>
|
||
<a href="#" class="bvi-link bvi-theme-brown">Ц</a>
|
||
<a href="#" class="bvi-link bvi-theme-green">Ц</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("images"),`</div>
|
||
<a href="#" class="bvi-link bvi-images-on">
|
||
<i class="bvi-images bvi-images-image"></i>
|
||
</a>
|
||
<a href="#" class="bvi-link bvi-images-off">
|
||
<i class="bvi-images bvi-images-minus-circle"></i>
|
||
</a>
|
||
<a href="#" class="bvi-link bvi-images-grayscale">
|
||
<i class="bvi-images bvi-images-adjust"></i>
|
||
</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("speech"),`</div>
|
||
<a href="#" class="bvi-link bvi-speech-off">
|
||
<i class="bvi-images bvi-images-volume-off"></i>
|
||
</a>
|
||
<a href="#" class="bvi-link bvi-speech-on">
|
||
<i class="bvi-images bvi-images-volume-up"></i>
|
||
</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("settings"),`</div>
|
||
<a href="#" class="bvi-link" data-bvi="modal">
|
||
<i class="bvi-images bvi-images-cog"></i>
|
||
</a>
|
||
<a href="#" class="bvi-link" data-bvi="close">
|
||
`).concat(this._i18n.t("regularVersionOfTheSite"),`
|
||
</a>
|
||
<a href="#" class="bvi-link" data-bvi="panel-hide">
|
||
<i class="bvi-images bvi-images-minus"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
<div class="bvi-modal">
|
||
<div class="bvi-modal-dialog">
|
||
<div class="bvi-modal-content">
|
||
<div class="bvi-modal-header">
|
||
<div class="bvi-modal-title">`).concat(this._i18n.t("settings"),`</div>
|
||
<a href="#" class="bvi-link bvi-modal-close" data-bvi="modal-close">×</a>
|
||
</div>
|
||
<div class="bvi-modal-body">
|
||
<div class="bvi-blocks bvi-block-center">
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("letterSpacing"),`</div>
|
||
<a href="#" class="bvi-link bvi-letter-spacing-normal">`).concat(this._i18n.t("normal"),`</a>
|
||
<a href="#" class="bvi-link bvi-letter-spacing-average">`).concat(this._i18n.t("average"),`</a>
|
||
<a href="#" class="bvi-link bvi-letter-spacing-big">`).concat(this._i18n.t("big"),`</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("lineHeight"),`</div>
|
||
<a href="#" class="bvi-link bvi-line-height-normal">`).concat(this._i18n.t("normal"),`</a>
|
||
<a href="#" class="bvi-link bvi-line-height-average">`).concat(this._i18n.t("average"),`</a>
|
||
<a href="#" class="bvi-link bvi-line-height-big">`).concat(this._i18n.t("big"),`</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("font"),`</div>
|
||
<a href="#" class="bvi-link bvi-font-family-arial">`).concat(this._i18n.t("arial"),`</a>
|
||
<a href="#" class="bvi-link bvi-font-family-times">`).concat(this._i18n.t("times"),`</a>
|
||
</div>
|
||
<div class="bvi-block">
|
||
<div class="bvi-block-title">`).concat(this._i18n.t("builtElements"),`</div>
|
||
<a href="#" class="bvi-link bvi-built-elements-on">`).concat(this._i18n.t("on"),`</a>
|
||
<a href="#" class="bvi-link bvi-built-elements-off">`).concat(this._i18n.t("off"),`</a>
|
||
</div>
|
||
</div>
|
||
<div class="bvi-blocks bvi-block-center">
|
||
<a href="https://bvi.isvek.ru" class="bvi-copyright" target="_blank">bvi.isvek.ru</a>
|
||
</div>
|
||
</div>
|
||
<div class="bvi-modal-footer">
|
||
<a href="#" class="bvi-link bvi-reset">`).concat(this._i18n.t("reset"),`</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>`),x='<a href="#" class="bvi-link bvi-link-fixed-top bvi-no-styles '.concat(n,'" data-bvi="panel-show">')+'<i class="bvi-images bvi-images-eye bvi-images-size-32 bvi-no-styles"></i></a>';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",`
|
||
<div class="bvi-speech-link">
|
||
<a href="#" class="bvi-link bvi-speech-play" title="Воспроизвести">Воспроизвести</a>
|
||
<a href="#" class="bvi-link bvi-speech-pause disabled" title="Пауза">Пауза</a>
|
||
<a href="#" class="bvi-link bvi-speech-resume disabled" title="Продолжить">Продолжить</a>
|
||
<a href="#" class="bvi-link bvi-speech-stop disabled" title="Стоп">Стоп</i></a>
|
||
</div>`)});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<u.length;b++)n._config.lang==="ru-RU"&&u[b].name==="Microsoft Pavel - Russian (Russia)"&&(h.voice=u[b]),n._config.lang==="en-US"&&u[b].name==="Microsoft Pavel - English (English)"&&(h.voice=u[b]);s&&(h.onboundary=function(q){t.classList.add("bvi-highlighting");var C=x(q.utterance.text,q.charIndex),H=t.textContent,p=C.replace(/(\s+)/,"((<[^>]+>)*$1(<[^>]+>)*)"),R=new RegExp("("+p+")","gi");H=(H=H.replace(R,"<mark>$1</mark>")).replace(/(<mark>[^<>]*)((<[^>]+>)+)([^<>]*<\/mark>)/,"$1</mark>$2<mark>$4"),t.innerHTML=H},h.onend=function(q){t.classList.remove("bvi-highlighting");var C=t.textContent;C=C.replace(/(<mark>$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<w.length;L++){let $=w[L].trim();if($.startsWith(y+"="))return $.substring(y.length+1)}return null}},mounted(){console.log(),window.addEventListener("scroll",this.handleScroll),window.addEventListener("scroll",this.checkSlider),this.getCookie("bvi_panelActive")===null&&(this.bvi=new Ie.Bvi({target:".className",fontSize:24,theme:"black",speech:!1,reload:!0}))},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("scroll",this.checkSlider)},computed:{currentLogo(){return this.underSliderHeader?this.logos.alternate:this.logos.default}}},ut={class:"max-w-screen-xl w-full mx-auto px-4 py-3","aria-label":"Global"},dt={class:"relative lg:flex md:items-center md:justify-between"},ht={class:"flex items-center justify-between"},vt={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"},ft=["src"],mt={class:"lg:hidden"};function pt(y,w,L,$,T,W){const Q=ie("DesktopNavBar"),D=ie("MobileNavbar"),V=ie("SearchModal");return N(),P(ne,null,[g("header",{style:Pe(T.underSliderHeader?"background: hsla(0,0%,100%,.6)":""),class:I([{"header-filter":T.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",ut,[g("div",dt,[g("div",ht,[g("a",vt,[g("img",{class:"max-w-[300px] duration-300",src:W.currentLogo,alt:"Логотип"},null,8,ft)]),g("div",mt,[g("button",{class:I([T.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",id:"open-mobile-btn","aria-haspopup":"dialog","aria-expanded":"false","aria-controls":"open-mobile-nav","data-hs-overlay":"#open-mobile-nav"},w[0]||(w[0]=[Ne('<svg class="hs-collapse-open:hidden flex-shrink-0 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" data-v-5f666814><line x1="3" x2="21" y1="6" y2="6" data-v-5f666814></line><line x1="3" x2="21" y1="12" y2="12" data-v-5f666814></line><line x1="3" x2="21" y1="18" y2="18" data-v-5f666814></line></svg><svg class="hs-collapse-open:block hidden flex-shrink-0 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" data-v-5f666814><path d="M18 6 6 18" data-v-5f666814></path><path d="m6 6 12 12" data-v-5f666814></path></svg>',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};
|