const { __ } = wp.i18n; // Import __() from wp.i18n const { Component } = wp.element; const { serverSideRender: ServerSideRender } = wp; const { InspectorControls, PanelColorSettings } = wp.editor; const { RangeControl, CheckboxControl, RadioControl, PanelBody, TextControl, TextareaControl, ExternalLink, PanelRow } = wp.components; import { InspectorContainer } 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( { eventID: eventID } ) } help={ __( 'Go to Products > All Products > hover product to view its ID. Provide multiple IDs per each row to allow users pick events for different days.', 'myticket-events' ) } /> setAttributes( { ticketsPerBooking: value } ) } help={ __( 'Maximum amount of tickets one user is allowed to reserve per booking.', 'myticket-events' ) } /> { setAttributes( { renderType } ); } } help={ __( 'Draw seats instead of zones when layout is rendered. Recommended for small layouts with less than 500 seats.', 'myticket-events' ) } /> { setAttributes( { hideNumbers } ); } } help={ __( 'Hide seat numbers. Usefull when hall layout image already has numbers assigned.', 'myticket-events' ) } /> { setAttributes( { numOpacity } ); } } min={ 1 } max={ 100 } help={ __( 'Seat and zone opacity level.', 'myticket-events' ) } /> { setAttributes( { numOpacity2 } ); } } min={ 1 } max={ 100 } help={ __( 'Zone background opacity level. Reduce to peview custom zone background image.', 'myticket-events' ) } /> { setAttributes( { seatMode } ); } } help={ __( 'Override default seat style.', 'myticket-events' ) } /> { setAttributes( { snSize } ); } } min={ 8 } max={ 24 } /> { return setAttributes( { mainColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } /> { return setAttributes( { availableColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } /> { return setAttributes( { soldoutColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } /> { return setAttributes( { selectedColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } /> { return setAttributes( { seatsColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } /> setAttributes( { title: value } ) } help={ __( 'Leave blank to show date picker.', 'myticket-events' ) } /> setAttributes( { subtitle: value } ) } help={ __( 'Leave blank to show event title.', 'myticket-events' ) } /> setAttributes( { desc: value } ) } help={ __( 'Leave blank to show event venue.', 'myticket-events' ) } /> setAttributes( { note: value } ) } help={ __( 'Leave blank to hide.', 'myticket-events' ) } /> setAttributes( { cta: value } ) } /> setAttributes( { filterLocations } ) } // help={ __( 'Import seat code from MyTicket Events dashboard.', 'myticket-events' ) } /> { __( 'Import seat code from MyTicket Events dashboard.', 'myticket-events' ) } { __( 'MyTicket Events dashboard', 'myticket-events' ) }
setAttributes( { tableLayout } ) } // help={ __( 'To create layout go to https://myticket.kenzap.cloud/', 'myticket-events' ) } /> { __( 'Override default layout summary table located below the seating map.', 'myticket-events' ) } { __( 'Summary table integration', 'myticket-events' ) }
{ setAttributes( { showArrows } ); } } help={ __( 'Show right/left arrows during seat selection.', 'myticket-events' ) } /> setAttributes( { dwidth: value } ) } help={ __( 'Maximum width of the layout in desktop mode. In case layout is too wide a scroll can be used to fit the layout.', 'myticket-events' ) } /> setAttributes( { mwidth: value } ) } help={ __( 'Minimal width of the layout in mobile mode. In case layout is too wide a scroll can be used to fit the layout.', 'myticket-events' ) } /> setAttributes( { smaxwidth: value } ) } help={ __( 'Maximum width of layout during ticket selection in desktop mode. Reduce this parameter in order to fit layout with many seats.', 'myticket-events' ) } /> setAttributes( { sminwidth: value } ) } help={ __( 'Minimal width of layout during ticket selection in desktop mode. Increase this parameter in order to fit layout with many seats.', 'myticket-events' ) } />
{ __( 'Free community support and frequently asked questions:', 'myticket-events' ) } { __( 'Community forum', 'myticket-events' ) } { __( 'Seat mapping integration tutorial:', 'myticket-events' ) } { __( 'Integration tutorial', 'myticket-events' ) } { __( 'Paid assistance and layout integration support:', 'myticket-events' ) } { __( 'Customization service', 'myticket-events' ) }
); } }