| 1 |
/******/ (function() { // webpackBootstrap |
| 2 |
/******/ "use strict"; |
| 3 |
/******/ var __webpack_modules__ = ({ |
| 4 |
|
| 5 |
/***/ "./src/shortcode/blockIcon.js": |
| 6 |
/*!************************************!*\ |
| 7 |
!*** ./src/shortcode/blockIcon.js ***! |
| 8 |
\************************************/ |
| 9 |
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 10 |
|
| 11 |
__webpack_require__.r(__webpack_exports__); |
| 12 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html"); |
| 13 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__); |
| 14 |
|
| 15 |
const el = wp.element.createElement; |
| 16 |
const icons = {}; |
| 17 |
icons.spspIcon = el('img', { |
| 18 |
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(smartPostShowGbScript.url + 'admin/GutenbergBlock/assets/smart-post-show-icon.svg') |
| 19 |
}); |
| 20 |
/* harmony default export */ __webpack_exports__["default"] = (icons); |
| 21 |
|
| 22 |
/***/ }), |
| 23 |
|
| 24 |
/***/ "./src/shortcode/dynamicShortcode.js": |
| 25 |
/*!*******************************************!*\ |
| 26 |
!*** ./src/shortcode/dynamicShortcode.js ***! |
| 27 |
\*******************************************/ |
| 28 |
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 29 |
|
| 30 |
__webpack_require__.r(__webpack_exports__); |
| 31 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html"); |
| 32 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__); |
| 33 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); |
| 34 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); |
| 35 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); |
| 36 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); |
| 37 |
/** |
| 38 |
* Shortcode select component. |
| 39 |
*/ |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
const el = _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement; |
| 44 |
const DynamicShortcodeInput = _ref => { |
| 45 |
let { |
| 46 |
attributes: { |
| 47 |
shortcode |
| 48 |
}, |
| 49 |
shortCodeList, |
| 50 |
shortcodeUpdate |
| 51 |
} = _ref; |
| 52 |
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, el('div', { |
| 53 |
className: 'spsp-gutenberg-shortcode editor-styles-wrapper' |
| 54 |
}, el('select', { |
| 55 |
className: 'spsp-shortcode-selector', |
| 56 |
onChange: e => shortcodeUpdate(e), |
| 57 |
value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(shortcode) |
| 58 |
}, el('option', { |
| 59 |
value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)('0') |
| 60 |
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('-- Select a Show --', 'post-carousel'))), shortCodeList.map(shortcode => { |
| 61 |
var title = shortcode.title.length > 35 ? shortcode.title.substring(0, 30) + '.... #(' + shortcode.id + ')' : shortcode.title + ' #(' + shortcode.id + ')'; |
| 62 |
return el('option', { |
| 63 |
value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(shortcode.id.toString()), |
| 64 |
key: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(shortcode.id.toString()) |
| 65 |
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeHTML)(title)); |
| 66 |
})))); |
| 67 |
}; |
| 68 |
/* harmony default export */ __webpack_exports__["default"] = (DynamicShortcodeInput); |
| 69 |
|
| 70 |
/***/ }), |
| 71 |
|
| 72 |
/***/ "@wordpress/block-editor": |
| 73 |
/*!*************************************!*\ |
| 74 |
!*** external ["wp","blockEditor"] ***! |
| 75 |
\*************************************/ |
| 76 |
/***/ (function(module) { |
| 77 |
|
| 78 |
module.exports = window["wp"]["blockEditor"]; |
| 79 |
|
| 80 |
/***/ }), |
| 81 |
|
| 82 |
/***/ "@wordpress/blocks": |
| 83 |
/*!********************************!*\ |
| 84 |
!*** external ["wp","blocks"] ***! |
| 85 |
\********************************/ |
| 86 |
/***/ (function(module) { |
| 87 |
|
| 88 |
module.exports = window["wp"]["blocks"]; |
| 89 |
|
| 90 |
/***/ }), |
| 91 |
|
| 92 |
/***/ "@wordpress/components": |
| 93 |
/*!************************************!*\ |
| 94 |
!*** external ["wp","components"] ***! |
| 95 |
\************************************/ |
| 96 |
/***/ (function(module) { |
| 97 |
|
| 98 |
module.exports = window["wp"]["components"]; |
| 99 |
|
| 100 |
/***/ }), |
| 101 |
|
| 102 |
/***/ "@wordpress/element": |
| 103 |
/*!*********************************!*\ |
| 104 |
!*** external ["wp","element"] ***! |
| 105 |
\*********************************/ |
| 106 |
/***/ (function(module) { |
| 107 |
|
| 108 |
module.exports = window["wp"]["element"]; |
| 109 |
|
| 110 |
/***/ }), |
| 111 |
|
| 112 |
/***/ "@wordpress/escape-html": |
| 113 |
/*!************************************!*\ |
| 114 |
!*** external ["wp","escapeHtml"] ***! |
| 115 |
\************************************/ |
| 116 |
/***/ (function(module) { |
| 117 |
|
| 118 |
module.exports = window["wp"]["escapeHtml"]; |
| 119 |
|
| 120 |
/***/ }), |
| 121 |
|
| 122 |
/***/ "@wordpress/i18n": |
| 123 |
/*!******************************!*\ |
| 124 |
!*** external ["wp","i18n"] ***! |
| 125 |
\******************************/ |
| 126 |
/***/ (function(module) { |
| 127 |
|
| 128 |
module.exports = window["wp"]["i18n"]; |
| 129 |
|
| 130 |
/***/ }) |
| 131 |
|
| 132 |
/******/ }); |
| 133 |
/************************************************************************/ |
| 134 |
/******/ // The module cache |
| 135 |
/******/ var __webpack_module_cache__ = {}; |
| 136 |
/******/ |
| 137 |
/******/ // The require function |
| 138 |
/******/ function __webpack_require__(moduleId) { |
| 139 |
/******/ // Check if module is in cache |
| 140 |
/******/ var cachedModule = __webpack_module_cache__[moduleId]; |
| 141 |
/******/ if (cachedModule !== undefined) { |
| 142 |
/******/ return cachedModule.exports; |
| 143 |
/******/ } |
| 144 |
/******/ // Create a new module (and put it into the cache) |
| 145 |
/******/ var module = __webpack_module_cache__[moduleId] = { |
| 146 |
/******/ // no module.id needed |
| 147 |
/******/ // no module.loaded needed |
| 148 |
/******/ exports: {} |
| 149 |
/******/ }; |
| 150 |
/******/ |
| 151 |
/******/ // Execute the module function |
| 152 |
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 153 |
/******/ |
| 154 |
/******/ // Return the exports of the module |
| 155 |
/******/ return module.exports; |
| 156 |
/******/ } |
| 157 |
/******/ |
| 158 |
/************************************************************************/ |
| 159 |
/******/ /* webpack/runtime/compat get default export */ |
| 160 |
/******/ !function() { |
| 161 |
/******/ // getDefaultExport function for compatibility with non-harmony modules |
| 162 |
/******/ __webpack_require__.n = function(module) { |
| 163 |
/******/ var getter = module && module.__esModule ? |
| 164 |
/******/ function() { return module['default']; } : |
| 165 |
/******/ function() { return module; }; |
| 166 |
/******/ __webpack_require__.d(getter, { a: getter }); |
| 167 |
/******/ return getter; |
| 168 |
/******/ }; |
| 169 |
/******/ }(); |
| 170 |
/******/ |
| 171 |
/******/ /* webpack/runtime/define property getters */ |
| 172 |
/******/ !function() { |
| 173 |
/******/ // define getter functions for harmony exports |
| 174 |
/******/ __webpack_require__.d = function(exports, definition) { |
| 175 |
/******/ for(var key in definition) { |
| 176 |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
| 177 |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
| 178 |
/******/ } |
| 179 |
/******/ } |
| 180 |
/******/ }; |
| 181 |
/******/ }(); |
| 182 |
/******/ |
| 183 |
/******/ /* webpack/runtime/hasOwnProperty shorthand */ |
| 184 |
/******/ !function() { |
| 185 |
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } |
| 186 |
/******/ }(); |
| 187 |
/******/ |
| 188 |
/******/ /* webpack/runtime/make namespace object */ |
| 189 |
/******/ !function() { |
| 190 |
/******/ // define __esModule on exports |
| 191 |
/******/ __webpack_require__.r = function(exports) { |
| 192 |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
| 193 |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 194 |
/******/ } |
| 195 |
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 196 |
/******/ }; |
| 197 |
/******/ }(); |
| 198 |
/******/ |
| 199 |
/************************************************************************/ |
| 200 |
var __webpack_exports__ = {}; |
| 201 |
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. |
| 202 |
!function() { |
| 203 |
/*!**********************!*\ |
| 204 |
!*** ./src/index.js ***! |
| 205 |
\**********************/ |
| 206 |
__webpack_require__.r(__webpack_exports__); |
| 207 |
/* harmony import */ var _shortcode_blockIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./shortcode/blockIcon */ "./src/shortcode/blockIcon.js"); |
| 208 |
/* harmony import */ var _shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shortcode/dynamicShortcode */ "./src/shortcode/dynamicShortcode.js"); |
| 209 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html"); |
| 210 |
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__); |
| 211 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); |
| 212 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); |
| 213 |
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); |
| 214 |
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__); |
| 215 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); |
| 216 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); |
| 217 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); |
| 218 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__); |
| 219 |
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); |
| 220 |
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__); |
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
const ServerSideRender = wp.serverSideRender; |
| 230 |
const el = _wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement; |
| 231 |
|
| 232 |
/** |
| 233 |
* Register: Post Carousel Gutenberg Block. |
| 234 |
*/ |
| 235 |
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__.registerBlockType)("smart-post-show-pro/shortcode", { |
| 236 |
title: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Smart Post Show", "post-carousel")), |
| 237 |
description: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Use Smart Post Show to insert a show in your page", "post-carousel")), |
| 238 |
icon: _shortcode_blockIcon__WEBPACK_IMPORTED_MODULE_0__["default"].spspIcon, |
| 239 |
category: "common", |
| 240 |
supports: { |
| 241 |
html: true |
| 242 |
}, |
| 243 |
edit: props => { |
| 244 |
const { |
| 245 |
attributes, |
| 246 |
setAttributes |
| 247 |
} = props; |
| 248 |
const shortCodeList = smartPostShowGbScript.shortCodeList; |
| 249 |
let scriptLoad = shortcodeId => { |
| 250 |
let spspBlockLoaded = false; |
| 251 |
let spspBlockLoadedInterval = setInterval(function () { |
| 252 |
let uniqId = jQuery("#pcp_wrapper-" + shortcodeId).parents().attr('id'); |
| 253 |
if (document.getElementById(uniqId)) { |
| 254 |
// Preloader JS |
| 255 |
jQuery("#pcp_wrapper-" + shortcodeId + " #pcp-preloader").css({ |
| 256 |
'opacity': 0, |
| 257 |
'display': 'none' |
| 258 |
}); |
| 259 |
jQuery("#pcp_wrapper-" + shortcodeId + " #pcp-preloader").animate({ |
| 260 |
opacity: 1 |
| 261 |
}, 600); |
| 262 |
//Actual functions goes here |
| 263 |
jQuery.getScript(smartPostShowGbScript.loadScript); |
| 264 |
spspBlockLoaded = true; |
| 265 |
uniqId = ''; |
| 266 |
} |
| 267 |
if (spspBlockLoaded) { |
| 268 |
clearInterval(spspBlockLoadedInterval); |
| 269 |
} |
| 270 |
if (0 == shortcodeId) { |
| 271 |
clearInterval(spspBlockLoadedInterval); |
| 272 |
} |
| 273 |
}, 10); |
| 274 |
}; |
| 275 |
let updateShortcode = updateShortcode => { |
| 276 |
setAttributes({ |
| 277 |
shortcode: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(updateShortcode.target.value) |
| 278 |
}); |
| 279 |
}; |
| 280 |
let shortcodeUpdate = e => { |
| 281 |
updateShortcode(e); |
| 282 |
let shortcodeId = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(e.target.value); |
| 283 |
scriptLoad(shortcodeId); |
| 284 |
}; |
| 285 |
document.addEventListener('readystatechange', event => { |
| 286 |
if (event.target.readyState === "complete") { |
| 287 |
let shortcodeId = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(attributes.shortcode); |
| 288 |
scriptLoad(shortcodeId); |
| 289 |
} |
| 290 |
}); |
| 291 |
if (attributes.preview) { |
| 292 |
return el('div', { |
| 293 |
className: 'spsp_shortcode_block_preview_image' |
| 294 |
}, el('img', { |
| 295 |
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(smartPostShowGbScript.url + "admin/GutenbergBlock/assets/smart-post-show-block-preview.svg") |
| 296 |
})); |
| 297 |
} |
| 298 |
if (shortCodeList.length === 0) { |
| 299 |
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.Fragment, null, el('div', { |
| 300 |
className: 'components-placeholder components-placeholder is-large' |
| 301 |
}, el('div', { |
| 302 |
className: 'components-placeholder__label' |
| 303 |
}, el('img', { |
| 304 |
className: 'block-editor-block-icon', |
| 305 |
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(smartPostShowGbScript.url + "admin/GutenbergBlock/assets/smart-post-show-icon.svg") |
| 306 |
}), (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Smart Post Show", "post-carousel"))), el('div', { |
| 307 |
className: 'components-placeholder__instructions' |
| 308 |
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("No shortcode found. ", "post-carousel")), el('a', { |
| 309 |
href: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(smartPostShowGbScript.link) |
| 310 |
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Create a shortcode now!", "post-carousel")))))); |
| 311 |
} |
| 312 |
if (!attributes.shortcode || attributes.shortcode == 0) { |
| 313 |
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { |
| 314 |
title: "Select a Show" |
| 315 |
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__["default"], { |
| 316 |
attributes: attributes, |
| 317 |
shortCodeList: shortCodeList, |
| 318 |
shortcodeUpdate: shortcodeUpdate |
| 319 |
})))), el('div', { |
| 320 |
className: 'components-placeholder components-placeholder is-large' |
| 321 |
}, el('div', { |
| 322 |
className: 'components-placeholder__label' |
| 323 |
}, el('img', { |
| 324 |
className: 'block-editor-block-icon', |
| 325 |
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(smartPostShowGbScript.url + "admin/GutenbergBlock/assets/smart-post-show-icon.svg") |
| 326 |
}), (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Smart Post Show", "post-carousel"))), el('div', { |
| 327 |
className: 'components-placeholder__instructions' |
| 328 |
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Select a Show", "post-carousel"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__["default"], { |
| 329 |
attributes: attributes, |
| 330 |
shortCodeList: shortCodeList, |
| 331 |
shortcodeUpdate: shortcodeUpdate |
| 332 |
}))); |
| 333 |
} |
| 334 |
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { |
| 335 |
title: "Select a Show" |
| 336 |
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__["default"], { |
| 337 |
attributes: attributes, |
| 338 |
shortCodeList: shortCodeList, |
| 339 |
shortcodeUpdate: shortcodeUpdate |
| 340 |
})))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(ServerSideRender, { |
| 341 |
block: "smart-post-show-pro/shortcode", |
| 342 |
attributes: attributes |
| 343 |
})); |
| 344 |
}, |
| 345 |
save() { |
| 346 |
// Rendering in PHP |
| 347 |
return null; |
| 348 |
} |
| 349 |
}); |
| 350 |
}(); |
| 351 |
/******/ })() |
| 352 |
; |
| 353 |
//# sourceMappingURL=index.js.map |