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/metabox-fields.js
(() => {
    "use strict";
    var e = {};
    const t = window["React"];
    (function() {
        "use strict";
        const {registerPlugin: e} = wp.plugins;
        const {PluginSidebar: a, PluginSidebarMoreMenuItem: n} = wp.editPost;
        const {__: r} = wp.i18n;
        const {PanelBody: o, TextControl: c, ToggleControl: s, SelectControl: l} = wp.components;
        const {withSelect: i, withDispatch: d} = wp.data;
        const {compose: u} = wp.compose;
        const p = ({postType: e, postMeta: a, setPostMeta: n}) => {
            if ("page" !== e) return null;
            return (0, t.createElement)(t.Fragment, null, (0, t.createElement)(o, {
                title: r("Header Options", "lifttruck"),
                icon: "",
                initialOpen: true
            }, (0, t.createElement)(l, {
                label: "Header Settings",
                value: a.wd_custom_header_options,
                options: [ {
                    label: "Use Default",
                    value: "default"
                }, {
                    label: "Use Custom",
                    value: "custom"
                } ],
                onChange: e => n({
                    wd_custom_header_options: e
                }),
                __nextHasNoMarginBottom: true
            }), a.wd_custom_header_options == "custom" && (0, t.createElement)(s, {
                label: r("Enable Sticky Header", "lifttruck"),
                onChange: e => n({
                    wd_sticky_header: e
                }),
                checked: a.wd_sticky_header
            }), a.wd_custom_header_options == "custom" && (0, t.createElement)(s, {
                label: r("Enable Transparent Header", "lifttruck"),
                onChange: e => n({
                    wd_transparent_header: e
                }),
                checked: a.wd_transparent_header
            }), a.wd_custom_header_options == "custom" && a.wd_transparent_header && (0, t.createElement)(s, {
                label: r("Enable Header Cap", "lifttruck"),
                onChange: e => n({
                    wd_header_cap: e
                }),
                checked: a.wd_header_cap
            })));
        };
        const _ = u(i((e => ({
            postMeta: e("core/editor").getEditedPostAttribute("meta"),
            postType: e("core/editor").getCurrentPostType()
        }))), d((e => ({
            setPostMeta(t) {
                e("core/editor").editPost({
                    meta: t
                });
            }
        }))))(p);
        e("lifttruck-page-sidebar", {
            icon: "admin-post",
            render: () => (0, t.createElement)(t.Fragment, null, (0, t.createElement)(n, {
                target: "lifttruck-page-sidebar"
            }, r("LiftTruck Page Options", "lifttruck")), (0, t.createElement)(a, {
                name: "lifttruck-page-sidebar",
                title: r("Page Options", "lifttruck")
            }, (0, t.createElement)(_, null)))
        });
    })();
})();