PageSourceSearch

https://en.volleyballworld.com/assets/js/plugins/popup-module.af3a34981e74382ee9eb.js

js volleyballworld.com collected 2026-10-01 11:45:16 UTC 9,603 bytes, 2 lines download raw bytes

1(self.webpackChunk_template_frontend=self.webpackChunk_template_frontend||[]).push([[15],{46:function(t,e,n){"use strict";n.d(e,{Ei:function(){return g},Em:function(){return s},Lm:function(){return p},S5:function(){return f},T:function(){return o},ay:function(){return h},nI:function(){return u},qs:function(){return l},tq:function(){return a},tu:function(){return c},x:function(){return i},x0:function(){return r}});var i=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelectorAll(t)},r=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector(t)},o="ontouchstart"in globalThis||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,u=function(){return globalThis.innerWidth>=1024},a=function(){return globalThis.innerWidth<=768},p=function(){return globalThis.innerWidth<=430},s=function(){return globalThis.innerWidth<=1024&&globalThis.innerWidth>768},l=(/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.MSStream,!/Trident/.exec(navigator.userAgent)||/rv[ :]11/.exec(navigator.userAgent),function(){return r("html").lang}),c=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";return document.querySelector(t).scrollTo({left:e,behavior:n})},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;requestAnimationFrame((function(){setTimeout(t,e)}))},v=function(t,e){return Array.from({length:e-t+1},(function(e,n){return t+n}))},d={volley:{upComing:new Set(v(1,3)),live:new Set(v(4,23)),finished:new Set(v(24,27))},beach:{upComing:new Set([1,2]),live:new Set(v(3,11)),finished:new Set(v(12,15))}},h=function(){var t,e,n,i,r=null===(t=globalThis.matchconfig)||void 0===t?void 0:t.status,o=null===(e=globalThis.matchconfig)||void 0===e?void 0:e.discipline;return(null===(n=d[o])||void 0===n?void 0:n.live.has(r))||(null===(i=d[o])||void 0===i?void 0:i.upComing.has(r))},g=function(t,e){return!(!t||Number.isNaN(e))&&new Date(t).getTime()<=Date.now()+60*Number(e)*60*1e3}},111:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var i=n(24),r=n(25),o=n(12),u=n.n(o),a=n(46),p=function(){function t(){(0,i.Z)(this,t),0!==$("[js-newsletter-popup]").length&&(this.popupDataKey="popup_module",this.turnstileCaptchaTokenKey="captcha_token",this.popupsArr=[],this.captchaDone=!1,this.isPopupVisible=!1,this.siteKey=globalThis.trunstileSiteKey,this.secret=globalThis.trunstileSecret,this.trunstileSiteVerifyResource=globalThis.trunstileSiteVerifyResource,this.trunstileServiceVerifyBaseURL=globalThis.trunstileServiceVerifyBaseURL,this.popupStatus={enabled:"enabled",complete:"complete",disabled:"disabled"})}return(0,r.Z)(t,[{key:"init",value:function(t){var e=this;globalThis.addEventListener("scroll",u()(e.displayPopup.bind(this),300)),e.popupId=$(t).attr("data-popup-campaignId"),e.popup=$('[data-popup-campaignId="'.concat(e.popupId,'"]')),e.popupWrap=e.popup.parents(".vbw-popup-wrap"),e.popupCampaign=e.popup.attr("data-popup-campaignId"),e.newsletterUrl=e.popup.attr("data-newsletter-url"),e.turnstileContainer="#"+e.popupCampaign,e.newsletterProspect=e.popup.attr("data-newsletter-prospect"),e.newsletterInput=e.popup.find(".vbw-newsletter-email-input"),e.newsletterBtn=e.popup.find(".vbw-newsletter-email-btn"),e.popupWrap.on("click",(function(t){t.stopPropagation();var n=$(t.target);(0,a.S5)((function(){if(n.hasClass("vbw-popup-close")||n.hasClass("vbw-popup-wrap")){var t,i=e.getPopupItem();i.status!=e.popupStatus.complete&&(i.status=e.popupStatus.disabled,e.updatePopupData()),e.isPopupVisible=!1,null===(t=e.popupWrap)||void 0===t||t.hide()}}))})),e.newsletterInput.on("keyup",(function(){var t=this;(0,a.S5)((function(){var n=t.value;e.validateEmail(n)}))})),e.newsletterBtn.on("click",(function(){(0,a.S5)((function(){var t=e.newsletterInput.val();if(e.validateEmail(t)&&e.validateCaptcha()){var n;e.getPopupItem().status=e.popupStatus.complete,e.updatePopupData();var i=null===(n=e.newsletterUrl)||void 0===n?void 0:n.replace("{newsLetterEmail}",t).replace("{newsletterProspect}",e.newsletterProspect);$(".vbw-pixel-img-wrap").append('<img src="'.concat(i,'" alt="newsletter image" />')),$(".vbw-newsletter-email").addClass("submit-success"),$(".vbw-popup-form-content").hide(),$(".vbw-newsletter-wrap").show()}}))})),setTimeout((function(){return e.readyTurnstileCaptcha()}),600)}},{key:"readyTurnstileCaptcha",value:function(){var t=this;turnstile.ready((function(){turnstile.render(t.turnstileContainer,{sitekey:t.siteKey,callback:function(e){t.captchaDone=!1;var n=t.trunstileServiceVerifyBaseURL?new URL(t.trunstileSiteVerifyResource.replace("{token}",e),t.trunstileServiceVerifyBaseURL).toString():t.trunstileSiteVerifyResource.replace("{token}",e);$.ajax({url:n,type:"GET",success:function(e){null!=e&&e.success?t.captchaDone=!0:turnstile.reset(t.turnstileContainer)}})},"expired-callback":function(){t.captchaDone=!1}})}))}},{key:"isEmail",value:function(t){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t)}},{key:"validateEmail",value:function(t){return t&&!this.isEmail(t)||!t?($(".vbw-newsletter-email").addClass("email-validation-error"),!1):($(".vbw-newsletter-email").removeClass("email-validation-error"),!0)}},{key:"validateCaptcha",value:function(){return this.captchaDone?($(".vbw-newsletter-email").removeClass("captcha-validation-error"),!0):($(".vbw-newsletter-email").addClass("captcha-validation-error"),!1)}},{key:"isUserLoggedIn",value:function(){return void 0!==getCookie("azureb2c_token")}},{key:"isNewsletterSubscribed",value:function(){return"true"==getCookie("azureb2c_extension_NewsLetter")}},{key:"isPopupStatusValid",value:function(t){return t!==this.popupStatus.complete&&t!==this.popupStatus.disabled}},{key:"isShowPopup",value:function(){var t=this,e=t.getPopupItem();return!!t.isPopupStatusValid(e.status)&&!(t.isUserLoggedIn()&&t.isNewsletterSubscribed())}},{key:"getPopupItem",value:function(){var t=this,e={id:t.popupCampaign,status:t.popupStatus.enabled},n=localStorage.getItem(t.popupDataKey);t.popupsArr=n?JSON.parse(n):[];var i=t.popupsArr.find((function(e){return e.id===t.popupCampaign}));
vendor: 3,468 bytes, lines 1-2
1return i||(t.popupsArr.push(e),t.updatePopupData(),e)}},{key:"displayPopup",value:function(){var t,e,n=this;!n.isPopupVisible&&globalThis.scrollY>100&&n.isShowPopup()&&(n.isPopupVisible=!0,null===(t=n.popupWrap)||void 0===t||t.show(),null===(e=n.popup)||void 0===e||e.show(),globalThis.removeEventListener("scroll",n.displayPopup))}},{key:"updatePopupData",value:function(){localStorage.setItem(this.popupDataKey,JSON.stringify(this.popupsArr))}}]),t}()},5:function(t,e,n){var i=n(4).Symbol;t.exports=i},6:function(t,e,n){var i=n(5),r=n(10),o=n(11),u=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?r(t):o(t)}},15:function(t,e,n){var i=n(16),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},8:function(t,e,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},10:function(t,e,n){var i=n(5),r=Object.prototype,o=r.hasOwnProperty,u=r.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var r=u.call(t);return i&&(e?t[a]=n:delete t[a]),r}},11:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4:function(t,e,n){var i=n(8),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},16:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},13:function(t,e,n){var i=n(2),r=n(14),o=n(9),u=Math.max,a=Math.min;t.exports=function(t,e,n){var p,s,l,c,f,v,d=0,h=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=p,i=s;return p=s=void 0,d=e,c=t.apply(i,n)}function w(t){var n=t-v;return void 0===v||n>=e||n<0||g&&t-d>=l}function y(){var t=r();if(w(t))return S(t);f=setTimeout(y,function(t){var n=e-(t-v);return g?a(n,l-(t-d)):n}(t))}function S(t){return f=void 0,m&&p?b(t):(p=s=void 0,c)}function T(){var t=r(),n=w(t);if(p=arguments,s=this,v=t,n){if(void 0===f)return function(t){return d=t,f=setTimeout(y,e),h?b(t):c}(v);if(g)return clearTimeout(f),f=setTimeout(y,e),b(v)}return void 0===f&&(f=setTimeout(y,e)),c}return e=o(e)||0,i(n)&&(h=!!n.leading,l=(g="maxWait"in n)?u(o(n.maxWait)||0,e):l,m="trailing"in n?!!n.trailing:m),T.cancel=function(){void 0!==f&&clearTimeout(f),d=0,p=v=s=f=void 0},T.flush=function(){return void 0===f?c:S(r())},T}},2:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},17:function(t,e,n){var i=n(6),r=n(7);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},14:function(t,e,n){var i=n(4);t.exports=function(){return i.Date.now()}},12:function(t,e,n){var i=n(13),r=n(2);t.exports=function(t,e,n){var o=!0,u=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return r(n)&&(o="leading"in n?!!n.leading:o,u="trailing"in n?!!n.trailing:u),i(t,e,{leading:o,maxWait:e,trailing:u})}},9:function(t,e,n){var i=n(15),r=n(2),o=n(17),u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,p=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=a.test(t);return n||p.test(t)?s(t.slice(2),n?2:8):u.test(t)?NaN:+t}}}]);
2//# sourceMappingURL=popup-module.af3a34981e74382ee9eb.js.map

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.