Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (window["webpackJsonp_sandc"] = window["webpackJsonp_sandc"] || []).push([["style-index"],{
- /***/ "./src/style.scss":
- /*!************************!*\
- !*** ./src/style.scss ***!
- \************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // extracted by mini-css-extract-plugin
- /***/ })
- }]);
- /******/ (function(modules) { // webpackBootstrap
- /******/ // install a JSONP callback for chunk loading
- /******/ function webpackJsonpCallback(data) {
- /******/ var chunkIds = data[0];
- /******/ var moreModules = data[1];
- /******/ var executeModules = data[2];
- /******/
- /******/ // add "moreModules" to the modules object,
- /******/ // then flag all "chunkIds" as loaded and fire callback
- /******/ var moduleId, chunkId, i = 0, resolves = [];
- /******/ for(;i < chunkIds.length; i++) {
- /******/ chunkId = chunkIds[i];
- /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
- /******/ resolves.push(installedChunks[chunkId][0]);
- /******/ }
- /******/ installedChunks[chunkId] = 0;
- /******/ }
- /******/ for(moduleId in moreModules) {
- /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
- /******/ modules[moduleId] = moreModules[moduleId];
- /******/ }
- /******/ }
- /******/ if(parentJsonpFunction) parentJsonpFunction(data);
- /******/
- /******/ while(resolves.length) {
- /******/ resolves.shift()();
- /******/ }
- /******/
- /******/ // add entry modules from loaded chunk to deferred list
- /******/ deferredModules.push.apply(deferredModules, executeModules || []);
- /******/
- /******/ // run deferred modules when all chunks ready
- /******/ return checkDeferredModules();
- /******/ };
- /******/ function checkDeferredModules() {
- /******/ var result;
- /******/ for(var i = 0; i < deferredModules.length; i++) {
- /******/ var deferredModule = deferredModules[i];
- /******/ var fulfilled = true;
- /******/ for(var j = 1; j < deferredModule.length; j++) {
- /******/ var depId = deferredModule[j];
- /******/ if(installedChunks[depId] !== 0) fulfilled = false;
- /******/ }
- /******/ if(fulfilled) {
- /******/ deferredModules.splice(i--, 1);
- /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
- /******/ }
- /******/ }
- /******/
- /******/ return result;
- /******/ }
- /******/
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // object to store loaded and loading chunks
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
- /******/ // Promise = chunk loading, 0 = chunk loaded
- /******/ var installedChunks = {
- /******/ "index": 0
- /******/ };
- /******/
- /******/ var deferredModules = [];
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/
- /******/ var jsonpArray = window["webpackJsonp_sandc"] = window["webpackJsonp_sandc"] || [];
- /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
- /******/ jsonpArray.push = webpackJsonpCallback;
- /******/ jsonpArray = jsonpArray.slice();
- /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
- /******/ var parentJsonpFunction = oldJsonpFunction;
- /******/
- /******/
- /******/ // add entry module to deferred list
- /******/ deferredModules.push(["./src/index.js","style-index"]);
- /******/ // run deferred modules when ready
- /******/ return checkDeferredModules();
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "./node_modules/@babel/runtime/helpers/extends.js":
- /*!********************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/extends.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _extends() {
- module.exports = _extends = Object.assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
- };
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- return _extends.apply(this, arguments);
- }
- module.exports = _extends;
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- /***/ }),
- /***/ "./src/edit.js":
- /*!*********************!*\
- !*** ./src/edit.js ***!
- \*********************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js");
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
- /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
- /* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./editor.scss */ "./src/editor.scss");
- // NOTE: I USED (and modified) YOUR EXACT CODE, BUT I REMOVED UNWANTED SPACES AND LINES
- /**
- * Retrieves the translation of text.
- *
- * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
- */
- /**
- * React hook that is used to mark the block wrapper element.
- * It provides all the necessary props like the class name.
- *
- * @see https://developer.wordpress.org/block-editor/packages/packages-block-editor/#useBlockProps
- */
- /**
- * Other things needed
- *
- */
- /**
- * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
- * Those files can contain any CSS code that gets applied to the editor.
- *
- * @see https://www.npmjs.com/package/@wordpress/scripts#using-css
- */
- function mySelectPosts({
- clientId,
- attributes,
- setAttributes
- }) {
- // Used to reset inner blocks if we've changed the selected exercise
- const {
- replaceInnerBlocks
- } = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["useDispatch"])("core/block-editor");
- const {
- inner_blocks
- } = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["useSelect"])(select => ({
- inner_blocks: select("core/block-editor").getBlocks(clientId)
- }));
- const {
- posts,
- options
- } = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["useSelect"])(select => {
- const {
- getEntityRecords
- } = select('core'); // Fetch posts from the REST API.
- const posts = getEntityRecords('postType', 'exercise', {
- // Request featured media along with the standard post data.
- _embed: 'wp:featuredmedia'
- }) || [];
- return {
- // Options for the post selection dropdown.
- options: [...[{
- value: 0,
- label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Select an exercise')
- }], ...(posts === null || posts === void 0 ? void 0 : posts.map(post => ({
- value: post.id,
- label: post.title.rendered
- })))],
- // Now here's the posts list.
- posts
- };
- }, []); // the empty array ([]) means the useSelect callback contains no dependencies.
- const selectedPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["useSelect"])(select => {
- const {
- getEntityRecord
- } = select('core');
- const post_id = attributes.selectedPost; // Fetch the post from the REST API, if we have a valid post ID.
- return post_id && getEntityRecord('postType', 'exercise', post_id, {
- // Request featured media along with the standard post data.
- _embed: 'wp:featuredmedia'
- }); // This useSelect callback has one dependency - the selected post ID.
- }, [attributes.selectedPost]);
- /**
- * Called when the inspector controls select box is changed
- * Saves the value of the selected post to the selectedPost attribute
- * and resets the innerblock
- **/
- const onSelectPost = post => {
- // reset the inner
- let inner_blocks_new = [];
- replaceInnerBlocks(clientId, inner_blocks_new, false);
- setAttributes({
- selectedPost: parseInt(post)
- });
- }; //* I removed Exercise, Exercises, someExercises and loadPosts. See the
- // useSelect above which uses getEntityRecords() or getEntityRecord().
- /* Set of functions for saving out attributes
- * reps, sets, notes
- */
- const onChangeReps = reps => {
- setAttributes({
- reps: reps
- });
- };
- const onChangeSets = sets => {
- setAttributes({
- sets: sets
- });
- };
- const onChangeNotes = notes => {
- setAttributes({
- notes: notes
- });
- }; // will contain the text output for the edit.
- let output = "";
- const blockProps = Object(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["useBlockProps"])({
- className: "sandcexercise"
- }); // we've selected a post, so grab the bits from that post to put into the html
- if (selectedPost) {
- var _selectedPost$_embedd, _selectedPost$_embedd2;
- //1
- // grab the things we are putting in the innerblock from the post
- let mediaID = (selectedPost === null || selectedPost === void 0 ? void 0 : selectedPost.featured_media) || 0; //2
- let mediaURL = (selectedPost === null || selectedPost === void 0 ? void 0 : (_selectedPost$_embedd = selectedPost._embedded) === null || _selectedPost$_embedd === void 0 ? void 0 : (_selectedPost$_embedd2 = _selectedPost$_embedd['wp:featuredmedia'][0]) === null || _selectedPost$_embedd2 === void 0 ? void 0 : _selectedPost$_embedd2.source_url) || ''; //3
- let exerciseLink = selectedPost.link; // remove any html content from the excerpt as it explodes the inner block :/
- let strippedContent = selectedPost.excerpt.rendered.replace(/(<([^>]+)>)/gi, ""); // create a linked heading
- let heading = '<a href="' + exerciseLink + '">' + selectedPost.title.rendered + '</a>'; // build the innerblocks template
- const MY_TEMPLATE = [['core/heading', {
- content: heading
- }], ['core/image', {
- id: mediaID,
- url: mediaURL,
- href: exerciseLink,
- align: "right",
- sizeSlug: "medium",
- width: "300",
- caption: "Click for instructions"
- }], ['core/paragraph', {
- content: strippedContent
- }]];
- output = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InnerBlocks"], {
- template: MY_TEMPLATE,
- templateLock: ""
- });
- } else {
- output = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("p", null, "Select an exercise from the right");
- } // return the edit html.
- return [Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, blockProps, {
- key: "sandcexercise"
- }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- id: "sandcexercise-controls"
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SelectControl"], {
- onChange: onSelectPost,
- value: attributes.selectedPost,
- label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Select a Post'),
- options: options
- }))), output, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["TextControl"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, blockProps, {
- label: "Reps:",
- type: "number",
- className: "thereps",
- onChange: onChangeReps,
- value: attributes.reps
- })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["TextControl"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, blockProps, {
- label: "Sets:",
- type: "number",
- className: "thesets",
- onChange: onChangeSets,
- value: attributes.sets
- })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["TextControl"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, blockProps, {
- label: "Notes:",
- type: "text",
- className: "thenotes",
- onChange: onChangeNotes,
- value: attributes.notes
- })))];
- }
- /* harmony default export */ __webpack_exports__["default"] = (mySelectPosts);
- /***/ }),
- /***/ "./src/editor.scss":
- /*!*************************!*\
- !*** ./src/editor.scss ***!
- \*************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // extracted by mini-css-extract-plugin
- /***/ }),
- /***/ "./src/index.js":
- /*!**********************!*\
- !*** ./src/index.js ***!
- \**********************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js");
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
- /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
- /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style.scss */ "./src/style.scss");
- /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./edit */ "./src/edit.js");
- // NOTE: I USED (and modified) YOUR EXACT CODE, BUT I REMOVED UNWANTED SPACES AND LINES
- /**
- * Registers a new block provided a unique name and an object defining its behavior.
- *
- * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
- */
- // Import __() from wp.i18n
- /**
- * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
- * All files containing `style` keyword are bundled together. The code used
- * gets applied both to the front of your site and to the editor.
- *
- * @see https://www.npmjs.com/package/@wordpress/scripts#using-css
- */
- /**
- * Internal dependencies
- */
- /**
- * Every block starts by registering a new block type definition.
- *
- * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
- */
- Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["registerBlockType"])('get-coached/sandc', {
- apiVersion: 2,
- attributes: {
- /*8 don't add this as an attribute - posts: {
- type: 'array',
- default: [],
- },*/
- /*7 unused attribute - post: {
- type: 'object',
- },*/
- selectedPost: {
- type: 'number',
- default: 0
- },
- /* 9 don't add this as an attribute - options: {
- type: 'array',
- default: [ { value: 0, label: __( 'Select a Post' ) } ],
- },
- */
- reps: {
- type: 'string',
- //2 'number',
- source: 'text',
- //3 'number',
- selector: '.thereps',
- default: 15
- },
- sets: {
- type: 'string',
- //4 types: 'number',
- source: 'text',
- //5 'number',
- selector: '.thesets',
- default: 3
- },
- notes: {
- type: 'string',
- //6 types: 'text',
- source: 'text',
- selector: '.thenotes',
- default: ''
- }
- },
- edit: _edit__WEBPACK_IMPORTED_MODULE_6__["default"],
- save: function (props) {
- const blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["useBlockProps"].save();
- const {
- attributes
- } = props;
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, blockProps, {
- key: "sandcexercise"
- }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InnerBlocks"].Content, null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "repsrow"
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "repslabel"
- }, "Reps:"), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "thereps"
- }, attributes.reps)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "setsrow"
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "setslabel"
- }, "Sets:"), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "thesets"
- }, attributes.sets)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "notesrow"
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "noteslabel"
- }, "Notes:"), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
- className: "thenotes"
- }, attributes.notes)));
- }
- });
- /***/ }),
- /***/ "@wordpress/block-editor":
- /*!*************************************!*\
- !*** external ["wp","blockEditor"] ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["blockEditor"]; }());
- /***/ }),
- /***/ "@wordpress/blocks":
- /*!********************************!*\
- !*** external ["wp","blocks"] ***!
- \********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["blocks"]; }());
- /***/ }),
- /***/ "@wordpress/components":
- /*!************************************!*\
- !*** external ["wp","components"] ***!
- \************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["components"]; }());
- /***/ }),
- /***/ "@wordpress/data":
- /*!******************************!*\
- !*** external ["wp","data"] ***!
- \******************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["data"]; }());
- /***/ }),
- /***/ "@wordpress/element":
- /*!*********************************!*\
- !*** external ["wp","element"] ***!
- \*********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["element"]; }());
- /***/ }),
- /***/ "@wordpress/i18n":
- /*!******************************!*\
- !*** external ["wp","i18n"] ***!
- \******************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- (function() { module.exports = window["wp"]["i18n"]; }());
- /***/ })
- /******/ });
- //# sourceMappingURL=index.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement