PageSourceSearch

https://www.childrenbychoice.org.au/wp-content/plugins/theplus_ele…/plus-tabs-tours.min.js?ver=1790907335

js childrenbychoice.org.au collected 2026-10-02 04:25:01 UTC 19,858 bytes, 1 lines download raw bytes

1(function(){"use strict";var a=function(a,b){function c(){var a=jQuery(".elementor-element[data-tp-equal-height-loadded]");0<a.length&&EqualHeightsLoadded()}function d(a){let b=a.clickedSlide?a.clickedSlide.dataset.swiperSlideIndex:0,c=a.slides?Object.values(a.slides):[],d=i[0].querySelectorAll(".theplus-tabs-content-wrapper .plus-tab-content");c.forEach(function(a){a&&a.dataset&&a.dataset.swiperSlideIndex&&+a.dataset.swiperSlideIndex==+b?(a.firstChild.classList.remove("inactive"),a.firstChild.classList.add("active")):a&&a.firstChild&&(a.firstChild.classList.remove("active"),a.firstChild.classList.add("inactive"))}),0<d.length&&d.forEach(function(a){+a.dataset.tab==+b+1?(a.classList.remove("inactive"),a.classList.add("active")):(a.classList.remove("active"),a.classList.remove("default-active"),a.classList.add("inactive"))})}function e(a,b,c){i[0].dataset.tabSecond&&(a.classList.remove("active"),a.classList.add("inactive"),0<c.length&&c.forEach(function(a){b==a.dataset.tab&&(a.classList.remove("active"),a.classList.add("inactive"))}))}function f(){var a=window.innerHeight,b=i[0].getBoundingClientRect().top;b<a-150?g():window.addEventListener("scroll",g)}function g(){let b=window.innerHeight,c=document.querySelector(".theplus-tabs-wrapper").getBoundingClientRect().top;c<b-150&&(a[0].querySelector(`${r} ul.plus-tabs-nav li .plus-tab-header`).classList.remove("inactive"),a[0].querySelector(`${r} ul.plus-tabs-nav li .plus-tab-header`).classList.add("active"),window.removeEventListener("scroll",g))}function h(a){let c=a.querySelectorAll(`.list-isotope .post-inner-loop`),d=a.querySelectorAll(`.list-carousel-slick .post-inner-loop`),e=a.querySelectorAll(`.list-isotope-metro .post-inner-loop`);c.length&&setTimeout(function(){b(c[0]).isotope("layout")},30),d.length&&setTimeout(function(){b(d[0]).slick("setPosition")},30),e.length&&setTimeout(function(){e.forEach(function(a){if(a.parentElement&&a.parentElement.dataset){let b=a.parentElement.dataset.id?a.parentElement.dataset.id:"",c=a.parentElement.dataset.metroColumns?a.parentElement.dataset.metroColumns:"",d=a.parentElement.dataset.metroStyle?a.parentElement.dataset.metroStyle:"";theplus_backend_packery_portfolio(b,c,d)}})},30)}var i=a[0].querySelectorAll(".theplus-tabs-wrapper"),j=a.find(".theplus-tabs-wrapper"),k=j.data("tab-hover"),l=j.data("tab-tabletmode"),m=j.data("tab-mobilemode"),n=j.data("tab-closeforce-tablet"),o=j.data("tab-closeforce-mobile"),p=j.data("tab-autoplay"),q=j.data("tab-autoplay-duration"),r="#"+j.attr("id").toString();let s=a[0].querySelectorAll(`${r} ul.plus-tabs-nav li .plus-tab-header`),t=a[0].querySelectorAll(`${r} .theplus-tabs-content-wrapper .plus-tab-content`),u=i[0].dataset.tabDefault?+i[0].dataset.tabDefault:"",v=document.querySelector("body").dataset.elementorDeviceMode;if((null!=l&&"1"==l&&"tablet"===v||null!=m&&"1"==m&&"mobile"===v)&&(u="0"),(null!=n&&"1"==n&&"tablet"===v||null!=o&&"1"==o&&"mobile"===v)&&(u="-1"),"yes"!==p){var w=i[0].dataset.connection,x=i[0].dataset.rowBgConn?i[0].dataset.rowBgConn:"";0<s.length&&s.forEach(function(a,b){u==b?(a.classList.remove("inactive"),a.classList.add("active"),w&&document.querySelectorAll(`.${w}`).length&&setTimeout(function(){plus_tabs_connection(parseInt(u+1),w)},150),x&&document.querySelectorAll(`#${x}`).length&&background_accordion_tabs_conn(u+1,x)):a.classList.add("inactive")})}0<t.length&&t.forEach(function(c,d){if(u==d){c.classList.remove("inactive"),c.classList.add("active");let d=a[0].querySelectorAll(`${r} .list-isotope-metro .post-inner-loop`),e=a[0].querySelectorAll(`${r} .list-isotope .post-inner-loop`);0<d.length?setTimeout(function(){theplus_setup_packery_portfolio("*")},10):0<e.length&&setTimeout(function(){b(e[0]).isotope("layout")},10)}else c.classList.add("inactive")});var y=1e3*q,z=0;if("yes"==p&&null!=q){function b(){let a,b=i[0].querySelectorAll(".plus-tab-header.active"),d=i[0].querySelectorAll(".theplus-tabs-content-wrapper .plus-tab-content");0<b.length&&b.forEach(function(b){if(a=b.dataset.tab,b.parentElement&&b.parentElement.nextElementSibling){b.classList.remove("active"),b.classList.add("inactive");let a=b.parentElement.nextElementSibling.querySelectorAll(".plus-tab-header");0<a.length&&(a[0].classList.remove("inactive"),a[0].classList.add("active"))}else return void clearInterval(z)}),0<d.length&&d.forEach(function(a){a.classList.contains("active")&&(a.classList.remove("active"),a.classList.add("inactive"));let b=i[0].querySelectorAll(".plus-tab-header.active");0<b.length&&a.dataset.tab==b[0].dataset.tab&&(a.classList.add("active"),a.classList.remove("inactive"),h(a))});let e=document.querySelectorAll(".tp-carousel-dots"),f=document.querySelectorAll(".theplus-carousel-remote"),g=i[0].dataset&&i[0].dataset.connection?i[0].dataset.connection:"";if(0<e.length&&0<f.length&&f[0].dataset.connection==g){let b=e[0].querySelectorAll(".tp-carodots-item");b.forEach(function(a){a.classList.contains("active")&&(a.classList.remove("active"),a.classList.add("inactive")),a.classList.contains("default-active")&&(a.classList.remove("default-active"),a.classList.add("inactive"))}),b.forEach(function(b){+a==+b.dataset.tab&&(b.classList.remove("inactive"),b.classList.add("active"))})}g&&0<document.querySelectorAll(`.${g}`).length&&plus_tabs_connection(+a+1,g),c()}f();let d=a[0].querySelectorAll(`${r}.tp-tab-playloop.tp-tab-playpause-button`),e=i[0].querySelectorAll(".tp-tab-play-pause-wrap");0<d.length&&0<e.length&&e[0].addEventListener("click",function(){let a=e[0].querySelectorAll(".tp-tab-play-pause:nth-child(1)"),c=e[0].querySelectorAll(".tp-tab-play-pause:nth-child(2)");a[0].classList.contains("active")?(a[0].classList.remove("active"),c[0].classList.add("active"),e[0].classList.add("pausecls"),clearInterval(z)):c[0].classList.contains("active")&&(c[0].classList.remove("active"),a[0].classList.add("active"),e[0].classList.remove("pausecls"),clearInterval(z),z=setInterval(b,y))});let g=a[0].querySelectorAll(`${r}.tp-tab-playloop ul.plus-tabs-nav li .plus-tab-header`);0<g.length&&g.forEach(function(a){a.addEventListener("click",function(){0<d.length&&0<e.length&&(e[0].querySelector(".tp-tab-play-pause:nth-child(2)").classList.remove("active"),e[0].querySelector(".tp-tab-play-pause:nth-child(1)").classList.add("active")),clearInterval(z),z=setInterval(b,y)})}),z=setInterval(b,y)}"no"==k?b(r+" ul.plus-tabs-nav li .plus-tab-header").on("click",function(){var c=this.dataset.tab,d=this.closest(".theplus-tabs-wrapper"),f=d.dataset.connection,g=d.dataset.rowBgConn,h=d.querySelectorAll(".theplus-tabs-content-wrapper .plus-tab-content"),j=d.querySelectorAll(".theplus-tabs-nav-wrapper .plus-tab-header");if(this.classList.contains("active"))return void e(this,c,h);if(j.forEach(function(a){a.classList.remove("active"),a.classList.remove("default-active"),a.classList.add("inactive")}),this.classList.add("active"),this.classList.remove("inactive"),h.forEach(function(a){a.dataset.tab==c?(a.classList.remove("inactive"),a.classList.add("active"),0<a.querySelectorAll(".pt_plus_before_after").length&&size_Elements()):(a.classList.remove("active"),a.classList.add("inactive")),a.classList.remove("default-active")}),i[0].classList.contains("swiper-container")&&!1===event.isTrusted&&0>event.layerX){var k=window.screen.width,l=event.layerX;if(l=Math.abs(l),l>k)var m=l-k+300;var n=d.querySelector(".theplus-tabs-nav-wrapper.swiper-wrapper");
1n.style.transform=`translate3d(-${m}px, 0px, 0px)`}f&&0<document.querySelectorAll(`.${f}`).length&&plus_tabs_connection(c,f);let o=document.querySelectorAll(".theplus-carousel-remote");0<o.length&&o.forEach(function(a){let b=a.querySelectorAll(".tp-carousel-dots");if(a.dataset.connection==f){let a=b[0].querySelectorAll(".tp-carodots-item");0<a.length&&a.forEach(function(a){a.dataset.tab==+c-1?(a.classList.remove("inactive"),a.classList.add("active")):(a.classList.remove("active"),a.classList.remove("default-active"),a.classList.add("inactive"))})}}),g&&0<document.querySelectorAll(`#${g}`).length&&background_accordion_tabs_conn(c,g),b(r+" .list-carousel-slick > .post-inner-loop").length&&b(r+" .list-carousel-slick > .post-inner-loop").slick("setPosition"),b(r+" .elementor-background-video-embed").length&&setTimeout(function(){var a=b(".theplus-tabs-content-wrapper",d).find("[data-tab='"+c+"'] .elementor-background-video-embed").closest(".elementor-background-video-container").outerWidth(),e=b(".theplus-tabs-content-wrapper",d).find("[data-tab='"+c+"'] .elementor-background-video-embed").closest(".elementor-background-video-container").outerHeight(),f=["16","9"],g=f[0]/f[1],i=a/e>g,j=i?a:e*g,k=i?a/g:e;100==k&&(j="100%",k="100%"),b(r+" .elementor-background-video-embed").width(j).height(k)},50),b(r+" iframe.pt-plus-bg-video").length&&setTimeout(function(){var a=b(r+" iframe.pt-plus-bg-video").closest(".columns-video-bg").outerWidth(),c=b(r+" iframe.pt-plus-bg-video").closest(".columns-video-bg").outerHeight(),d=["16","9"],e=d[0]/d[1],f=a/c>e,g=f?a:c*e,i=f?a/e:c;b(r+" iframe.pt-plus-bg-video").width(g).height(i)},100);let p=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${c}"] .list-isotope-metro`);p.length&&p.forEach(function(a){var c=a.querySelectorAll(".post-inner-loop"),d=a.dataset.id,e=a.dataset.metroColumns,f=a.dataset.metroStyle;theplus_backend_packery_portfolio(d,e,f),b(c[0]).isotope("layout")});let q=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${c}"] .list-isotope .post-inner-loop`);q.length&&setTimeout(function(){b(q[0]).isotope("layout")},30);let s=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${c}"] .tp-unfold-wrapper`);s.length&&s.forEach(function(a){let d=a.querySelectorAll(".tp-unfold-description .tp-unfold-description-inner"),e=a.querySelectorAll(".tp-unfold-last-toggle"),f=a.querySelectorAll(".tp-unfold-description"),g=d[0].getBoundingClientRect().height,h=a.dataset.contentMaxHeight,i=a.dataset.id;g<=h?(0<e.length&&(e[0].style.cssText="display: none;"),0<f.length&&b(r+" .plus-tab-content[data-tab='"+c+"'] .tp-unfold-description").append("<style>.tp-unfold-wrapper."+i+" .tp-unfold-description:after{min-height:0 !important;}</style>")):0<e.length&&(e[0].style.cssText="display: flex;")})}):"yes"==k&&b(r+" ul.plus-tabs-nav li .plus-tab-header").mouseover(function(){var c=this.dataset.tab,d=this.closest(".theplus-tabs-wrapper"),f=d.dataset.connection,g=d.dataset.rowBgConn,h=d.querySelectorAll(".theplus-tabs-content-wrapper .plus-tab-content"),i=this.closest(".theplus-tabs-wrapper > .theplus-tabs-nav-wrapper"),j=i.querySelectorAll(".plus-tab-header");if(this.classList.contains("active"))return void e(this,c,h);j.forEach(function(a){a.classList.remove("active"),a.classList.remove("default-active"),a.classList.add("inactive")}),this.classList.add("active"),this.classList.remove("inactive"),b(d).find(">.theplus-tabs-content-wrapper>.plus-tab-content").removeClass("active").addClass("inactive"),b(">.theplus-tabs-content-wrapper>.plus-tab-content[data-tab='"+c+"']",d).addClass("active").removeClass("inactive"),f&&0<document.querySelectorAll(`.${f}`).length&&plus_tabs_connection(c,f);let k=document.querySelectorAll(".theplus-carousel-remote");0<k.length&&k.forEach(function(a){let b=a.querySelectorAll(".tp-carousel-dots");if(a.dataset.connection==f){let a=b[0].querySelectorAll(".tp-carodots-item");0<a.length&&a.forEach(function(a){a.dataset.tab==+c-1?(a.classList.remove("inactive"),a.classList.add("active")):(a.classList.remove("active"),a.classList.remove("default-active"),a.classList.add("inactive"))})}}),g&&0<document.querySelectorAll(`#${g}`).length&&background_accordion_tabs_conn(c,g),b(r+" .list-carousel-slick > .post-inner-loop").length&&b(r+" .list-carousel-slick > .post-inner-loop").slick("setPosition"),b(r+" .elementor-background-video-embed").length&&setTimeout(function(){var a=b(".theplus-tabs-content-wrapper",d).find("[data-tab='"+c+"'] .elementor-background-video-embed").closest(".elementor-background-video-container").outerWidth(),e=b(".theplus-tabs-content-wrapper",d).find("[data-tab='"+c+"'] .elementor-background-video-embed").closest(".elementor-background-video-container").outerHeight(),f=["16","9"],g=f[0]/f[1],i=a/e>g,j=i?a:e*g,k=i?a/g:e;100==k&&(j="100%",k="100%"),b(r+" .elementor-background-video-embed").width(j).height(k)},50),b(r+" iframe.pt-plus-bg-video").length&&setTimeout(function(){var a=b(r+" iframe.pt-plus-bg-video").closest(".columns-video-bg").outerWidth(),c=b(r+" iframe.pt-plus-bg-video").closest(".columns-video-bg").outerHeight(),d=["16","9"],e=d[0]/d[1],f=a/c>e,g=f?a:c*e,i=f?a/e:c;b(r+" iframe.pt-plus-bg-video").width(g).height(i)},100);let l=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${c}"] .list-isotope-metro`);l.length&&l.forEach(function(a){var c=a.querySelectorAll(".post-inner-loop"),d=a.dataset.id,e=a.dataset.metroColumns,f=a.dataset.metroStyle;theplus_backend_packery_portfolio(d,e,f),b(c[0]).isotope("layout")});let m=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${c}"] .list-isotope .post-inner-loop`);m.length&&setTimeout(function(){b(m[0]).isotope("layout")}
1,30);let n=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${c}"] .tp-unfold-wrapper`);n.length&&n.forEach(function(a){let d=a.querySelectorAll(".tp-unfold-description .tp-unfold-description-inner"),e=a.querySelectorAll(".tp-unfold-last-toggle"),f=a.querySelectorAll(".tp-unfold-description"),g=d[0].getBoundingClientRect().height,h=a.dataset.contentMaxHeight,i=a.dataset.id;g<=h?(0<e.length&&(e[0].style.cssText="display: none;"),0<f.length&&b(r+" .plus-tab-content[data-tab='"+c+"'] .tp-unfold-description").append("<style>.tp-unfold-wrapper."+i+" .tp-unfold-description:after{min-height:0 !important;}</style>")):0<e.length&&(e[0].style.cssText="display: flex;")})});var A=!1;if(i[0].classList.contains("swiper-container")){let a=i[0].dataset.swiperLoop;"yes"===a&&(A=!0),new Swiper(".theplus-tabs-wrapper.swiper-container",{slidesPerView:"auto",mousewheelControl:!0,freeMode:!0,loop:A,observer:!0,observeParents:!0})}var B=!1,C=!1,D=!1;if(0<i[0].querySelectorAll(".theplus-tabs-nav-wrapper.swiper-container").length){var E=i[0].dataset.swiperLoop,F=i[0].dataset.swiperCentermode,G=i[0].dataset.swiperCentermodeslideperview;"yes"===E&&(B=!0,D=!0),"yes"===F&&(C=!0);new Swiper(".theplus-tabs-wrapper .theplus-tabs-nav-wrapper.swiper-container",{navigation:{nextEl:".tp-swiper-button-next",prevEl:".tp-swiper-button-prev"},slidesPerView:"auto",updateOnWindowResize:!0,loop:B,centeredSlides:C,centeredSlidesBounds:D,slideToClickedSlide:!0,observer:!0,observeParents:!0,on:{click(){d(this)}}})}if(i[0].classList.contains("mobile-accordion")){window.addEventListener("resize",function(){600>=window.innerWidth&&i[0].classList.add("mobile-accordion-tab")});let c=i[0].querySelectorAll(".theplus-tabs-content-wrapper .elementor-tab-mobile-title");0<c.length&&c.forEach(function(c){var d=c.dataset.tab,f=c.closest(".theplus-tabs-wrapper"),g=f.dataset.connection,h=f.dataset.rowBgConn,i=f.querySelectorAll(".theplus-tabs-content-wrapper .plus-tab-content"),j=f.querySelectorAll(".theplus-tabs-nav-wrapper .plus-tab-header"),k=f.querySelectorAll(".theplus-tabs-content-wrapper .elementor-tab-mobile-title");0<k.length&&k[0].classList.add("active"),c.addEventListener("click",function(){if(this.classList.contains("active"))return void e(this,d,i);0<k.length&&k.forEach(function(a){a.classList.remove("active"),a.classList.remove("default-active"),a.classList.add("inactive")}),this.classList.add("active"),this.classList.remove("inactive"),0<i.length&&i.forEach(function(a){a.dataset.tab==d?(a.classList.remove("inactive"),a.classList.add("active"),0<a.querySelectorAll(".pt_plus_before_after").length&&size_Elements()):(a.classList.remove("active"),a.classList.add("inactive")),a.classList.remove("default-active")}),g&&0<document.querySelectorAll(`.${g}`).length&&plus_tabs_connection(d,g),h&&0<document.querySelectorAll(`#${h}`).length&&background_accordion_tabs_conn(d,h),b(r+" .list-carousel-slick > .post-inner-loop").length&&b(r+" .list-carousel-slick > .post-inner-loop").slick("setPosition"),b(r+" .elementor-background-video-embed").length&&setTimeout(function(){var a=b(".theplus-tabs-content-wrapper",f).find("[data-tab='"+d+"'] .elementor-background-video-embed").closest(".elementor-background-video-container").outerWidth(),c=b(".theplus-tabs-content-wrapper",f).find("[data-tab='"+d+"'] .elementor-background-video-embed").closest(".elementor-background-video-container").outerHeight(),e=["16","9"],g=e[0]/e[1],i=a/c>g,j=i?a:c*g,k=i?a/g:c;100==k&&(j="100%",k="100%"),b(r+" .elementor-background-video-embed").width(j).height(k)},50),b(r+" iframe.pt-plus-bg-video").length&&setTimeout(function(){var a=b(r+" iframe.pt-plus-bg-video").closest(".columns-video-bg").outerWidth(),c=b(r+" iframe.pt-plus-bg-video").closest(".columns-video-bg").outerHeight(),d=["16","9"],e=d[0]/d[1],f=a/c>e,g=f?a:c*e,i=f?a/e:c;b(r+" iframe.pt-plus-bg-video").width(g).height(i)},100);let c=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${d}"] .list-isotope-metro`);c.length&&c.forEach(function(a){var c=a.querySelectorAll(".post-inner-loop"),d=a.dataset.id,e=a.dataset.metroColumns,f=a.dataset.metroStyle;theplus_backend_packery_portfolio(d,e,f),b(c[0]).isotope("layout")});let j=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${d}"] .list-isotope .post-inner-loop`);j.length&&setTimeout(function(){b(j[0]).isotope("layout")}
1,30);let l=a[0].querySelectorAll(`${r} .plus-tab-content[data-tab="${d}"] .tp-unfold-wrapper`);l.length&&l.forEach(function(a){let c=a.querySelectorAll(".tp-unfold-description .tp-unfold-description-inner"),e=a.querySelectorAll(".tp-unfold-last-toggle"),f=a.querySelectorAll(".tp-unfold-description"),g=c[0].getBoundingClientRect().height,h=a.dataset.contentMaxHeight,i=a.dataset.id;g<=h?(0<e.length&&(e[0].style.cssText="display: none;"),0<f.length&&b(r+" .plus-tab-content[data-tab='"+d+"'] .tp-unfold-description").append("<style>.tp-unfold-wrapper."+i+" .tp-unfold-description:after{min-height:0 !important;}</style>")):0<e.length&&(e[0].style.cssText="display: flex;")})})})}let H=window.location.hash,I=i[0].querySelectorAll(`${H}.plus-tab-header`);H&&0<I.length&&I.forEach(function(a){a.classList.contains("active")||(document.querySelector("html, body").animate({scrollTop:b(H).offset().top},1500),a.click(),0<i[0].querySelectorAll(`.elementor-tab-mobile-title[data-tab="${a.dataset.tab}"`).length&&i[0].querySelector(`.elementor-tab-mobile-title[data-tab="${a.dataset.tab}"`).click())});let J=a[0].querySelectorAll("a");J.forEach(function(a){a.addEventListener("click",function(){jQuery(this.hash).trigger("click")})}),function(){let a=i[0].querySelectorAll(".list-isotope-metro");0<a.length&&theplus_setup_packery_portfolio("*")}()};window.addEventListener("elementor/frontend/init",()=>{elementorFrontend.hooks.addAction("frontend/element_ready/tp-tabs-tours.default",a)})})(jQuery);function plus_tabs_connection(a,b){var c=jQuery;b&&1==c("."+b).length&&tpae_carousel_goto(c("."+b+" > .post-inner-loop"),a-1)}(function(a){"use strict";function s(r){a(r||document).find('.plus-tab-header[role="tab"], .elementor-tab-mobile-title[role="tab"]').each(function(){a(this).attr("aria-selected",a(this).hasClass("active")?"true":"false")})}a(document).on("click keyup",'.plus-tab-header[role="tab"], .elementor-tab-mobile-title[role="tab"]',function(){var w=a(this).closest(".theplus-tabs-wrapper");setTimeout(function(){s(w.length?w:document)},0)});a(document).on("keydown",'.plus-tab-header[role="tab"], .elementor-tab-mobile-title[role="tab"]',function(e){if(13===e.which||32===e.which){e.preventDefault();a(this).trigger("click").trigger("mouseover")}});a(window).on("elementor/frontend/init",function(){window.elementorFrontend&&elementorFrontend.hooks&&elementorFrontend.hooks.addAction("frontend/element_ready/tp-tabs-tours.default",function(e){s(e)})})})(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.