Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/ipprint/wp-content/plugins/order-tracking/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/ipprint/wp-content/plugins/order-tracking/assets/js/ewd-otp-blocks.js
var el = wp.element.createElement,
	registerBlockType = wp.blocks.registerBlockType,
	ServerSideRender = wp.serverSideRender,
	TextControl = wp.components.TextControl,
	SelectControl = wp.components.SelectControl,
	InspectorControls = wp.blockEditor.InspectorControls,
	Localize = wp.i18n.__,
	ewdOtpBlocks = ewd_otp_blocks,
	existingLocations = ewdOtpBlocks.locationOptions;

registerBlockType( 'order-tracking/ewd-otp-display-tracking-form-block', {
	title: Localize( 'Tracking Form', 'order-tracking' ),
	icon: 'clipboard',
	category: 'ewd-otp-blocks',
	attributes: {
		show_orders: { type: 'string' },
	},

	edit: function( props ) {
		var returnString = [];
		returnString.push(
			el( InspectorControls, {},
				el( SelectControl, {
					label: Localize( 'Show Orders?', 'order-tracking' ),
					value: props.attributes.show_orders,
					options: [ {value: 'No', label: 'No'}, {value: 'Yes', label: 'Yes'} ],
					onChange: ( value ) => { props.setAttributes( { show_orders: value } ); },
				} )
			),
		);
		returnString.push( el( ServerSideRender, { 
			block: 'order-tracking/ewd-otp-display-tracking-form-block',
			attributes: props.attributes
		} ) );
		return returnString;
	},

	save: function() {
		return null;
	},
} );

registerBlockType( 'order-tracking/ewd-otp-display-customer-form-block', {
	title: Localize( 'Customer Form', 'order-tracking' ),
	icon: 'clipboard',
	category: 'ewd-otp-blocks',

	edit: function( props ) {
		var returnString = [];
		returnString.push( el( ServerSideRender, { 
			block: 'order-tracking/ewd-otp-display-customer-form-block',
			attributes: props.attributes
		} ) );
		return returnString;
	},

	save: function() {
		return null;
	},
} );

registerBlockType( 'order-tracking/ewd-otp-display-sales-rep-form-block', {
	title: Localize( 'Sales Rep Form', 'order-tracking' ),
	icon: 'clipboard',
	category: 'ewd-otp-blocks',

	edit: function( props ) {
		var returnString = [];
		returnString.push( el( ServerSideRender, { 
			block: 'order-tracking/ewd-otp-display-sales-rep-form-block',
			attributes: props.attributes
		} ) );
		return returnString;
	},

	save: function() {
		return null;
	},
} );

registerBlockType( 'order-tracking/ewd-otp-display-customer-order-form-block', {
	title: Localize( 'Customer Order Form', 'order-tracking' ),
	icon: 'clipboard',
	category: 'ewd-otp-blocks',
	attributes: {
		location: { type: 'string' },
		success_redirect_page: { type: 'string' }
	},

	edit: function( props ) {
		var returnString = [];
		returnString.push(
			el( InspectorControls, {},
				el( SelectControl, {
					label: Localize( 'Starting Location', 'order-tracking' ),
					value: props.attributes.location,
					options: existingLocations,
					onChange: ( value ) => { props.setAttributes( { location: value } ); },
				} ),
				el( TextControl, {
					label: Localize( 'Redirect URL', 'order-tracking' ),
					value: props.attributes.success_redirect_page,
					onChange: ( value ) => { props.setAttributes( { success_redirect_page: value } ); },
				} )
			),
		);
		returnString.push( el( ServerSideRender, { 
			block: 'order-tracking/ewd-otp-display-customer-order-form-block',
			attributes: props.attributes
		} ) );
		return returnString;
	},

	save: function() {
		return null;
	},
} );

registerBlockType( 'order-tracking/ewd-otp-order-number-search-block', {
	title: Localize( 'Order Number Search', 'order-tracking' ),
	icon: 'clipboard',
	category: 'ewd-otp-blocks',
	attributes: {
		tracking_page_url: { type: 'string' },
	},

	edit: function( props ) {
		var returnString = [];
		returnString.push(
			el( InspectorControls, {},
				el( TextControl, {
					label: Localize( 'Tracking Page URL', 'order-tracking' ),
					value: props.attributes.tracking_page_url,
					onChange: ( value ) => { props.setAttributes( { tracking_page_url: value } ); },
				} )
			),
		);
		returnString.push( el( ServerSideRender, { 
			block: 'order-tracking/ewd-otp-order-number-search-block',
			attributes: props.attributes
		} ) );
		return returnString;
	},

	save: function() {
		return null;
	},
} );

Youez - 2016 - github.com/yon3zu
LinuXploit