PageSourceSearch

https://www.tet.lv/dist/modules/mod_service_cards/scripts/index.514d127aea8e710e1ccb.js?2caa38

js tet.lv collected 2026-09-24 09:00:12 UTC 15,513 bytes, 2 lines download raw bytes

1/*! For license information please see index.514d127aea8e710e1ccb.js.LICENSE.txt */
2(()=>{"use strict";var e={301(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{J:()=>i});var i=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r=[],(n=a(n="eventListeners"))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},(t=[{key:"addEventListener",value:function(e,t,n){this.eventListeners.filter(function(r){return r.element===e&&r.eventName===t&&r.callback===n}).length||(this.eventListeners.push({element:e,eventName:t,callback:n}),e.addEventListener(t,n))}},{key:"removeEventListenersByElementAndEventName",value:function(e,t){if(this.eventListeners.length){var n=this.eventListeners.filter(function(n){return n.element===e&&n.eventName===t});n.length&&(n.forEach(function(e){e.element.removeEventListener(e.eventName,e.callback)}),this.eventListeners=this.eventListeners.filter(function(e){return!n.includes(e)}))}}},{key:"removeEventListener",value:function(e){this.removeEventListenersByElementAndEventName(e.element,e.eventName)}},{key:"removeAllEventListeners",value:function(){var e=this;this.eventListeners.forEach(function(t){e.removeEventListener(t)})}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},2579(e,t,n){function r(e,t,n){var r;return function(){var o=this,a=arguments,i=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(o,a)},t),i&&e.apply(o,a)}}n.d(t,{s:()=>r}),window.debounce=r}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}function r(e,t=document,n=null){return a(e,!0,t,n)}function o(e,t=document,n=null){return a(e,!1,t,n)}function a(e,t,n,r=null){e=function(e){function t(){r&&(i.length>0&&/^[~+>]$/.test(i[i.length-1])&&i.push(" "),i.push(r))}var n,r,o,a,i=[],c=[0],s=0,l=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,u=/^\s+$/,f=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(e=e.trim();;){if(r="",(o=f[c[c.length-1]]).lastIndex=s,!(n=o.exec(e))){r=e.substr(s),t();break}if((a=s)<(s=o.lastIndex)-n[0].length&&(r=e.substring(a,s-n[0].length)),c[c.length-1]<3){if(t(),"["===n[0])c.push(1);else if("("===n[0])c.push(2);else if(/^["']$/.test(n[0]))c.push(3),f[3]=new RegExp(n[0],"g");else if("/*"===n[0])c.push(4);else if(/^[\])]$/.test(n[0])&&c.length>0)c.pop();else if(/^(?:\s+|[~+>])$/.test(n[0])&&(i.length>0&&!u.test(i[i.length-1])&&0===c[c.length-1]&&i.push(" "),1===c[c.length-1]&&5===i.length&&"="===i[2].charAt(i[2].length-1)&&(i[4]=" "+i[4]),u.test(n[0])))continue;i.push(n[0])}else i[i.length-1]+=r,l.test(i[i.length-1])&&(4===c[c.length-1]&&(i.length<2||u.test(i[i.length-2])?i.pop():i[i.length-1]=" ",n[0]=""),c.pop()),i[i.length-1]+=n[0]}return i.join("").trim()}(e);let o=n.querySelector(e);if(document.head.createShadowRoot||document.head.attachShadow){if(!t&&o)return o;return i(e,",").reduce((e,o)=>{if(!t&&e)return e;const a=i(o.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter(e=>!!e).map(e=>i(e,">")),l=a.length-1,u=function(e=null,t,n=null){let r=[];if(n)r=n;else{const e=function(t){for(let n=0;n<t.length;n++){const o=t[n];r.push(o),o.shadowRoot&&e(o.shadowRoot.querySelectorAll("*"))}};t.shadowRoot&&e(t.shadowRoot.querySelectorAll("*")),e(t.querySelectorAll("*"))}return e?r.filter(t=>t.matches(e)):r}(a[l][a[l].length-1],n,r),f=function(e,t,n){return r=>{let o=t,a=r,i=!1;for(;a&&!c(a);){let t=!0;if(1===e[o].length)t=a.matches(e[o]);else{const r=[].concat(e[o]).reverse();let i=a;for(const e of r){if(!i||!i.matches(e)){t=!1;break}i=s(i,n)}}if(t&&0===o){i=!0;break}t&&o--,a=s(a,n)}return i}}(a,l,n);return t?e=e.concat(u.filter(f)):(e=u.find(f))||null},t?[]:null)}return t?n.querySelectorAll(e):o}function i(e,t){return e.match(/\\?.|^$/g).reduce((e,n)=>('"'!==n||e.sQuote?"'"!==n||e.quote?e.quote||e.sQuote||n!==t?e.a[e.a.length-1]+=n:e.a.push(""):(e.sQuote^=1,e.a[e.a.length-1]+=n):(e.quote^=1,e.a[e.a.length-1]+=n),e),{a:[""]}).a}
2function c(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE||e.nodeType===Node.DOCUMENT_NODE}function s(e,t){const n=e.parentNode;return n&&n.host&&11===n.nodeType?n.host:n===t?null:n}n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],a=t[r++];n.o(e,o)?0===a&&r++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l=n(301),u=n(2579);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof c?r:c,l=Object.create(s.prototype);return v(l,"_invoke",function(n,r,o){var a,c,s,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return a=t,c=0,s=e,d.n=n,i}};function v(n,r){for(c=n,s=r,t=0;!f&&l&&!o&&t<u.length;t++){var o,a=u[t],v=d.p,h=a[2];n>3?(o=h===r)&&(s=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=v&&((o=n<2&&v<a[1])?(c=0,d.v=r,d.n=a[1]):v<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,d.n=h,c=0))}if(o||n>1)return i;throw f=!0,r}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&v(u,h),c=u,s=h;(t=c<2?e:s)||!f;){a||(c?c<3?(c>1&&(d.n=-1),v(c,s)):d.n=s:d.v=s);try{if(l=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,c=1,s=t}finally{l=1}}return{value:t,done:f}}}(n,o,a),!0),l}var i={};function c(){}function s(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(v(t={},r,function(){return this}),t),f=l.prototype=c.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,v(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=l,v(f,"constructor",l),v(l,"constructor",s),s.displayName="GeneratorFunction",v(l,o,"GeneratorFunction"),v(f),v(f,o,"Generator"),v(f,r,function(){return this}),v(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:a,m:h}})()}function v(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}v=function(e,t,n,r){function a(t,n){v(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},v(e,t,n,r)}function h(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function p(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var b=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"rootElement",void 0),p(this,"tabCardsComponent",void 0),p(this,"eventManager",new l.J),p(this,"template",void 0),p(this,"layout",void 0),p(this,"moduleId",void 0),p(this,"faqTabMap",void 0),p(this,"disableCardHeightAlignment",void 0),p(this,"analyticsInit",(0,u.s)(function(){try{n.eventManager.removeAllEventListeners(),n.segmentAnalytics(),n.filterAnalytics()}catch(e){console.error(e)}},200)),Object.assign(this,t),this.tabCardsComponent=this.rootElement.querySelector(".js-service-cards-wrapper"),this.placeholders=null},t=[{key:"init",value:function(){var e=this;this.disableCardHeightAlignment&&(this.initDisableVisibilityParam(),this.tabCardsComponent.addEventListener("compareCardDataChange",function(){e.initDisableVisibilityParam()})),"tet-tv"===this.template?(this.controlTetTvLayout(),this.resizeTetTvEvent(),this.tabCardsComponent.addEventListener("compareCardDataChange",function(){e.controlTetTvLayout()})):(this.controlDefaultLayout(),this.resizeDefaultEvent(),this.tabCardsComponent.addEventListener("compareCardDataChange",function(){e.controlDefaultLayout()})),this.initModuleAfterHydration()}},{key:"initModuleAfterHydration",value:(a=d().m(function e(){var t=this;return d().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,HTMLUtilities.awaitHydration(this.tabCardsComponent);case 1:window.dispatchEvent(new Event("module-init")),this.analyticsInit(),o("tet-compare-cards-tab",this.rootElement).addEventListener("compareCardDataChange",function(){t.analyticsInit()}),this.initSegmentedTabListeners();case 2:return e.a(2)}},e,this)}),i=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=a.apply(e,t);function i(e){h(o,n,r,i,c,"next",e)}function c(e){h(o,n,r,i,c,"throw",e)}i(void 0)})},function(){return i.apply(this,arguments)})},{key:"controlTetTvLayout",value:function(){var e=80*parseFloat(getComputedStyle(document.documentElement).fontSize)/window.devicePixelRatio,t=48*parseFloat(getComputedStyle(document.documentElement).fontSize)/window.devicePixelRatio,n=window.innerWidth/window.devicePixelRatio,r="column-two"===this.layout&&n<e&&n>=t;"column-four"===this.layout&&n>e?(this.tabCardsComponent.forceColumn=!1,this.tabCardsComponent.layout="column-four"):n<=e&&n>=t||r?(this.tabCardsComponent.forceColumn=!1,this.tabCardsComponent.layout="column-two"):n<t?(this.tabCardsComponent.forceColumn=!0,this.tabCardsComponent.layout="default"):(this.tabCardsComponent.forceColumn=!1,this.tabCardsComponent.layout="default")}},{key:"controlDefaultLayout",value:function(){var e=64*parseFloat(getComputedStyle(document.documentElement).fontSize);this.tabCardsComponent.forceColumn=window.innerWidth<e,this.placeholders=r("tet-placeholder",this.tabCardsComponent),this.placeholders&&(this.tabCardsComponent.forceColumn?this.placeholders.map(function(e){e.style.width="18rem"}):this.placeholders.map(function(e){e.style.width="21.5rem"}))}},{key:"resizeTetTvEvent",value:function(){var e=this;window.addEventListener("resize",function(){e.controlTetTvLayout()})}},{key:"resizeDefaultEvent",value:function(){var e=this;window.addEventListener("resize",function(){e.controlDefaultLayout()})}},{key:"segmentAnalytics",value:function(){var e=this,t=o("tet-tab-header",this.tabCardsComponent);t&&r("[data-name]",t).map(function(t){e.eventManager.addEventListener(t,"click",function(){dataLayer.push({event:"services_master_tab_click",
2services_master_tab_name:t.innerText})})}),this.tabAnalytics()}},{key:"filterAnalytics",value:function(){var e=this,t=r("tet-tag",this.tabCardsComponent);t&&t.forEach(function(t){e.eventManager.addEventListener(t,"click",function(){var e=t.shadowRoot.textContent;dataLayer.push({event:"services_master_tab_click",services_master_tab_name:e})})})}},{key:"tabAnalytics",value:function(){var e=this,t=r("tet-tab-content",this.tabCardsComponent);t&&t.map(function(t){var n=o("tet-tab-header",t);n&&r("[data-name]",n).forEach(function(t){e.eventManager.addEventListener(t,"click",function(){dataLayer.push({event:"services_tab_click",services_tab_name:t.innerText})})}),e.cardAnalytics(t)})}},{key:"cardAnalytics",value:function(e){var t=this;r("tet-tab-content",e).map(function(e){r("tet-compare-cards",e).map(function(e){r("tet-compare-card",e).map(function(e){setTimeout(function(){t.initializeCardListeners(e)},200)})})})}},{key:"initializeCardListeners",value:function(e){var t=this,n=e.shadowRoot.querySelector(".main-title");if(n){var r=n.innerText,o=e.shadowRoot.querySelector(".bullet-points-wrapper");o&&o.querySelectorAll(".bullet-point").forEach(function(e){var n=e.querySelector("a");n&&t.eventManager.addEventListener(n,"click",function(){dataLayer.push({event:"services_link_click",services_link_name:n.innerText,services_name:r})})});var a=e.querySelector('[slot="description-slot"]');a&&a.querySelectorAll("a").forEach(function(e){t.eventManager.addEventListener(e,"click",function(){dataLayer.push({event:"services_link_click",services_link_name:e.innerText,services_name:r})})});var i=e.shadowRoot.querySelector("[data-form-link]");i&&this.eventManager.addEventListener(i,"click",function(){dataLayer.push({event:"services_apply_click",services_name:r})});var c=e.shadowRoot.querySelector(".button-wrapper .secondary-link a");c&&this.eventManager.addEventListener(c,"click",function(){dataLayer.push({event:"services_contract_click",services_name:r})});var s=e.shadowRoot.querySelector(".sub-title"),l=e.shadowRoot.querySelector(".sub-title .info-item");if(l&&s){var u=null==l?void 0:l.outerHTML,f=s.innerHTML.replace(u,"");this.eventManager.addEventListener(l,"mouseover",function(){dataLayer.push({event:"services_info_hover",services_info_name:f,services_name:r})})}e.querySelectorAll(".js-benefit-tab-anchor").forEach(function(e){var n=e.getAttribute("data-mod-vod-content-id"),r=e.getAttribute("data-tab-name");n&&r&&t.eventManager.addEventListener(e,"click",function(){t.openTab(n,r),t.openAccordion(n,r)})})}}},{key:"openTab",value:function(e,t){var n=document.querySelector('[data-name="'.concat(e,'"]'));if(n){var r=n.querySelector('[data-name="'.concat(t,'"]'));null==r||r.click()}}},{key:"openAccordion",value:function(e,t){var n,r=document.querySelector("#".concat(e));null==r||null===(n=r.querySelectorAll("tet-accordion"))||void 0===n||n.forEach(function(e){e.id===t?e.isOpen="true":e.isOpen="false"})}},{key:"initSegmentedTabListeners",value:function(){var e=this,t=o('tet-tab-header[data-name="tabs1-'.concat(this.moduleId,'"]'),this.tabCardsComponent);this.faqTabMap.forEach(function(n){var r=o('[data-name="'.concat(n.segmentDataName,'"]'),t);r.classList.contains("active")&&e.openTab(n.faqHeaderId,n.faqTabId),r.addEventListener("click",function(){e.openTab(n.faqHeaderId,n.faqTabId)})})}},{key:"initDisableVisibilityParam",value:function(){var e=r("tet-tab-content",this.tabCardsComponent);e&&e.forEach(function(e){e.removeAttribute("use-visibility")})}}],t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,a,i}();window.ServiceCards=b})();

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.