PageSourceSearch

https://www.telekom.si/731.cdae5f936dcaf54c.js

js telekom.si collected 2026-10-01 10:35:40 UTC 16,088 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprenova=self.webpackChunkprenova||[]).push([[731],{731:(X,I,x)=>{x.r(I),x.d(I,{default:()=>w});var S=function(){return S=Object.assign||function(e){for(var t,o=1,s=arguments.length;o<s;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},C={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}};const w=function(){function n(e,t){return this.core=e,this.$LG=t,this.settings=S(S({},C),this.core.settings),this}return n.prototype.buildTemplates=function(){var e=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(e+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(e)},n.prototype.enableZoom=function(e){var t=this,o=this.settings.enableZoomAfter+e.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&e.detail.delay?o=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){t.isImageSlide(t.core.index)&&(t.core.getSlideItem(e.detail.index).addClass("lg-zoomable"),e.detail.index===t.core.index&&t.setZoomEssentials())},o+30)},n.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on("lgSlideItemLoad.zoom",this.enableZoom.bind(this))},n.prototype.getDragCords=function(e){return{x:e.pageX,y:e.pageY}},n.prototype.getSwipeCords=function(e){return{x:e.touches[0].pageX,y:e.touches[0].pageY}},n.prototype.getDragAllowedAxises=function(e,t){if(!this.containerRect)return{allowX:!1,allowY:!1};var o=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),s=0,r=0,i=o.getBoundingClientRect();return e?(s=o.offsetHeight*e,r=o.offsetWidth*e):t?(s=i.height+t*i.height,r=i.width+t*i.width):(s=i.height,r=i.width),{allowX:r>this.containerRect.width,allowY:s>this.containerRect.height}},n.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},n.prototype.zoomImage=function(e,t,o,s){if(this.containerRect&&!(Math.abs(t)<=0)){var m,r=this.containerRect.width/2+this.containerRect.left,i=this.containerRect.height/2+this.containerRect.top+this.scrollTop;1===e&&(this.positionChanged=!1);var h=this.getDragAllowedAxises(0,t),u=h.allowY,g=h.allowX;this.positionChanged&&(m=this.top/(this.scale-t),this.pageX=r-this.left/(this.scale-t),this.pageY=i-m,this.positionChanged=!1);var c,d,a=this.getPossibleSwipeDragCords(t),v=r-this.pageX,z=i-this.pageY;if(e-t>1){var p=(e-t)/Math.abs(t);c=(v=(t<0?-v:v)+this.left*(p+(t<0?-1:1)))/p,d=(z=(t<0?-z:z)+this.top*(p+(t<0?-1:1)))/p}else c=v*(p=(e-t)*t),d=z*p;o&&(g?this.isBeyondPossibleLeft(c,a.minX)?c=a.minX:this.isBeyondPossibleRight(c,a.maxX)&&(c=a.maxX):e>1&&(c<a.minX?c=a.minX:c>a.maxX&&(c=a.maxX)),u?this.isBeyondPossibleTop(d,a.minY)?d=a.minY:this.isBeyondPossibleBottom(d,a.maxY)&&(d=a.maxY):e>1&&(d<a.minY?d=a.minY:d>a.maxY&&(d=a.maxY))),this.setZoomStyles({x:c,y:d,scale:e}),this.left=c,this.top=d,s&&this.setZoomImageSize()}},n.prototype.resetImageTranslate=function(e){if(this.isImageSlide(e)){var t=this.core.getSlideItem(e).find(".lg-image").first();this.imageReset=!1,t.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),t.css("width","auto").css("height","auto"),setTimeout(function(){t.removeClass("no-transition")},10)}},n.prototype.setZoomImageSize=function(){var e=this,t=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var o=e.getCurrentImageActualSizeScale();e.scale>=o&&(t.addClass("no-transition"),e.imageReset=!0)},500),setTimeout(function(){var o=e.getCurrentImageActualSizeScale();if(e.scale>=o){var s=e.getDragAllowedAxises(e.scale);
1t.css("width",t.get().naturalWidth+"px").css("height",t.get().naturalHeight+"px"),e.core.outer.addClass("lg-actual-size"),s.allowX&&s.allowY?t.addClass("reset-transition"):s.allowX&&!s.allowY?t.addClass("reset-transition-x"):!s.allowX&&s.allowY&&t.addClass("reset-transition-y")}},550)},n.prototype.setZoomStyles=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),o=this.core.getSlideItem(this.core.index).find(".lg-image").first(),s=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=e.scale,o.css("transform","scale3d("+e.scale+", "+e.scale+", 1)"),s.css("transform","scale3d("+e.scale+", "+e.scale+", 1)"),t.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},n.prototype.setActualSize=function(e,t){var o=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var s=this.core.galleryItems[this.core.index];this.resetImageTranslate(e),setTimeout(function(){if(s.src&&!o.core.outer.hasClass("lg-first-slide-loading")){var r=o.getCurrentImageActualSizeScale(),i=o.scale;o.scale=o.core.outer.hasClass("lg-zoomed")?1:o.getScale(r),o.setPageCords(t),o.beginZoom(o.scale),o.zoomImage(o.scale,o.scale-i,!0,!0)}},50),setTimeout(function(){o.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){o.zoomInProgress=!1},610)}},n.prototype.getNaturalWidth=function(e){var t=this.core.getSlideItem(e).find(".lg-image").first(),o=this.core.galleryItems[e].width;return o?parseFloat(o):t.get().naturalWidth},n.prototype.getActualSizeScale=function(e,t){return e>=t?e/t||2:1},n.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,o=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(o,t)},n.prototype.getPageCords=function(e){var t={};if(e)t.x=e.pageX||e.touches[0].pageX,t.y=e.pageY||e.touches[0].pageY;else{var o=this.core.$content.get().getBoundingClientRect();t.x=o.width/2+o.left,t.y=o.height/2+this.scrollTop+o.top}return t},n.prototype.setPageCords=function(e){var t=this.getPageCords(e);this.pageX=t.x,this.pageY=t.y},n.prototype.manageActualPixelClassNames=function(){this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},n.prototype.beginZoom=function(e){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),e>1},n.prototype.getScale=function(e){var t=this.getCurrentImageActualSizeScale();return e<1?e=1:e>t&&(e=t),e},n.prototype.init=function(){var e=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var t=null;this.core.outer.on("dblclick.lg",function(o){e.$LG(o.target).hasClass("lg-image")&&e.setActualSize(e.core.index,o)}),this.core.outer.on("touchstart.lg",function(o){var s=e.$LG(o.target);1===o.touches.length&&s.hasClass("lg-image")&&(t?(clearTimeout(t),t=null,o.preventDefault(),e.setActualSize(e.core.index,o)):t=setTimeout(function(){t=null},300))}),this.core.LGel.on("lgContainerResize.zoom lgRotateRight.zoom lgRotateLeft.zoom lgFlipHorizontal.zoom lgFlipVertical.zoom",function(){if(e.core.lgOpened&&e.isImageSlide(e.core.index)&&!e.core.touchAction){var o=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();e.top=0,e.left=0,e.setZoomEssentials(),e.setZoomSwipeStyles(o,{x:0,y:0}),e.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){e.core.lgOpened&&(e.scrollTop=e.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(e.isImageSlide(e.core.index)){var o=0;e.imageReset&&(e.resetImageTranslate(e.core.index),o=50),setTimeout(function(){var s=e.scale-e.settings.scale;s<1&&(s=1),e.beginZoom(s),e.zoomImage(s,-e.settings.scale,!0,!e.settings.infiniteZoom)},o)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){e.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){e.setActualSize(e.core.index)}),this.core.LGel.on("lgBeforeOpen.zoom",function(){e.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on("lgAfterOpen.zoom",function(){e.scrollTop=e.$LG(window).scrollTop(),e.pageX=e.core.outer.width()/2,e.pageY=e.core.outer.he
1ight()/2+e.scrollTop,e.scale=1}),this.core.LGel.on("lgAfterSlide.zoom",function(o){var s=o.detail.prevIndex;e.scale=1,e.positionChanged=!1,e.zoomInProgress=!1,e.resetZoom(s),e.resetImageTranslate(s),e.isImageSlide(e.core.index)&&e.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},n.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var e=this.scale+this.settings.scale;this.settings.infiniteZoom||(e=this.getScale(e)),this.beginZoom(e),this.zoomImage(e,Math.min(this.settings.scale,e-this.scale),!0,!this.settings.infiniteZoom)}},n.prototype.resetZoom=function(e){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var t=this.core.getElementById("lg-actual-size"),o=this.core.getSlideItem(void 0!==e?e:this.core.index);t.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),o.find(".lg-img-wrap").first().removeAttr("style"),o.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},n.prototype.getTouchDistance=function(e){return Math.sqrt((e.touches[0].pageX-e.touches[1].pageX)*(e.touches[0].pageX-e.touches[1].pageX)+(e.touches[0].pageY-e.touches[1].pageY)*(e.touches[0].pageY-e.touches[1].pageY))},n.prototype.pinchZoom=function(){var e=this,t=0,o=!1,s=1,r=0,i=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(l){if(i=e.core.getSlideItem(e.core.index),e.isImageSlide(e.core.index)&&2===l.touches.length){if(l.preventDefault(),e.core.outer.hasClass("lg-first-slide-loading"))return;s=e.scale||1,e.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e.setPageCords(l),e.resetImageTranslate(e.core.index),e.core.touchAction="pinch",t=e.getTouchDistance(l)}}),this.core.$inner.on("touchmove.lg",function(l){if(2===l.touches.length&&"pinch"===e.core.touchAction&&(e.$LG(l.target).hasClass("lg-item")||i.get().contains(l.target))){l.preventDefault();var m=e.getTouchDistance(l),h=t-m;if(!o&&Math.abs(h)>5&&(o=!0),o){r=e.scale;var u=Math.max(1,s+.02*-h);e.scale=Math.round(100*(u+Number.EPSILON))/100,e.zoomImage(e.scale,Math.round(100*(e.scale-r+Number.EPSILON))/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(l){if("pinch"===e.core.touchAction&&(e.$LG(l.target).hasClass("lg-item")||i.get().contains(l.target))){if(o=!1,t=0,e.scale<=1)e.resetZoom();else{var m=e.getCurrentImageActualSizeScale();if(e.scale>=m){var h=m-e.scale;0===h&&(h=.01),e.zoomImage(m,h,!1,!0)}e.manageActualPixelClassNames(),e.core.outer.addClass("lg-zoomed")}e.core.touchAction=void 0}})},n.prototype.touchendZoom=function(e,t,o,s,r){var i=t.x-e.x,l=t.y-e.y,m=Math.abs(i)/r+1,h=Math.abs(l)/r+1;m>2&&(m+=1),h>2&&(h+=1),i*=m,l*=h;var u=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),g={};g.x=this.left+i,g.y=this.top+l;var a=this.getPossibleSwipeDragCords();(Math.abs(i)>15||Math.abs(l)>15)&&(s&&(this.isBeyondPossibleTop(g.y,a.minY)?g.y=a.minY:this.isBeyondPossibleBottom(g.y,a.maxY)&&(g.y=a.maxY)),o&&(this.isBeyondPossibleLeft(g.x,a.minX)?g.x=a.minX:this.isBeyondPossibleRight(g.x,a.maxX)&&(g.x=a.maxX)),s?this.top=g.y:g.y=this.top,o?this.left=g.x:g.x=this.left,this.setZoomSwipeStyles(u,g),this.positionChanged=!0)},n.prototype.getZoomSwipeCords=function(e,t,o,s,r){var i={};return s?(i.y=this.top+(t.y-e.y),this.isBeyondPossibleTop(i.y,r.minY)?i.y=r.minY-(r.minY-i.y)/6:this.isBeyondPossibleBottom(i.y,r.maxY)&&(i.y=r.maxY+(i.y-r.maxY)/6)):i.y=this.top,o?(i.x=this.left+(t.x-e.x),this.isBeyondPossibleLeft(i.x,r.minX)?i.x=r.minX-(r.minX-i.x)/6:this.isBeyondPossibleRight(i.x,r.maxX)&&(i.x=r.maxX+(i.x-r.maxX)/6)):i.x=this.left,i},n.prototype.isBeyondPossibleLeft=function(e,t){return e>=t},n.prototype.isBeyondPossibleRight=function(e,t){return e<=t},n.prototype.isBeyondPossibleTop=function(e,t){return e>=t},n.prototype.isBeyondPossibleBottom=function(e,t){return e<=t},n.prototype.isImageSlide=function(e){return"image"===this.core.getSlideType(this.core.galleryItems[e])},n.prototype.getPossibleSwipeDragCords=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.mediaContainerPosition.bottom,s=t.get().getBoundingClientRect(),r=s.height,i=s.width;return e&&(r+=e*r,i+=e*i),{minY:(r-this.containerRect.height)/2,maxY:(this.containerRect.height-r)/2+o,minX:(i-this.containerRect.width)/2,maxX:(this.containerRect.width-i)/2}},n.prototype.setZoomSwipeStyles=function(e,t){e.css("transform","translate3d("+t.x+"px, "+t.y+"px, 0)")},n.prototype.zoomSwipe=function(){var h,u,e=this,t={},o={},s=!1,r=!1,i=!1,l=new Date,g=this.core.getSlideItem(this.core.index);
1this.core.$inner.on("touchstart.lg",function(a){if(e.isImageSlide(e.core.index)&&(g=e.core.getSlideItem(e.core.index),(e.$LG(a.target).hasClass("lg-item")||g.get().contains(a.target))&&1===a.touches.length&&e.core.outer.hasClass("lg-zoomed"))){a.preventDefault(),l=new Date,e.core.touchAction="zoomSwipe",u=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();var c=e.getDragAllowedAxises(0);i=c.allowY,((r=c.allowX)||i)&&(t=e.getSwipeCords(a)),h=e.getPossibleSwipeDragCords(),e.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(a){if(1===a.touches.length&&"zoomSwipe"===e.core.touchAction&&(e.$LG(a.target).hasClass("lg-item")||g.get().contains(a.target))){a.preventDefault(),e.core.touchAction="zoomSwipe",o=e.getSwipeCords(a);var c=e.getZoomSwipeCords(t,o,r,i,h);(Math.abs(o.x-t.x)>15||Math.abs(o.y-t.y)>15)&&(s=!0,e.setZoomSwipeStyles(u,c))}}),this.core.$inner.on("touchend.lg",function(a){if("zoomSwipe"===e.core.touchAction&&(e.$LG(a.target).hasClass("lg-item")||g.get().contains(a.target))){if(a.preventDefault(),e.core.touchAction=void 0,e.core.outer.removeClass("lg-zoom-dragging"),!s)return;s=!1;var c=(new Date).valueOf()-l.valueOf();e.touchendZoom(t,o,r,i,c)}})},n.prototype.zoomDrag=function(){var m,h,u,g,e=this,t={},o={},s=!1,r=!1,i=!1,l=!1;this.core.outer.on("mousedown.lg.zoom",function(a){if(e.isImageSlide(e.core.index)){var c=e.core.getSlideItem(e.core.index);if(e.$LG(a.target).hasClass("lg-item")||c.get().contains(a.target)){m=new Date,g=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();var d=e.getDragAllowedAxises(0);l=d.allowY,i=d.allowX,e.core.outer.hasClass("lg-zoomed")&&e.$LG(a.target).hasClass("lg-object")&&(i||l)&&(a.preventDefault(),t=e.getDragCords(a),u=e.getPossibleSwipeDragCords(),s=!0,e.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(a){if(s){r=!0,o=e.getDragCords(a);var c=e.getZoomSwipeCords(t,o,i,l,u);e.setZoomSwipeStyles(g,c)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(a){if(s){if(h=new Date,s=!1,e.core.outer.removeClass("lg-zoom-dragging"),r&&(t.x!==o.x||t.y!==o.y)){o=e.getDragCords(a);var c=h.valueOf()-m.valueOf();e.touchendZoom(t,o,i,l,c)}r=!1}e.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},n.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},n.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},n}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.