PageSourceSearch

https://www.maxis.com.my/etc.clientlibs/mxs/clientlibs/rebrand-old…-events.66b28ff1c17ebc311a525461f8005fbf.js

js maxis.com.my collected 2026-09-24 08:50:58 UTC 5,931 bytes, 1 lines download raw bytes

1!function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=557)}({0:function(e,t){e.exports=jQuery},557:function(e,t,a){"use strict";a.r(t);var n=a(0),o=a.n(n);function i(e,t,a){dataLayer.push({event:"eventClicks",gaCategory:e,gaAction:t,gaLabel:a})}var r={pushInDataLayer:function(e,t,a,n,r){dataLayer&&("Hero Banner"==t?function(e,t){var a=[],n=o()(e).closest(".hero-banner"),i=n.css("background-image"),r=n.attr("data-gaTitle"),s=o()(".hero-banner").index(n[0]),c=i.replace('url("',"").replace('")',""),l=decodeURI(c.substring(c.lastIndexOf("/")+1)),d={};d.id=t,d.name=r,d.creative=l,d.position=s+1,a.push(d),a.length>0&&dataLayer.push({event:"bannerClick",ecommerce:{promoClick:{promotions:a}}})}(e,t):"Image Tile"==t?function(e,t){var a=[],n=o()(e).closest(".image-tile"),i=n.attr("data-desktop-src"),r=n.attr("data-gaTitle"),s=o()(".image-tile").index(n[0]),c=i.replace('url("',"").replace('")',""),l=decodeURI(c.substring(c.lastIndexOf("/")+1)),d={};d.id=t,d.name=r,d.creative=l,d.position=s+1,a.push(d),a.length>0&&dataLayer.push({event:"bannerClick",ecommerce:{promoClick:{promotions:a}}})}(e,t):"Product Switch Navigation"==t||"Product Switch Navigation with Switch Navigation"==t?function(e,t,a){const n=o()(e).closest(".product-switch").find('[data-bs-toggle="model"]').find(o()(".boxed-toggle-buttons li.selected"));let i=n.find('[data-bs-toggle="tab"]').attr("data-content"),r=n.find('[data-bs-toggle="tab"]').attr("href"),s=o()(r).find("li.selected").find('[data-bs-toggle="tab"]'),c=o()(s).attr("data-content");if("Product Switch Navigation with Switch Navigation"==t){let e=o()(s).attr("href"),n=o()(e).find(".nav-tabs"),r=o()(n).find("a.active").find("span").text();dataLayer.push({event:"ProductNavigation",gaCategory:t,gaAction:i+"-"+c,gaLabel:a,deviceContract:r})}else dataLayer.push({event:"ProductNavigation",gaCategory:t,gaLabel:a,gaAction:i+"-"+c})}(e,t,n):"Mini Store"==t||"Store Locator"==t?i(t,"Google Map Link",n):"Header Navigation Menu"==t?function(e,t,a,n){dataLayer.push({event:e,gaCategory:t,gaAction:a,gaLabel:n})}("Header Navig",t,a,n):"Cross Sell"==t?function(e,t,a,n){var i=[],r=o()(e).children(".box").css("background-image").replace('url("',"").replace('")',""),s=decodeURI(r.substring(r.lastIndexOf("/")+1)),c={};c.id=t,c.name=a,c.creative=s,c.position=n,i.push(c),i.length>0&&dataLayer.push({event:"bannerClick",ecommerce:{promoClick:{promotions:i}}})}(e,t,n,r):i(t,a,n))},pushDataForRealViewCTA:function(e,t,a){if(dataLayer){var n=o()(".toggle-buttons .colors span").text(),i=o()(".toggle-buttons .capacity span").text();dataLayer.push({event:"RealView",gaCategory:e,gaDeviceName:t.urlParams.articleModel,gaDeviceStorage:i,gaDeviceColor:n,gaState:t.locations.states,gaTown:t.locations.town,gaAction:a})}},pushInDataLayerForCTAButton:i,pushInDataLayerFromForm:function(e,t,a,n){"undefined"!=typeof dataLayer&&dataLayer.push({event:"formsubmission",gaID:e.replace(/-/g,""),gaCategory:t,gaAction:a,gaLabel:n})},pushInDataLayerForLocationTile:function(e,t,a){dataLayer.push({event:"eventClicks",gaCategory:t,gaAction:a,gaLabel:e})},pushInDataLayerForMaxisTV:function(e,t,a,n,o){dataLayer&&(n?function(e,t,a,n,o){dataLayer.push({event:"MaxisTVNow",gaCategory:"TVNow",gaAction:e,gaLabel:t,gaValue:a,billid:n,passName:o})}(e,t,a,n,o):a?function(e,t,a,n){dataLayer.push({event:"MaxisTVNow",gaCategory:"TVNow",gaAction:e,gaLabel:t,gaValue:a,passName:n})}(e,t,a,o):function(e,t,a){dataLayer.push({event:"MaxisTVNow",gaCategory:"TVNow",gaAction:e,gaLabel:t,passName:a})}(e,t,o))},init:function(){setTimeout((function(){!function(){if(window.dataLayer){var e=[];o()(".hero-banner").each((function(t,a){var n=o()(this).css("background-image"),i=a.getAttribute("data-gaTitle"),r=n.replace('url("',"").replace('")',""),s=decodeURI(r.substring(r.lastIndexOf("/")+1)),c={id:"Hero Banner"};c.name=i,c.creative=s,c.position=t+1,e.push(c)})),o()(".image-tile").each((function(t,a){var n=a.getAttribute("data-desktop-src"),o=a.getAttribute("data-gaTitle"),i=n.replace('url("',"").replace('")',""),r=decodeURI(i.substring(i.lastIndexOf("/")+1)),s={id:"Image Tile"};s.name=o,s.creative=r,s.position=t+1,e.push(s)})),o()(".cross-sell .slick-slide")&&o()(".cross-sell .slick-slide").length>0?o()(".cross-sell .slick-slide").not(".slick-cloned").each((function(t,a){var n=a.getElementsByClassName("slide")[0];if(n){var i=n.getAttribute("data-desktop-src"),r=n.getAttribute("data-gaTitle");if(!o()(n.closest(".slick-slide")).hasClass("slick-cloned")&&null!=n.getAttribute("data-iscrosssell")){var s=decodeURI(i.substring(i.lastIndexOf("/")+1)),c={id:"Cross Sell"};c.name=r,c.creative=s,c.position=t+1,e.push(c)}}})):o()(".cross-sell .slide").each((function(t,a){var n=a.getAttribute("data-desktop-src"),o=a.getAttribute("data-gaTitle");if(null!=a.getAttribute("data-iscrosssell")){var i=decodeURI(n.substring(n.lastIndexOf("/")+1)),r={id:"Cross Sell"};r.name=o,r.creative=i,r.position=t+1,e.push(r)}})),e.length>0&&dataLayer.push({event:"bannerImpression",ecommerce:{promoView:{promotions:e}}})}}()}),5e3)}};window.gaEvents=r,window.dataLayer=window.dataLayer||[]}});

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.