PageSourceSearch

https://consideritflowers.com/cdn/shop/t/2/assets/global.js?v=58293586060579533561777287315

js consideritflowers.com collected 2026-10-05 07:18:25 UTC 16,345 bytes, 2 lines download raw bytes

1let productSlider=null,quickShopSlider=null;class Dropdown{constructor(element,useDelegation=!1){this.element=element,this.dropdownParent=element.parentElement,this.useDelegation=useDelegation,useDelegation?this.bindEvents():(this.supportedEvents=["mouseover","focusin","click","mouseout","touchstart"],this.init())}init(){this.supportedEvents.forEach(type=>{type==="click"?this.element.addEventListener(type,evt=>{evt.stopPropagation(),this.handleDropdownEvent(evt)}):type==="mouseout"||type==="touchstart"?this.dropdownParent.addEventListener(type,evt=>{evt.currentTarget.closest("[data-touch-moveable]")||this.dropdownHide(this.dropdownParent,evt.type)},!0):(type==="mouseover"||type==="focusin")&&(this.dropdownParent.addEventListener(type,evt=>{evt.currentTarget.closest("[data-touch-moveable]")||this.dropdownShow(this.dropdownParent)}),this.element.addEventListener(type,_evt=>{this.childOnFocusChange(this.dropdownParent)}))}),this.bindEvents()}bindEvents(){let closeBtn=this.dropdownParent.querySelector(".close-submenu");closeBtn&&!this.closeBindInitialized&&(this.closeBindInitialized=!0,closeBtn.addEventListener("click",evt=>{evt.preventDefault();let parentElement=evt.currentTarget.closest(".dropdown");parentElement&&this.dropdownToggle(parentElement)}))}handleDropdownEvent(evt){if(this.useDelegation){const eventType=evt.type,mobileContainer=evt.target.closest("[data-touch-moveable]");if(eventType==="click")evt.target.closest('a[is="drop-down"]')&&(evt.stopPropagation(),this.dropdownToggle(this.dropdownParent));else if(eventType==="mouseout"||eventType==="touchstart"){if(!mobileContainer)if(eventType==="mouseout"){const relatedTarget=evt.relatedTarget;(!relatedTarget||!this.dropdownParent.contains(relatedTarget))&&this.dropdownHide(this.dropdownParent,eventType)}else this.dropdownHide(this.dropdownParent,eventType)}else(eventType==="mouseover"||eventType==="focusin")&&(mobileContainer||(this.dropdownShow(this.dropdownParent),evt.target.closest('a[is="drop-down"]')&&this.childOnFocusChange(this.dropdownParent)))}else this.dropdownToggle(this.dropdownParent)}dropdownToggle(dropdownParent){setTimeout(()=>{dropdownParent.classList.contains("open")?this.dropdownHide(dropdownParent):this.dropdownShow(dropdownParent)},50)}dropdownShow(dropdownParent){dropdownParent&&(this.element.setAttribute("aria-expanded",!0),dropdownParent.closest('[data-role="drawer"]')?Utility.toggleElement(dropdownParent,"open"):dropdownParent.classList.add("open"))}dropdownHide(dropdownParent,eventType){if(!dropdownParent)return;this.element.setAttribute("aria-expanded",!1),dropdownParent.closest('[data-role="drawer"]')?Utility.toggleElement(dropdownParent,"close"):dropdownParent.classList.remove("open"),eventType==="mouseout"&&dropdownParent.parentElement.closest(".dropdown")&&dropdownParent.parentElement.closest(".dropdown").classList.remove("open");let childDropdowns=dropdownParent.querySelectorAll(".dropdown.open");childDropdowns.length>0&&childDropdowns.forEach(child=>{child.classList.remove("open");const toggleLink=child.querySelector('a[data-toggle="open"]');toggleLink&&toggleLink.setAttribute("aria-expanded",!1)})}childOnFocusChange(dropdownParent){let openDropdowns=Array.from(dropdownParent.parentElement.querySelectorAll(".dropdown.open")),currentIndex=openDropdowns.indexOf(dropdownParent);openDropdowns.forEach(ele=>{openDropdowns.indexOf(ele)!==currentIndex&&this.dropdownHide(ele)})}}class DropdownManager{constructor(){this.instances=new Map,this.init()}init(){["mouseover","focusin","click","mouseout","touchstart","touchend"].forEach(eventType=>{document.addEventListener(eventType,this.handleEvent.bind(this),!0)})}handleEvent(evt){const dropdown=evt.target.closest('a[is="drop-down"]'),dropdownParent=evt.target.closest(".dropdown"),navItem=evt.target.closest('a[is="simple-menu-item"]');if(dropdown||dropdownParent){const targetDropdown=dropdown||dropdownParent.querySelector('a[is="drop-down"]');targetDropdown&&(this.instances.has(targetDropdown)||this.instances.set(targetDropdown,new Dropdown(targetDropdown,!0)),evt.type!=="touchend"&&this.instances.get(targetDropdown).handleDropdownEvent(evt))}else navItem&&(this.instances.has(navItem)||this.instances.set(navItem,
1new DefaultNavItem(navItem,!0)),evt.type==="touchend"?evt.stopPropagation():this.instances.get(navItem).handleEvent(evt))}}new DropdownManager;class DefaultNavItem{constructor(element,useDelegation=!1){this.element=element,this.useDelegation=useDelegation,useDelegation||(this.supportedEvents=["mouseover","focusin","click","mouseout","touchstart"],this.init())}init(){let _this=this.element;this.supportedEvents.forEach(type=>{_this.addEventListener(type,e=>{e.stopPropagation();let currentTarget=e.currentTarget;currentTarget.closest("[data-touch-moveable]")||this.hideDropdown(currentTarget.parentElement)})}),_this.addEventListener("touchend",e=>{e.stopPropagation()})}handleEvent(evt){this.useDelegation&&(evt.stopPropagation(),evt.target.closest("[data-touch-moveable]")||this.hideDropdown(this.element.parentElement))}hideDropdown(dropdownParent){if(!dropdownParent||!dropdownParent.parentElement)return;Array.from(dropdownParent.parentElement.querySelectorAll(".dropdown.open")).forEach(ele=>{ele.classList.remove("open");const dropdownLink=ele.querySelector('[is="drop-down"]');dropdownLink&&dropdownLink.setAttribute("aria-expanded",!1)})}}class siteOverlay extends HTMLElement{constructor(){super(),this.bindEvents()}connectedCallback(){}get menuDrawer(){return this._menuDrawer||(this._menuDrawer=document.querySelector("#mobile-menu-drawer"))}get cartDrawer(){return this._cartDrawer||(this._cartDrawer=document.querySelector("#ajax-cart"))}get searchDrawer(){return this._searchDrawer||(this._searchDrawer=document.querySelector("search-modal"))}get filterDrawer(){return this._filterDrawer||(this._filterDrawer=document.querySelector("#collectionFilters"))}bindEvents(){this.addEventListener("click",this.onClick.bind(this)),this.addEventListener("touchend",this.onClick.bind(this))}onClick(event){const closeCart=this.cartDrawer&&this.cartDrawer.classList.contains("opened-drawer"),closeMenu=this.menuDrawer&&this.menuDrawer.classList.contains("opened-drawer"),closeSearch=this.searchDrawer&&this.searchDrawer.classList.contains("open__modal");this.filterDrawer&&this.filterDrawer.classList.contains("sortby-active")&&document.querySelector("[data-closedrawer]").dispatchEvent(new Event("click")),closeCart&&document.querySelector(".close-ajax--cart").dispatchEvent(new Event("click")),this.menuDrawer&&this.menuDrawer.classList.contains("opened-drawer")&&document.querySelector("#mobile-menu.openmenulink").dispatchEvent(new Event("click")),closeSearch&&document.querySelector(".search-modal__close-button").dispatchEvent(new Event("click")),this.hideOverlay()}showOverlay(){document.querySelector("#site-overlay").classList.add("overlay--body"),document.body.classList.add("scroll-fixed")}hideOverlay(){document.querySelector("#site-overlay").classList.remove("overlay--body"),document.body.classList.remove("scroll-fixed")}}customElements.define("site-overlay",siteOverlay,{once:!0});class sliderElement extends HTMLElement{constructor(){if(super(),this.sliderEle=this.querySelector(".swiper-slider"),this.sliderEle){const sliderData=this.sliderEle.getAttribute("data-slider");this.sliderOptions=sliderData?JSON.parse(sliderData):null}}static get observedAttributes(){return["data-slider"]}attributeChangedCallback(name,oldValue,newValue){name==="data-slider"&&newValue&&(this.sliderOptions=JSON.parse(newValue))}connectedCallback(){if(!this.sliderEle)return;let thumbSlider=null;if(this.sliderEle.hasAttribute("data-nav")){if(thumbSlider=document.querySelector(`.${this.sliderEle.getAttribute("data-nav")}`),!thumbSlider)return;const thumbSliderOptions=JSON.parse(thumbSlider.getAttribute("data-slider"));thumbSlider=new Swiper(thumbSlider,thumbSliderOptions),this.sliderOptions.thumbs={swiper:thumbSlider}}const sliderInstance=new Swiper(this.sliderEle,this.sliderOptions);this.sliderInstance=sliderInstance,this.sliderEle.classList.contains("product-carousel")?productSlider=sliderInstance:this.sliderEle.classList.contains("quickshop-slider")&&(quickShopSlider=sliderInstance),this.slideChangeEvt(sliderInstance,thumbSlider)}slideChangeEvt(slider,thumbSlider){slider.on("slideChange",event=>{thumbSlider&&thumbSlider.slideTo(slider.activeIndex);const activeVideos=slider.el.querySelectorAll(".custom-video-container.playing--video custom-video");activeVideos.length>0&&activeVideos.forEach(video=>{const videoType=video.getAttribute("data-video-type"),videoEle=video.querySelector(videoType==="local"?"video":"iframe");videoEle&&(videoType==="local"?videoEle.pause():videoType==="youtube"&&videoEle.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"))})})}}function initSliderElement(){return typeof Swiper=="function"&&!customElements.get("slider-element")?(customElements.define("slider-element",sliderElement),!0):!1}(function(){if(initSliderElement())return;let attempts=0;const maxAttempts=50,checkSwiper=()=>{initSliderElement()||(attempts++,attempts<maxAttempts&&(requestIdleCallback?requestIdleCallback(checkSwiper):setTimeout(checkSwiper,100)))};"requestIdleCallback"in window?requestIdleCallback(checkSwiper):setTimeout(checkSwiper,100)})();class customVideo extends HTMLElement{constructor(){super(),this.type=this.getAttribute("data-video-type"),this.videoURL=this.getAttribute("data-video-id"),this.placementType=this.getAttribute("data-placement"),this.videoStatus="empty",this.container=this.closest(".custom-video-container"),this.videoModal=document.getElementById("PopupModal-video"),this.contentSection=this.querySelector(".content-section"),this.videoSection=this.querySelector(".video-section"),this.placementType=="popup"&&(this.videoSection=this.videoModal.querySelector(".video-container")),this.triggerVideo=this.container.querySelector("[data-trigger-video]"),this.bindEvents()}connectedCallback(){}
1bindEvents(){this.querySelector("[data-postervideo]")&&this.managePosterVideos(),this.triggerVideo&&this.triggerVideo.addEventListener("click",this.toggleView.bind(this))}focusOut(_event){this.container.classList.contains("playing--video")&&this.toggleView()}toggleView(_event){if(this.container.classList.contains("playing--video"))this.container.classList.remove("playing--video");else{const testimonialContainer=this.closest(".customer-testimonial");if(testimonialContainer&&testimonialContainer.querySelectorAll(".playing--video").forEach(video=>{const triggerBtn=video.querySelector("[data-trigger-video]");triggerBtn&&triggerBtn.click(),video.classList.remove("playing--video")}),this.videoStatus=="empty"||this.placementType=="popup"){const videoElement=this._buildVideo();videoElement.id="custom-video"+Math.floor(Math.random()*100+1),this.videoSection.appendChild(videoElement),this.videoStatus="loaded",setTimeout(()=>{this.placementType=="popup"?openModal(this.videoModal,this.triggerVideo):this.container.classList.add("playing--video"),this.pauseOnVisibilityChange(videoElement),this._playVideo(videoElement)},700)}else{const videoElement=this.querySelector(".video-section video")||this.querySelector(".video-section iframe");this.container.classList.add("playing--video"),this._playVideo(videoElement)}}}_playVideo(video){this.type=="local"?video.play():this.type=="youtube"&&video.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}_buildVideo(){let video;if(this.type=="local")video=document.createElement("video"),video.src=this.videoURL,this.dataset.controls=="true"&&(video.controls=this.dataset.controls),this.dataset.muted=="true"&&(video.muted=this.dataset.muted),this.dataset.autoplay=="true"&&(video.autoplay=this.dataset.autoplay),this.dataset.loop=="true"&&(video.loop=this.dataset.loop),video.playsInline=!0;else if(this.type=="youtube"){let videoID=this.videoURL.replace("https://www.youtube.com/watch?v=","");video=document.createElement("iframe"),video.setAttribute("allowfullscreen",""),video.setAttribute("frameborder","0"),video.setAttribute("allow","autoplay"),video.setAttribute("src","https://www.youtube.com/embed/"+videoID+`?rel=0&showinfo=0&autoplay=${this.dataset.autoplay}&muted=${this.dataset.muted}&controls=${this.dataset.controls}&loop=${this.dataset.loop}&playlist=${videoID}&enablejsapi=1&origin=${window.origin}`)}return video}pauseOnVisibilityChange(videoEle){let scrollObserver=new IntersectionObserver(entries=>{if(this.type=="local"&&videoEle==null||this.type=="youtube"&&videoEle.contentWindow==null){scrollObserver.disconnect();return}entries.forEach(entry=>{entry.intersectionRatio==0&&(this.type=="local"?(videoEle.pause(),videoEle.closest("div.video-grid-inner").classList.remove("playing--video")):this.type=="youtube"&&videoEle.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"))})});scrollObserver.observe(videoEle)}managePosterVideos(){let posterVideo=this.querySelector("[data-postervideo]");if(!posterVideo||posterVideo==null)return;const videoIntersection=entries=>{for(const entry of entries)if(entry.isIntersecting&&entry.target){let sourceTag=document.createElement("source");sourceTag.src=entry.target.dataset.src,sourceTag.type="video/mp4",entry.target.appendChild(sourceTag),entry.target.play(),observerPosterVideo.disconnect()}},observerPosterVideo=new IntersectionObserver(videoIntersection);observerPosterVideo.observe(posterVideo)}}customElements.define("custom-video",customVideo);function openModal(modal,opener){modal&&opener!=null&&modal.show(opener)}class ModalDialog extends HTMLElement{constructor(){super(),this.modal=this.querySelector(".modal"),this.modalOpeners=[...document.querySelectorAll(`[data-modal-opener="${this.id}"]`)],this.closeBtn=this.querySelector('[id^="ModalClose-"]')}connectedCallback(){this.modalOpeners.forEach(opener=>{opener.addEventListener("click",evt=>{evt.preventDefault(),this.show(opener)})}),this.closeBtn&&this.closeBtn.addEventListener("click",this.hide.bind(this)),this.addEventListener("click",evt=>
1{evt.target.nodeName==="MODAL-DIALOG"&&this.hide()}),this.addEventListener("keyup",evt=>{evt.code&&evt.code.toUpperCase()==="ESCAPE"&&this.hide()})}show(opener){this.openedBy=opener,this.modal.classList.add("open"),siteOverlay.prototype.showOverlay(),Utility.trapFocus(this),Utility.forceFocus(this.closeBtn)}hide(){this.modal.classList.remove("open"),siteOverlay.prototype.hideOverlay(),Utility.removeTrapFocus(this.openedBy),this.id=="PopupModal-video"&&(this.querySelector(".video-container").innerHTML="")}}customElements.define("modal-dialog",ModalDialog);class Notification extends HTMLElement{constructor(){super(),this.container=this.querySelector(".snotifyToast"),this.closeBtn=this.querySelector(".snotifyToast__close"),this.animateNotification=null}connectedCallback(){this.closeBtn&&this.closeBtn.addEventListener("click",e=>{e.preventDefault(),this.hide()})}updateNotification(title,body,options){this.querySelector(".snotifyToast__title").textContent=title,this.querySelector(".snotifyToast__body").textContent=body,this.container.classList.add("open",`snotify-${options.type}`),this._manageToggle(options.timeout)}_manageToggle(timeout){this.progressBar=this.querySelector("[data-toast-pr]");const totalFrames=Math.ceil(timeout/16.67)/2;let frame=0,width=0;this.animateNotification=()=>{width=frame/totalFrames*100,this.progressBar.setAttribute("style",`width: ${width}%`),frame<totalFrames?(frame++,requestAnimationFrame(this.animateNotification)):this.closeBtn.dispatchEvent(new Event("click"))},requestAnimationFrame(this.animateNotification)}hide(){cancelAnimationFrame(this.animateNotification),this.container.className="snotifyToast",[this.querySelector(".snotifyToast__title"),this.querySelector(".snotifyToast__body")].forEach(ele=>ele.textContent=""),this.querySelector("[data-toast-pr]").removeAttribute("style")}}customElements.define("toast-notification",Notification),window.notificationEle=document.querySelector("toast-notification");const scrollToElement=document.querySelector("[data-scroll-to]");scrollToElement&&scrollToElement.addEventListener("click",e=>{e.preventDefault(),Utility.scrollToAnchor(e.currentTarget.getAttribute("data-scroll-to"))});
2//# sourceMappingURL=/cdn/shop/t/2/assets/global.js.map?v=58293586060579533561777287315

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.