HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/chuair.org/wp-content/themes/lifttruck/public/js/screen.js
(() => {
    var e = {
        962: () => {
            (function() {
                "use strict";
                document.addEventListener("DOMContentLoaded", (e => {
                    const t = document.querySelector(".wp-block-navigation__responsive-container-open.always-shown");
                    if (t) {
                        t.parentElement.classList.add("wd-nav-overlay");
                    }
                    const i = document.querySelectorAll(".wp-block-media-text__media a");
                    if (i.length) {
                        i.forEach((e => e.setAttribute("aria-label", "media and text")));
                    }
                    const s = document.querySelector(".has-sticky-header header.wp-block-template-part");
                    if (s !== null) {
                        function l() {
                            s.classList.toggle("is-sticky", window.scrollY > 150);
                            s.classList.toggle("is-fixed", window.scrollY > 250);
                        }
                        window.addEventListener("scroll", l);
                    }
                    if (document.querySelector(".set-transparent-header")) {
                        document.body.classList.add("is-transparent-header");
                    }
                    const n = document.querySelectorAll(".tilt");
                    if (n !== null) {
                        n.forEach((e => {
                            e.setAttribute("data-tilt", "");
                            e.setAttribute("data-tilt-speed", "500");
                            e.setAttribute("data-tilt-perspective", "5000");
                            VanillaTilt.init(e);
                        }));
                    }
                    const a = document.querySelectorAll(".wp-element-button");
                    a.forEach((e => {
                        const t = e.innerHTML;
                        e.innerHTML = `<span>${t}</span>`;
                    }));
                }));
            })();
        },
        44: () => {
            (function() {
                "use strict";
                var e = document.querySelectorAll(".wc-block-product-categories.is-dropdown.is-creative-style .wc-block-product-categories__dropdown");
                if (e) {
                    var t, i, s, n, a, l, r, o;
                    s = e.length;
                    for (t = 0; t < s; t++) {
                        a = e[t].getElementsByTagName("select")[0];
                        n = a.length;
                        l = document.createElement("DIV");
                        l.setAttribute("class", "select-selected");
                        l.innerHTML = a.options[a.selectedIndex].innerHTML;
                        e[t].appendChild(l);
                        r = document.createElement("DIV");
                        r.setAttribute("class", "select-items select-hide");
                        for (i = 1; i < n; i++) {
                            o = document.createElement("a");
                            o.setAttribute("href", a.options[i].value);
                            o.innerHTML = a.options[i].innerHTML;
                            o.addEventListener("click", (function(e) {
                                var t, i, s, n, a, l, r;
                                n = this.parentNode.parentNode.getElementsByTagName("select")[0];
                                l = n.length;
                                a = this.parentNode.previousSibling;
                                for (i = 0; i < l; i++) {
                                    if (n.options[i].innerHTML == this.innerHTML) {
                                        n.selectedIndex = i;
                                        a.innerHTML = this.innerHTML;
                                        t = this.parentNode.getElementsByClassName("same-as-selected");
                                        r = t.length;
                                        for (s = 0; s < r; s++) {
                                            t[s].removeAttribute("class");
                                        }
                                        this.setAttribute("class", "same-as-selected");
                                        break;
                                    }
                                }
                                a.click();
                            }));
                            r.appendChild(o);
                        }
                        e[t].appendChild(r);
                        l.addEventListener("click", (function(e) {
                            e.stopPropagation();
                            h(this);
                            this.nextSibling.classList.toggle("select-hide");
                            this.classList.toggle("select-arrow-active");
                        }));
                    }
                    function h(e) {
                        var t = document.getElementsByClassName("select-items");
                        var i = document.getElementsByClassName("select-selected");
                        for (var s = 0; s < i.length; s++) {
                            if (e == i[s]) {
                                continue;
                            }
                            i[s].classList.remove("select-arrow-active");
                        }
                        for (var n = 0; n < t.length; n++) {
                            if (t[n].classList.contains("select-hide")) {
                                continue;
                            }
                            t[n].classList.add("select-hide");
                        }
                    }
                    document.addEventListener("click", h);
                }
            })();
        },
        320: () => {
            var e = function() {
                "use strict";
                class e {
                    constructor(t, i = {}) {
                        if (!(t instanceof Node)) throw "Can't initialize VanillaTilt because " + t + " is not a Node.";
                        this.width = null, this.height = null, this.clientWidth = null, this.clientHeight = null, 
                        this.left = null, this.top = null, this.gammazero = null, this.betazero = null, 
                        this.lastgammazero = null, this.lastbetazero = null, this.transitionTimeout = null, 
                        this.updateCall = null, this.event = null, this.updateBind = this.update.bind(this), 
                        this.resetBind = this.reset.bind(this), this.element = t, this.settings = this.extendSettings(i), 
                        this.reverse = this.settings.reverse ? -1 : 1, this.resetToStart = e.isSettingTrue(this.settings["reset-to-start"]), 
                        this.glare = e.isSettingTrue(this.settings.glare), this.glarePrerender = e.isSettingTrue(this.settings["glare-prerender"]), 
                        this.fullPageListening = e.isSettingTrue(this.settings["full-page-listening"]), 
                        this.gyroscope = e.isSettingTrue(this.settings.gyroscope), this.gyroscopeSamples = this.settings.gyroscopeSamples, 
                        this.elementListener = this.getElementListener(), this.glare && this.prepareGlare(), 
                        this.fullPageListening && this.updateClientSize(), this.addEventListeners(), this.reset(), 
                        !1 === this.resetToStart && (this.settings.startX = 0, this.settings.startY = 0);
                    }
                    static isSettingTrue(e) {
                        return "" === e || !0 === e || 1 === e;
                    }
                    getElementListener() {
                        if (this.fullPageListening) return window.document;
                        if ("string" == typeof this.settings["mouse-event-element"]) {
                            const e = document.querySelector(this.settings["mouse-event-element"]);
                            if (e) return e;
                        }
                        return this.settings["mouse-event-element"] instanceof Node ? this.settings["mouse-event-element"] : this.element;
                    }
                    addEventListeners() {
                        this.onMouseEnterBind = this.onMouseEnter.bind(this), this.onMouseMoveBind = this.onMouseMove.bind(this), 
                        this.onMouseLeaveBind = this.onMouseLeave.bind(this), this.onWindowResizeBind = this.onWindowResize.bind(this), 
                        this.onDeviceOrientationBind = this.onDeviceOrientation.bind(this), this.elementListener.addEventListener("mouseenter", this.onMouseEnterBind), 
                        this.elementListener.addEventListener("mouseleave", this.onMouseLeaveBind), this.elementListener.addEventListener("mousemove", this.onMouseMoveBind), 
                        (this.glare || this.fullPageListening) && window.addEventListener("resize", this.onWindowResizeBind), 
                        this.gyroscope && window.addEventListener("deviceorientation", this.onDeviceOrientationBind);
                    }
                    removeEventListeners() {
                        this.elementListener.removeEventListener("mouseenter", this.onMouseEnterBind), this.elementListener.removeEventListener("mouseleave", this.onMouseLeaveBind), 
                        this.elementListener.removeEventListener("mousemove", this.onMouseMoveBind), this.gyroscope && window.removeEventListener("deviceorientation", this.onDeviceOrientationBind), 
                        (this.glare || this.fullPageListening) && window.removeEventListener("resize", this.onWindowResizeBind);
                    }
                    destroy() {
                        clearTimeout(this.transitionTimeout), null !== this.updateCall && cancelAnimationFrame(this.updateCall), 
                        this.reset(), this.removeEventListeners(), this.element.vanillaTilt = null, delete this.element.vanillaTilt, 
                        this.element = null;
                    }
                    onDeviceOrientation(e) {
                        if (null === e.gamma || null === e.beta) return;
                        this.updateElementPosition(), this.gyroscopeSamples > 0 && (this.lastgammazero = this.gammazero, 
                        this.lastbetazero = this.betazero, null === this.gammazero ? (this.gammazero = e.gamma, 
                        this.betazero = e.beta) : (this.gammazero = (e.gamma + this.lastgammazero) / 2, 
                        this.betazero = (e.beta + this.lastbetazero) / 2), this.gyroscopeSamples -= 1);
                        const t = this.settings.gyroscopeMaxAngleX - this.settings.gyroscopeMinAngleX, i = this.settings.gyroscopeMaxAngleY - this.settings.gyroscopeMinAngleY, s = t / this.width, n = i / this.height, a = (e.gamma - (this.settings.gyroscopeMinAngleX + this.gammazero)) / s, l = (e.beta - (this.settings.gyroscopeMinAngleY + this.betazero)) / n;
                        null !== this.updateCall && cancelAnimationFrame(this.updateCall), this.event = {
                            clientX: a + this.left,
                            clientY: l + this.top
                        }, this.updateCall = requestAnimationFrame(this.updateBind);
                    }
                    onMouseEnter() {
                        this.updateElementPosition(), this.element.style.willChange = "transform", this.setTransition();
                    }
                    onMouseMove(e) {
                        null !== this.updateCall && cancelAnimationFrame(this.updateCall), this.event = e, 
                        this.updateCall = requestAnimationFrame(this.updateBind);
                    }
                    onMouseLeave() {
                        this.setTransition(), this.settings.reset && requestAnimationFrame(this.resetBind);
                    }
                    reset() {
                        this.onMouseEnter(), this.fullPageListening ? this.event = {
                            clientX: (this.settings.startX + this.settings.max) / (2 * this.settings.max) * this.clientWidth,
                            clientY: (this.settings.startY + this.settings.max) / (2 * this.settings.max) * this.clientHeight
                        } : this.event = {
                            clientX: this.left + (this.settings.startX + this.settings.max) / (2 * this.settings.max) * this.width,
                            clientY: this.top + (this.settings.startY + this.settings.max) / (2 * this.settings.max) * this.height
                        };
                        let e = this.settings.scale;
                        this.settings.scale = 1, this.update(), this.settings.scale = e, this.resetGlare();
                    }
                    resetGlare() {
                        this.glare && (this.glareElement.style.transform = "rotate(180deg) translate(-50%, -50%)", 
                        this.glareElement.style.opacity = "0");
                    }
                    getValues() {
                        let e, t;
                        return this.fullPageListening ? (e = this.event.clientX / this.clientWidth, t = this.event.clientY / this.clientHeight) : (e = (this.event.clientX - this.left) / this.width, 
                        t = (this.event.clientY - this.top) / this.height), e = Math.min(Math.max(e, 0), 1), 
                        t = Math.min(Math.max(t, 0), 1), {
                            tiltX: (this.reverse * (this.settings.max - e * this.settings.max * 2)).toFixed(2),
                            tiltY: (this.reverse * (t * this.settings.max * 2 - this.settings.max)).toFixed(2),
                            percentageX: 100 * e,
                            percentageY: 100 * t,
                            angle: Math.atan2(this.event.clientX - (this.left + this.width / 2), -(this.event.clientY - (this.top + this.height / 2))) * (180 / Math.PI)
                        };
                    }
                    updateElementPosition() {
                        let e = this.element.getBoundingClientRect();
                        this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, 
                        this.left = e.left, this.top = e.top;
                    }
                    update() {
                        let e = this.getValues();
                        this.element.style.transform = "perspective(" + this.settings.perspective + "px) rotateX(" + ("x" === this.settings.axis ? 0 : e.tiltY) + "deg) rotateY(" + ("y" === this.settings.axis ? 0 : e.tiltX) + "deg) scale3d(" + this.settings.scale + ", " + this.settings.scale + ", " + this.settings.scale + ")", 
                        this.glare && (this.glareElement.style.transform = `rotate(${e.angle}deg) translate(-50%, -50%)`, 
                        this.glareElement.style.opacity = `${e.percentageY * this.settings["max-glare"] / 100}`), 
                        this.element.dispatchEvent(new CustomEvent("tiltChange", {
                            detail: e
                        })), this.updateCall = null;
                    }
                    prepareGlare() {
                        if (!this.glarePrerender) {
                            const e = document.createElement("div");
                            e.classList.add("js-tilt-glare");
                            const t = document.createElement("div");
                            t.classList.add("js-tilt-glare-inner"), e.appendChild(t), this.element.appendChild(e);
                        }
                        this.glareElementWrapper = this.element.querySelector(".js-tilt-glare"), this.glareElement = this.element.querySelector(".js-tilt-glare-inner"), 
                        this.glarePrerender || (Object.assign(this.glareElementWrapper.style, {
                            position: "absolute",
                            top: "0",
                            left: "0",
                            width: "100%",
                            height: "100%",
                            overflow: "hidden",
                            "pointer-events": "none",
                            "border-radius": "inherit"
                        }), Object.assign(this.glareElement.style, {
                            position: "absolute",
                            top: "50%",
                            left: "50%",
                            "pointer-events": "none",
                            "background-image": "linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",
                            transform: "rotate(180deg) translate(-50%, -50%)",
                            "transform-origin": "0% 0%",
                            opacity: "0"
                        }), this.updateGlareSize());
                    }
                    updateGlareSize() {
                        if (this.glare) {
                            const e = 2 * (this.element.offsetWidth > this.element.offsetHeight ? this.element.offsetWidth : this.element.offsetHeight);
                            Object.assign(this.glareElement.style, {
                                width: `${e}px`,
                                height: `${e}px`
                            });
                        }
                    }
                    updateClientSize() {
                        this.clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, 
                        this.clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
                    }
                    onWindowResize() {
                        this.updateGlareSize(), this.updateClientSize();
                    }
                    setTransition() {
                        clearTimeout(this.transitionTimeout), this.element.style.transition = this.settings.speed + "ms " + this.settings.easing, 
                        this.glare && (this.glareElement.style.transition = `opacity ${this.settings.speed}ms ${this.settings.easing}`), 
                        this.transitionTimeout = setTimeout((() => {
                            this.element.style.transition = "", this.glare && (this.glareElement.style.transition = "");
                        }), this.settings.speed);
                    }
                    extendSettings(e) {
                        let t = {
                            reverse: !1,
                            max: 15,
                            startX: 0,
                            startY: 0,
                            perspective: 1e3,
                            easing: "cubic-bezier(.03,.98,.52,.99)",
                            scale: 1,
                            speed: 300,
                            transition: !0,
                            axis: null,
                            glare: !1,
                            "max-glare": 1,
                            "glare-prerender": !1,
                            "full-page-listening": !1,
                            "mouse-event-element": null,
                            reset: !0,
                            "reset-to-start": !0,
                            gyroscope: !0,
                            gyroscopeMinAngleX: -45,
                            gyroscopeMaxAngleX: 45,
                            gyroscopeMinAngleY: -45,
                            gyroscopeMaxAngleY: 45,
                            gyroscopeSamples: 10
                        }, i = {};
                        for (var s in t) if (s in e) i[s] = e[s]; else if (this.element.hasAttribute("data-tilt-" + s)) {
                            let e = this.element.getAttribute("data-tilt-" + s);
                            try {
                                i[s] = JSON.parse(e);
                            } catch (t) {
                                i[s] = e;
                            }
                        } else i[s] = t[s];
                        return i;
                    }
                    static init(t, i) {
                        t instanceof Node && (t = [ t ]), t instanceof NodeList && (t = [].slice.call(t)), 
                        t instanceof Array && t.forEach((t => {
                            "vanillaTilt" in t || (t.vanillaTilt = new e(t, i));
                        }));
                    }
                }
                return "undefined" != typeof document && (window.VanillaTilt = e, e.init(document.querySelectorAll("[data-tilt]"))), 
                e;
            }();
        }
    };
    var t = {};
    function i(s) {
        var n = t[s];
        if (n !== undefined) {
            return n.exports;
        }
        var a = t[s] = {
            exports: {}
        };
        e[s](a, a.exports, i);
        return a.exports;
    }
    (() => {
        i.n = e => {
            var t = e && e.__esModule ? () => e["default"] : () => e;
            i.d(t, {
                a: t
            });
            return t;
        };
    })();
    (() => {
        i.d = (e, t) => {
            for (var s in t) {
                if (i.o(t, s) && !i.o(e, s)) {
                    Object.defineProperty(e, s, {
                        enumerable: true,
                        get: t[s]
                    });
                }
            }
        };
    })();
    (() => {
        i.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
    })();
    var s = {};
    (() => {
        "use strict";
        var e = i(320);
        var t = i.n(e);
        var s = i(962);
        var n = i.n(s);
        var a = i(44);
        var l = i.n(a);
    })();
})();