/*! YOOtheme Pro v5.0.24 | https://yootheme.com */

(function(t,e){"use strict";const n={computed:{section:{get:()=>e.$('.tm-header ~ [class*="uk-section"], .tm-header ~ * > [class*="uk-section"]'),observe:()=>".tm-page"}},watch:{section(){this.$emit()}}},h={mixins:[n],computed:{anchor:{get(){return this.section&&!e.matches(this.section,"[tm-header-transparent-noplaceholder]")&&(e.$(".uk-grid,.uk-panel:not(.uk-container)",this.section)||e.$(".tm-main > *"))}}},observe:[{observe:e.observeResize,handler(){this.$emit()}}],watch:{anchor(){this.$emit()},section(s,o){o&&this.$update()}},update:[{read(){return{height:this.$el.offsetHeight}},write({height:s}){if(!s||!this.anchor){e.remove(this.placeholder);return}this.placeholder||(this.placeholder=e.$('<div class="tm-header-placeholder uk-margin-remove-adjacent">')),this.anchor.previousElementSibling!==this.placeholder&&e.before(this.anchor,this.placeholder),e.css(this.placeholder,{height:s})}}]},a={mixins:[n],update:{read(){return this.section&&e.hasAttr(this.$el,"tm-section-start")&&{start:this.section.offsetHeight<=e.toPx("100vh")?e.offset(this.section).bottom:e.offset(this.section).top+300}},events:["resize"]}};if(t.component("Header",h),t.mixin(a,"sticky"),e.isRtl){const s={created(){this.$props.pos=e.swap(this.$props.pos,"left","right")}};t.mixin(s,"drop"),t.mixin(s,"tooltip")}e.once(document,"uikit:init",()=>{var o,r;const s=((r=(o=window.yootheme)==null?void 0:o.theme)==null?void 0:r.i18n)||{};for(const c in s)t.mixin({i18n:s[c]},c)})})(UIkit,UIkit.util);
