PageSourceSearch

https://tsg843.com/_jb_static/??0f02486a11

js tsg843.com collected 2026-10-10 01:33:13 UTC 23,139 bytes, 34 lines download raw bytes

1/*! iFrame Resizer (iframeSizer.min.js ) - v4.3.2 - 2021-10-18
2 *  Desc: Force cross domain iframes to size to content.
3 *  Requires: iframeResizer.contentWindow.min.js to be loaded into the target frame.
4 *  Copyright: (c) 2021 David J. Bradshaw - [email protected]
5 *  License: MIT
6 */
7
8!function(u){var f,l,a,x,M,I,k,r,m,F,i,g,z;function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function O(e,n,i){e.addEventListener(n,i,!1)}function R(e,n,i){e.removeEventListener(n,i,!1)}function o(e){return M+"["+(e="Host page: "+(n=e),e=window.top!==window.self?window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n:e)+"]";var n}function t(e){return F[e]?F[e].log:l}function T(e,n){s("log",e,n,t(e))}function E(e,n){s("info",e,n,t(e))}function N(e,n){s("warn",e,n,!0)}function s(e,n,i,t){!0===t&&"object"==typeof window.console&&console[e](o(n),i)}function e(n){function i(){t("Height"),t("Width"),L(function(){A(y),H(v),l("onResized",y)},y,"init")}function e(){var e=b.substr(I).split(":"),n=e[1]?parseInt(e[1],10):0,i=F[e[0]]&&F[e[0]].iframe,t=getComputedStyle(i);return{iframe:i,id:e[0],height:n+function(e){if("border-box"!==e.boxSizing)return 0;var n=e.paddingTop?parseInt(e.paddingTop,10):0,e=e.paddingBottom?parseInt(e.paddingBottom,10):0;return n+e}(t)+function(e){if("border-box"!==e.boxSizing)return 0;var n=e.borderTopWidth?parseInt(e.borderTopWidth,10):0,e=e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0;return n+e}(t),width:e[2],type:e[3]}}function t(e){var n=Number(F[v]["max"+e]),i=Number(F[v]["min"+e]),t=e.toLowerCase(),e=Number(y[t]);T(v,"Checking "+t+" is in range "+i+"-"+n),e<i&&(e=i,T(v,"Set "+t+" to min value")),n<e&&(e=n,T(v,"Set "+t+" to max value")),y[t]=""+e}function o(){function e(){return t.constructor===Array?function(){var e=0,n=!1;for(T(v,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(e=F[v]&&F[v].remoteHost,T(v,"Checking connection is from: "+e),i===e);var e}var i=n.origin,t=F[v]&&F[v].checkOrigin;if(t&&""+i!="null"&&!e())throw new Error("Unexpected message received from: "+i+" for "+y.iframe.id+". Message was: "+n.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return 1}function a(e){return b.substr(b.indexOf(":")+x+e)}function s(i,t){var e,n,o;e=function(){var e,n;B("Send Page Info","pageInfo:"+(e=document.body.getBoundingClientRect(),n=y.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:n.height,iframeWidth:n.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(n.top-e.top,10),offsetLeft:parseInt(n.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),i,t)},n=32,z[o=t]||(z[o]=setTimeout(function(){z[o]=null,e()},n))}function r(e){e=e.getBoundingClientRect();return S(v),{x:Math.floor(Number(e.left)+Number(k.x)),y:Math.floor(Number(e.top)+Number(k.y))}}function d(e){var n=e?r(y.iframe):{x:0,y:0},i={x:Number(y.width)+n.x,y:Number(y.height)+n.y};T(v,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):N(v,"Unable to scroll to requested position, window.parentIFrame not found"):(k=i,c(),T(v,"--"))}function c(){!1!==l("onScroll",k)?H(v):j()}function u(e){var n,i=e.split("#")[1]||"",e=decodeURIComponent(i),t=document.getElementById(e)||document.getElementsByName(e)[0];t?(n=r(t),T(v,"Moving to in page link (#"+i+") at x: "+n.x+" y: "+n.y),k={x:n.x,y:n.y},c(),T(v,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):T(v,"In page link #"+i+" not found and window.parentIFrame not found"):T(v,"In page link #"+i+" not found")}function f(e){var n,i={};i=0===Number(y.width)&&0===Number(y.height)?{x:(n=a(9).split(":"))[1],y:n[0]}:{x:y.width,y:y.height},l(e,{iframe:y.iframe,screenX:Number(i.x),screenY:Number(i.y),type:y.type})}function l(e,n){return W(v,e,n)}function m(){switch(F[v]&&F[v].firstRun&&F[v]&&(F[v].firstRun=!1),y.type){case"close"
8:C(y.iframe);break;case"message":n=a(6),T(v,"onMessage passed: {iframe: "+y.iframe.id+", message: "+n+"}"),l("onMessage",{iframe:y.iframe,message:JSON.parse(n)}),T(v,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":F[v].autoResize=JSON.parse(a(9));break;case"scrollTo":d(!1);break;case"scrollToOffset":d(!0);break;case"pageInfo":s(F[v]&&F[v].iframe,v),r=v,e("Add ",O),F[r]&&(F[r].stopPageInfo=o);break;case"pageInfoStop":F[v]&&F[v].stopPageInfo&&(F[v].stopPageInfo(),delete F[v].stopPageInfo);break;case"inPageLink":u(a(9));break;case"reset":P(y);break;case"init":i(),l("onInit",y.iframe);break;default:0===Number(y.width)&&0===Number(y.height)?N("Unsupported message received ("+y.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):i()}function e(n,i){function t(){F[r]?s(F[r].iframe,r):o()}["scroll","resize"].forEach(function(e){T(r,n+e+" listener for sendPageInfo"),i(window,e,t)})}function o(){e("Remove ",R)}var r,n}var g,h,p,w,b=n.data,y={},v=null;"[iFrameResizerChild]Ready"===b?function(){for(var e in F)B("iFrame requested init",q(e),F[e].iframe,e)}():M===(""+b).substr(0,I)&&b.substr(I).split(":")[0]in F?(y=e(),v=y.id,F[v]&&(F[v].loaded=!0),(w=y.type in{true:1,false:1,undefined:1})&&T(v,"Ignoring init message from meta parent page"),!w&&(p=!0,F[h=v]||(p=!1,N(y.type+" No settings for "+h+". Message was: "+b)),p)&&(T(v,"Received: "+b),g=!0,null===y.iframe&&(N(v,"IFrame ("+y.id+") not found"),g=!1),g&&o()&&m())):E(v,"Ignored: "+b)}function W(e,n,i){var t=null,o=null;if(F[e]){if("function"!=typeof(t=F[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function p(e){e=e.id;delete F[e]}function C(e){var n=e.id;if(!1!==W(n,"onClose",n)){T(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){N(e)}W(n,"onClosed",n),T(n,"--"),p(e)}else T(n,"Close iframe cancelled by onClose event")}function S(e){null===k&&T(e,"Get page position: "+(k={x:window.pageXOffset!==u?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==u?window.pageYOffset:document.documentElement.scrollTop}).x+","+k.y)}function H(e){null!==k&&(window.scrollTo(k.x,k.y),T(e,"Set page position: "+k.x+","+k.y),j())}function j(){k=null}function P(e){T(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),S(e.id),L(function(){A(e),B("reset","reset",e.iframe,e.id)},e,"reset")}function A(o){function i(e){function n(){Object.keys(F).forEach(function(e){function n(e){return"0px"===(F[i]&&F[i].iframe.style[e])}var i;F[i=e]&&null!==F[i].iframe.offsetParent&&(n("height")||n("width"))&&B("Visibility change","resize",F[i].iframe,i)})}function i(e){T("window","Mutation observed: "+e[0].target+" "+e[0].type),c(n,16)}var t;a||"0"!==o[e]||(a=!0,T(r,"Hidden iFrame detected, creating visibility listener"),(t=h())&&function(){var e=document.querySelector("body");new t(i).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}())}function e(e){var n;n=e,o.id?(o.iframe.style[n]=o[n]+"px",T(o.id,"IFrame ("+r+") "+n+" set to "+o[n]+"px")):T("undefined","messageData id not set"),i(e)}var r=o.iframe.id;F[r]&&(F[r].sizeHeight&&e("height"),F[r].sizeWidth&&e("width"))}function L(e,n,i){i!==n.type&&r&&!window.jasmine?(T(n.id,"Requesting animation frame"),r(e)):e()}function B(n,i,t,o,e){function r(){var e;t&&"contentWindow"in t&&null!==t.contentWindow?(e=F[o]&&F[o].targetOrigin,T(o,"["+n+"] Sending msg to iframe["+o+"] ("+i+") targetOrigin: "+e),t.contentWindow.postMessage(M+i,e)):N(o,"["+n+"] IFrame("+o+") not found")}function a(){e&&F[o]&&F[o].warningTimeout&&(F[o].msgTimeout=setTimeout(function(){!F[o]||F[o].loaded||s||(s=!0,N(o,"IFrame has not responded within "+F[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},F[o].warningTimeout))}var s=!1;
8o=o||t.id,F[o]&&(r(),a())}function q(e){return e+":"+F[e].bodyMarginV1+":"+F[e].sizeWidth+":"+F[e].log+":"+F[e].interval+":"+F[e].enablePublicMethods+":"+F[e].autoResize+":"+F[e].bodyMargin+":"+F[e].heightCalculationMethod+":"+F[e].bodyBackground+":"+F[e].bodyPadding+":"+F[e].tolerance+":"+F[e].inPageLinks+":"+F[e].resizeFrom+":"+F[e].widthCalculationMethod+":"+F[e].mouseEvents}function d(t,e){function n(i){var e,n=h();n&&(e=n,t.parentNode&&new e(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===t&&C(t)})})}).observe(t.parentNode,{childList:!0})),O(t,"load",function(){var e,n;B("iFrame.onload",i,t,u,!0),e=F[s]&&F[s].firstRun,n=F[s]&&F[s].heightCalculationMethod in m,!e&&n&&P({iframe:t,height:0,width:0,type:"init"})}),B("init",i,t,u,!0)}function i(e){var n=e.split("Callback");2===n.length&&(this[n="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1)]=this[e],delete this[e],N(s,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version."))}function o(e){e=e||{},F[s]={firstRun:!0,iframe:t,remoteHost:t.src&&t.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(i,e),function(e){for(var n in g)Object.prototype.hasOwnProperty.call(g,n)&&(F[s][n]=(Object.prototype.hasOwnProperty.call(e,n)?e:g)[n])}(e),F[s]&&(F[s].targetOrigin=!0===F[s].checkOrigin?""===(e=F[s].remoteHost)||null!==e.match(/^(about:blank|javascript:|file:\/\/)/)?"*":e:"*")}var r,a,s=(""===(r=t.id)&&(t.id=(a=e&&e.id||g.id+f++,null!==document.getElementById(a)&&(a+=f++),r=a),l=(e||{}).log,T(r,"Added missing iframe ID: "+r+" ("+t.src+")")),r);function d(e){var n=F[s][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,T(s,"Set "+e+" = "+t.style[e]))}function c(e){if(F[s]["min"+e]>F[s]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}s in F&&"iFrameResizer"in t?N(s,"Ignored iFrame, already setup."):(o(e),function(){switch(T(s,"IFrame scrolling "+(F[s]&&F[s].scrolling?"enabled":"disabled")+" for "+s),t.style.overflow=!1===(F[s]&&F[s].scrolling)?"hidden":"auto",F[s]&&F[s].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=F[s]?F[s].scrolling:"no"}}(),c("Height"),c("Width"),d("maxHeight"),d("minHeight"),d("maxWidth"),d("minWidth"),"number"!=typeof(F[s]&&F[s].bodyMargin)&&"0"!==(F[s]&&F[s].bodyMargin)||(F[s].bodyMarginV1=F[s].bodyMargin,F[s].bodyMargin=F[s].bodyMargin+"px"),n(q(s)),F[s]&&(F[s].iframe.iFrameResizer={close:C.bind(null,F[s].iframe),removeListeners:p.bind(null,F[s].iframe),resize:B.bind(null,"Window resize","resize",F[s].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,F[s].iframe,s)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),F[s].iframe,s)}}))}function c(e,n){null===i&&(i=setTimeout(function(){i=null,e()},n))}function n(){"hidden"!==document.visibilityState&&(T("document","Trigger event: Visibility change"),c(function(){w("Tab Visible","resize")},16))}function w(i,t){Object.keys(F).forEach(function(e){var n;F[n=e]&&"parent"===F[n].resizeFrom&&F[n].autoResize&&!F[n].firstRun&&B(i,t,F[e].iframe,e)})}function b(){O(window,"message",e),O(window,"resize",function(){var e;T("window","Trigger event: "+(e="resize")),c(function(){w("Window "+e,"resize")},16)}),O(document,"visibilitychange",n),O(document,"-webkit-visibilitychange",n)}function y(){function t(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),d(n,e),o.push(n))}var o;return function(){for(var e=["moz","webkit","o","ms"],n=0;n<e.length&&!r;n+=1)r=window[e[n]+"RequestAnimationFrame"];r?r=r.bind(window):T("setup","RequestAnimationFrame not supported")}(),b(),function(e,n){var i;switch(o=[],(i=e)&&i.enablePublicMethods&&N("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof n){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),t.bind(u,e));break;case"object":t(e,n);break;default:throw new TypeError("Unexpected data type ("+typeof n+")")}return o}}function v(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(i){return this.filter("iframe").each(function(e,n){d(n,i)}).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")}"undefined"!=typeof window&&(x="message".length,I=(M="[iFrameSizer]").length,r=window.requestAnimationFrame,g={autoResize:!(i=k=null),bodyBackgroun
8d:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!(a=l=!1),inPageLinks:!(F={}),enablePublicMethods:!(f=0),heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!(m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){N("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},z={},window.jQuery&&v(window.jQuery),"function"==typeof define&&define.amd?define([],y):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=y()),window.iFrameResize=window.iFrameResize||y())}();
9//# sourceMappingURL=iframeResizer.map
10;
11document.addEventListener('DOMContentLoaded',function(){var forms=document.querySelectorAll('.wiseagent-form-container form');forms.forEach(function(form){form.addEventListener('submit',function(event){var submitButton=event.target.querySelector('input[type="submit"]');submitButton.disabled=!0;var redirectUrl=form.getAttribute('data-redirect-url');if(redirectUrl&&redirectUrl.trim()!==''){window.open(redirectUrl,'_blank')}})})});
12function wa_sso(url){var sso=window.open(url,"sso","left=100,top=100,width=500,height=600");var timer=setInterval(function(){if(sso.closed){clearInterval(timer);console.log("sso closed");window.location.reload()}},1000)}
13function copyToClipboard(element){var text=element.getAttribute("data-clipboard-text");if(window.clipboardData&&window.clipboardData.setData){window.clipboardData.setData(text);showWPAdminAlert()}else{if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(text);showWPAdminAlert()}else{let textArea=document.createElement("textarea");textArea.value=text;textArea.style.position="fixed";textArea.style.left="-999999px";textArea.style.top="-999999px";document.body.appendChild(textArea);textArea.focus();textArea.select();return new Promise((res,rej)=>{document.execCommand("copy")?res():rej();textArea.remove();showWPAdminAlert()})}}}
14function showWPAdminAlert(){var alert=document.getElementById("wp-admin-alert");alert.style.display="block";setTimeout(function(){alert.style.display="none"},5000)}
15function initWaCarousels(root){var ctx=root||document;ctx.querySelectorAll(".wa-carousel:not([data-wa-carousel-init])").forEach(function(carousel){carousel.setAttribute("data-wa-carousel-init","1");var visibleDesktop=Math.max(1,parseInt(carousel.dataset.visible||1,10),);var visibleTablet=carousel.dataset.visibleTablet?Math.max(1,parseInt(carousel.dataset.visibleTablet,10)):visibleDesktop;var visibleMobile=carousel.dataset.visibleMobile?Math.max(1,parseInt(carousel.dataset.visibleMobile,10)):visibleTablet;var track=carousel.querySelector(".wa-carousel__track");if(!track)return;var slides=Array.from(track.children);var total=slides.length;var current=0;var dotsWrap=carousel.querySelector(".wa-carousel__dots");var prevBtn=carousel.querySelector(".wa-carousel__prev");var nextBtn=carousel.querySelector(".wa-carousel__next");var nav=carousel.querySelector(".wa-carousel__nav");function getVisible(){var w=window.innerWidth;if(w<768)return visibleMobile;if(w<1025)return visibleTablet;return visibleDesktop}
16function getSlideOffset(index){var slide=slides[index];if(!slide)return 0;var trackWidth=track.getBoundingClientRect().width;if(trackWidth<=0)return 0;var relLeft=slide.offsetLeft-track.offsetLeft;return(relLeft/trackWidth)*100}
17function updateDots(){Array.from(dotsWrap.querySelectorAll(".wa-carousel__dot")).forEac
17h(function(d,i){d.classList.toggle("is-active",i===current)},)}
18function goTo(index){var visible=getVisible();var maxIdx=Math.max(0,total-visible);current=Math.max(0,Math.min(index,maxIdx));track.style.transform="translateX(-"+getSlideOffset(current)+"%)";updateDots()}
19function setup(){var visible=getVisible();var maxIdx=Math.max(0,total-visible);carousel.style.setProperty("--wa-carousel-visible",visible);if(nav)nav.style.display=total<=visible?"none":"";dotsWrap.innerHTML="";for(var i=0;i<=maxIdx;i++){(function(idx){var dot=document.createElement("button");dot.className="wa-carousel__dot"+(idx===current?" is-active":"");dot.setAttribute("aria-label","Go to slide "+(idx+1));dot.addEventListener("click",function(){goTo(idx)});dotsWrap.appendChild(dot)})(i)}
20current=Math.min(current,maxIdx);track.style.transform="translateX(-"+getSlideOffset(current)+"%)"}
21if(prevBtn)
22prevBtn.addEventListener("click",function(){var maxIdx=Math.max(0,total-getVisible());goTo(current<=0?maxIdx:current-1)});if(nextBtn)
23nextBtn.addEventListener("click",function(){var maxIdx=Math.max(0,total-getVisible());goTo(current>=maxIdx?0:current+1)});var touchStartX=0;track.addEventListener("touchstart",function(e){touchStartX=e.touches[0].clientX},{passive:!0},);track.addEventListener("touchend",function(e){var diff=touchStartX-e.changedTouches[0].clientX;if(Math.abs(diff)>40)
24diff>0?goTo(current+1):goTo(current-1);});var resizeTimer;window.addEventListener("resize",function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(setup,150)});setup()})}
25function refreshWaTestimonialContent(content){var body=content.querySelector(".wa-testimonial-content__body");var toggle=content.querySelector(".wa-testimonial-expand-toggle");if(!body||!toggle)return;var wasExpanded=content.classList.contains("wa-testimonial-content-expanded",);content.classList.add("wa-testimonial-content-collapsible");content.classList.remove("wa-testimonial-content-expanded");var isOverflowing=body.scrollHeight>body.clientHeight+1;content.classList.toggle("wa-testimonial-content-collapsible",isOverflowing,);if(!isOverflowing){toggle.hidden=!0;toggle.setAttribute("aria-expanded","false");return}
26if(wasExpanded){content.classList.add("wa-testimonial-content-expanded")}
27toggle.hidden=!1;toggle.setAttribute("aria-expanded",wasExpanded?"true":"false");toggle.textContent=wasExpanded?content.dataset.collapseText||"Show Less":content.dataset.expandText||"Show More"}
28function initWaTestimonialContent(root){var ctx=root||document;ctx.querySelectorAll(".wa-testimonial-content").forEach(function(content){content.setAttribute("data-wa-testimonial-init","1");refreshWaTestimonialContent(content)})}
29window.addEventListener("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/global",function($scope){initWaCarousels($scope[0]);initWaTestimonialContent($scope[0])},)});document.addEventListener("DOMContentLoaded",function(event){initWaCarousels();initWaTestimonialContent();document.querySelectorAll(".copyClip").forEach(function(el){el.addEventListener("click",function(){copyToClipboard(el)})});document.body.addEventListener("click",function(event){if(event.target.classList.contains("wa-collapsible-title")){var formId=event.target.getAttribute("data-form-id");var content=document.querySelector('.wa-collapsible-content[data-form-id="'+formId+'"]',);if(content.style.display==="block"){content.style.display="none";var icon=event.target.querySelector("i");icon.classList.remove("dashicons-arrow-up-alt2");icon.classList.add("dashicons-arrow-down-alt2")}else{content.style.display="block";var icon=event.target.querySelector("i");icon.classList.remove("dashicons-arrow-down-alt2");icon.classList.add("dashicons-arrow-up-alt2")}}
30if(event.target.classList.contains("wa-expand-toggle")){var contentDiv=event.target.closest(".wa-event-content");contentDiv.classList.toggle("wa-event-content-expanded")}
31var testimonialToggle=event.target.closest(".wa-testimonial-expand-toggle",);if(testimonialToggle){var contentDiv=testimonialToggle.closest(".wa-testimonial-content");var isExpanded=contentDiv.classList.toggle("wa-testimonial-content-expanded",);testimonialToggle.setAttribute("aria-expanded",isExpanded?"true":"false",);testimonialToggle.textContent=isExpanded?contentDiv.dataset.collapseText||"Show Less":contentDiv.dataset.expandText||"Show More"}
32if(event.target.classList.contains("wa-load-more")){var btn=event.target;if(btn.getAttribute("aria-busy")==="true")return;var container=btn.closest("[data-wa-post-type]");if(!container)return;var postType=container.getAttribute("data-wa-post-type");var currentPage=parseInt(container.getAttribute("data-wa-page"),10)||1;var perPage=parseInt(container.getAttribute("data-wa-per-page"),10)||6;var widgetArgs=container.getAttribute("data-wa-args")||"{}";var nextPage=currentPage+1;var cardsClass=postType==="event"?".wa-event-cards":".wa-testimonial-cards";var cardsEl=container.querySelector(cardsClass);if(!cardsEl)return;btn.setAttribute("aria-busy","true");btn.disabled=!0;var data=new URLSearchParams();data.append("action","wa_load_cards");data.append("nonce",wa_ajax.nonce);data.append("post_type",postType);data.append("page",nextPage);data.append("per_page",perPage);data.append("widget_args",widgetArgs);fetch(wa_ajax.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:data.toString(),}).then(function(r){return r.json()}).then(function(res){if(res.success&&res.data.html){var tmp=document.createElement("div");tmp.innerHTML=res.data.html;while(tmp.firstChild){cardsEl.appendChild(tmp.firstChild)}
33initWaTestimonialContent(cardsEl);container.setAttribute("data-wa-page",nextPage)}
34if(!res.success||!res.data.has_more){var wrap=btn.closest(".wa-load-more-wrap");if(wrap)wrap.style.display="none"}else{btn.setAttribute("aria-busy","false");btn.disabled=!1}}).catch(function(){btn.setAttribute("aria-busy","false");btn.disabled=!1})}})});var waTestimonialResizeTimer;window.addEventListener("resize",function(){clearTimeout(waTestimonialResizeTimer);waTestimonialResizeTimer=setTimeout(function(){initWaTestimonialContent()},150)});window.addEventListener("load",function(){initWaTestimonialContent()});

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.