PluginProbe
Event Post / 6.1.2
Event Post v6.1.2
6.1.2 6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 All 47 releases
← All changes | build/map/index.js +1 -1 5.10.4 → 6.1.2 View file →
@@ -1 +1 @@
1 -(()=>{"use strict";var __webpack_modules__={87:_=>{_.exports=window.wp.element},427:_=>{_.exports=window.wp.components},715:_=>{_.exports=window.wp.blockEditor},723:_=>{_.exports=window.wp.i18n},790:_=>{_.exports=window.ReactJSXRuntime},861:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>edit});var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(715),_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__),_wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(87),_wordpress_element__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__),_wordpress_components__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(427),_wordpress_components__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(723),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__),_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(871),_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_4__),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(790),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__);function edit({className,attributes,setAttributes,isSelected,id}){const blockProps=(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps)(),{nb,future,past,cat,tag,orderby,order,title,before_title,after_title,style,thumbnail,thumbnail_size,excerpt,pop_element_schema,htmlPop_element_schema,zoom,tile,width,height,list,disable_dragrotate,disable_doubleclickzoom,disable_dragpan,disable_pinchrotate,disable_pinchzoom,disable_Keyboardpan,disable_Keyboardzoom,disable_mousewheelzoom,disable_dragzoom,map_position,latitude,longitude}=attributes;function onChangeNb(_){setAttributes({nb:_})}function onChangeFuture(_){setAttributes({future:_})}function onChangePast(_){setAttributes({past:_})}function onChangeCat(_){setAttributes({cat:_})}function onChangeTag(_){setAttributes({tag:_})}function onChangeOrderby(_){setAttributes({orderby:_})}function onChangeOrder(_){setAttributes({order:_})}function onChangeTitle(_){setAttributes({title:_})}function onChangeBefore_title(_){setAttributes({before_title:_})}function onChangeAfter_title(_){setAttributes({after_title:_})}function onChangeStyle(_){setAttributes({style:_})}function onChangeThumbnail(_){setAttributes({thumbnail:_})}function onChangeThumbnail_size(_){setAttributes({thumbnail_size:_})}function onChangeExcerpt(_){setAttributes({excerpt:_})}function onChangePop_element_schema(_){setAttributes({pop_element_schema:_})}function onChangeHtmlPop_element_schema(_){setAttributes({htmlPop_element_schema:_})}function onChangeZoom(_){setAttributes({zoom:_})}function onChangeTile(_){setAttributes({tile:_})}function onChangeWidth(_){setAttributes({width:_})}function onChangeHeight(_){setAttributes({height:_})}function onChangeList(_){setAttributes({list:_})}function onChangeDisable_dragrotate(_){setAttributes({disable_dragrotate:_})}function onChangeDisable_doubleclickzoom(_){setAttributes({disable_doubleclickzoom:_})}function onChangeDisable_dragpan(_){setAttributes({disable_dragpan:_})}function onChangeDisable_pinchrotate(_){setAttributes({disable_pinchrotate:_})}function onChangeDisable_pinchzoom(_){setAttributes({disable_pinchzoom:_})}function onChangeDisable_keyboardpan(_){setAttributes({disable_Keyboardpan:_})}function onChangeDisable_keyboardzoom(_){setAttributes({disable_Keyboardzoom:_})}function onChangeDisable_mousewheelzoom(_){setAttributes({disable_mousewheelzoom:_})}function onChangeDisable_dragzoom(_){setAttributes({disable_dragzoom:_})}function onChangeMap_position(_){setAttributes({map_position:_})}function onChangeLatitude(_){setAttributes({latitude:_})}function onChangeLongitude(_){setAttributes({longitude:_})}var interaction,InteractionsMap,funcinteraction,tiles,_tile;for(interaction in window.EventPost.GutParams.map_interactions)attributes["disable_"+interaction.toLowerCase()]={type:"boolean"};for(_tile in tiles=[{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Tile","event-post"),value:""}],window.EventPost.GutParams.maptiles)tiles.push({label:window.EventPost.GutParams.maptiles[_tile].name,value:_tile});return InteractionsMap=Object.entries(window.EventPost.GutParams.map_interactions),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{...blockProps,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[isSelected&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:title,onChange:onChangeTitle,className:"title",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Title","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody,{title:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Filters"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Display upcoming events","event-post"),checked:future,onChange:onChangeFuture}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Display past events","event-post"),checked:past,onChange:onChangePast}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.RangeControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Max. number of events:","event-post"),value:nb,onChange:onChangeNb,className:"nb",min:-1,max:50,help:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("-1 is for: no limit","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Categories","event-post"),value:cat,onChange:onChangeCat,className:"category",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Categories, separated by comma","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Tags","event-post"),value:tag,onChange:onChangeTag,className:"tag",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Tags, separated by comma","event-post")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody,{title:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Display"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Order by:","event-post"),value:orderby,options:[{label:"",value:""},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Post title","event-post"),value:"title"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Event date","event-post"),value:"date"}],onChange:onChangeOrderby}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Order:","event-post"),value:order,options:[{label:"",value:""},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("ASC","event-post"),value:"ASC"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("DESC","event-post"),value:"DESC"}],onChange:onChangeOrder}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("p",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Wrap title, if not empty","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:before_title,onChange:onChangeBefore_title,className:"before_title",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Before Title","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:after_title,onChange:onChangeAfter_title,className:"after_title",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("After Title","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("CSS Style"),value:style,onChange:onChangeStyle,className:"style",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Style attribute")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Show excerpt","event-post"),checked:excerpt,onChange:onChangeExcerpt}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Thumbnail","event-post"),checked:thumbnail,onChange:onChangeThumbnail}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Thumbnail size:","event-post"),value:thumbnail_size,options:[{label:"",value:""},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Thumbnail","event-post"),value:"thumbnail"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Medium","event-post"),value:"medium"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Large","event-post"),value:"large"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Full","event-post"),value:"full"}],onChange:onChangeThumbnail_size}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("h4",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Map","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Fix center map","event-post"),checked:map_position,onChange:onChangeMap_position,className:"map_position"}),!0===map_position&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:latitude,onChange:onChangeLatitude,className:"latitude",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Latitude","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:longitude,onChange:onChangeLongitude,className:"longitude",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Longitude","event-post")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.RangeControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Zoom","event-post"),value:zoom,onChange:onChangeZoom,className:"zoom",min:0,max:16,initialPosition:0,help:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("0 fits to all events","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:width,onChange:onChangeWidth,className:"width",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Width","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl,{value:height,onChange:onChangeHeight,className:"height",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Height","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl,{value:tile,options:tiles,onChange:onChangeTile}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("h4",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Pop element","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Customize Pop element","event-post"),checked:pop_element_schema,onChange:onChangePop_element_schema,className:"pop_element_schema"}),!0===pop_element_schema&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextareaControl,{value:htmlPop_element_schema,onChange:onChangeHtmlPop_element_schema,className:"htmlPop_element_schema",placeholder:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("html for pop element","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Legend : ","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("%title% = Title of the event","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("%address% = Address of the event","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)(" %link% = Url of the event","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)(" %thumbnail% = Picture of the event","event-post")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("%desc% = Description of the event","event-post")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl,{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("List","event-post"),value:list,options:[{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("No list","event-post"),value:"0"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Left","event-post"),value:"left"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Right","event-post"),value:"right"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Above","event-post"),value:"above"},{label:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Below","event-post"),value:"below"}],onChange:onChangeList}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("h4",{children:(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Disable Interactions:","event-post")}),InteractionsMap.map(((interaction,i)=>eval("funcinteraction = onChangeDisable_"+interaction[0].toLowerCase())&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl,{label:interaction[1],checked:attributes["disable_"+interaction[0].toLowerCase()],onChange:funcinteraction})))]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_4___default(),{block:"eventpost/map",attributes})]})})}},871:_=>{_.exports=window.wp.serverSideRender}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var t=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_.default:()=>_;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(_,e)=>{for(var t in e)__webpack_require__.o(e,t)&&!__webpack_require__.o(_,t)&&Object.defineProperty(_,t,{enumerable:!0,get:e[t]})},__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e);var __webpack_exports__={};const external_wp_blocks_namespaceObject=window.wp.blocks;var external_wp_i18n_=__webpack_require__(723),edit=__webpack_require__(861);function save({attributes:_}){return null}(0,external_wp_blocks_namespaceObject.registerBlockType)("eventpost/map",{edit:edit.A,save})})();
1 +(()=>{"use strict";const e={n:t=>{const n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{if(Array.isArray(n))for(var o=0;o<n.length;){var l=n[o++],a=n[o++];e.o(t,l)?0===a&&o++:0===a?Object.defineProperty(t,l,{enumerable:!0,value:n[o++]}):Object.defineProperty(t,l,{enumerable:!0,get:a})}else for(var l in n)e.o(n,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:n[l]})},o:(e,t)=>Object.hasOwn(e,t)},t=window.wp.blocks,n=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.element,a=window.wp.components,s=window.wp.serverSideRender;var i=e.n(s);const r=window.ReactJSXRuntime;(0,t.registerBlockType)("eventpost/map",{edit:function({className:e,attributes:t,setAttributes:s,isSelected:c,id:_}){const p=(0,o.useBlockProps)(),{nb:v,future:h,past:u,cat:d,tag:m,orderby:b,order:x,title:C,before_title:g,after_title:f,style:j,thumbnail:w,thumbnail_size:y,excerpt:P,pop_element_schema:T,htmlPop_element_schema:k,zoom:N,tile:S,width:D,height:A,list:B,DragRotate:O,DoubleClickZoom:R,DragPan:z,PinchRotate:E,PinchZoom:F,KeyboardPan:L,KeyboardZoom:Z,MouseWheelZoom:M,DragZoom:G,map_position:W,latitude:I,longitude:K}=t,H={...t};var J,U,X;for(X in delete H.align,U=[{label:(0,n.__)("Tile","event-post"),value:""}],window.EventPost.GutParams.maptiles)U.push({label:window.EventPost.GutParams.maptiles[X].name,value:X});return J=Object.entries(window.EventPost.GutParams.map_interactions),(0,r.jsx)("div",{...p,children:(0,r.jsxs)(l.Fragment,{children:[c&&(0,r.jsxs)(o.InspectorControls,{children:[(0,r.jsx)(a.PanelBody,{children:(0,r.jsx)(a.TextControl,{value:C,onChange:function(e){s({title:e})},className:"title",placeholder:(0,n.__)("Title","event-post")})}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Filters"),children:[(0,r.jsx)(a.CheckboxControl,{label:(0,n.__)("Display upcoming events","event-post"),checked:h,onChange:function(e){s({future:e})}}),(0,r.jsx)(a.CheckboxControl,{label:(0,n.__)("Display past events","event-post"),checked:u,onChange:function(e){s({past:e})}}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Max. number of events:","event-post"),value:v,onChange:function(e){s({nb:e})},className:"nb",min:-1,max:50,help:(0,n.__)("-1 is for: no limit","event-post")}),(0,r.jsx)(a.TextControl,{label:(0,n.__)("Categories","event-post"),value:d,onChange:function(e){s({cat:e})},className:"category",placeholder:(0,n.__)("Categories, separated by comma","event-post")}),(0,r.jsx)(a.TextControl,{label:(0,n.__)("Tags","event-post"),value:m,onChange:function(e){s({tag:e})},className:"tag",placeholder:(0,n.__)("Tags, separated by comma","event-post")})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Display"),children:[(0,r.jsx)(a.SelectControl,{label:(0,n.__)("Order by:","event-post"),value:b,options:[{label:"",value:""},{label:(0,n.__)("Post title","event-post"),value:"title"},{label:(0,n.__)("Event date","event-post"),value:"date"}],onChange:function(e){s({orderby:e})}}),(0,r.jsx)(a.SelectControl,{label:(0,n.__)("Order:","event-post"),value:x,options:[{label:"",value:""},{label:(0,n.__)("ASC","event-post"),value:"ASC"},{label:(0,n.__)("DESC","event-post"),value:"DESC"}],onChange:function(e){s({order:e})}}),(0,r.jsx)("p",{children:(0,n.__)("Wrap title, if not empty","event-post")}),(0,r.jsx)(a.TextControl,{value:g,onChange:function(e){s({before_title:e})},className:"before_title",placeholder:(0,n.__)("Before Title","event-post")}),(0,r.jsx)(a.TextControl,{value:f,onChange:function(e){s({after_title:e})},className:"after_title",placeholder:(0,n.__)("After Title","event-post")}),(0,r.jsx)(a.TextControl,{label:(0,n.__)("CSS Style"),value:j,onChange:function(e){s({style:e})},className:"style",placeholder:(0,n.__)("Style attribute")}),(0,r.jsx)(a.CheckboxControl,{label:(0,n.__)("Show excerpt","event-post"),checked:P,onChange:function(e){s({excerpt:e})}}),(0,r.jsx)(a.CheckboxControl,{label:(0,n.__)("Thumbnail","event-post"),checked:w,onChange:function(e){s({thumbnail:e})}}),(0,r.jsx)(a.SelectControl,{label:(0,n.__)("Thumbnail size:","event-post"),value:y,options:[{label:"",value:""},{label:(0,n.__)("Thumbnail","event-post"),value:"thumbnail"},{label:(0,n.__)("Medium","event-post"),value:"medium"},{label:(0,n.__)("Large","event-post"),value:"large"},{label:(0,n.__)("Full","event-post"),value:"full"}],onChange:function(e){s({thumbnail_size:e})}}),(0,r.jsx)("h4",{children:(0,n.__)("Map","event-post")}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Fix center map","event-post"),checked:W,onChange:function(e){s({map_position:e})},className:"map_position"}),!0===W&&(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(a.TextControl,{value:I,onChange:function(e){s({latitude:e})},className:"latitude",placeholder:(0,n.__)("Latitude","event-post")}),(0,r.jsx)(a.TextControl,{value:K,onChange:function(e){s({longitude:e})},className:"longitude",placeholder:(0,n.__)("Longitude","event-post")})]}),(0,r.jsx)(a.RangeControl,{label:(0,n.__)("Zoom","event-post"),value:N,onChange:function(e){s({zoom:e})},className:"zoom",min:0,max:16,initialPosition:0,help:(0,n.__)("0 fits to all events","event-post")}),(0,r.jsx)(a.TextControl,{value:D,onChange:function(e){s({width:e})},className:"width",placeholder:(0,n.__)("Width","event-post")}),(0,r.jsx)(a.TextControl,{value:A,onChange:function(e){s({height:e})},className:"height",placeholder:(0,n.__)("Height","event-post")}),(0,r.jsx)(a.SelectControl,{value:S,options:U,onChange:function(e){s({tile:e})}})]}),(0,r.jsxs)(a.PanelBody,{title:(0,n.__)("Features","event-post"),children:[(0,r.jsx)("h4",{children:(0,n.__)("Pop element","event-post")}),(0,r.jsx)(a.ToggleControl,{label:(0,n.__)("Customize Pop element","event-post"),checked:T,onChange:function(e){s({pop_element_schema:e})},className:"pop_element_schema"}),!0===T&&(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(a.TextareaControl,{value:k,onChange:function(e){s({htmlPop_element_schema:e})},className:"htmlPop_element_schema",placeholder:(0,n.__)("html for pop element","event-post")}),(0,r.jsx)("div",{children:(0,n.__)("Legend : ","event-post")}),(0,r.jsx)("div",{children:(0,n.__)("%title% = Title of the event","event-post")}),(0,r.jsx)("div",{children:(0,n.__)("%address% = Address of the event","event-post")}),(0,r.jsx)("div",{children:(0,n.__)(" %link% = Url of the event","event-post")}),(0,r.jsx)("div",{children:(0,n.__)(" %thumbnail% = Picture of the event","event-post")}),(0,r.jsx)("div",{children:(0,n.__)("%desc% = Description of the event","event-post")})]}),(0,r.jsx)(a.SelectControl,{label:(0,n.__)("List","event-post"),value:B,options:[{label:(0,n.__)("No list","event-post"),value:"0"},{label:(0,n.__)("Left","event-post"),value:"left"},{label:(0,n.__)("Right","event-post"),value:"right"},{label:(0,n.__)("Above","event-post"),value:"above"},{label:(0,n.__)("Below","event-post"),value:"below"}],onChange:function(e){s({list:e})}}),(0,r.jsx)("h4",{children:(0,n.__)("Interactions:","event-post")}),J.map((e,n)=>(0,r.jsx)(a.CheckboxControl,{label:e[1],checked:t[e[0]],onChange:n=>s({[e[0]]:!t[e[0]]})}))]})]}),(0,r.jsx)(i(),{block:"eventpost/map",attributes:H})]})})},save:function({attributes:e}){return null}})})();