const { __ } = wp.i18n;
const { Component, Fragment } = wp.element;
const { serverSideRender: ServerSideRender } = wp;
const { InspectorControls, PanelColorSettings, MediaUpload } = wp.editor;
const { RangeControl, PanelBody, SelectControl, TextControl, ExternalLink, PanelRow, Button } = wp.components;
import { InspectorContainer, ContainerEdit } from '../commonComponents/container/container';
/**
* The edit function describes the structure of your block in the context of the editor.
* This represents what the editor will render when the block is used.
*
* The "edit" property must be a valid function.
* @param {Object} props - attributes
* @returns {Node} rendered component
*/
export default class Edit extends Component {
render() {
const {
className,
attributes,
setAttributes,
} = this.props;
return (
setAttributes( { per_page: value } ) }
min={ 1 }
max={ 50 }
help={ __( 'Specify the maximum number of events listed per single page.', 'myticket-events' ) }
/>
setAttributes( { category } ) }
help={ __( 'Restrict all records to certain category. To view categories go to Products > Categories section.', 'myticket-events' ) }
/>
setAttributes( { type } ) }
/>
setAttributes( { order } ) }
/>
setAttributes( { low_stock: value } ) }
min={ 0 }
max={ 250 }
help={ __( 'Specify when to trigger limited stock notice.', 'myticket-events' ) }
/>
setAttributes( { borderRadius } ) }
min={ 0 }
max={ 50 }
/>
{ __( 'Location icon (SVG only)', 'myticket-events' ) }
{
setAttributes( { img1: media.url } )
} }
value={ attributes.img1 }
allowedTypes={ [ 'image/svg' ] }
render={ ( mediaUploadProps ) => (
{ ( attributes.img1 !== 'none' ) ? (
) : (
) }
) }
/>
{
return setAttributes( { mainColor: value } );
},
label: __( 'Selected', 'myticket-events' ),
},
] }
/>
setAttributes( { relation } ) }
/>
{
return setAttributes( { textColor: value } );
},
label: __( 'Text', 'myticket-events' ),
},
{
value: attributes.mainColor,
onChange: ( value ) => {
return setAttributes( { mainColor: value } );
},
label: __( 'Main', 'myticket-events' ),
},
{
value: attributes.subColor,
onChange: ( value ) => {
return setAttributes( { subColor: value } );
},
label: __( 'Limited', 'myticket-events' ),
},
] }
/>
{ __( 'For additional customization features and assistance. Please contact our support team: ', 'myticket-events' ) }
{ __( 'Kenzap Support', 'myticket-events' ) }
);
}
}