PageSourceSearch

https://www.trisura.com/wp-content/themes/trisura/public/js/app.b268a6.js

js trisura.com collected 2026-09-29 09:47:58 UTC 15,227 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_roots_bud_sage_sage=globalThis.webpackChunk_roots_bud_sage_sage||[]).push([[143],{
1"./scripts/app.js":(e,t,n)=>{var o=n("../node_modules/@roots/sage/lib/client/dom-ready.js"),a=n("jquery");a("div.type-investor-news").last().css("border-bottom","1px solid rgba(77,79,83,.2)"),(0,o.Z)((async e=>{e&&console.error(e),a(document).ready((function(){a(".investor-sub").on("click",(function(e){e.preventDefault();let t=a(this).attr("id");a('.dropdown-menu[aria-labelledby="'+t+'"]').toggle()}))})),a(document).ready((function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&a(".investor-sub").on("click",(function(e){e.preventDefault(),a(this).find(".dropdown-menu").toggle()}))})),a(document).ready((function(){var e={"en-US":{country:"Choose country",purpose:"Purpose",claims:"Please select"},"fr-FR":{country:"Choisissez un pays",purpose:"Objet",claims:"Veuillez sélectionner"}},t=document.documentElement.lang||"en-US";a("#country").select2({placeholder:e[t].country,minimumResultsForSearch:1/0,allowClear:!0}),a("#purpose").select2({placeholder:e[t].purpose,minimumResultsForSearch:1/0,allowClear:!0}),a("#claims-canada-underwriting, #claims-us-underwriting, #claims-us-claims, #claims-canada-claims").select2({placeholder:e[t].claims,minimumResultsForSearch:1/0,allowClear:!0})})),a(document).ready((function(){var e=document.querySelectorAll("input, select, textarea"),t=document.querySelector(".contact-form"),n=document.querySelector(".col-12 > .wpcf7-response-output");e.forEach((function(e){e.addEventListener("input",(function(){if(this.value){var e=this.getAttribute("id")+"-error",t=document.getElementById(e);t&&(t.style.display="none");var n=this.closest(".ip-mb");n&&n.classList.remove("error")}}))})),document.addEventListener("wpcf7mailsent",(function(e){t.style.display="none";var o=document.getElementById("form-response"),a=document.createElement("p");a.textContent="Your form has been successfully submitted!",n.appendChild(a);var i=document.createElement("button");i.textContent="Submit another response",n.appendChild(i),i.addEventListener("click",(function(){n.removeChild(a),n.removeChild(i),t.style.display="block"})),o.scrollIntoView({behavior:"smooth",block:"center"})}),!1),document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("pnumber");e&&e.addEventListener("input",(function(){this.setCustomValidity(""),/^\d{10}$/.test(this.value)||this.setCustomValidity("Please enter a 10-digit phone number.")}))})),a("select").on("select2:select",(function(e){var t=this.getAttribute("id")+"-error",n=document.getElementById(t);n&&(n.style.display="none");var o=this.closest(".ip-mb");o&&o.classList.remove("error")})),document.addEventListener("wpcf7invalid",(function(e){setTimeout((function(){e.target.querySelectorAll(".wpcf7-not-valid").forEach((function(e){var t=e.getAttribute("id")+"-error",n=document.getElementById(t);n&&(n.style.display="block");var o=e.closest(".ip-mb");o&&o.classList.add("error")}))}),500)}),!1),a(".select2-selection__rendered").attr("aria-label","textbox")})),setTimeout((()=>{document.querySelectorAll(".navbar-nav .nav-item").forEach((e=>{const t=e.querySelector(".dropdown-menu");t&&t.querySelector("a.active")&&e.querySelector(".nav-link").classList.add("active")}))}),500),a(document).ready((function(){var e;function t(t){e=setTimeout((function(){t.is(":hover")||t.children(".dropdown-menu.open").removeClass("open")}),200)}a(".nav-item").on("mouseenter",(function(){clearTimeout(e),a(".dropdown-menu.open").removeClass("open"),a(window).width()>=1200&&a(this).children(".dropdown-menu").addClass("open")})),a(".nav-item").on("mouseleave",(function(){t(a(this))})),a(".dropdown-menu").on("mouseenter",(function(){clearTimeout(e)})),a(".dropdown-menu").on("mouseleave",(function(){t(a(this).parent())})),a("body").on("click",(function(t){a(t.target).closest(".nav-item").length&&0!==a(t.target).closest(".nav-item").children(".dropdown-menu").length||(clearTimeout(e),a(".dropdown-menu.open").removeClass("open"))})),a(window).on("scroll",(function(){a(".dropdown-menu.open").removeClass("open")})),a(".nav-item.dropdown").mouseleave((function(){a(this).find(".hover-dropdown-menu").hide()})),a(".nav-link").click((function(e){if(a(e.target).hasClass("arrow")){e.preventDefault(),a(".dropdown-menu.active").not(a(this).next(".dropdown-menu")).removeClass("active");var t=a(this).next(".dropdown-menu");t.toggleClass("active"),a(".nav-item.show").not(t.parent(".nav-item")).removeClass("show"),t.parent(".nav-item").toggleClass("show")}}))})),a(document).click((function(e){a(e.target).closest(".drop-down").length||a(".selected").removeClass("icon-place")})),a(".drop-down .selected span").click((function(){a(".drop-down .options ul").toggle(),a(".selected").toggleClass("icon-place")})),a(".drop-down .options ul li a").click((function(){var e=a(this).html();a(".drop-down .selected span").html(e),a(".drop-down .options ul").hide(),a(".selected").toggleClass("icon-place")})),a(document).bind("click",(function(e){a(e.target).parents().hasClass("drop-down")||a(".drop-down .options ul").hide()})),window.onscroll=function(){var e;e=document.getElementById("zone-body"),a(window).width()>320&&a(window).width()<768?document.body.scrollTop>30||document.documentElement.scrollTop>30?e&&(e.style.width="88.89%",a("#zone-body").addClass("visible-title-new")):e&&(e.style.width="100%",a("#zone-body").removeClass("visible-title-new")):a(window).width()>768&&a(window).width()<1200?document.body.scrollTop>30||document.documentElement.scrollTop>30?e&&(e.style.width="92.188%",a("#zone-body").addClass("visible-title-new")):e&&(e.style.width="100%",a("#zone-body").removeClass("visible-title-new")):document.body.scrollTop>30||document.documentElement.scrollTop>30?e&&(e.style.width="93.75%",a("#zone-body").addClass("visible-title-new")):e&&(e.style.width="100%",a("#zone-body").removeClass("visible-title-new"))},document.querySelectorAll('button[data-bs-toggle="tab"]').forEach(((e,t)=>{e.addEventListener("show.bs.tab",(function(t){let n=e.dataset.bsTarget;var o=document.querySelector("#pills-tabContentB "+n),a=document.querySelector("#pills-tabContentB .tab-pane.active");a.classList.remove("show"),a.classList.remove("active"),o.classList.add("show"),o.classList.add("active")}))})),a(".accordion-list > div > li > .answer").hide(),a(".accordion-list > div > li").click((function(){return a(this).hasClass("active")?a(this).removeClass("active").find(".answer").slideUp():(a(".accordion-list > div > li.active .answer").slideUp(),a(".accordion-list > div > li.active").removeClass("active"),a(this).addClass("active").find(".answer").slideDown()),!1}));var t=-15,n=0,o=0,i=function(){var e=0;return a(".list li").each((function(){var t=a(this).outerWidth();e+=t})),e},s=function(){return i()>a(".wrapper").width()},l=function(){var e=a(window).width();e>=768&&(t=-30,n=0),e>=1200&&i()>670&&(t=-27,e>=1450&&(t=-30),n=0),s()?(a(".scroller-right").show(),a(".nav-tabs.list").removeClass("w-100")):(a(".scroller-right").hide(),a(".nav-tabs.list").addClass("w-100")),0!==n&&s()?a(".scroller-left").show():a(".scroller-left").hide(),n>=a(".list li").length-1||!s()?a(".scroller-right").hide():a(".scroller-right").show(),a(".item").animate({left:"-=0px"},"slow")};l(),a(window).on("resize",(function(e){l()}
1)),a(".scroller-right").click((function(){if(console.log("Scroller right clicked"),0==o){o=1;var e=-1*a(a(".list li")[n]).outerWidth();n+=1,a(".scroller-left").fadeIn("slow"),(n==a(".list li").length-1||a(".wrapper").outerWidth()-t+-1*a(".list").position().left>=i())&&a(".scroller-right").fadeOut("slow"),a(".list").animate({left:"+="+e+"px"},"slow",(function(){o=0}))}})),a(".scroller-left").click((function(){if(console.log("Scroller left clicked"),0==o){o=1,n=n>0?n-1:0;var e=a(a(".list li")[n]).outerWidth();a(".scroller-right").fadeIn("slow"),0==n&&a(".scroller-left").fadeOut("slow"),a(".list").animate({left:"+="+e+"px"},"slow",(function(){o=0}))}})),a(document).ready((function(e){function t(t){e(".menu.nav.nav-tabs.list .nav-link").removeClass("active"),e(".tab-content .tab-pane").removeClass("active show"),e('.nav-link[href="'+t+'"]').addClass("active"),e(".hover-dropdown-menu a").removeClass("active"),e('.hover-dropdown-menu a[href$="'+t.replace("#","")+'"]').addClass("active"),e(t).addClass("active show"),e(t+"_img").addClass("active show"),setTimeout((function(){for(var t=e(".nav-item.item .nav-link.active"),o=e(".menu.nav.nav-tabs.list"),a=o.children(".nav-item.item"),i=a.length,s=a.index(t.parent()),r=0,c=0;c<s;c++)r+=e(a[c]).outerWidth();if(s>n)for(;s>n;)r=-1*e(e(".list li")[n]).outerWidth(),n+=1,o.animate({left:"+="+r+"px"},"slow"),n==i-1&&e(".scroller-right").fadeOut("slow");else if(s<n)for(;s<n;)r=e(e(".list li")[n]).outerWidth(),n-=1,o.animate({left:"+="+r+"px"},"slow");0===n?e(".scroller-left").hide():e(".scroller-left").show(),n===i-1?e(".scroller-right").hide():e(".scroller-right").show(),l()}),800)}var o=window.location.hash;o&&t(o),e(".menu.nav.nav-tabs.list").on("click",".nav-link",(function(n){return n.preventDefault(),t(e(this).attr("href")),history.replaceState(null,null," "),!1}))}));var r=a("<li></li>");a(".screen-reader-response ul").append(r);const c=a(".slider");var d=a(".progress"),u=a(".slider__label");function v(e,t,n){var o;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),o="; expires="+a.toGMTString()}else o="";document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+"; path=/"}function m(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var a=n[o];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return decodeURIComponent(a.substring(t.length,a.length))}return null}c.each((function(e,t){var n=a(t);n.data("slider-length",n.children().length)})).slick({infinite:!1,slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!1}).on("afterChange",(function(e,t,n){a(e.target).data("current-slide",n)})).on("wheel",(function(e){e.originalEvent.deltaY;var t=a(e.currentTarget),n=(t.data("current-slide"),a(window).width()),o=a(window).height(),i=a(".footer-slider").offset().top,s=a(".footer-slider").height(),l=i+s,r=a(window).scrollTop(),c=r+a(window).height(),d=0;if(e.pageY,(n<=1200||n>1200&&o-50>s&&i>r&&l<c||n>1200&&o-50<s&&(e.originalEvent.deltaY<0&&l<c&&(i>r||i+s/3>r)||e.originalEvent.deltaY>=0&&i>r&&(l<c||l-s/3<c)))&&(d=1),1==d){var u=a(".slick-active").data("slick-index"),v=a(".slick-slide").length;e.originalEvent.deltaY<0?t.slick("slickPrev"):t.slick("slickNext"),(e.originalEvent.deltaY<0&&0!=u||e.originalEvent.deltaY>=0&&u+1!=v)&&e.preventDefault()}})).on("beforeChange",(function(e,t,n,o){var a=o/(t.slideCount-1)*100;d.css("background-size",a+"% 100%").attr("aria-valuenow",a),u.text(a+"% completed")})),a(".tradingview-widget-container iframe").attr("title","Trisura Group Ltd. Stock Information"),a(".tradingview-widget-container iframe").attr("alt","Trisura Group Ltd. Stock Information"),a(".selectBox").on("click",(function(e){a(this).toggleClass("show");var t=e.target;a(this).find(".selectBox__value").text(t.text),a(t).addClass("active").siblings().removeClass("active")})),a(document).ready((function(){window.location.origin;var e=a("html").attr("lang"),t=m("language");a(".lang-drop .options ul li a").removeClass("active"),window.location.pathname.indexOf("-us")>-1&&(v("language","us","10"),a(".lang-drop .options ul li a:contains('US')").addClass("active"),a(".country-short-code a:contains('US')").addClass("active"),a("body").addClass("us-activated"),a(".selected span").text("US"),t="us"),"fr-FR"==e?(a(".lang-drop .options ul li a:contains('FR CAN')").addClass("active"),a(".country-short-code a:contains('FR CAN')").addClass("active"),a("body").addClass("fr-activated"),a(".selected span").text("FR CAN")):"en-US"==e&&"can"==t||""==t?(a(".lang-drop .options ul li a:contains('EN CAN')").addClass("active"),a(".country-short-code a:contains('EN CAN')").addClass("active"),a("body").addClass("en-fr-activated"),a(".selected span").text("EN CAN")):"en-US"==e&&"us"==t?(a(".lang-drop .options ul li a:contains('US')").addClass("active"),a(".country-short-code a:contains('US')").addClass("active"),a("body").addClass("us-activated"),a(".selected span").text("US")):(a(".lang-drop .options ul li a:contains('EN CAN')").addClass("active"),a(".country-short-code a:contains('EN CAN')").addClass("active"),a("body").addClass("en-fr-activated"),a(".selected span").text("EN CAN")),a(".lang-drop .options ul li a, .country-short-code a").click((function(e){e.preventDefault();var n=a(this).text().trim();if(a(".selected span").text(n),a(".lang-drop .options ul li a").removeClass("active"),a(this).addClass("active"),"us"===m("language"))window.location.href="/";else{var o=a(".wpml-ls-item-en a").attr("href");window.location.href=o}if("EN CAN"===n&&"can"!==t)v("language","can","10"),a("li.country-short-code a.can").addClass("active"),a("li.country-short-code a.us").removeClass("active"),a(".language-switch").css("display","inline-flex");else if("FR CAN"===n&&"can-fr"!==t){v("language","can-fr","10"),a("li.country-short-code a.can").addClass("active"),a("li.country-short-code a.us").removeClass("active"),a(".language-switch").css("display","inline-flex");var i=a(".wpml-ls-item-fr a").attr("href");window.location.href=i}else"US"===n&&"us"!==t&&(v("language","",-1),v("language","us","10"),a("li.country-short-code a.us").addClass("active"),a("li.country-short-code a.can").removeClass("active"),a(".language-switch").css("display","inline-flex"),window.location.href="/")}))}));var p=a("#termo-inves").val(),h=a("#date-inves").val();a("#termo-inves").change((function(){var e=a("#date-inves").val();h==e?a.ajax({type:"POST",url:"/wp-admin/admin-ajax.php",dataType:"html",data:{action:"filter_investors_cat",category:a(this).val()},success:function(e){a("#investor-info-list").html(e)}}):a.ajax({type:"POST",url:"/wp-admin/admin-ajax.php",dataType:"html",data:{action:"filter_investors_all",category:a(this).val(),date:e},success:function(e){a("#investor-info-list").html(e)}})})),a("#date-inves").change((function(){var e=a("#termo-inves").val();p==e?a.ajax({type:"POST",url:"/wp-admin/admin-ajax.php",dataType:"html",data:{action:"filter_investors_date",date:a(this).val()},success:function(e){a("#investor-info-list").html(e)}}):a.ajax({type:"POST",url:"/wp-admin/admin-ajax.php",dataType:"html",data:{action:"filter_investors_all",category:e,date:a(this).val()},success:function(e){a("#investor-info-list").html(e)}})}
1)),a(".news-filters-date").change((function(){a.ajax({type:"POST",url:"/wp-admin/admin-ajax.php",dataType:"html",data:{action:"filter_news_date",date:a(this).val()},success:function(e){a("#news-info-list").html(e)}})})),a("#date-trisura-news").change((function(){a.ajax({type:"POST",url:"/wp-admin/admin-ajax.php",dataType:"html",data:{action:"filter_investor_news_date",date:a(this).val(),taxonomy:a("#taxonomy-trisura-news").val()},success:function(e){a("#trisura-news-list").html(e)}})}))}))},
1"./styles/app.scss":()=>{}
1,jquery:e=>{e.exports=window.jQuery}},e=>{var t=t=>e(e.s=t);e.O(0,[259],(()=>(t("./scripts/app.js"),t("./styles/app.scss")))),e.O()}]);

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.