PageSourceSearch

https://www.birdsnest.com.au/cdn/shop/t/59/assets/testimonials.js?v=67794367567197250501772504033

js birdsnest.com.au collected 2026-09-25 23:55:33 UTC 2,691 bytes, 1 lines download raw bytes

1!function(){"use strict";customElements.get("testimonials-slider")||customElements.define("testimonials-slider",class extends HTMLElement{constructor(){super(),this.flkty=null,this.onResizeCallback=()=>this.onResize()}connectedCallback(){this.container=this.closest('[data-section-type="testimonials"]'),this.slides=this.querySelectorAll("[data-item]"),this.checkSlideCount(),this.listen()}onResize(){this.checkSlideCount(),null!==this.flkty&&(this.flkty.resize(),this.flkty.size.width>=this.flkty.slideableWidth&&this.destroySlider())}checkSlideCount(){const e=this.slides.length,t=Boolean(2==e&&window.innerWidth>=theme.sizes.small),i=Boolean(1==e);if(!t&&!i)return this.flkty?void(this.flkty&&(this.flkty.isActive||this.initSlider(),this.flkty.slideableWidth>this.flkty.size.width?this.initSlider():this.destroySlider())):(this.initSlider(),void this.onResize());this.destroySlider()}initSlider(){this.flkty=new window.theme.Flickity(this,{cellSelector:"[data-item]",prevNextButtons:!0,pageDots:!0,groupCells:!1,cellAlign:this.dataset.sliderAlignment,contain:!0,adaptiveHeight:!1,on:{ready:()=>{this.slidesTabIndex(),requestAnimationFrame((()=>{this.querySelectorAll(".flickity-button").forEach((e=>{window.theme.wrap(e,"flickity-button-holder")})),this.flkty&&this.flkty.resize()}))},change:()=>{this.slidesTabIndex()}}}),window.theme.isMobile()?this.container.classList.remove("has-arrows"):this.container.classList.add("has-arrows"),this.createResizeClass()}createResizeClass(){if("function"==typeof window.theme.Flickity.prototype._createResizeClass)return;window.theme.Flickity.prototype._createResizeClass=function(){this.element.classList.add("carousel--resize")},window.theme.Flickity.createMethods.push("_createResizeClass");const e=window.theme.Flickity.prototype.resize;window.theme.Flickity.prototype.resize=function(){this.element.classList.remove("carousel--resize"),e.call(this),this.element.classList.add("carousel--resize")}}slidesTabIndex(){window.theme.Flickity.data(this).cells.forEach((e=>{let t="-1";e.element.classList.contains("is-selected")&&(t="0"),e.element.querySelectorAll("a, button").forEach((e=>{e.setAttribute("tabindex",t)}))}))}destroySlider(){this.classList.contains("flickity-enabled")&&(null!==this.flkty&&(this.querySelectorAll(".flickity-button")?.forEach((e=>{const t=e.parentNode;t&&t.classList.contains("flickity-button-holder")&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t))})),this.flkty.destroy()),this.container.classList.remove("has-arrows"))}listen(){document.addEventListener("theme:resize:width",this.onResizeCallback)}disconnectedCallback(){document.removeEventListener("theme:resize:width",this.onResizeCallback)}})}();

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.