1"use strict"; 2function readURL(t) { 3 if (t.files && t.files[0]) { 4 var e = new FileReader(); 5 (e.onload = function (e) { 6 $(".image-upload-wrap").hide(), $(".file-upload-image").attr("src", e.target.result), $(".file-upload-content").show(), $(".image-title").html(t.files[0].name); 7 }), 8 e.readAsDataURL(t.files[0]); 9 } else removeUpload(); 10} 11function removeUpload() { 12 $(".file-upload-input").replaceWith($(".file-upload-input").clone()), $(".file-upload-content").hide(), $(".image-upload-wrap").show(); 13} 14function _defineProperty(e, t, o) { 15 return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = o), e; 16} 17function _toConsumableArray(e) { 18 return _arrayWithoutHoles(e) || _iterableToArray(e) || _nonIterableSpread(); 19} 20function _nonIterableSpread() { 21 throw new TypeError("Invalid attempt to spread non-iterable instance"); 22} 23function _iterableToArray(e) { 24 if (Symbol.iterator in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e)) return Array.from(e); 25} 26function _arrayWithoutHoles(e) { 27 if (Array.isArray(e)) { 28 for (var t = 0, o = new Array(e.length); t < e.length; t++) o[t] = e[t]; 29 return o; 30 } 31} 32!(function (l) { 33 if ( 34 (l(document).on("click", ".media-button-back, li.attachment.save-ready, .imgedit-cancel-btn, .imgedit-submit-btn", function () { 35 l(".media-button-select").addClass("button-primary"), l(".media-button-select").html("Select"); 36 }), 37 l("#pageparentdiv").length) 38 ) { 39 var e = ["Home", "General", "Insights + News", "Our People", "Careers", "Contact", "Client Portal", "Resources", "Style Guide", "Profile"], 40 t = []; 41 l("#pageparentdiv #page_template option").each(function () { 42 t[this.innerHTML] = this.value; 43 }); 44 for (var o = "", a = 0; a < e.length; a++) o = o + '<option value="' + t[e[a]] + '">' + e[a] + "</option>"; 45 if (o.length) { 46 var i = l("#pageparentdiv #page_template").val(); 47 l("#pageparentdiv #page_template").empty().append(o), l('#pageparentdiv #page_template option[value="' + i + '"]').prop("selected", !0); 48 } 49 } 50 function n(e) { 51 var t = "#acf-group_61d818b2dd8b3", 52 o = "#acf-group_61f909f116c5c", 53 a = "#acf-group_621e0007674a3"; 54 "podcast" == e ? (l(o).show(), l(t).hide(), l(a).hide()) : (l(o).hide(), l(t).show(), l(a).show()); 55 } 56 var s, c, r, d; 57 "default" == l("#page_template").val() && l("#page_template").val("page-home.php"), 58 l(document).ready(function () { 59 n(l("#acf-field_620659b5f38ff").val()); 60 }), 61 l(document).on("change", "#acf-field_620659b5f38ff", function () { 62 n(l(this).val()); 63 }), 64 (s = l("#portfolio-file-upload-form")), 65 (c = l("#portfolio_upload_message")), 66 s.length && 67 s.submit(function (e) { 68 e.preventDefault(), c.html("Uploading ..."); 69 var o = l(this), 70 t = new FormData(o[0]), 71 a = o.find('input[type="file"]'); 72 if ("" != a.val()) { 73 var i = a[0].files[0], 74 n = i.name, 75 s = i.size, 76 r = n.split(".").pop(); 77 return -1 === ["csv"].indexOf(r) 78 ? (alert("File extension not allowed"), !1) 79 : 1048576 < s 80 ? (alert("File size not allowed"), !1) 81 : void l.ajax({ 82 url: ajaxData.ajaxUrl, 83 type: "POST", 84 data: t, 85 dataType: "json", 86 processData: !1, 87 contentType: !1, 88 success: function (e) { 89 if (e.success) { 90 c.html("File uploaded successfully"); 91 var t = '<div class="file-uploaded"><div class="file-uploaded-name">' + n + '</div><div class="file-uploaded-delete" data-file-id="' + e.file_id + '">Delete</div></div>'; 92 o.find(".file-uploaded-list").append(t), a.val(""); 93 } else c.html(e); 94 }, 95 }); 96 } 97 alert("Please select a file to upload"); 98 }), 99 (r = l("#portfolio_links_form")), 100 (d = l("#portfolio_links_upload_message")), 101 r.length && 102 r.submit(function (e) { 103 e.preventDefault(), d.html("Uploading ..."); 104 var t = l(this), 105 o = new FormData(t[0]), 106 a = t.find('input[type="file"]'); 107 if ("" != a.val()) { 108 var i = a[0].files[0], 109 n = i.name, 110 s = i.size, 111 r = n.split(".").pop(); 112 return -1 === ["csv"].indexOf(r) 113 ? (alert("File extension not allowed"), !1) 114 : 1048576 < s 115 ? (alert("File size not allowed"), !1) 116 : void l.ajax({ 117 url: ajaxData.ajaxUrl, 118 type: "POST", 119 data: o, 120 dataType: "json", 121 processData: !1, 122 contentType: !1, 123 success: function (e) { 124 e.success ? d.html("File uploaded successfully") : d.html(e); 125 }, 126 }); 127 } 128 alert("Please select a file to upload"); 129 }), 130 l(document).ready(function () { 131 l(".user-role-wrap > td > select > option[value='']").remove(), l("input#send_user_notification").prop("checked", !1); 132 }); 133 var u, 134 m = l("input#email"); 135 if ( 136 (0 < m.length && m.after('<p class="description">If the user has no email address use the email:<br />[email protected]</p>'), 137 l(document).ready(function () { 138 l(".pw-checkbox").disabled = !0; 139 }), 140 l(".forgotpassword").on("click", function (e) { 141 e.preventDefault(), l(".forgetpasswordmessage").empty(), l(this).next(".forgetpasswordmessage").addClass("active"); 142 var t = { action: "forgotpassword" }; 143 (t.email = l(this).attr("data-email")), 144 l.ajax({ 145 type: "post", 146 url: ajaxData.ajaxUrl, 147 data: t, 148 success: function (e) { 149 e.passed ? l(".forgetpasswordmessage.active").html(" Email sent") : e.message && l(".forgetpasswordmessage.active").html(" Email not sent"), l(".forgetpasswordmessage.active").removeClass("active"); 150 }, 151 }); 152 }), 153 ajaxData.apiLinks && 154 l("#linked_accounts") && 155 l.ajax({ 156 url: ajaxData.ajaxUrl, 157 type: "POST", 158 data: { action: "get_linked_accounts" }, 159 success: function (e) { 160 (html = (function (e) { 161 for (var t in ((json = JSON.parse(e)), (html = ""), json)) html += '<div class="linked-account"><div class="linked-account-name">' + t + " - " + json[t] + "</div></div>"; 162 return html; 163 })(e)), 164 l("#linked_accounts").html(html); 165 }, 166 }), 167 l("#acf-field_62b94738fedbe").length) 168 ) { 169 var f = document.getElementById("acf-field_62b94738fedbe"); 170 f.addEventListener("paste", function (e) { 171 e.preventDefault(); 172 var t = (e.clipboardData || window.clipboardData).getData("text/plain").replace(/(<([^>]+)>)/gi, ""); 173 f.value = t; 174 }); 175 } 176 function p(e) { 177 var t = l("#portfolio_links_upload_message"); 178 t.html("Getting Export please wait ..."), t.show(); 179 var o = { action: e.dataset.method }; 180 l.ajax({ 181 url: ajaxData.ajaxUrl, 182 type: "POST", 183 data: o, 184 success: function (e) { 185 !(function (e) { 186 var t = new Date(), 187 o = t.getFullYear(), 188 a = t.getMonth() + 1, 189 i = t.getDate(), 190 n = "".concat(o).concat(a).concat(i), 191 s = document.createElement("a"); 192 s.setAttribute("id", "export_link_id"), (s.href = e), (s.download = "users-" + n + ".csv"), document.body.appendChild(s), s.click(); 193 })(e.data.url); 194 }, 195 complete: function () { 196 t.hide(); 197 }, 198 }); 199 } 200 l(".get-reports-btn").click(function (e) { 201 e.preventDefault(), p(e.target); 202 }), 203 l(".js-campaign-monitor").on("change", function () { 204 clearTimeout(u), 205 (u = setTimeout(function () { 206 var o = { action: "tg_campaign_monitor" }; 207 l(".js-campaign-monitor-table select").each(function () { 208 var e = l(this).attr("id").replaceAll("_", " "), 209 t = l(this).val(); 210 o[e] = t; 211 }), 212 (function (e) { 213 l.ajax({ 214 url: ajaxData.ajaxUrl, 215 type: "POST", 216 data: e, 217 dataType: "json", 218 success: function (e) { 219 l("#js-success-message") 220 .html(e.message) 221 .fadeIn(function () { 222 l(this).delay(5e3).fadeOut(); 223 }); 224 }, 225 error: function (e) { 226 l("#js-success-message") 227 .html(e) 228 .fadeIn(function () { 229 l(this).delay(5e3).fadeOut(); 230 }); 231 }, 232 }); 233 })(o); 234 }, 2500)); 235 }); 236})(jQuery), 237 (function (n) { 238 var t = n(".form__field--wrap"), 239 o = n(window); 240 function e(e) { 241 for (var t = e + "=", o = decodeURIComponent(document.cookie).split(";"), a = 0; a < o.length; a++) { 242 for (var i = o[a]; " " == i.charAt(0); ) i = i.substring(1); 243 if (0 == i.indexOf(t)) return i.substring(t.length, i.length); 244 } 245 return ""; 246 } 247 function a(e) { 248 document.cookie = e + "=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"; 249 } 250 0 < n("body:not(.page-our-people)").length && 251 (o.on("scroll resize", function () { 252 var e = o.height(), 253 a = o.scrollTop(), 254 i = a + e; 255 n.each(t, function () { 256 var e = n(this), 257 t = e.outerHeight(), 258 o = e.offset().top; 259 a <= o + t && o <= i && e.addClass("in-view"); 260 }); 261 }), 262 o.trigger("scroll")), 263 n(document).ready(function () { 264 e("showlogin") && (a("showlogin"), n(".menu-btn.is-active").click(), n("html").toggleClass("window-move"), n(".section--modal-restricted").removeClass("show")), 265 e("login_error") && (n(".login-message").text(e("login_error")), a("login_error")), 266 e("showresetpassword") && 267 (n(".section--reset-password").addClass("show-reset-password"), 268 n(".reset-password__modify").addClass("hide-field"), 269 n(".forget-password__modify").addClass("hide-field"), 270 n(".forget-password__change").addClass("show-field"), 271 n(".reset-password__overlay").addClass("show-overlay"), 272 n(".reset-password__close").removeClass("hide-close"), 273 a("showresetpassword")); 274 }), 275 n(window).load(function () { 276 n("img[aria-describedby^='caption-attachment-']").each(function () { 277 n(this).attr("width") < (80 * n(this).closest(".post-cta--right").width()) / 100 && n(this).parent().parent().children(".caption-holder").children(".js-open-lightbox").hide(); 278 }); 279 }), 280 n(window).load(function () { 281 n(".escala-reports-link a").each(function () { 282 this.href += "#reports"; 283 }); 284 }), 285 n(document).ready(function () { 286 var t = 0, 287 e = parseInt(n("#timeout_input").val()); 288 function o(e, t, o) { 289 var a = new Date(); 290 a.setTime(a.getTime() + o); 291 var i = "expires=" + a.toUTCString(); 292 document.cookie = e + "=" + t + ";" + i + ";path=/"; 293 } 294 function a(e) { 295 for (var t = e + "=", o = decodeURIComponent(document.cookie).split(";"), a = 0; a < o.length; a++) { 296 for (var i = o[a]; " " == i.charAt(0); ) i = i.substring(1); 297 if (0 == i.indexOf(t)) return i.substring(t.length, i.length); 298 } 299 return ""; 300 } 301 1 == n("#islogintimeralive").val() && 302 e && 303 (setInterval(function () { 304 "1" === n("#islogintimeralive").val() && 305 (o("escala_user_login_timer", (t = a("escala_user_login_timer") < t && 0 != t ? a("escala_user_login_timer")
305: parseInt(t) + 1), 864e5), 306 o("escala_user_login_timer_lastUpdated_at", Math.round(+new Date() / 1e3), 864e5), 307 e < t && 308 (n("#islogintimeralive").val(!1), 309 (function () { 310 var e = { action: "logout" }; 311 n(".home").length && (e.currentPage = "home"); 312 n.ajax({ 313 url: ajaxData.ajaxUrl, 314 type: "POST", 315 data: e, 316 dataType: "json", 317 success: function () { 318 location.reload(); 319 }, 320 error: function () { 321 location.reload(); 322 }, 323 }); 324 })(), 325 (t = 0))); 326 }, 1e3), 327 ("" != a("escala_user_login_timer") && "NaN" != a("escala_user_login_timer")) || (o("escala_user_login_timer", e, 864e5), o("escala_user_login_timer_lastUpdated_at", time(), 864e5)), 328 n(this).mousemove(function (e) { 329 t = 0; 330 }), 331 n(this).mousedown(function (e) { 332 t = 0; 333 }), 334 n(this).keypress(function (e) { 335 t = 0; 336 }), 337 n(this).scroll(function (e) { 338 t = 0; 339 })); 340 }), 341 n(window).load(function () { 342 e("userTimeout") && 343 (a("userTimeout"), 344 n(document).ready(function () { 345 n(".section--timeout--model").addClass("show"); 346 }), 347 n(".home").length && "home" != e("inactivePage") && n(".section--timeout--model").addClass("show"), 348 "home" == e("inactivePage") && a("inactivePage")); 349 }); 350 })(jQuery), 351 (function (n) { 352 n.fn.isInViewport = function () { 353 var e = n(this).offset().top, 354 t = e + n(this).outerHeight(), 355 o = n(window).scrollTop(), 356 a = o + n(window).height(); 357 return o < t && e < a; 358 }; 359 var a = 0.2; 360 n.fn.isInViewport = function () { 361 if (0 < n(this).length) { 362 var e = n(this).offset().top, 363 t = e + n(this).outerHeight(), 364 o = n(window).scrollTop(), 365 a = o + n(window).height(); 366 return o < t && e < a; 367 } 368 return !1; 369 }; 370 var e, 371 t, 372 o, 373 i, 374 s, 375 r, 376 l, 377 c, 378 d = n(".js-animation-fadeIn"), 379 u = n(".js-animation-fadeInUp"), 380 m = n(".js-animation-fadeInDown"), 381 f = n(".js-animation-fadeInLeft"), 382 p = n(".js-animation-fadeInRight"), 383 g = n(".js-animation-fadeInTopLeft"), 384 h = n(".js-animation-fadeInTopRight"), 385 v = n(".js-animation-fadeInBottomLeft"), 386 w = n(".js-animation-fadeInBottomRight"); 387 function b(o) { 388 o.each(function () { 389 var e = o.children(), 390 t = a; 391 e.each(function () { 392 var e = n(this); 393 e.addClass("animate__animated animate__faster"), e.css("animation-delay", t + "ms"), (t += a); 394 }); 395 }); 396 } 397 function y(e, t, o, a, i, n, s, r, l) { 398 _(e, "animate__fadeIn"), 399 _(t, "animate__fadeInUp"), 400 _(o, "animate__fadeInDown"), 401 _(a, "animate__fadeInLeft"), 402 _(i, "animate__fadeInRight"), 403 _(n, "animate__fadeInTopLeft"), 404 _(s, "animate__fadeInTopRight"), 405 _(r, "animate__fadeInBottomLeft"), 406 _(l, "animate__fadeInBottomRight"); 407 } 408 function _(e, t) { 409 e.children().each(function () { 410 var e = n(this); 411 e.isInViewport() && e.addClass(t); 412 }); 413 } 414 (e = u), 415 (t = m), 416 (o = f), 417 (i = p), 418 (s = g), 419 (r = h), 420 (l = v), 421 (c = w), 422 b(d), 423 b(e), 424 b(t), 425 b(o), 426 b(i), 427 b(s), 428 b(r), 429 b(l), 430 b(c), 431 n(window).on("load", function () { 432 setTimeout(function () { 433 y(d, u, m, f, p, g, h, v, w); 434 }, 100); 435 }), 436 setTimeout(function () { 437 n(window).on("scroll", function () { 438 y(d, u, m, f, p, g, h, v, w); 439 }); 440 }, 400); 441 var C = n(".people-entry, .post-cta"), 442 j = n(window); 443 if ( 444 (j.on("scroll resize", function () { 445 var e = j.height(), 446 a = j.scrollTop(), 447 i = a + e; 448 n.each(C, function () { 449 var e = n(this), 450 t = e.outerHeight(), 451 o = e.offset().top; 452 a <= o + t && o <= i && e.addClass("in-view"); 453 }); 454 }), 455 j.trigger("scroll"), 456 setTimeout(function () { 457 n(".section--banner-large").addClass("animate__text"); 458 }, 500), 459 0 < n(".section--four-column-posts").length) 460 ) { 461 var x = document.getElementById("section--four-column-posts"); 462 document.addEventListener("scroll", function () { 463 var e = x.getBoundingClientRect(); 464 e.top, e.bottom; 465 n(".post-cta").addClass("in-view"); 466 }); 467 } 468 })(jQuery), 469 (function (e) { 470 var l = 471 window.requestAnimationFrame || 472 window.webkitRequestAnimationFrame || 473 window.mozRequestAnimationFrame || 474 window.msRequestAnimationFrame || 475 window.oRequestAnimationFrame || 476 function (e) { 477 window.setTimeout(e, 1e3 / 60); 478 }, 479 c = -1, 480 d = !1, 481 u = -1, 482 m = -1, 483 f = -1; 484 function p() { 485 window.pageYOffset; 486 var e = document.querySelectorAll(".section"), 487 o = document.querySelectorAll(".js-replace"), 488 t = document.querySelectorAll(".js-replace__item"), 489 a = document.querySelectorAll(".menu-btn"), 490 i = document.querySelectorAll(".navbar__background"); 491 0 < t.length && ((u = parseInt(o[0].getBoundingClientRect().top)), (f = t[0].offsetHeight), (m = u + f)); 492 var n = -1, 493 s = -1, 494 r = -1; 495 if (c == window.pageYOffset) return l(p), !1; 496 (c = window.pageYOffset), 497 Array.prototype.forEach.call(e, function (e, t) { 498 (n = parseInt(e.getBoundingClientRect().top)), 499 (s = parseInt(e.getBoundingClientRect().bottom)), 500 n <= m && 501 u < s && 502 ((r = e.classList.contains("section--bg")) 503 ? (o[0].classList.remove("js-replace--reverse"), i[0].classList.add("hamburger--forward"), a[0].classList.remove("hamburger--reverse")) 504 : (o[0].classList.add("js-replace--reverse"), a[0].classList.add("hamburger--reverse"), i[0].classList.remove("hamburger--forward"))), 505 u < n && n <= m && r != d && document.documentElement.style.setProperty("--replace-offset", (100 / f) * parseInt(n - u) + "%"); 506 }), 507 l(p); 508 } 509 p(), 510 (window.onresize = function (e) { 511 p(); 512 }), 513 e(document).on("click", 'a[href="#"]', function (e) { 514 e.preventDefault(); 515 }); 516 })(jQuery), 517 (function (o) { 518 o(".page-fade").addClass("page-fade-show"), 519 o("a[href]").click(function (e) { 520 var t = o(this); 521 (t.attr("target") && 0 <= t.attr("target").indexOf("_blank")) || 522 0 <= t.attr("href").indexOf("mailto:") || 523 0 <= t.attr("href").indexOf("tel:") || 524 0 <= t.attr("href").indexOf("#") || 525 0 <= t.attr("href").indexOf("javascript:void(0)") || 526 (o(".page-fade").removeClass("page-fade-show"), 527 setTimeout(function () { 528 window.location.href = t.attr("href"); 529 }, 500)); 530 }); 531 })(jQuery), 532 (function (e) { 533 e(".accordion > .accordion-item.is-active").children(".accordion-panel").slideDown(), 534 e(".accordion > .accordion-item .accordion-thumb").click(function () { 535 e(this).parent(".accordion-item").siblings(".accordion-item").removeClass("is-active").children(".accordion-panel").slideUp(), 536 e(this).parent(".accordion-item").toggleClass("is-active").children(".accordion-panel").slideToggle("ease-out"); 537 }), 538 e(document).ready(function () { 539 0 < e(".textwhite").length && (e(".textwhite").addClass("text--white"), e(".textwhite").removeClass("textwhite")), 540 0 < e(".buttonwhite").length && (e(".buttonwhite").addClass("button--w
540hite"), e(".buttonwhite").removeClass("buttonwhite")); 541 }); 542 })(jQuery), 543 (function (t) { 544 function e() { 545 if (!t(".single-post").length) { 546 if (t(".tigmo-video:not(.tigmo-video--background)").length) Plyr.setup(".tigmo-video:not(.tigmo-video--background)", {}); 547 if (t(".tigmo-video--background").length) { 548 var e = Plyr.setup(".tigmo-video--background", { autoplay: !0, clickToPlay: !1, muted: !0, volume: 0, loop: { active: !0 }, controls: [], fullscreen: { enabled: !1 }, vimeo: { background: !0, muted: !0 } }); 549 if ( 550 ((window.bannerPlayers = e), 551 t(window).load(function () { 552 e[0].volume = 0; 553 }), 554 t(".banner--video").length) 555 ) 556 0 < t(".banner--video").length && 557 e[0].on("play", function () { 558 setTimeout(function () { 559 t(".banner--video .poster-overlay").addClass("poster-overlay-hide"); 560 }, 22); 561 }); 562 } 563 t(".banner__scroll").on("click", function () { 564 t("html, body").animate({ scrollTop: t("section").offset().top }, 500); 565 }), 566 t(document).on("click", ".scroll-btn", function () { 567 var e = t(this).attr("href"); 568 return ( 569 1023 < t(window).width() 570 ? t("html,body").animate({ scrollTop: t(e).offset().top }, 500) 571 : t(e).hasClass("hide-in-mobile") 572 ? t("html,body").animate({ scrollTop: t(e + ".hide-on-desktop").offset().top }, 500) 573 : t("html,body").animate({ scrollTop: t(e).offset().top }, 500), 574 !1 575 ); 576 }), 577 t(".banner-post--right").css("opacity", 1); 578 } 579 0 < t(".banner--video").length && 580 "undefined" != typeof bannerPlayers && 581 bannerPlayers.forEach(function (e, t, o) { 582 var a = e; 583 a.on("ready", function (e) { 584 a.embed.setAutopause(!1); 585 }); 586 }); 587 } 588 if ("undefined" == typeof Plyr) 589 var o = setInterval(function () { 590 "undefined" != typeof Plyr && (clearInterval(o), e()); 591 }, 100); 592 else e(); 593 t(window).on("resize", function () { 594 t(".banner-inner-section p, .banner-inner-section h1 ").addClass("animate__fadeInUp"); 595 }); 596 })(jQuery), 597 $(".image-upload-wrap").bind("dragover", function () { 598 $(".image-upload-wrap").addClass("image-dropping"); 599 }), 600 $(".image-upload-wrap").bind("dragleave", function () { 601 $(".image-upload-wrap").removeClass("image-dropping"); 602 }), 603 $("#header-login-submit").click(function (e) { 604 var t = $("#istwofactorrequired").val(); 605 if (-1 == document.cookie.indexOf("wordpress_test_cookie")) 606 return ( 607 (document.cookie = "wordpress_test_cookie=WP Cookie check"), 608 $(".login-message").html( 609 '<strong>Error</strong>: Cookies are blocked or not supported by your browser. You must <a href="https://wordpress.org/support/article/cookies/#enable-cookies-in-your-browser">enable cookies</a> to use WordPress.' 610 ), 611 !1 612 ); 613 $(".login-message").html(""); 614 var o = $("#twofa-input").is(":hidden"), 615 a = parseInt($("#istwofavalidated").val()); 616 if (!o && 0 == a) { 617 e.preventDefault(); 618 var i = $("#loginForm").serialize(); 619 (i += "&action=check2fa"), 620 $.ajax({ type: "POST", url: ajaxData.ajaxUrl, data: i, dataType: "json", encode: !0 }) 621 .done(function (t) { 622 t.errors
623 ? (Object.keys(t.errors).forEach(function (e) { 624 $(".login-message").append(t.errors[e]); 625 }), 626 $("#login-message").show(), 627 $("#istwofavalidated").val(0)) 628 : ($("#login-message").hide(), $("#istwofavalidated").val(1), (window.location.href = t.redirecturl)); 629 }) 630 .fail(function (e) { 631 console.log(e); 632 }); 633 } 634 if (0 == t && !$("#input-userid").is(":hidden")) { 635 e.preventDefault(); 636 i = $("#loginForm").serialize(); 637 (i += "&action=wordfence_ls_authenticate"), 638 $.ajax({ type: "POST", url: ajaxData.ajaxUrl, data: i, dataType: "json", encode: !0 }) 639 .done(function (e) { 640 1 === e.login 641 ? e.two_factor_required 642 ? ($("#input-userid").hide(), $("#input-pwd").hide(), $("#twofa-input").addClass("form__field--wrap"), $("#twofa-input").show(), $(".login-message").html(""), $("#login-message").hide()) 643 : ($("#istwofactorrequired").val(1), $("#header-login-submit").trigger("click")) 644 : ($(".login-message").html(e.error), $("#login-message").show(), $("#twofa-input").removeClass("form__field--wrap")); 645 }) 646 .fail(function (e) { 647 $(".login-message").html("Please enter the correct password."), $("#login-message").show(); 648 }); 649 } 650 }), 651 $(".hamburger--group").click(function (e) { 652 document.cookie = "wordpress_test_cookie=WP Cookie check"; 653 }), 654 (function (n) { 655 var o = ".js-load_more_insight_news", 656 a = n(".insight_news_container"), 657 i = n(".filter--tags ul.tags"), 658 e = n("#intialpostcount").val(), 659 t = null, 660 s = {}; 661 function r(e) { 662 return e.charAt(0).toUpperCase() + e.slice(1); 663 } 664 if (((s.action = "get_insight_news"), (s.page = 1), (s.pageNo = e), (s.filterCategoryContent = []), (s.filterCategoryMedia = []), n(".section--four-column-posts").length)) { 665 var l = n('[data-category_type="content"]'), 666 c = n('[data-category_type="media"]'); 667 n(document).on("click", ".open--filter--list", function () { 668 var e; 669 n(this).siblings(".filter--list").slideToggle(), 670 n(this).toggleClass("active-filter"), 671 "content" == (e = n(this).closest(".type--box").find("ul.filter--list").data("category_type")) 672 ? (c.closest(".type--box").find(".open--filter--list").removeClass("active-filter"), 673 c.closest(".type--box").find(".open--filter--list").addClass("blur-filter"), 674 c.closest(".type--box").find("ul.filter--list").slideUp()) 675 : "media" == e && 676 (l.closest(".type--box").find(".open--filter--list").removeClass("active-filter"), 677 l.closest(".type--box").find(".open--filter--list").addClass("blur-filter"), 678 l.closest(".type--box").find("ul.filter--list").slideUp()), 679 l.closest(".type--box").find(".open--filter--list").hasClass("active-filter") || c.closest(".type--box").find(".open--filter--list").hasClass("active-filter") || n(".open--filter--list").removeClass("blur-filter"); 680 }); 681 } 682 if (n(".insight_news_container").length || n(".singlePageFilterUl").length) { 683 var d = function (e) { 684 n(e).removeClass("active-filter--list"); 685 }, 686 u = function (e, t) { 687 a.animate({ opacity: 0 }, 500), 688 (s.page = 1), 689 "viewall" == e 690 ? ajaxData.userId 691 ? (localStorage.setItem("savedCategoryContent_" + ajaxData.userId, ""), localStorage.setItem("savedCategoryMedia_" + ajaxData.userId, "")) 692 : (localStorage.setItem("savedCategoryContent_loggedout", ""), localStorage.setItem("savedCategoryMedia_loggedout", "")) 693 : "content" == t 694 ? (-1 != n.inArray(e, s.filterCategoryContent) ? s.filterCategoryContent.splice(n.inArray(e, s.filterCategoryContent), 1) : s.filterCategoryContent.push(e), 695 ajaxData.userId ? localStorage.setItem("savedCategoryContent_" + ajaxData.userId, s.filterCategoryContent) : localStorage.setItem("savedCategoryContent_loggedout", s.filterCategoryContent)) 696 : (-1 != n.inArray(e, s.filterCategoryMedia) ? s.filterCategoryMedia.splice(n.inArray(e, s.filterCategoryMedia), 1) : s.filterCategoryMedia.push(e), 697 ajaxData.userId ? localStorage.setItem("savedCategoryMedia_" + ajaxData.userId, s.filterCategoryMedia) : localStorage.setItem("savedCategoryMedia_loggedout", s.filterCategoryMedia)), 698 m(); 699 }, 700 m = function () { 701 if (1 != s.page) { 702 var e = n("#nextpostcount").val(); 703 s.pageNo = e; 704 } 705 clearTimeout(t), 706 (t = setTimeout(function () { 707 f({ 708 data: s, 709 success: function (e) { 710 p(e, s.page), 711 a.fadeIn(1e3), 712 setTimeout(function () { 713 n(".post-cta-inner").addClass("activate"); 714 }, 100), 715 n(".post-cta-inner").animate({ opacity: "1" }, 500), 716 (function (e) { 717 var t = 0 < arguments.length && void 0 !== e ? e : null; 718 n(".load-more-hide").removeClass("load-more-hide"), 719 n(".insight_news_container li").length >= t && n(o).hide(), 720 1 != s.page ? n(".insight_news_container li").length < 8 && n(o).hide() : n(".insight_news_container li").length < 4 && n(o).hide(); 721 })(e.foundPost), 722 w(), 723 n(".post-cta").addClass("in-view"); 724 }, 725 error: function (e) { 726 console.log(e); 727 }, 728 }); 729 }, 100)); 730 }, 731 f = function (i) { 732 n.ajax({ 733 type: "POST", 734 url: ajaxData.ajaxUrl, 735 data: i.data, 736 dataType: "json", 737 success: function (e) { 738 i.success(e); 739 }, 740 error: function (e, t, o) { 741 var a = e.status + " " + o; 742 i.error(a); 743 }, 744 }); 745 }, 746 p = function (e, t) { 747 1 == t 748 ? (null != e.pagination 749 ? (h(e.pagination), n(a).closest("div.section-container-insight-ne
749ws").find(".js-load_more_insight_news").fadeIn()) 750 : n(a).closest("div.section-container-insight-news").find(".js-load_more_insight_news").fadeOut(0), 751 n(a).html(e.html), 752 a.animate({ opacity: 1 }, 500)) 753 : (null != e.pagination 754 ? (h(e.pagination), n(a).closest("div.section-container-insight-news").find(".js-load_more_insight_news").fadeIn()) 755 : (n(a).closest("div.section-container-insight-news").find(".js-load_more_insight_news").attr("data-end", "1"), n(a).closest("div.section-container-insight-news").find(".js-load_more_insight_news").fadeOut(0)), 756 n(a).append(e.html)), 757 g(e.post_count); 758 }, 759 g = function (e) { 760 (e = parseInt(e)) && n(a).closest(".section-container-insight-news").find(".js-load_more_insight_news").attr("data-postcount", e); 761 }, 762 h = function (e) { 763 n(a).closest(".section-container-insight-news").find(".js-load_more_insight_news").attr("data-pageno", e); 764 }, 765 v = function () { 766 i.slideUp(), 767 n(".open--filter--list").removeClass("blur-filter"), 768 setTimeout(function () { 769 i.empty(), i.append('<li class="content_clearall"><span class="button with-arrow button--clear">Clear All</span></li>'); 770 }, 600), 771 d(n("ul.filter--list li")), 772 (s.filterCategoryContent = []), 773 (s.filterCategoryMedia = []); 774 }; 775 n(".insight_news_container li").length < 8 && n(o).hide(), 776 (function () { 777 var e = "", 778 t = ""; 779 if ( 780 ((t = ajaxData.userId 781 ? ((e = localStorage.getItem("savedCategoryContent_" + ajaxData.userId)), localStorage.getItem("savedCategoryMedia_" + ajaxData.userId)) 782 : ((e = localStorage.getItem("savedCategoryContent_loggedout")), localStorage.getItem("savedCategoryMedia_loggedout"))), 783 (e || t) && i.show(500), 784 e) 785 ) { 786 if (-1 < e.indexOf(",")) { 787 var o = e.split(","); 788 n.each(o, function (e, t) { 789 s.filterCategoryContent.push(t), 790 n('ul.js-content_filter li[data-termslug="' + t + '"]').addClass("active-filter--list"), 791 i.prepend('<li data-termslug="' + t + '" data-termtype="content"><span class="button with-arrow">' + r(t) + "</span></li>"); 792 }); 793 } else 794 s.filterCategoryContent.push(e), 795 n('ul.js-content_filter li[data-termslug="' + e + '"]').addClass("active-filter--list"), 796 i.prepend('<li data-termslug="' + e + '" data-termtype="content"><span class="button with-arrow">' + r(e) + "</span></li>"); 797 n(".content_clearall").show(); 798 } 799 if (t) { 800 if (-1 < t.indexOf(",")) { 801 var a = t.split(","); 802 n.each(a, function (e, t) { 803 s.filterCategoryMedia.push(t), 804 n('ul.js-media_filter li[data-termslug="' + t + '"]').addClass("active-filter--list"), 805 i.prepend('<li data-termslug="' + t + '" data-termtype="media"><span class="button with-arrow">' + r(t) + "</span></li>"); 806 }); 807 } else 808 s.filterCategoryMedia.push(t), 809 n('ul.js-media_filter li[data-termslug="' + t + '"]').addClass("active-filter--list"), 810 i.prepend('<li data-termslug="' + t + '" data-termtype="media"><span class="button with-arrow">' + r(t) + "</span></li>"); 811 n(".content_clearall").show(); 812 } 813 m(); 814 })(), 815 n(document).on("click", o, function (e) { 816 n(this).addClass("load-more-hide"), 817 setTimeout(function () { 818 n(this).hide(); 819 }, 200), 820 e.preventDefault(); 821 var t = n(this).attr("data-end"), 822 o = n(this).attr("data-pageno"); 823 (s.endPagination = t), 824 (function (e) { 825 (s.page = e), 826 m(), 827 setTimeout(function () { 828 n(".post-cta-inner.activate").animate({ opacity: 1 }, 500); 829 }, 1e3); 830 })(o); 831 }), 832 n(document).on("click", ".section-container-insight-ne
832ws ul.filter--list li", function () { 833 var e = n("#nextpostcount").val(); 834 s.pageNo = e; 835 var t = n(this).text(), 836 o = n(this).data("termslug"), 837 a = n(this).closest("ul.filter--list").data("category_type"); 838 u(o, a), 839 n(this).hasClass("active-filter--list") 840 ? (i.find('li[data-termslug="' + o + '"]').remove(), d(n(this))) 841 : (i.slideDown(), 842 n(".content_clearall").show(), 843 n(this).addClass("active-filter--list"), 844 i.prepend('<li data-termslug="' + o + '" data-termtype="' + a + '"><span class="button with-arrow">' + t + "</span></li>"), 845 n(".filter--list").slideUp(), 846 n(".open--filter--list").removeClass("active-filter")); 847 }), 848 n(document).on("click", ".content_clearall .button--clear", function () { 849 v(), 850 a.animate({ opacity: 0 }, 1e3), 851 localStorage.setItem("savedCategoryMedia_" + ajaxData.userId, ""), 852 localStorage.setItem("savedCategoryContent_" + ajaxData.userId, ""), 853 localStorage.setItem("savedCategoryContent_loggedout", ""), 854 localStorage.setItem("savedCategoryMedia_loggedout", ""); 855 var e = n("#nextpostcount").val(); 856 (s.pageNo = e), (s.filterCategoryContent = []), (s.filterCategoryMedia = []), m(); 857 }), 858 n(document).on("click", ".filter--tags ul.tags li", function () { 859 var e = n("#nextpostcount").val(); 860 s.pageNo = e; 861 var t = n(this).data("termslug"), 862 o = n(this).data("termtype"); 863 u(t, o), n(this).hasClass("content_clearall") || (2 == n(".filter--tags ul.tags li").length ? v() : n(this).remove()), n('ul.filter--list li[data-termslug="' + t + '"]').removeClass("active-filter--list"); 864 }), 865 n(document).on("click", ".singlePageFilterUl li", function () { 866 var e = n(this).data("termslug"), 867 t = n(this).data("category_type"); 868 u(e, t); 869 }); 870 } 871 function w() { 872 var e = 0; 873 n(".post-cta-main").each(function () { 874 n(this).find(".content--wrapper--inner").outerHeight() > e && (e = n(this).find(".content--wrapper--inner").outerHeight()); 875 }), 876 n(".content--wrapper").css({ height: e }); 877 } 878 n(document).click(function (e) { 879 n(e.target).closest(".open--filter--list").length || 880 (n(".open--filter--list").removeClass("active-filter"), n(".open--filter--list").removeClass("blur-filter"), n(".js-content_filter").slideUp("fast"), n(".js-media_filter").slideUp("fast")); 881 }), 882 setTimeout(function () { 883 w(), 884 n(".post-cta-main").on("DOMSubtreeModified", function () { 885 w(); 886 }); 887 }, 2e3), 888 n(window).on("resize", function () { 889 w(); 890 }), 891 n(document).ready(function () { 892 setTimeout(function () { 893 n(".post-cta-inner").css("opacity", "1"), n(".post-cta-inner").addClass("test"); 894 }, 1500); 895 }); 896 })(jQuery), 897 (function (t) { 898 new Swiper(".swiper", { 899 slidesPerView: 1.4, 900 direction: "horizontal", 901 slideOffsetAfter: 200, 902 loop: !1, 903 spaceBetween: 39, 904 freeMode: !0, 905 mousewheel: { releaseOnEdges: !0 }, 906 breakpoints: { 907 1440: { slidesPerView: 6.9, spaceBetween: 23 }, 908 1024: { slidesPerView: 5.8, spaceBetween: 16 }, 909 990: { slidesPerView: 3.5, spaceBetween: 39 }, 910 768: { slidesPerView: 3.5, spaceBetween: 39 }, 911 500: { slidesPerView: 2.5, spaceBetween: 39 }, 912 375: { slidesPerView: 1.5, spaceBetween: 39 }, 913 250: { slidesPerView: 1.2, spaceBetween: 39 }, 914 }, 915 }); 916 function e() { 917 var e = 0; 918 t(".swiper-slides").each(function () { 919 t(this).find(".swiper-slides--inner").outerHeight() > e && (e = t(this).find(".swiper-slides--inner").outerHeight()); 920 }), 921 t(".swiper-slides").css({ height: e }); 922 } 923 e(), 924 t(".swiper-slides-main").on("DOMSubtreeModified", function () { 925 e(); 926 }), 927 t(window).resize(function () { 928 setTimeout(function () { 929 e(); 930 }, 500); 931 }), 932 t(".section--insights-slider .subscribe-edm").click(function () { 933 t(".section--insights-slider .footer--top-links").fadeOut(300), 934 t(".section--insights-slider .footer--top").slide
934Up(600), 935 setTimeout(function () { 936 t(".section--insights-slider .footer--top").slideDown(600), t(".section--insights-slider .login--window").fadeIn(500); 937 }, 300); 938 }), 939 t(".section--insights-slider .logout").click(function () { 940 t(".section--insights-slider .footer--top-links").fadeOut(300), 941 t(".section--insights-slider .footer--top").slideUp(600), 942 setTimeout(function () { 943 t(".section--insights-slider .logout--window").fadeIn(500), t(".section--insights-slider .footer--top").slideDown(600); 944 }, 300); 945 }), 946 t(".section--insights-slider .back-button").click(function () { 947 t(".section--insights-slider .login--window").fadeOut(300), 948 t(".section--insights-slider .subscribe--window").fadeOut(300), 949 t(".section--insights-slider .logout--window").fadeOut(300), 950 t(".section--insights-slider .footer--top").slideUp(600), 951 setTimeout(function () { 952 t(".section--insights-slider .footer--top-links").fadeIn(300), t(".section--insights-slider .footer--top").slideDown(600); 953 }, 300); 954 }); 955 })(jQuery), 956 (function (e) { 957 var t; 958 (t = navigator.userAgent || navigator.vendor || window.opera), 959 /iPad|iPhone|iPod/.test(t) && !window.MSStream && (e("body").addClass("only-phone"), e("body").addClass("i-phone")), 960 /android/i.test(t) && e("body").addClass("android-phone"); 961 var o = 0.01 * window.innerHeight; 962 document.documentElement.style.setProperty("--vh", "".concat(o, "px")), 963 window.addEventListener("resize", function () { 964 var e = 0.01 * window.innerHeight; 965 document.documentElement.style.setProperty("--vh", "".concat(e, "px")); 966 }); 967 })(jQuery), 968 jQuery, 969 (function (i) { 970 i(document).on("click", ".js-show-lightbox", function () { 971 i(".js-lightbox").addClass("show"); 972 }), 973 i(document).on("click", ".js-lightbox", function (e) { 974 e.target === e.currentTarget && i(".js-lightbox").removeClass("show"); 975 }), 976 i(document).on("click", ".lightbox-close", function () { 977 i(".js-lightbox").removeClass("show"), i(".section--modal-restricted").removeClass("show"), i(".section--loggedin").removeClass("show"); 978 }), 979 i(document).on("click", ".logged-in-mobile", function () { 980 i(".section--loggedin").addClass("show"), i(".reset-password__change").removeClass("show-field"); 981 }), 982 i(document).on("click", ".section--loggedin", function (e) { 983 e.target === e.currentTarget && i(".section--loggedin").removeClass("show"); 984 }), 985 i(document).on("click", ".lightbox-close", function () { 986 i(".js-lightbox-two").removeClass("show"); 987 }), 988 i(document).on("click", ".restricted_content", function (e) { 989 i(".section--modal-restricted").addClass("show"); 990 }), 991 i(document).on("click", ".section--modal-restricted ", function (e) { 992 e.target === e.currentTarget && i(".section--modal-restricted").removeClass("show"); 993 }), 994 i(document).on("click", ".js-open-lightbox", function () { 995 !(function (e) { 996 var t = e.attr("data-imgid"); 997 i("." + t).addClass("show"); 998 })(i(this)); 999 }), 1000 i(document).on("click", ".section--content--lightbox", function (e) { 1001 e.target === e.currentTarget && 1002 (function (e) { 1003 e.removeClass("show"); 1004 })(i(this)); 1005 }), 1006 i(document).on("click", ".lightbox-close", function () { 1007 i(".section--content--lightbox").removeClass("show"); 1008 }), 1009 i(".wp-caption .wp-caption-text").wrap("<div class='caption-holder'></div>"), 1010 i(".wp-caption .caption-holder").append('<div class="js-open-lightbox">
1010Enlarge</div>'), 1011 i(".wp-caption .caption-holder").each(function () { 1012 i(this).find(".js-open-lightbox").attr("data-imgId", i(this).find(".wp-caption-text").attr("id")); 1013 }), 1014 i(".post-cta--right img").each(function () { 1015 var e = i(this).attr("class"); 1016 if (e) { 1017 var t = e.split("wp-image-")[1].split(" "); 1018 i(this).wrap('<div class="js-open-lightbox" data-imgid="caption-attachment-' + t[0] + '"></div>'); 1019 } 1020 }), 1021 i(document).on("click", ".js-open-video", function () { 1022 var e = i(this).attr("data-iframe_count"); 1023 i(".js-lightbox-video-" + e).addClass("show"); 1024 }), 1025 i(document).on("click", ".js-lightbox-video", function (e) { 1026 e.target === e.currentTarget && (i(".js-lightbox-video").removeClass("show"), i(".plyr--playing.plyr").trigger("click")); 1027 }), 1028 i(document).on("click", ".lightbox-close", function () { 1029 i(".js-lightbox-video").removeClass("show"), i(".plyr--playing.plyr").trigger("click"); 1030 }); 1031 var e = 1; 1032 i(".post-cta--right iframe").each(function () { 1033 i(this).wrap('<div class="js-player-lightbox-video js-player-lightbox-video-' + e + '"></div>'), 1034 i(this).closest(".js-player-lightbox-video").wrap('<div class="main-player--lightbox-video"></div>'), 1035 i(this) 1036 .parents(".main-player--lightbox-video") 1037 .append('<div class="js-open-video" data-iframe_count="' + e + '"></div>'), 1038 e++; 1039 }), 1040 document.addEventListener("DOMContentLoaded", function () { 1041 if (i(".post-cta--right iframe").length) { 1042 var a = 1; 1043 i(".post-cta--right iframe").each(function () { 1044 var e = new Plyr(".js-player-lightbox-video-" + a, { controls: [] }), 1045 t = Plyr.setup(".js-opened-lightbox-video", { defaultOptions: {} }), 1046 o = i(".js-open-video"); 1047 o.click(function (e) { 1048 t[o.index(this)].play(); 1049 }), 1050 (window.player = t), 1051 (window.player = e), 1052 a++; 1053 }); 1054 } 1055 }); 1056 })(jQuery), 1057 (function (a) { 1058 var o = 0; 1059 a(window).scroll(function (e) { 1060 var t = a(this).scrollTop(); 1061 o < t && 0 < t ? a("body:not(.home) .section--navbar").removeClass("nav-down").addClass("nav-up") : a("body:not(.home) .section--navbar").removeClass("nav-up").addClass("nav-down"), 1062 (o = t), 1063 0 == window.scrollY ? a("body:not(.home) .section--navbar .js-replace__content .logo--white").fadeIn() : a("body:not(.home) .section--navbar .js-replace__content .logo--black").fadeIn(); 1064 }), 1065 a(window) 1066 .scroll(function () { 1067 var e = a(".navbar__background"), 1068 t = a(".section--navbar"); 1069 jQuery(window).scrollTop() <= 0 ? (e.removeClass("scroll"), t.removeClass("nav-down")) : e.addClass("scroll"); 1070 }) 1071 .scroll(), 1072 a(document).on("click", ".menu-btn:not(.close-login)", function () { 1073 var e = a(this), 1074 t = a(".navbar"), 1075 o = a(".menu-overlay"); 1076 e.toggleClass("is-active"), t.toggleClass("is-active"), o.toggleClass("menu-overlay-show"); 1077 }), 1078 (a.fn.menumaker = function (e) { 1079 var t = a(this), 1080 o = a.extend({ format: "dropdown", sticky: !1 }, e); 1081 return this.each(function () { 1082 function e() { 1083 979 < a(window).width() && (a(".menu, .sub-menu").removeAttr("style"), t.find(".mobile-menu-icon").removeClass("menu-opened"), t.find(".mobile-sub-menu-icon").removeClass("submenu-opened")), 1084 a(window).width() <= 979 && t.find(".menu, .sub-menu").removeClass("open"); 1085 } 1086 return ( 1087 a(this) 1088 .find(".mobile-menu-icon") 1089 .on("click", function () { 1090 a(this).toggleClass("menu-opened"); 1091 var e = a(".menu"); 1092 e.hasClass("open") ? e.slideToggle().removeClass("open") : (e.slideToggle().addClass("open"), "dropdown" === o.format && e.find("ul").show()); 1093 }), 1094 t.find(".sub-menu").addClass("has-sub"), 1095 "multitoggle" === o.format 1096 ? (t.find(".menu-item-has-children").prepend('<span class="mobile-sub-menu-icon"></span>'), 1097 t.find(".mobile-sub-menu-icon").on("click", function () { 1098 a(this).toggleClass("submenu-opened"), a(this).siblings("ul").hasClass("open") ? a(this).siblings("ul").removeClass("open").slideToggle() : a(this).siblings("ul").addClass("open").slideToggle(); 1099 })) 1100 : t.addClass("dropdown"), 1101 !0 === o.sticky && t.css("position", "fixed"), 1102 e(), 1103 a(window).on("resize", e) 1104 ); 1105 }); 1106 }), 1107 a(".menu-btn:not(.close-login)").click(function () { 1108 a("html").toggleClass("window-loaded"), a("html").removeClass("window-move"), a(".navbar").toggleClass("main-menu-is-open"); 1109 }); 1110 var i = []; 1111 a(document).on("click", ".menu-btn:not(.close-login)", function () { 1112 var e = a(this).data("clicks"); 1113 e 1114 ? (a.each(i, function (e, t) { 1115 clearTimeout(t); 1116 }), 1117 (i = []), 1118 a(".tg-header-menu > .menu-item").removeClass("menu--fade-top")) 1119 : a(".tg-header-menu > .menu-item").each(function (e) { 1120 var t = a(this); 1121 i.push( 1122 setTimeout(function () { 1123 t.addClass("menu--fade-top"); 1124 }, 475) 1125 ); 1126 }), 1127 a(this).data("clicks", !e); 1128 }), 1129 a(document).on("click", ".navbar-login--button", function () { 1130 a(".menu-btn.is-active").click(), 1131 a("html").toggleClass("window-move"), 1132 a(".section--modal-restricted").removeClass("show"), 1133 a(".js-login-close").toggleClass("hide-close"), 1134 a(".menu-btn").toggleClass("hide-menu-btn"), 1135 a(".login-message").empty(); 1136 }), 1137 a(document).on("click", ".js-login-close", function () { 1138 a(".js-login-close").addClass("hide-close"), a("html").removeClass("window-move"), a(".menu-btn").removeClass("hide-menu-btn"), a(".login-message").empty(); 1139 }), 1140 a("body").hasClass("logged-in") && a("li.navbar-login--button").removeClass("navbar-login--button"), 1141 a(".section--navbar").hasClass("no-praemium-id") ? a(".navbar-login--button a, .navbar-login--button li a").removeAttr("href") : a("#menu-header-menu li:last-child").removeClass("navbar-login--button"), 1142 a(document).on("click", ".menu-btn.close-login", function () { 1143 a(this).removeClass("close-login"), a("html").removeClass("window-move window-loaded"), a(".navbar").removeClass("main-menu-is-open login-open"); 1144 }), 1145 a(document).on("click", ".hamburger--group .logged-in", function () { 1146 a(".main-menu-is-open .menu-overlay-show").trigger("click"); 1147 }); 1148 })(jQuery), 1149 (function (e) { 1150 e(document).ready(function () { 1151 e("#tg-header-menu").menumaker({ format: "multitoggle" }); 1152 }), 1153 e(".menu-item a").click(function () { 1154 e(".menu-btn").trigger("click"); 1155 }), 1156 e(".menu-overlay").click(function () { 1157 e(".is-active").trigger("click"), e(".window-move").removeClass("window-move"), e(".js-login-close").addClass("hide-close"), e(".menu-btn").removeClass("hide-menu-btn"), e(".login-message").empty(); 1158 }), 1159 e("body").hasClass("logged-in") && e(".section--navbar").hasClass("no-praemium-id") && e(".navbar-login--button a, .navbar-login--button li a").attr("href"); 1160 })(jQuery), 1161 jQuery(document).ready(function (i) { 1162 function n(e) { 1163 var t = i("#response-message-password"); 1164 t.html(e).css("display", "block"), 1165 setTimeout(function () { 1166 t.fadeOut(500, function () { 1167 t.css("display", "none"); 1168 }); 1169 }, 5e3); 1170 } 1171 i("#js-update-user-data").on("click", function (e) { 1172 e.preventDefault(); 1173 var t = i("#profile-update-form").serialize(); 1174 i.ajax({ 1175 type: "POST", 1176 url: ajaxData.ajaxUrl, 1177 data: t + "&action=update_profile", 1178 beforeSend: function (e) { 1179 e.setRequestHeader("X-WP-Nonce", ajaxData.profile_nonce); 1180 }, 1181 success: function (e) { 1182 e.success, i("#response-message").html("<p>" + e.data.message + "</p>"); 1183 }, 1184 error: function () { 1185 i("#response-message").html("<p>There was an error processing your request. Please try again.</p>"); 1186 }, 1187 }); 1188 }), 1189 i("#js-update-user-pass").on("click", function (e) { 1190 e.preventDefault(); 1191 var t = i("#password-change-form").serialize(), 1192 o = i("#new_password").val(), 1193 a = i("#confirm_new_password").val(); 1194 o.length < 8 1195 ? n("<p>New password must be at least 8 characters long.</p>") 1196 : o === a 1197 ? i.ajax({ 1198 type: "POST", 1199 url: ajaxData.ajaxUrl, 1200 data: t + "&action=change_password_profile_page", 1201 beforeSend: function (e) { 1202 e.setRequestHeader("X-WP-Nonce", ajaxData.profile_nonce); 1203 }, 1204 success: function (e) { 1205 e.success, n("<p>" + e.data.message + "</p>"); 1206 }, 1207 error: function () { 1208 n("<p>There was an error processing your request. Please try again.</p>"); 1209 }, 1210 }) 1211 : n("<p>New password and confirm password do not match.</p>"); 1212 }); 1213 }), 1214 (function (n) { 1215 var t = {}; 1216 (t.action = "get_reports"), 1217 (t.accountNumber = []), 1218 (t.reportDisplayArea = []), 1219 n("li.account-item").each(function (e) { 1220 (t.accountNumber = n(this).data("account")), 1221 (t.reportDisplayArea = n(this) 1222 .data("report") 1223 .substring(n(this).data("report").indexOf("-") + 1)), 1224 (function (i) { 1225 n.ajax({ 1226 type: "POST", 1227 url: ajaxData.ajaxUrl, 1228 data: i.data, 1229 dataType: "json", 1230 success: function (e) { 1231 i.success(e); 1232 }, 1233 error: function (e, t, o) { 1234 var a = e.status + " " + o; 1235 i.error(a); 1236 }, 1237 }); 1238 })({ 1239 data: t, 1240 success: function (e) { 1241 !(function (e) { 1242 if ("<p>No reports were found for this account, please check back next quarter. </p>" == e.html) { 1243 var t = "#report-" + e.reportDisplayArea; 1244 n("#report-" + e.reportDisplayArea + " > .reports--inner > ul").remove(), 1245 n("#report-" + e.reportDisplayArea + " > .reports--inner > div.load--button-group").remove(), 1246 n(t).append(e.html), 1247 n("#report-" + e.reportDisplayArea + " > p").addClass("section--reports-container"); 1248 } else { 1249 var o = "#report-" + e.reportDisplayArea + " ul"; 1250 n(o).append(e.html); 1251 } 1252 })(e), 1253 (function (e) { 1254 4 < e.accountReports.length && 1255 (setTimeout(function () { 1256 n(".reports ul").find("li:lt(4)").addClass("activate"); 1257 }, 100), 1258 n(".reports ul") 1259 .find("li:lt(4)") 1260 .slideDown(function () { 1261 n(".report-cta.activate").animate({ opacity: "1" }, 500); 1262 }), 1263 n(".reports ul").find("li:gt(3)").css({ opacity: "0", display: "none" }), 1264 n(".load--more[data-load-more-count=" + e.reportDisplayArea + "]").show(), 1265 n(".load--more[data-load-more-count=" + e.reportDisplayArea + "]").css("opacity", "1")); 1266 })(e); 1267 }, 1268 error: function () {}, 1269 }); 1270 }), 1271 n(".load--more a").on("click", function () { 1272 var e = n(this).closest(".load--more").attr("data-load-more-count"), 1273 t = parseInt(n(".reports-ul-" + e).attr("data-visible-li")), 1274 o = n("ul.reports-ul-" + e + " > li").length, 1275 a = o < t + 4 ? o : t + 4; 1276 n("ul.reports-ul-" + e) 1277 .find("li:lt(" + a + ")") 1278 .each(function () { 1279 setTimeout(function () { 1280 n("ul.reports-ul-" + e) 1281 .find("li:lt(" + a + ")") 1282 .addClass("activated"); 1283 }, 100), 1284 n(this).slideDown(function () { 1285 n(".report-cta.activated").animate({ opacity: "1" }, 500); 1286 }); 1287 }), 1288 n("ul.reports-ul-" + e).attr("data-visible-li", a), 1289 a >= n(".reports-ul-" + e).children().length && (n(".load--more[data-load-more-count=" + e + "]").hide(), n(".load--more[data-load-more-count=" + e + "]").css("opacity", "0")), 1290 4 < a && (n("div[data-load-less-count=" + e + "]").show(), n("div[data-load-less-count=" + e + "]").css("opacity", "1")); 1291 }), 1292 n(".load--less a").on("click", function () { 1293 var e = n(this).closest(".load--less").attr("data-load-less-count"), 1294 t = n("ul.reports-ul-" + e + " > li").length, 1295 o = 4 - t, 1296 a = 4 < t ? 4 : t; 1297 n("ul.reports-ul-" + e + " > li") 1298 .slice(o) 1299 .stop(!0) 1300 .animate({ opacity: "0" }, 600, function () { 1301 n(this).slideUp().removeClass("activated"); 1302
1302 }), 1303 n("ul.reports-ul-" + e).attr("data-visible-li", a), 1304 a <= 4 && (n(".load--less[data-load-less-count=" + e + "]").hide(), n(".load--less[data-load-less-count=" + e + "]").css("opacity", "0")), 1305 n(".load--more[data-load-more-count=" + e + "]").show(), 1306 n(".load--more[data-load-more-count=" + e + "]").css("opacity", "1"); 1307 }), 1308 n(".main-post-container.insight_news_container").css("min-height", "563px"), 1309 n(window).load(function () { 1310 setTimeout(function () { 1311 n(".page-template-portal").css("opacity", "1"), n(".main-post-container.insight_news_container").css("min-height", ""); 1312 }, 300); 1313 }); 1314 })(jQuery), 1315 (function (t) { 1316 var o = !1; 1317 t(document).on("click", ".section--reports .reports-filter--list li", function () { 1318 t(this).toggleClass("active-reports--list"); 1319 t(this); 1320 o 1321 ? t(this).attr("data-report") == t(".activeLnk").attr("id") 1322 ? (o = !1) 1323 : (t("div[id=" + t(this).attr("data-report") + "]").addClass("activeLnk"), 1324 t("div[id=" + t(this).attr("data-report") + "]").slideDown(function () { 1325 t(".reports.activeLnk").animate({ opacity: "1" }, 600); 1326 })) 1327 : (t("div[id=" + t(this).attr("data-report") + "]").addClass("activeLnk"), 1328 t("div[id=" + t(this).attr("data-report") + "]").slideDown(function () { 1329 t(".reports.activeLnk").animate({ opacity: "1" }, 600); 1330 }), 1331 (o = !0)); 1332 }), 1333 t(document).on("click", ".section--reports .reports-filter--list li.active-reports--list", function () { 1334 var e = t(this); 1335 o 1336 ? t(this).attr("data-report") == t(".activeLnk").attr("id") 1337 ? (o = !1) 1338 : (t("div[id=" + t(this).attr("data-report") + "]").removeClass("activeLnk"), 1339 t("div[id=" + t(this).attr("data-report") + "]").is(":visible") && 1340 t("div[id=" + t(this).attr("data-report") + "]").animate({ opacity: "0" }, 600, function () { 1341 t("div[id=" + e.attr("data-report") + "]").slideUp(); 1342 })) 1343 : (t("div[id=" + t(this).attr("data-report") + "]").removeClass("activeLnk"), 1344 t("div[id=" + t(this).attr("data-report") + "]").is(":visible") && 1345 t("div[id=" + t(this).attr("data-report") + "]").animate({ opacity: "0" }, 600, function () { 1346 t("div[id=" + e.attr("data-report") + "]").slideUp(); 1347 }), 1348 (o = !0)); 1349 }); 1350 })(jQuery), 1351 (function (o) { 1352 function e() { 1353 o(".menu-btn").addClass("hide-menu-btn"), 1354 o(".js-overlay").addClass("show-overlay"), 1355 o(".section--reset-password").addClass("show-reset-password"), 1356 o(".js-close").removeClass("hide-close"), 1357 o(".section--loggedin").removeClass("show"), 1358 o(".navbar__logo .logo").addClass("logo-hide"), 1359 o("html").removeClass("window-move"); 1360 } 1361 o(document).on("click", ".modify-button", function () { 1362 o(this).addClass("hide-modify"), 1363 o(".menu-btn").addClass("hide-menu-btn"), 1364 o(".js-overlay").addClass("show-overlay"), 1365 o(".section--reset-password").addClass("show-reset-password"), 1366 o(".js-close").removeClass("hide-close"), 1367 o(".section--loggedin").removeClass("show"), 1368 o(".navbar__logo .logo").addClass("logo-hide"), 1369 o("html").addClass("window-reset"), 1370 o(".menu-btn.is-active").trigger("click"), 1371 o(".reset-password__modify").removeClass("hide-field"), 1372 o(".forget-password__modify").removeClass("show-field"); 1373 }), 1374 o(document).on("click", "body:not(.logged-in) .js-forgot-password", function () { 1375 o("p.login-message").empty(), e(), o(".reset-password__modify").removeClass("show-field"), o(".reset-password__modify").addClass("hide-field"), o(".forget-password__modify").addClass("show-field"); 1376 }), 1377 o(document).on("click", ".logged-in .footer--login .js-forgot-password", function () { 1378 o("p.login-message").empty(), 1379 e(), 1380 o(".reset-password__modify").addClass("show-field"), 1381 o(".forget-password__modify").addClass("hide-field"), 1382 o(".reset-password__modify").removeClass("hide-field"), 1383 o(".forget-password__modify").removeClass("show-field"); 1384 }), 1385 o(".js-overlay").on("click", function () { 1386 o(this).removeClass("show-overlay"), 1387 o(".modify-button").removeClass("hide-modify"), 1388 o(".menu-btn").removeClass("hide-menu-btn"), 1389 o(".section--reset-password").removeClass("show-reset-password"), 1390 o(".js-close").addClass("hide-close"), 1391 o("html").removeClass("window-reset"), 1392 o(".js-login-close").addClass("hide-close"), 1393 o(".reset-password__change").removeClass("show-field"), 1394 o(".login-message").empty(); 1395 }), 1396 o(".js-close").on("click", function () { 1397 o(this).addClass("hide-close"), 1398 o(".js-overlay").removeClass("show-overlay"), 1399 o(".modify-button").removeClass("hide-modify"), 1400 o(".menu-btn").removeClass("hide-menu-btn"), 1401 o(".section--reset-password").removeClass("show-reset-password"), 1402 o(".navbar__logo .logo").removeClass("logo-hide"), 1403 o(".reset-password__change").removeClass("show-field"), 1404 o("html").removeClass("window-reset"), 1405 o(".js-login-close").addClass("hide-close"), 1406 o(".login-message").empty(); 1407 }), 1408 o(window).on("load", function () { 1409 var e = document.getElementById("modify-new-password"), 1410 t = document.getElementById("modify-confire-password"); 1411 function o() { 1412 e.value != t.value ? t.setCustomValidity("Please enter the same password in both fields.") : t.setCustomValidity(""); 1413 } 1414 (e.onchange = o), (t.onkeyup = o); 1415 }), 1416 o("#modify-Login").on("submit", function (e) { 1417 e.preventDefault(), o(".login-message").empty(); 1418 var t = { action: "checklogin" }; 1419 (t.user = o("input[name=USER_ID]").val()), 1420 (t.pass = o("input[name=USER_PASSWORD]").val()),
1421 o.ajax({ 1422 type: "post", 1423 url: ajaxData.ajaxUrl, 1424 data: t, 1425 success: function (e) { 1426 1 == e.result ? (o(".reset-password__change").addClass("show-field"), o(".reset-password__modify").addClass("hide-field")) : o(".login-message").html("Please enter the correct password."); 1427 }, 1428 }); 1429 }), 1430 o("#changepassword").on("submit", function (e) { 1431 e.preventDefault(), o(".login-message").empty(); 1432 var t = { action: "changepassword" }; 1433 (t.pass = o("input[name=USER_PASSWORD_NEW]").val()), 1434 (t.confirm_pass = o("input[name=USER_PASSWORD_CONFIRM]").val()), 1435 o.ajax({ 1436 type: "post", 1437 url: ajaxData.ajaxUrl, 1438 data: t, 1439 success: function (e) { 1440 1 == e.result 1441 ? (o(".reset-password__change").addClass("hide-field"), 1442 o(".reset-password__modify").addClass("hide-field"), 1443 o(".reset-password__thanks").addClass("show-field"), 1444 setTimeout(function () { 1445 document.location.reload(); 1446 }, 5e3)) 1447 : o(".login-message").html(e.message); 1448 }, 1449 }); 1450 }), 1451 o(".forgotten-password a").on("click", function () { 1452 o(".reset-password__modify").addClass("hide-field"), o(".forget-password__modify").addClass("show-field"); 1453 }), 1454 o("#forgetPassword-Email").on("submit", function (e) { 1455 e.preventDefault(), o(".login-message").empty(), o(".passed-message").empty(); 1456 var t = { action: "forgotpassword" }; 1457 (t.email = o("input[name=EMAIL_ID]").val()), 1458 o.ajax({ 1459 type: "post", 1460 url: ajaxData.ajaxUrl, 1461 data: t, 1462 success: function (e) { 1463 o(".login-message").html(e.message), o(".passed-message").html(e.passed); 1464 }, 1465 }); 1466 }), 1467 o("#reset_changepassword").on("submit", function (e) { 1468 e.preventDefault(), o(".login-message").empty(); 1469 var t = { action: "resetpassword" }; 1470 (t.user = o("input[name=RESET_USER_PASSWORD_USER_ID]").val()), 1471 (t.newpassword = o("input[name=RESET_USER_PASSWORD_NEW]").val()), 1472 (t.confirmnewpassword = o("input[name=RESET_USER_PASSWORD_NEW_CONFIRM]").val()), 1473 o.ajax({ 1474 type: "post", 1475 url: ajaxData.ajaxUrl, 1476 data: t, 1477 success: function (e) { 1478 1 == e.result 1479 ? (o(".reset-password__modify").addClass("hide-field"), 1480 o(".forget-password__modify").addClass("hide-field"), 1481 o(".forget-password__change").removeClass("show-field"), 1482 o(".forget-password__change").addClass("hide-field"), 1483 o(".reset-password__overlay").addClass("show-overlay"), 1484 o(".forget-password__thanks").addClass("show-field"), 1485 o(".reset-password__change").addClass("hide-field"), 1486 o(".reset-password__thanks").addClass("hide-field"), 1487 o(".reset-password__close").removeClass("hide-close"), 1488 setTimeout(function () { 1489 window.location = window.location.href.split("?")[0]; 1490 }, 5e3)) 1491 : o(".login-message").html(e.message); 1492 }, 1493 }); 1494 }); 1495 })(jQuery), 1496 jQuery, 1497 (function (t) { 1498 t(document).on("click", ".open-popup", function () { 1499 event.preventDefault(), 1500 (function (e) { 1501 setTimeout(function () { 1502 e.parents(".slick-active").find(".dark-form-popup").css({ opacity: "1", visibility: "visible" }), 1503 e.parents(".slick-active").find(".mobile-overlay").fadeIn(), 1504 t("body").addClass("mobile--form-vissible mobile--form-visible"); 1505 }, 300), 1506 e.parents(".slick-active").find(".team").css({ opacity: "0", visibility: "hidden" }), 1507 t("body").removeClass("mobile--form-vissible"); 1508 })(t(this)); 1509 }), 1510 t(".popup-close").click(function () { 1511 setTimeout(function () { 1512 t(".team").css({ opacity: "1", visibility: "visible" }); 1513 }, 300), 1514 setTimeout(function () { 1515 t("body").removeClass("mobile--form-visible"); 1516 }, 500), 1517 t(".dark-form-popup").css({ opacity: "0", visibility: "hidden" }), 1518 t(".mobile-overlay").fadeOut(), 1519 t("body").removeClass("mobile--form-vissible"); 1520 }); 1521 })(jQuery), 1522 (function (t) { 1523 var e, 1524 o = t(".text-animation"); 1525 1 < o.length && t(o).slick({ dots: !1, infinite: !0, speed: 2e3, fade: !0, cssEase: "linear", arrows: !1, autoplay: !0, autoplaySpeed: 3e3 }), 1526 t(".slider").slick({ dots: !0 }), 1527 t(".js-slider-animation-stop.member--box").slick({ infinite: !1, arrows: !1, autoplay: !1, draggable: !1 }),
1528 t(".section-slider").slick( 1529 (_defineProperty((e = { dots: !0, adaptiveHeight: !1, fade: !0, cssEase: "linear", speed: 500, autoplay: !0 }), "cssEase", "linear"), 1530 _defineProperty(e, "autoplaySpeed", 5e3), 1531 _defineProperty(e, "pauseOnHover", !0), 1532 _defineProperty(e, "pauseOnFocus", !0), 1533 e) 1534 ), 1535 t(document).ready(function () { 1536 t(".member--box").slick({ dots: !1, infinite: !0, speed: 1e3, fade: !0, cssEase: "linear", arrows: !1, autoplay: !0, autoplaySpeed: 3e3 }); 1537 }), 1538 t(".insights-slider").slick({ dots: !1, arrows: !1, slidesToShow: 6, slidesToScroll: 1 }), 1539 t(".form__field--submit input").on("click", function () { 1540 t("body").removeClass("mobile--form-vissible"); 1541 }), 1542 t(window).scroll(function (e) { 1543 t("body").removeClass("mobile--form-vissible"); 1544 }); 1545 })(jQuery), 1546 (function (t) { 1547 t(document).on("click", ".contact-person", function () { 1548 t(".activeLnk .info-summry").css({ opacity: "0", visibility: "hidden" }), 1549 setTimeout(function () { 1550 t(".activeLnk .member-contact-form").fadeIn(), t(".activeLnk .info-summry").css({ position: "absolute" }); 1551 }, 400); 1552 }), 1553 t(document).on("click", ".close-form", function () { 1554 t(".member-contact-form").fadeOut(300), 1555 setTimeout(function () { 1556 t(".info-summry").css({ opacity: "1", visibility: "visible", position: "static" }); 1557 }, 400); 1558 }), 1559 t(document).on("click", ".activeLnk .close-form", function () { 1560 var e = t(".activeLnk .profile-box--right").height(); 1561 console.log("This is height " + e),
1562 t(".activeLnk .profile-box--right").css({ "min-height": e }), 1563 setTimeout(function () { 1564 t(".profile-box--right").css({ "min-height": "auto" }); 1565 }, 600); 1566 }); 1567 })(jQuery), 1568 (function (n) { 1569 var e, 1570 t = !1, 1571 o = (n(".header-sticky").outerHeight(!0), n(".section--team-members--box")), 1572 a = null, 1573 i = { action: "get_team_member", page: 1, pageNo: -1, filterCategory: [] }; 1574 if ( 1575 (n(document).on("click", ".team-member--box", function () { 1576 if (n(window).width() <= 767) { 1577 var e = n(".team-main-box.hide-on-desktop .team-member--box").height(); 1578 console.log("Mobile " + e), e + 100; 1579 } 1580 }), 1581 n(window).on({ 1582 resize: function () { 1583 n(window).width() <= 767 && 1584 n(document).on("click", ".team-member--box", function () { 1585 var e = n(".team-main-box.hide-on-desktop .team-member--box").height(); 1586 console.log("Mobile resize" + e), e + 100; 1587 }); 1588 }, 1589 }), 1590 n(window).on({ 1591 resize: function () { 1592 768 <= n(window).width() && 1593 n(document).on("click", ".team-member--box", function () { 1594 113; 1595 }); 1596 }, 1597 }), 1598 n(document).on("click", ".team-main-box--desktop .team-member--box", function () { 1599 n(this); 1600 n(".team-member--box").addClass("blur-tile"), 1601 n(this).removeClass("blur-tile"), 1602 n(this).addClass("clicked-tile"), 1603 t 1604 ? n(this).attr("data-related") == n(".activeLnk").attr("id") 1605 ? (n(".profile-box").removeClass("activeLnk"), n(".profile-box").slideUp(600), (t = !1)) 1606 : (n(".profile-box").removeClass("activeLnk"), 1607 n(".profile-box").slideUp(600), 1608 n("div[id=" + n(this).attr("data-related") + "]").addClass("activeLnk"), 1609 n("div[id=" + n(this).attr("data-related") + "]").slideDown(600)) 1610 : (n("div[id=" + n(this).attr("data-related") + "]").addClass("activeLnk"), n("div[id=" + n(this).attr("data-related") + "]").slideDown(600), (t = !0)); 1611 }), 1612 n(document).on("click", ".team-main-box--desktop .team-member--box.clicked-tile", function () { 1613 n(".team-member--box").removeClass("blur-tile"), n(this).removeClass("clicked-tile"); 1614 }), 1615 n(document).on("click", ".team-main-box--desktop .close-bio", function () { 1616 n(".team-member--box").removeClass("blur-tile clicked-tile"), 1617 n(".profile-box").slideUp(600), 1618 setTimeout(function () { 1619 n("div").removeClass("activeLnk"); 1620 }, 600); 1621 }), 1622 n(document).on("click", ".team-main-box--mobile .team-member--box", function () { 1623 n(this); 1624 n(".team-member--box").addClass("blur-tile"), 1625 n(this).removeClass("blur-tile"), 1626 n(this).addClass("clicked-tile"), 1627 t 1628 ? n(this).attr("data-related") == n(".activeLnk").attr("id") 1629 ? (t = !1) 1630 : (n("div[id=" + n(this).attr("data-related") + "]").addClass("activeLnk"), n("div[id=" + n(this).attr("data-related") + "]").slideDown(600)) 1631 : (n("div[id=" + n(this).attr("data-related") + "]").addClass("activeLnk"), n("div[id=" + n(this).attr("data-related") + "]").slideDown(600), (t = !0)); 1632 }), 1633 n(document).on("click", ".team-main-box--mobile .team-member--box.clicked-tile", function () { 1634 n(".team-member--box").removeClass("blur-tile"), n(this).removeClass("clicked-tile"); 1635 }), 1636 n(document).on("click", ".team-main-box--mobile .close-bio", function () {
1637 n(this).parents(".profile-box.activeLnk").slideUp(600), n(this).parents(".profile-box.activeLnk").removeClass("activeLnk"); 1638 }), 1639 n(".page-our-people").length) 1640 ) { 1641 var s = function (e) { 1642 n(e).removeClass("active-filter--list"); 1643 }, 1644 r = function (e) { 1645 -(i.page = 1) != n.inArray(e, i.filterCategory) ? i.filterCategory.splice(n.inArray(e, i.filterCategory), 1) : i.filterCategory.push(e), 1646 i.filterCategory.length || (n(".clearall").hide(), n(".filter--tags ul.tags").slideUp()), 1647 l(); 1648 }, 1649 l = function () { 1650 o.fadeOut(500), 1651 clearTimeout(a), 1652 (a = setTimeout(function () { 1653 c({ 1654 data: i, 1655 success: function (e) { 1656 d(e), o.fadeIn(1e3), n(".team--section").css("min-height", "auto"); 1657 }, 1658 error: function (e) { 1659 console.log(e); 1660 }, 1661 }); 1662 }, 100)); 1663 }, 1664 c = function (i) { 1665 n.ajax({ 1666 type: "POST", 1667 url: ajaxData.ajaxUrl, 1668 data: i.data, 1669 dataType: "json", 1670 success: function (e) { 1671 i.success(e); 1672 }, 1673 error: function (e, t, o) { 1674 var a = e.status + " " + o; 1675 i.error(a); 1676 }, 1677 }); 1678 }, 1679 d = function (e) { 1680 o.html(e.html); 1681 }; 1682 n(document).ready(function () { 1683 n(".section--team-members--box .team-main-box .form-light-version").each(function () { 1684 var e = n(this).find(".mailsendvalue").val().length ? n(this).find(".mailsendvalue").val() : "[email protected]"; 1685 n(this).find(".contact-mailid").attr("value", e); 1686 }), 1687 n(".section--team-members--box .team-main-box .profile-box--right").each(function () { 1688 var e = n(this).find(".main-tile--heading").text(); 1689 n(this) 1690 .find(".contact_subject") 1691 .attr("value", e + " - Website Enquiry"); 1692 }); 1693 }), 1694 n(document).on("click", ".open--filter--list", function () { 1695 n("ul.filter--list").is(":visible") ? (n("ul.filter--list").slideUp(), n(".open--filter--list").removeClass("active-filter")) : (n("ul.filter--list").slideDown(), n(".open--filter--list").addClass("active-filter")); 1696 }), 1697 n(document).on("click", "ul.filter--list li", function () { 1698 var e = n(this).text(), 1699 t = n(this).attr("data-termid"); 1700 r(t), 1701 n(this).hasClass("active-filter--list") 1702 ? (n(".filter--tags ul.tags") 1703 .find('li[data-termid="' + t + '"]') 1704 .remove(), 1705 s(n(this))) 1706 : (n(".filter--tags ul.tags").slideDown(), 1707 n(".clearall").show(), 1708 n(this).addClass("active-filter--list"), 1709 n(".filter--tags ul.tags").prepend('<li data-termid="' + t + '"><span class="button with-arrow">' + e + "</span></li>"), 1710 n(".filter--list").slideUp(), 1711 n(".open--filter--list").removeClass("active-filter")); 1712 }), 1713 n(document).on("click", ".clearall .button--clear", function () {
1714 n(".filter--tags ul.tags").slideUp(function () { 1715 n(".filter--tags ul.tags").empty(), 1716 n(".filter--tags ul.tags").append('<li class="clearall"><span class="button with-arrow button--clear">Clear All</span></li>'), 1717 s(n("ul.filter--list li")), 1718 (i.filterCategory = []), 1719 l(); 1720 }); 1721 }), 1722 n(document).on("click", ".filter--tags ul.tags li", function () { 1723 var e = n(this).data("termid"); 1724 u(), null != e && (r(e), n(this).hasClass("clearall") || n(this).remove(), n("filter--tags ul.tags li").length, n('ul.filter--list li[data-termid="' + e + '"]').removeClass("active-filter--list")); 1725 }); 1726 } 1727 function u() { 1728 var e = jQuery(".section--team-members--box").height(); 1729 console.log(e), n(".team--section").css("min-height", e); 1730 } 1731 window.addEventListener("resize", function () { 1732 document.body.classList.add("resize-animation-stopper"), 1733 clearTimeout(e), 1734 (e = setTimeout(function () { 1735 document.body.classList.remove("resize-animation-stopper"); 1736 }, 400)); 1737 }), 1738 jQuery(".filter--list li").click(function () { 1739 u(); 1740 }), 1741 n(document).on("click", ".main-profile", function () { 1742 console.log(this.parentElement); 1743 var e = n(this).closest(".section--team-members--row").next(".section--team-members--row").children(".section--team-members--inner-row"); 1744 e.removeClass("js-animation-fadeInUp"); 1745 var t = e.children(".team-member--box"); 1746 t.addClass("afterAnimation"), t.removeClass("animate__animated"), t.removeClass("animate__fadeInUp"); 1747 var o = n(this).closest(".section--team-members--row").next(".section--team-members--row").next(".section--team-members--row").children(".section--team-members--inner-row"); 1748 o.removeClass("js-animation-fadeInUp"); 1749 var a = o.children(".team-member--box"); 1750 a.addClass("afterAnimation"), a.removeClass("animate__animated"), a.removeClass("animate__fadeInUp"); 1751 }); 1752 })(jQuery), 1753 jQuery(".testimonials__container").slick({ dots: !0 }), 1754 (function (e) { 1755 e(".section--footer .subscribe-edm").click(function () { 1756 e(".section--footer .footer--top-links").fadeOut(300), 1757 e(".section--footer .footer--top").slideUp(600), 1758 setTimeout(function () { 1759 e(".section--footer .footer--top").slideDown(600), e(".section--footer .login--window").fadeIn(500); 1760 }, 300); 1761 }), 1762 e(".section--footer .logout").click(function () { 1763 e(".section--footer .footer--top-links").fadeOut(300), 1764 e(".section--footer .footer--top").slideUp(600), 1765 setTimeout(function () { 1766 e(".section--footer .logout--window").fadeIn(500), e(".section--footer .footer--top").slideDown(600); 1767 }, 300); 1768 }), 1769 e(".section--footer .back-button").click(function () { 1770 e(".section--footer .login--window").fadeOut(300), 1771 e(".section--footer .subscribe--window").fadeOut(300), 1772 e(".section--footer .logout--window").fadeOut(300), 1773 e(".section--footer .footer--top").slideUp(600), 1774 setTimeout(function () { 1775 e(".section--footer .footer--top-links").fadeIn(550), e(".section--footer .footer--top").slideDown(500); 1776 }, 500); 1777 }), 1778 setTimeout(function () { 1779 e(".single-post .button").css("opacity", "1"); 1780 }, 200), 1781 e(".section--footer .footer--bottom-inner a").on("click", function () { 1782 e(".navbar").removeClass("is-active"), e(".navbar").removeClass("main-menu-is-open"), e(".menu-overlay").removeClass("menu-overlay-show"); 1783 }), 1784 e(window).on("load", function () { 1785 -1 < window.location.href.indexOf("#login") && e(".navbar-login--button").trigger("click"); 1786 }); 1787 })(jQuery), 1788 jQuery, 1789 jQuery, 1790 (function (e) { 1791 e(document).ready(function () { 1792 e("body").hasClass("page-client-portal") && 0 < e(".new-tab").length && e("head").append('<base target="_blank">'); 1793 }); 1794 })(jQuery), 1795 (function (t) { 1796 t(document).on("click", ".filter-list", function () { 1797 var e = t(this).data("cid"); 1798 t.ajax({ 1799 type: "POST", 1800 url: ajaxData.ajaxUrl, 1801 data: { action: "product_filter", cat_id: e }, 1802 success: function (e) { 1803 t(".product-listing").html(e.products); 1804 }, 1805 }); 1806 }); 1807 })(jQuery), 1808 (function (a) { 1809 var i; 1810 var n = !1; 1811 a("#js-campaign-monitor").on("click", ".cm_container", function (e) { 1812 if (!n) { 1813 n = !0; 1814 var t = a(e.target).closest("label.cm_container"); 1815 e.stopPropagation(); 1816 var o = t.find("div.cm_label_details_container").find("p.subscription_msg"); 1817 "Status: Subscribed" === o.text() ? o.text("Status: Unsubscribed") : o.text("Status: Subscribed"), 1818 clearTimeout(i), 1819 (i = setTimeout(function () { 1820 var o = { action: "tg_campaign_monitor" }; 1821 a('#js-campaign-monitor input[type="checkbox"]').each(function () { 1822 var e = a(this).parent("label").text().trim(), 1823 t = a(this).prop("checked") ? "Yes" : "No"; 1824 o[e] = t; 1825 }), 1826 (function (e) {
1827 a.ajax({ 1828 url: ajaxData.ajaxUrl, 1829 type: "POST", 1830 data: e, 1831 dataType: "json", 1832 success: function (e) { 1833 a("#js-campaign-manager-status") 1834 .html(e.message) 1835 .fadeIn(function () { 1836 a(this).delay(5e3).fadeOut(); 1837 }); 1838 }, 1839 error: function (e) { 1840 a("#js-campaign-manager-status") 1841 .html(e) 1842 .fadeIn(function () { 1843 a(this).delay(5e3).fadeOut(); 1844 }); 1845 }, 1846 }); 1847 })(o), 1848 (n = !1); 1849 }, 2500)); 1850 } 1851 }); 1852 })(jQuery), 1853 (function (t) { 1854 t(".page-get-in-touch").length && 1855 t(document).ready(function () { 1856 t(".contact_subject").attr("value", "Get in Touch - Website Enquiry"); 1857 }), 1858 t(".section-team-slider").length && 1859 t(document).ready(function () { 1860 t(".contact_subject").attr("value", "Get in Touch - Website Enquiry"); 1861 }), 1862 t(document).ready(function () { 1863 t("input[name=POSITION]").each(function (e) { 1864 t(this).val(t(this).closest(".career--accordion--form").attr("data-position")); 1865 }); 1866 }); 1867 })(jQuery), 1868 (function (e) { 1869 e(".page-get-in-touch").length && 1870 e(document).ready(function () { 1871 e(".contact_subject").attr("value", "Get in Touch - Website Enquiry"); 1872 }), 1873 e(".section-team-slider").length && 1874 e(document).ready(function () { 1875 e(".contact_subject").attr("value", "Get in Touch - Website Enquiry"); 1876 }); 1877 })(jQuery), 1878 (function (i) { 1879 var a = { action: "praemiumsso" }, 1880 n = 1; 1881 i(".investor-link-api").click(function (e) { 1882 var t = i("#sso_status").val(), 1883 o = i("#cutom_sso_error_msg").val(); 1884 e.preventDefault(), 1885 i("#message").html(""), 1886 i("#sso-error-msg").hide(), 1887 (n = 1) == t 1888 ? (function o(a) { 1889 i.ajax({ 1890 url: ajaxData.ajaxUrl, 1891 type: "POST", 1892 data: a, 1893 dataType: "json", 1894 success: function (e) { 1895 var t = i("#cutom_sso_error_msg").val(); 1896 e.result 1897 ? e.url 1898 ? (window.location.href = e.url) 1899 : (t.length ? i("#message").html(t) : i("#message").html(e.message), i("#sso-error-msg").show()) 1900 : i("#message").length 1901 ? (t.length ? i("#message").html(t) : i("#message").html(e.message), i("#sso-error-msg").show()) 1902 : t.length 1903 ? alert(t) 1904 : alert("Your account is currently unavailable, please contact your advisor to resolve."); 1905 }, 1906 error: function (e) { 1907 var t = i("#cutom_sso_error_msg").val(); 1908 n++ <= 1 1909 ? setTimeout(function () { 1910 o(a); 1911 }, 5e3) 1912 : i("#message").length 1913 ? (t.length ? i("#message").html(t) : i("#message").html("Your account is currently unavailable, please contact your advisor to resolve."), i("#sso-error-msg").show()) 1914 : t.length 1915 ? alert(t) 1916 : alert("Your account is currently unavailable, please contact your advisor to resolve."); 1917 }, 1918 }); 1919 })(a) 1920 : (i("#message").html(o), i("#sso-error-msg").show(), i.ajax({ url: ajaxData.ajaxUrl, type: "POST", data: { action: "updateuseraccesslog" }, dataType: "json", success: function () {} })); 1921 }); 1922 })(jQuery), 1923 (function (i) { 1924 if (null !== document.querySelector(".section--file-transfer")) { 1925 var n = function (e) { 1926 e.preventDefault(), e.stopPropagation(); 1927 }, 1928 o = function (e) { 1929 i("#js-file-upload-status-msg").text("").removeClass("fade-in fade-out"); 1930 var t = _toConsumableArray(e).filter(function (t) { 1931 var e = t.name.split(".").pop().toLowerCase(); 1932 return ( 1933 u.includes(e) && 1934 !d.some(function (e) { 1935 return e.name === t.name; 1936 }) 1937 ); 1938 }); 1939 (d = [].concat(_toConsumableArray(t), _toConsumableArray(d))), a(t); 1940 }, 1941 a = function (e) { 1942 e.forEach(function (t) { 1943 var o = document.createElement("li"); 1944 o.innerHTML = '<p class="file-upload-note-light">' + t.name + "</p>"; 1945 var e = document.createElement("button"); 1946 (e.className = "page-title-action"), 1947 (e.type = "button"), 1948 (e.innerText = "Remove"), 1949 e.addEventListener("click", function (e) { 1950 e.preventDefault(), 1951 (d = d.filter(function (e) { 1952 return e !== t; 1953 })), 1954 i(o).addClass("file-sharing--fade-out"), 1955 setTimeout(function () { 1956 i(o).slideUp(400, function () { 1957 i(this).remove(), s(); 1958 }); 1959 }, 300); 1960 }), 1961 o.appendChild(e), 1962 o.classList.add("fade-in"), 1963 l.prepend(o), 1964 i(o).animate({}, 100, function () { 1965 i(this).animate({ opacity: 1 }, 100); 1966 }); 1967 }), 1968 s(); 1969 }, 1970 s = function () { 1971 var e = document.getElementById("uploadAllButton"); 1972 0 < d.length 1973 ? e || (((e = document.createElement("button")).id = "uploadAllButton"), (e.className = "upload-all-button"), (e.innerText = "Upload all"), e.addEventListener("click", t), c.append(e), c.classList.add("button-fade")) 1974 : e && 1975 (e.classList.add("fade-out"), 1976 setTimeout(function () { 1977 i(e).slideUp(400, function () { 1978 e.remove(), c.classList.remove("button-fade"); 1979 }); 1980 }, 100)); 1981 }, 1982 t = function (e) { 1983 if ((n(e), 0 < d.length)) { 1984 var t = function (e, t) { 1985 e.removeClass("fade-in").addClass("fade-out"), 1986 setTimeout(function () { 1987 e.remove(); 1988 }, t); 1989 }; 1990 t(i("#uploadAllButton"), 0), 1991 i("#file-list li").each(function () { 1992 t(i(this), 0); 1993 }), 1994 setTimeout(function () { 1995 i("#file-list").empty(); 1996 }, 1e3); 1997 var o = new FormData(); 1998 d.forEach(function (e) { 1999 o.append("file[]", e); 2000 }), 2001 o.append("action", "custom_file_upload"), 2002 o.append("custom_file_upload_nonce", ajaxData.nonce); 2003 var a = i("#js-file-upload-status-msg"); 2004 a.text(""), 2005 a.addClass("fade-in"), 2006 a.text("The documents you have uploaded have been sent to your advisor."), 2007 fetch(ajaxData.ajaxUrl, { method: "POST", body: o }) 2008 .then(function (e) { 2009 return e.json(); 2010 }) 2011 .then(function (e) { 2012 if (e.success) d = []; 2013 else { 2014 var t = i("#js-file-upload-status-msg"); 2015 t.text(""), t.addClass("fade-out"), t.addClass("fade-in"), t.text("The document upload failed. Please try again later."); 2016 } 2017 }) 2018 .catch(function (e) { 2019 console.error("Error during file upload", e); 2020 }); 2021 } else console.log("No files to submit."); 2022 }, 2023 r = document.getElementById("drop-area"),
2024 e = document.getElementById("file-input"), 2025 l = document.getElementById("file-list"), 2026 c = document.getElementById("upload-button-container"), 2027 d = [], 2028 u = ["pdf", "doc", "docx", "xls", "xlsx", "txt", "png", "jpg", "jpeg", "zip"]; 2029 ["dragenter", "dragover", "dragleave", "drop"].forEach(function (e) { 2030 r.addEventListener(e, n, !1); 2031 }), 2032 ["dragenter", "dragover"].forEach(function (e) { 2033 r.addEventListener( 2034 e, 2035 function () { 2036 r.classList.add("highlight"); 2037 }, 2038 !1 2039 ); 2040 }), 2041 ["dragleave", "drop"].forEach(function (e) { 2042 r.addEventListener( 2043 e, 2044 function () { 2045 r.classList.remove("highlight"); 2046 }, 2047 !1 2048 ); 2049 }), 2050 r.addEventListener( 2051 "drop", 2052 function (e) { 2053 var t = e.dataTransfer.files; 2054 o(t); 2055 }, 2056 !1 2057 ), 2058 e.addEventListener("change", function () { 2059 o(e.files); 2060 }), 2061 document.getElementById("select-files-button").addEventListener("click", function () { 2062 e.click(); 2063 }); 2064 } 2065 })(jQuery);
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.