This commit is contained in:
apuc committed 2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 files changed
+3285853

No files matched your search

@@ -0,0 +1 @@
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s=t.document,o=(s.documentElement,t.setTimeout),a=t.clearTimeout,r=i._N2,h=(t.requestAnimationFrame,function(t,i=null,n=null,o=null){const a=s.createElement(t);return i&&("string"==typeof i?g(a,i):v(a,i)),n&&l(a,n),o&&d(a,o),a}),c=function(t,i,n){return h("div",t,i,n)},u=(Object.assign,function(t,i,n){t.setAttribute(i,n)}),l=function(t,i){for(var n in i)u(t,n,i[n])},f=function(t,i){t.removeAttribute(i)},p=function(t,i,n){t.dataset[i]=n},d=function(t,i){for(let n in i)p(t,n,i[n])},m=function(t,i,n){t.style.setProperty(i,n)},b=function(t,i){for(var n in i)m(t,n,i[n])},g=function(t,i){t.classList.add(i)},v=function(t,i){i.forEach((function(i){t.classList.add(i)}))},x=function(t,i){t.classList.remove(i)},w=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;!function(t){if("complete"===s.readyState||"interactive"===s.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener){const i=()=>{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)}((function(){s.body})),r.d("SmartSliderWidgetBulletTransition","SmartSliderWidget",(function(){function t(t,i){this.parameters=i,r.SmartSliderWidget.prototype.constructor.call(this,t,"bullet",".n2-ss-control-bullet")}return t.prototype=Object.create(r.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){switch(this.hasDots=!0,this.axis="horizontal",this.bar=this.widget.querySelector(".nextend-bullet-bar"),this.parameters.area){case 5:case 8:this.axis="vertical"}this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){if(this.onVisibleSlidesChanged(),this.hasDots){var t=this.slider.currentSlide.ssdot;g(t,"n2-active"),f(t,"tabindex"),u(t,"aria-current","true")}w(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this)),w(this.slider.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},t.prototype.onSlideSwitch=function(e){if(this.hasDots){for(var t,i=0;i<this._dots.length;i++)t=this._dots[i],x(t,"n2-active"),u(t,"tabindex",0),f(t,"aria-current");t=e.detail.targetSlide.ssdot||e.detail.targetSlide.group.ssdot,g(t,"n2-active"),f(t,"tabindex"),u(t,"aria-current","true")}},t.prototype.showThumbnail=function(t,e){var i,n,s,o=this.getThumbnail(t);r.W.to(r.MW.k(o),.3,{opacity:1}),i=t.ssdot,n="universalleave",s=this.hideThumbnail.bind(this,o),i.addEventListener(n,s,{once:!0})},t.prototype.hideThumbnail=function(t,e){e.stopPropagation(),r.W.to(r.MW.k(t),.3,{opacity:0,onComplete:function(){t.remove()}})},t.prototype.getThumbnail=function(t){var n=t.ssdot,s=this.slider.sliderElement.getBoundingClientRect(),o=n.getBoundingClientRect(),a=c(),h=c();h.className="n2-ss-bullet-thumbnail",b(h,{width:this.parameters.thumbnailWidth+"px",height:this.parameters.thumbnailHeight+"px","background-image":'url("'+t.getThumbnail()+'")'}),a.appendChild(h),r.MW.k(a).opacity=0,a.className=this.parameters.thumbnailStyle+" n2-ss-bullet-thumbnail-container",this.slider.sliderElement.appendChild(a);var u=i.getComputedStyle(a),l=a.getBoundingClientRect();switch(this.parameters.thumbnailPosition){case"right":b(a,{left:o.left-s.left+o.width-parseInt(u.getPropertyValue("margin-left"))-parseInt(u.getPropertyValue("margin-right"))+"px",top:o.top-s.top+o.height/2-l.height/2+"px"});break;case"left":b(a,{left:o.left-s.left-l.width-parseInt(u.getPropertyValue("margin-left"))-parseInt(u.getPropertyValue("margin-right"))+"px",top:o.top-s.top+o.height/2-l.height/2+"px"});break;case"top":b(a,{left:o.left-s.left+o.width/2-l.width/2+"px",top:o.top-s.top-l.height-parseInt(u.getPropertyValue("margin-top"))-parseInt(u.getPropertyValue("margin-bottom"))+"px"});break;case"bottom":b(a,{left:o.left-s.left+o.width/2-l.width/2+"px",top:o.top-s.top+o.height-parseInt(u.getPropertyValue("margin-top"))-parseInt(u.getPropertyValue("margin-bottom"))+"px"})}return a},t.prototype.onVisibleSlidesChanged=function(){if(this._dotsOuter!==n&&this._dotsOuter.forEach((function(t){!function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}(t)})),this.bar.innerText="",this.slider.visibleSlides.length<=1)this.hasDots=!1;else{this.hasDots=!0,this._dots=[],this._dotsOuter=[];for(var t=0;t<this.slider.visibleSlides.length;t++){var i=this.slider.visibleSlides[t],s=c(),o=c();switch(o.className="n2-bullet "+this.parameters.dotClasses,l(o,{tabindex:0,role:"button","aria-label":i.getTitle()}),s.appendChild(o),this.bar.appendChild(s),"mouseenter"===this.parameters.action?new r.UniversalEnter(o,this.onDotLine truncated
@@ -0,0 +1,78 @@
(~'div#@{sliderid}') {
.n2-ss-control-bullet {
visibility: hidden;
text-align: center;
justify-content: center;
z-index: 14;
}
.n2-ss-control-bullet--calculate-size {
left: 0 !important;
}
.n2-ss-control-bullet-horizontal.n2-ss-control-bullet-fullsize {
width: 100%;
}
.n2-ss-control-bullet-vertical.n2-ss-control-bullet-fullsize {
height: 100%;
flex-flow: column;
}
.nextend-bullet-bar {
display: inline-flex;
vertical-align: top;
visibility: visible;
align-items: center;
flex-wrap: wrap;
}
.n2-bar-justify-content-left {
justify-content: flex-start;
}
.n2-bar-justify-content-center {
justify-content: center;
}
.n2-bar-justify-content-right {
justify-content: flex-end;
}
.n2-ss-control-bullet-vertical > .nextend-bullet-bar {
flex-flow: column;
}
.n2-ss-control-bullet-fullsize > .nextend-bullet-bar {
display: flex;
}
.n2-ss-control-bullet-horizontal.n2-ss-control-bullet-fullsize > .nextend-bullet-bar {
flex: 1 1 auto;
}
.n2-ss-control-bullet-vertical.n2-ss-control-bullet-fullsize > .nextend-bullet-bar {
height: 100%;
}
.nextend-bullet-bar .n2-bullet {
cursor: pointer;
transition: background-color 0.4s;
}
.nextend-bullet-bar .n2-bullet.n2-active {
cursor: default;
}
div.n2-ss-bullet-thumbnail-container {
position: absolute;
z-index: 10000000;
}
.n2-ss-bullet-thumbnail-container .n2-ss-bullet-thumbnail {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB