Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : popup.php
<cx-vui-popup
	:class="[ 'jet-abaf-popup', { 'jet-abaf-submitting': submitting } ]"
	v-model="isShow"
	body-width="500px"
	:footer="false"
	@on-cancel="cancelPopup"
>
	<div slot="title" class="cx-vui-subtitle">
		<template v-if="'info' === popUpState">
			<?php _e( 'Booking Details:', 'jet-booking' ); ?>
		</template>
		<template v-else-if="'update' === popUpState">
			<?php _e( 'Edit Booking:', 'jet-booking' ); ?>
		</template>
		<template v-else-if="'delete' === popUpState">
			<?php _e( 'Are you sure? Deleted booking can\'t be restored.', 'jet-booking' ); ?>
		</template>
	</div>

	<div
		v-if="'update' === popUpState && overlappingBookings"
		slot="content"
		class="jet-abaf-bookings-error"
		v-html="overlappingBookings"
	></div>

	<div slot="content" class="jet-abaf-details">
		<template v-if="'info' === popUpState || 'update' === popUpState">
			<div class="jet-abaf-details__booking">
				<div class="jet-abaf-details__booking-id">
					<div class="jet-abaf-details__label"><?php _e( 'Booking ID:', 'jet-booking' ); ?></div>
					<div class="jet-abaf-details__content">{{ currentItem.booking_id }}</div>
				</div>

				<div class="jet-abaf-details__booking-order-id" v-if="currentItem.order_id">
					<div class="jet-abaf-details__label"><?php _e( 'Order ID:', 'jet-booking' ); ?></div>
					<div class="jet-abaf-details__content">
						<a :href="getOrderLink( currentItem.order_id )" target="_blank">#{{ currentItem.order_id }}</a>
					</div>
				</div>
			</div>

			<div class="jet-abaf-details__field jet-abaf-details__field-status">
				<div class="jet-abaf-details__label"><?php _e( 'Status:', 'jet-booking' ); ?></div>
				<div class="jet-abaf-details__content">
					<span v-if="'info' === popUpState" :class="statusClass( currentItem.status )">{{ statuses[ currentItem.status ] }}</span>
					<select v-else-if="'update' === popUpState" v-model="currentItem.status">
						<option v-for="( label, value ) in statuses" :value="value" :key="value">{{ label }}</option>
					</select>
				</div>
			</div>

			<div class="jet-abaf-details__field jet-abaf-details__field-apartment_id">
				<div class="jet-abaf-details__label"><?php _e( 'Booking Item:', 'jet-booking' ); ?></div>
				<div class="jet-abaf-details__content">
					<template v-if="'info' === popUpState">{{ getItemLabel( currentItem.apartment_id ) }}</template>
					<select v-else-if="'update' === popUpState" @change="onApartmentChange()" v-model="currentItem.apartment_id">
						<option v-for="( label, value ) in bookingInstances" :value="value" :key="value">{{ label }}</option>
					</select>
				</div>
			</div>

			<div
				v-if="'update' === popUpState && itemUnits.length"
				:class="[ 'jet-abaf-details__field jet-abaf-details__field-apartment_unit',  { 'jet-abaf-disabled': isDisabled } ]"
			>
				<div class="jet-abaf-details__label"><?php _e( 'Booking Unit:', 'jet-booking' ); ?></div>
				<div class="jet-abaf-details__content">
					<select v-model="currentItem.apartment_unit">
						<option v-for="unit in itemUnits" :value="unit.value" :key="unit.value">{{ unit.label }}</option>
					</select>
				</div>
			</div>
			<div v-else-if="'info' === popUpState" class="jet-abaf-details__field jet-abaf-details__field-apartment_unit">
				<div class="jet-abaf-details__label"><?php _e( 'Booking Unit:', 'jet-booking' ); ?></div>
				<div class="jet-abaf-details__content">{{ getItemUnitLabel( currentItem.apartment_id, currentItem.apartment_unit ) }}</div>
			</div>

			<div ref="jetABAFDatePicker" :class="[ 'jet-abaf-details__booking-dates',  { 'jet-abaf-disabled': isDisabled } ]">
				<div class="jet-abaf-details__check-in-date">
					<div class="jet-abaf-details__label"><?php _e( 'Check in:', 'jet-booking' ); ?></div>
					<div class="jet-abaf-details__content">
						<template v-if="'info' === popUpState">{{ currentItem.check_in_date }}</template>
						<input v-else-if="'update' === popUpState" type="text" v-model="currentItem.check_in_date"/>
					</div>
				</div>

				<div class="jet-abaf-details__check-out-date">
					<div class="jet-abaf-details__label"><?php _e( 'Check out:', 'jet-booking' ); ?></div>
					<div class="jet-abaf-details__content">
						<template v-if="'info' === popUpState">{{ currentItem.check_out_date }}</template>
						<input v-else-if="'update' === popUpState" type="text" v-model="currentItem.check_out_date"/>
					</div>
				</div>
			</div>

			<template v-for="( itemValue, itemKey ) in currentItem">
				<div
					v-if="beVisible( itemKey )"
					:key="itemKey"
					:class="[ 'jet-abaf-details__field', 'jet-abaf-details__field-' + itemKey ]"
				>
					<div class="jet-abaf-details__label">{{ itemKey }}:</div>
					<div class="jet-abaf-details__content">
						<template v-if="'info' === popUpState">{{ itemValue }}</template>
						<input v-else-if="'update' === popUpState" type="text" v-model="currentItem[ itemKey ]"/>
					</div>
				</div>
			</template>

			<div class="jet-abaf-details__field">
				<div class="jet-abaf-details__label"><?php _e( 'Booking Price:', 'jet-booking' ) ?></div>
				<div class="jet-abaf-details__content" v-html="bookingPrice"></div>
			</div>

			<div v-if="'update' === popUpState && recalculateTotals" class="jet-abaf-details__field">
				<div class="jet-abaf-details__label"><?php _e( 'Recalculate order totals:', 'jet-booking' ) ?></div>
				<div class="jet-abaf-details__content">
					<cx-vui-switcher v-model="calculateTotals"></cx-vui-switcher>
				</div>
			</div>
		</template>
		<template v-else-if="'delete' === popUpState && 'wc_based' === bookingMode">
			<div class="cx-vui-component__desc jet-abaf-details-info">
				<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><rect x="0" fill="none" width="20" height="20"/><g><path d="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z"/></g></svg>
				<span><?php _e( 'Associated order line item will be deleted. Order totals recalculated.', 'jet-booking' ); ?></span>
			</div>

			<div class="cx-vui-component__desc jet-abaf-details-info">
				<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><rect x="0" fill="none" width="20" height="20"/><g><path d="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z"/></g></svg>
				<span><?php _e( 'Related order will be deleted if the last order line item removed and there are no more items in it.', 'jet-booking' ) ?></span>
			</div>
		</template>

		<div class="jet-abaf-popup-actions">
			<template v-if="'info' === popUpState">
				<cx-vui-button
					class="jet-abaf-popup-button-edit"
					button-style="accent"
					size="mini"
					@click="updateDetailsItem( currentItem )"
				>
					<template slot="label">
						<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 12.375V15.5H3.625L12.8417 6.28333L9.71667 3.15833L0.5 12.375ZM2.93333 13.8333H2.16667V13.0667L9.71667 5.51667L10.4833 6.28333L2.93333 13.8333ZM15.2583 2.69167L13.3083 0.741667C13.1417 0.575 12.9333 0.5 12.7167 0.5C12.5 0.5 12.2917 0.583333 12.1333 0.741667L10.6083 2.26667L13.7333 5.39167L15.2583 3.86667C15.5833 3.54167 15.5833 3.01667 15.2583 2.69167Z" fill="white"/></svg>
						<?php _e( 'Edit', 'jet-booking' ); ?>
					</template>
				</cx-vui-button>
			</template>
			<template v-else-if="'update' === popUpState">
				<cx-vui-button
					class="jet-abaf-popup-button-save"
					button-style="accent"
					size="mini"
					@click="updateItem()"
				>
					<template slot="label"><?php _e('Save', 'jet-booking'); ?></template>
				</cx-vui-button>
			</template>

			<template v-if="'update' === popUpState || 'delete' === popUpState">
				<cx-vui-button
					class="jet-abaf-popup-button-cancel"
					button-style="accent-border"
					size="mini"
					@click="cancelPopup()"
				>
					<template slot="label"><?php _e('Cancel', 'jet-booking'); ?></template>
				</cx-vui-button>
			</template>

			<template v-if="'info' === popUpState || 'delete' === popUpState">
				<cx-vui-button
					class="jet-abaf-popup-button-delete"
					button-style="accent-border"
					size="mini"
					@click="deleteItem()"
				>
					<template slot="label">
						<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999959 13.8333C0.999959 14.75 1.74996 15.5 2.66663 15.5H9.33329C10.25 15.5 11 14.75 11 13.8333V3.83333H0.999959V13.8333ZM2.66663 5.5H9.33329V13.8333H2.66663V5.5ZM8.91663 1.33333L8.08329 0.5H3.91663L3.08329 1.33333H0.166626V3H11.8333V1.33333H8.91663Z" fill="#007CBA"/></svg>
						<?php _e( 'Delete', 'jet-booking' ); ?>
					</template>
				</cx-vui-button>
			</template>
		</div>
	</div>
</cx-vui-popup>
© 2026 GrazzMean