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/meta-price.js (4.05 KB)
( function( postMeta, assets, postMetaManager, vuejsDatepicker, dateMethods ) {

	'use strict';

	new Vue( {
		el: '#jet-abaf-price-meta-box',
		mixins: [ postMetaManager, dateMethods ],
		components: {
			vuejsDatepicker: vuejsDatepicker,
		},
		data: {
			...assets,
			meta: postMeta,
			popUpActive_rates: false,
			popUpActive_weekend: false,
			popUpData:{},
			saving: false,
			dateMomentFormat: "DD/MM/YYYY"
		},
		methods: {
			showPopUp: function( items, price, popupName ){
				this[ `popUpActive_${ popupName }` ] = true;
				this.popUpData   = {
					'price': price,
					'items': items
				};
			},
			hidePopUp: function( popupName ){
				this[ `popUpActive_${ popupName }` ] = false;
				this.popUpData   = {};
			},
			saveMeta: function() {
				this.$nextTick( function() {
					this.updateSetting( this.meta );
				} );
			},

			isWeekendPriceActive: function( items ) {

				let isActive = false;

				for ( const key in items ) {
					if ( ! items.hasOwnProperty( key ) ) {
						continue;
					}

					if ( items[ key ].active ) {
						isActive = items[ key ].active;

						break;
					}
				}

				return isActive;

			},

			//price rate
			newRate: function() {
				this.popUpData.items.push( {
					duration: 2,
					value: this.popUpData.price,
				} )
			},
			deleteRate: function( index ) {
				if ( window.confirm( this.confirm_message ) ) {
					this.popUpData.items.splice( index, 1 );
				}
			},

			//seasonal prices
			addSP: function() {
				let now = this.objectDateToTimestamp( new Date() ),
					item = {
						title: '',
						price: this.meta._apartment_price,
						startTimestamp: now,
						endTimestamp: now,
						repeatSeason: 'not_repeat',
						collapsed: false,
						enable_config: false,
						start_day_offset: 0,
						min_days: 0,
						max_days: 0,
						_pricing_rates: [],
						_weekend_prices: JSON.parse( JSON.stringify( this.default_weekend_prices ) ),
					};

				this.meta._seasonal_prices.push( item );
			},
			cloneSP: function( item, index ) {
				let newItem = JSON.parse( JSON.stringify( item ) );

				newItem.title += '_copy';

				this.meta._seasonal_prices.splice( index + 1, 0, newItem );
				this.saveMeta();
			},
			deleteSP: function( index ) {
				this.meta._seasonal_prices.splice( index, 1 );
				this.saveMeta();
			},
			changeSPValue: function( value, key, index ) {

				switch( key ) {
					case 'price':
						value = +event.target.value;
						break;

					case 'startTimestamp':
						let endValue = this.meta._seasonal_prices[ index ].endTimestamp;
						value = this.objectDateToTimestamp( value );

						if ( ! endValue || endValue < value ) {
							this.$set( this.meta._seasonal_prices[ index ], 'endTimestamp', value );
						}

						break;

					case 'endTimestamp':
						let startValue = this.meta._seasonal_prices[ index ].startTimestamp;
						value = this.objectDateToTimestamp( value );

						if ( ! startValue || startValue > value ) {
							this.$set( this.meta._seasonal_prices[ index ], 'startTimestamp', value );
						}

						break;

					case 'enable_config':
						break;

					default:
						value = event.target.value;
						break;
				}

				this.$set( this.meta._seasonal_prices[ index ], key, value );
				this.saveMeta();

			},
			isCollapsed: function( object ) {
				return object.collapsed ;
			},
			getRepeaterTitle: function( item ){
				let title = '';

				if( item.title ){
					title += `<strong style="color:#000">${item.title}</strong> - `;
				}

				if( item.startTimestamp ){
					title += `<strong style="color:#000">${this.season_label}</strong> <span style="color:#7b7e81">${this.timestampToDate( item.startTimestamp, this.dateMomentFormat )}</span>`;
				}

				if( item.endTimestamp ){
					title += `<span style="color:#7b7e81"> - ${this.timestampToDate( item.endTimestamp, this.dateMomentFormat )}</span> `;
				}

				if( item.price ){
					title += `<strong style="color:#000">${this.price_label}</strong> <span style="color:#7b7e81">${item.price}</span>`;
				}

				return title;
			}
		}
	} );

} )( jet_abaf_price, jetAbafAssets, jetABAFPostMetaManager, window.vuejsDatepicker, dateMethods );
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