PageSourceSearch

https://www.netafimusa.com/netafim/corporate/assets/js/video.1b2e0161c94456150a02.mjs

js netafimusa.com collected 2026-09-28 07:35:13 UTC 7,503 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[180],{867:function(e,i,t){t.r(i);var o=function(){return o=Object.assign||function(e){for(var i,t=1,o=arguments.length;t<o;t++)for(var s in i=arguments[t])Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);return e},o.apply(this,arguments)},s={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},n="lgHasVideo",d="lgSlideItemLoad",l="lgBeforeSlide",r="lgAfterSlide",a="lgPosterClick",c=function(e){return Object.keys(e).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(e[i])}).join("&")},u=function(e,i){if(!e.youtube)return"";var t=e.youtube[2]?e.youtube[2].slice(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,i){var t=i.map(decodeURIComponent),o=t[0],s=t[1];return e[o]=s,e},{}):"",s=i||{},n=o(o(o({},{wmode:"opaque",autoplay:0,mute:1,enablejsapi:1}),s),t);return"?"+c(n)},f=function(){function e(e){return this.core=e,this.settings=o(o({},s),this.core.settings),this}return e.prototype.init=function(){var e=this;this.core.LGel.on(n+".video",this.onHasVideo.bind(this)),this.core.LGel.on(a+".video",function(){var i=e.core.getSlideItem(e.core.index);e.loadVideoOnPosterClick(i)}),this.core.LGel.on(d+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(l+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(r+".video",this.onAfterSlide.bind(this))},e.prototype.onSlideItemLoad=function(e){var i=this,t=e.detail,o=t.isFirstSlide,s=t.index;this.settings.autoplayFirstVideo&&o&&s===this.core.index&&setTimeout(function(){i.loadAndPlayVideo(s)},200),!o&&this.settings.autoplayVideoOnSlide&&s===this.core.index&&this.loadAndPlayVideo(s)},e.prototype.onHasVideo=function(e){var i=e.detail,t=i.index,o=i.src,s=i.html5Video;i.hasPoster||(this.appendVideos(this.core.getSlideItem(t),{src:o,addClass:"lg-object",index:t,html5Video:s}),this.gotoNextSlideOnVideoEnd(o,t))},e.prototype.onBeforeSlide=function(e){if(this.core.lGalleryOn){var i=e.detail.prevIndex;this.pauseVideo(i)}},e.prototype.onAfterSlide=function(e){var i=this,t=e.detail,o=t.index,s=t.prevIndex,n=this.core.getSlideItem(o);this.settings.autoplayVideoOnSlide&&o!==s&&n.hasClass("lg-complete")&&setTimeout(function(){i.loadAndPlayVideo(o)},100)},e.prototype.loadAndPlayVideo=function(e){var i=this.core.getSlideItem(e);this.core.galleryItems[e].poster?this.loadVideoOnPosterClick(i,!0):this.playVideo(e)},e.prototype.playVideo=function(e){this.controlVideo(e,"play")},e.prototype.pauseVideo=function(e){this.controlVideo(e,"pause")},e.prototype.getVideoHtml=function(e,i,t,o){var s="",n=this.core.galleryItems[t].__slideVideoInfo||{},d=this.core.galleryItems[t],l=d.title||d.alt;l=l?'title="'+l+'"':"";var r='allowtransparency="true"\n            frameborder="0"\n            scrolling="no"\n            allowfullscreen\n            mozallowfullscreen\n            webkitallowfullscreen\n            oallowfullscreen\n            msallowfullscreen';if(n.youtube){var a="lg-youtube"+t,f=u(n,this.settings.youTubePlayerParams);s='<iframe allow="autoplay" id='+a+' class="lg-video-object lg-youtube '+i+'" '+l+' src="'+(e.includes("youtube-nocookie.com")?"//www.youtube-nocookie.com/":"//www.youtube.com/")+"embed/"+(n.youtube[1]+f)+'" '+r+"></iframe>"}else if(n.vimeo){a="lg-vimeo"+t;var h=function(e,i){if(!i||!i.vimeo)return"";var t=i.vimeo[2]||"",o=e&&0!==Object.keys(e).length?"&"+c(e):"",s=((i.vimeo[0].split("/").pop()||"").split("?")[0]||"").split("#")[0],n=i.vimeo[1]!==s;return n&&(t=t.replace("/"+s,"")),"?autoplay=0&muted=1"+(n?"&h="+s:"")+o+("?"==t[0]?"&"+t.slice(1):t||"")}(this.settings.vimeoPlayerParams,n);s='<iframe allow="autoplay" id='+a+' class="lg-video-object lg-vimeo '+i+'" '+l+' src="//player.vimeo.com/video/'+(n.vimeo[1]+h)+'" '+r+"></iframe>"}else if(n.wistia){var p="lg-wistia"+t;h=(h=c(this.settings.wistiaPlayerParams))?"?"+h:"",s='<iframe allow="autoplay" id="'+p+'" src="//fast.wistia.net/embed/iframe/'+(n.wistia[4]+h)+'" '+l+' class="wistia_embed lg-video-object lg-wistia '+i+'" name="wistia_embed" '+r+"></iframe>"}else if(n.html5){for(var g="",m=0;m<o.source.length;m++)g+='<source src="'+o.source[m].src+'" type="'+o.source[m].type+'">';if(o.tracks){var v=function(e){var i="",t=o.tracks[e];Object.keys(t||{}
1).forEach(function(e){i+=e+'="'+t[e]+'" '}),g+="<track "+i+">"};for(m=0;m<o.tracks.length;m++)v(m)}var y="",w=o.attributes||{};Object.keys(w||{}).forEach(function(e){y+=e+'="'+w[e]+'" '}),s='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+y+">\n                "+g+"\n                Your browser does not support HTML5 video.\n            </video>"}return s},e.prototype.appendVideos=function(e,i){var t,o=this.getVideoHtml(i.src,i.addClass,i.index,i.html5Video);e.find(".lg-video-cont").append(o);var s=e.find(".lg-video-object").first();if(i.html5Video&&s.on("mousedown.lg.video",function(e){e.stopPropagation()}),this.settings.videojs&&(null===(t=this.core.galleryItems[i.index].__slideVideoInfo)||void 0===t?void 0:t.html5))try{return videojs(s.get(),this.settings.videojsOptions)}catch(e){}},e.prototype.gotoNextSlideOnVideoEnd=function(e,i){var t=this,o=this.core.getSlideItem(i).find(".lg-video-object").first(),s=this.core.galleryItems[i].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd)if(s.html5)o.on("ended",function(){t.core.goToNextSlide()});else if(s.vimeo)try{new Vimeo.Player(o.get()).on("ended",function(){t.core.goToNextSlide()})}catch(e){}else if(s.wistia)try{window._wq=window._wq||[],window._wq.push({id:o.attr("id"),onReady:function(e){e.bind("end",function(){t.core.goToNextSlide()})}})}catch(e){}},e.prototype.controlVideo=function(e,i){var t=this.core.getSlideItem(e).find(".lg-video-object").first(),o=this.core.galleryItems[e].__slideVideoInfo||{};if(t.get())if(o.youtube)try{t.get().contentWindow.postMessage('{"event":"command","func":"'+i+'Video","args":""}',"*")}catch(e){}else if(o.vimeo)try{new Vimeo.Player(t.get())[i]()}catch(e){}else if(o.html5)if(this.settings.videojs)try{videojs(t.get())[i]()}catch(e){}else t.get()[i]();else if(o.wistia)try{window._wq=window._wq||[],window._wq.push({id:t.attr("id"),onReady:function(e){e[i]()}})}catch(e){}},e.prototype.loadVideoOnPosterClick=function(e,i){var t=this;if(e.hasClass("lg-video-loaded"))i&&this.playVideo(this.core.index);else if(e.hasClass("lg-has-video"))this.playVideo(this.core.index);else{e.addClass("lg-has-video");var o=void 0,s=this.core.galleryItems[this.core.index].src,n=this.core.galleryItems[this.core.index].video;n&&(o="string"==typeof n?JSON.parse(n):n);var d=this.appendVideos(e,{src:s,addClass:"",index:this.core.index,html5Video:o});this.gotoNextSlideOnVideoEnd(s,this.core.index);var l=e.find(".lg-object").first().get();e.find(".lg-video-cont").first().append(l),e.addClass("lg-video-loading"),d&&d.ready(function(){d.on("loadedmetadata",function(){t.onVideoLoadAfterPosterClick(e,t.core.index)})}),e.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){t.onVideoLoadAfterPosterClick(e,t.core.index)},50)})}},e.prototype.onVideoLoadAfterPosterClick=function(e,i){e.addClass("lg-video-loaded"),this.playVideo(i)},e.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},e}();i.default=f}}]);

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.