From 48804b1dc95d78db10f7486ea29919d4f1623d28 Mon Sep 17 00:00:00 2001 From: Chrillaz Date: Mon, 2 Nov 2020 23:25:04 +0100 Subject: [PATCH] button icon continue --- build/accordion.js | 290 ------------------------------------- build/accordion.js.map | 1 - build/index.asset.php | 2 +- build/index.css.map | 2 +- build/index.js | 200 ++++++++++++++++--------- build/index.js.map | 2 +- src/components/controls.js | 76 +++++----- src/filters/attributes.js | 8 +- src/filters/blockEdit.js | 2 +- 9 files changed, 180 insertions(+), 403 deletions(-) delete mode 100644 build/accordion.js delete mode 100644 build/accordion.js.map diff --git a/build/accordion.js b/build/accordion.js deleted file mode 100644 index 90308b5..0000000 --- a/build/accordion.js +++ /dev/null @@ -1,290 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // 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 = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./src/blocks/accordion/assets/accordion.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! - \*****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) { - arr2[i] = arr[i]; - } - - return arr2; -} - -module.exports = _arrayLikeToArray; - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": -/*!******************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); -} - -module.exports = _arrayWithoutHoles; - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js": -/*!****************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***! - \****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); -} - -module.exports = _iterableToArray; - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js": -/*!******************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} - -module.exports = _nonIterableSpread; - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js": -/*!******************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); - -var iterableToArray = __webpack_require__(/*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/iterableToArray.js"); - -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); - -var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js"); - -function _toConsumableArray(arr) { - return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); -} - -module.exports = _toConsumableArray; - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! - \***************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); -} - -module.exports = _unsupportedIterableToArray; - -/***/ }), - -/***/ "./src/blocks/accordion/assets/accordion.js": -/*!**************************************************!*\ - !*** ./src/blocks/accordion/assets/accordion.js ***! - \**************************************************/ -/*! no exports provided */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"); -/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _components_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../components/helpers */ "./src/components/helpers.js"); - - - -var animate = function animate(args) { - var start = args.start, - element = args.element, - maxheight = args.maxheight, - duration = args.duration, - state = args.state; - var runtime = new Date().getTime() - start, - progress = runtime / duration, - currHeight = state ? maxheight - maxheight * Math.min(progress, 1) : maxheight * Math.min(progress, 1); - element.style.height = "".concat(currHeight.toFixed(2), "px"); - - if (runtime < duration) { - requestAnimationFrame(function () { - return animate(args); - }); - } -}; - -function requestAnimation() { - var duration = 250, - start = new Date().getTime(), - element = this.nextElementSibling, - maxheight = element.scrollHeight, - state = maxheight === element.offsetHeight; - this.querySelectorAll('.dashicons').forEach(function (icon) { - return Object(_components_helpers__WEBPACK_IMPORTED_MODULE_1__["toggle"])(icon, 'data-state', ['false', 'true']); - }); - return requestAnimationFrame(function () { - return animate({ - start: start, - element: element, - maxheight: maxheight, - duration: duration, - state: state - }); - }); -} - -Object(_components_helpers__WEBPACK_IMPORTED_MODULE_1__["domLoaded"])(function () { - var accordions = document.querySelectorAll('.noor-block-accordion'); - - _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(accordions).forEach(function (accordion) { - return accordion.addEventListener('click', requestAnimation, true); - }); -}); - -/***/ }), - -/***/ "./src/components/helpers.js": -/*!***********************************!*\ - !*** ./src/components/helpers.js ***! - \***********************************/ -/*! exports provided: domLoaded, toggle */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "domLoaded", function() { return domLoaded; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggle", function() { return toggle; }); -function domLoaded(callback) { - if (document.readyState === 'complete') { - callback(document.readyState === 'complete'); - } else { - window.addEventListener('DOMContentLoaded', callback(true)); - } -} -var toggle = function toggle(el, attribute, values) { - return el.setAttribute(attribute, el.getAttribute(attribute) === values[0] ? values[1] : values[0]); -}; - -/***/ }) - -/******/ }); -//# sourceMappingURL=accordion.js.map \ No newline at end of file diff --git a/build/accordion.js.map b/build/accordion.js.map deleted file mode 100644 index 6b292f1..0000000 --- a/build/accordion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./src/blocks/accordion/assets/accordion.js","webpack:///./src/components/helpers.js"],"names":["animate","args","start","element","maxheight","duration","state","runtime","Date","getTime","progress","currHeight","Math","min","style","height","toFixed","requestAnimationFrame","requestAnimation","nextElementSibling","scrollHeight","offsetHeight","querySelectorAll","forEach","icon","toggle","domLoaded","accordions","document","accordion","addEventListener","callback","readyState","window","el","attribute","values","setAttribute","getAttribute"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;;AAEA;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D,MAGO;AAELC,UAAM,CAACH,gBAAP,CAAyB,kBAAzB,EAA6CC,QAAQ,CAAC,IAAD,CAArD;AACD;AACF;AAEM,IAAMN,MAAM,GAAG,SAATA,MAAS,CAAES,EAAF,EAAMC,SAAN,EAAiBC,MAAjB;AAAA,SAA6BF,EAAE,CAACG,YAAH,CAAiBF,SAAjB,EAA4BD,EAAE,CAACI,YAAH,CAAiBH,SAAjB,MAAiCC,MAAM,CAAC,CAAD,CAAvC,GAA6CA,MAAM,CAAC,CAAD,CAAnD,GAAyDA,MAAM,CAAC,CAAD,CAA3F,CAA7B;AAAA,CAAf,C","file":"accordion.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/blocks/accordion/assets/accordion.js\");\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","import { domLoaded, toggle } from '../../../components/helpers'\r\n\r\nconst animate = args => {\r\n\r\n const { start, element, maxheight, duration, state } = args;\r\n\r\n const runtime = new Date().getTime() - start,\r\n progress = runtime / duration,\r\n currHeight = state \r\n ? maxheight - (maxheight * Math.min( progress, 1))\r\n : (maxheight * Math.min( progress, 1 ));\r\n\r\n element.style.height = `${currHeight.toFixed(2)}px`;\r\n\r\n if ( runtime < duration ) {\r\n\r\n requestAnimationFrame( () => animate( args ) );\r\n }\r\n}\r\n\r\nfunction requestAnimation () {\r\n\r\n const duration = 250,\r\n start = new Date().getTime(),\r\n element = this.nextElementSibling,\r\n maxheight = element.scrollHeight,\r\n state = maxheight === element.offsetHeight;\r\n\r\n this.querySelectorAll('.dashicons').forEach(icon => toggle( icon, 'data-state', ['false', 'true'] ) );\r\n\r\n return requestAnimationFrame(() => animate( { start, element, maxheight, duration, state } ));\r\n}\r\n\r\ndomLoaded( () => {\r\n \r\n const accordions = document.querySelectorAll('.noor-block-accordion');\r\n \r\n [...accordions].forEach( accordion => accordion.addEventListener( 'click', requestAnimation, true ) );\r\n})","export function domLoaded( callback ) {\r\n if ( document.readyState === 'complete' ) {\r\n\r\n callback(document.readyState === 'complete');\r\n } else {\r\n\r\n window.addEventListener( 'DOMContentLoaded', callback(true));\r\n }\r\n}\r\n\r\nexport const toggle = ( el, attribute, values ) => el.setAttribute( attribute, el.getAttribute( attribute ) === values[0] ? values[1] : values[0] );"],"sourceRoot":""} \ No newline at end of file diff --git a/build/index.asset.php b/build/index.asset.php index e901af1..bc8faa4 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '64216c24c2ac71f800f6f3b047cb6f13'), 'accordion.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd70ba6744a311af1221964a05b6822fc')); \ No newline at end of file + array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '198ea8ea6bb5bfce2a92dadedbf2f795'), 'accordion.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'd70ba6744a311af1221964a05b6822fc')); \ No newline at end of file diff --git a/build/index.css.map b/build/index.css.map index 9ee3c5d..8c254e5 100644 --- a/build/index.css.map +++ b/build/index.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///editor.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAChB;;;;EAIE;AACF;;EAEE,aAAa;EACb,wBAAwB;EACxB,eAAe;EACf,sBAAsB,EAAE;;AAE1B;EACE,qBAAqB;EACrB,YAAY;EACZ,kBAAkB,EAAE;;AAEtB;EACE,kBAAkB;EAClB,qBAAqB;EACrB,YAAY;EACZ,QAAQ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;;AAEtC;EACE,WAAW,EAAE;;AAEf;EACE,aAAa;EACb,WAAW,EAAE;EACb;IACE,uBAAuB,EAAE;EAC3B;IACE,yBAAyB,EAAE;EAC7B;IACE,2BAA2B,EAAE;EAC/B;IACE,aAAa;IACb,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,gBAAgB,EAAE;EACpB;IACE,oBAAoB,EAAE;;AAE1B;EACE,kBAAkB;EAClB,SAAS;EACT,gBAAgB,EAAE;EAClB;IACE,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,sBAAsB;IACtB,uBAAuB;IACvB,oBAAoB,EAAE;;AAE1B;EACE,aAAa;EACb,YAAY;EACZ,gBAAgB,EAAE;;AAEpB;EACE,cAAc,EAAE;;AAElB;EACE,WAAW,EAAE","file":"index.css","sourcesContent":["@charset \"UTF-8\";\n/**\r\n * The following styles get applied inside the editor only.\r\n *\r\n * Replace them with your own styles or remove the file completely.\r\n */\n.has-icon-arrow-right-alt .wp-block-button__link::before,\n.has-icon-arrow-right-alt .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-right-alt.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-right-alt.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-right-alt:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-arrow-right-alt2 .wp-block-button__link::before,\n.has-icon-arrow-right-alt2 .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-right-alt2.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-right-alt2.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-right-alt2:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-arrow-left-alt .wp-block-button__link::before,\n.has-icon-arrow-left-alt .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-left-alt.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-left-alt.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-left-alt:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-arrow-left-alt2 .wp-block-button__link::before,\n.has-icon-arrow-left-alt2 .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-left-alt2.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-left-alt2.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-left-alt2:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-clock .wp-block-button__link::before,\n.has-icon-clock .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-clock.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-clock.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-clock:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-location .wp-block-button__link::before,\n.has-icon-location .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-location.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-location.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-location:hover .wp-block-button__link::after {\n right: -6px; }\n\n.noor-block-bullet-point {\n display: flex;\n width: 100%; }\n .noor-block-bullet-point.has-align-center {\n justify-content: center; }\n .noor-block-bullet-point.has-align-right {\n justify-content: flex-end; }\n .noor-block-bullet-point.has-align-left {\n justify-content: flex-start; }\n .noor-block-bullet-point__point {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 87px;\n height: 87px;\n border-radius: 50%;\n overflow: hidden; }\n .noor-block-bullet-point__text-content {\n margin: 0 !important; }\n\n.noor-block-google-map {\n position: relative;\n height: 0;\n overflow: hidden; }\n .noor-block-google-map iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100% !important;\n height: 100% !important;\n border: 0 !important; }\n\n.noor-block-accordion__content {\n display: none;\n height: auto;\n max-height: 100%; }\n\n.noor-block-accordion[aria-expanded=\"true\"] + .noor-block-accordion__content {\n display: block; }\n\n.components-responsive-wrapper__content {\n width: auto; }\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///editor.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAChB;;;;EAIE;AACF;;EAEE,aAAa;EACb,wBAAwB;EACxB,eAAe;EACf,sBAAsB,EAAE;;AAE1B;EACE,qBAAqB;EACrB,YAAY;EACZ,kBAAkB,EAAE;;AAEtB;EACE,kBAAkB;EAClB,qBAAqB;EACrB,YAAY;EACZ,QAAQ;EACR,iBAAiB;EACjB,kCAAkC,EAAE;;AAEtC;EACE,WAAW,EAAE;;AAEf;;EAEE,aAAa;EACb,wBAAwB;EACxB,eAAe;EACf,s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AC7B;IACE,2BAA2B,EAAE;EAC/B;IACE,aAAa;IACb,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,gBAAgB,EAAE;EACpB;IACE,oBAAoB,EAAE;;AAE1B;EACE,kBAAkB;EAClB,SAAS;EACT,gBAAgB,EAAE;EAClB;IACE,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,sBAAsB;IACtB,uBAAuB;IACvB,oBAAoB,EAAE;;AAE1B;EACE,aAAa;EACb,YAAY;EACZ,gBAAgB,EAAE;;AAEpB;EACE,cAAc,EAAE;;AAElB;EACE,WAAW,EAAE","file":"index.css","sourcesContent":["@charset \"UTF-8\";\n/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n.has-icon-arrow-right-alt .wp-block-button__link::before,\n.has-icon-arrow-right-alt .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-right-alt.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-right-alt.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-right-alt:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-arrow-right-alt2 .wp-block-button__link::before,\n.has-icon-arrow-right-alt2 .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-right-alt2.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-right-alt2.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-right-alt2:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-arrow-left-alt .wp-block-button__link::before,\n.has-icon-arrow-left-alt .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-left-alt.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-left-alt.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-left-alt:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-arrow-left-alt2 .wp-block-button__link::before,\n.has-icon-arrow-left-alt2 .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-arrow-left-alt2.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-arrow-left-alt2.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-arrow-left-alt2:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-clock .wp-block-button__link::before,\n.has-icon-clock .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-clock.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-clock.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-clock:hover .wp-block-button__link::after {\n right: -6px; }\n\n.has-icon-location .wp-block-button__link::before,\n.has-icon-location .wp-block-button__link::after {\n display: none;\n font-family: 'dashicons';\n font-size: 20px;\n vertical-align: middle; }\n\n.has-icon-location.has-left-icon .wp-block-button__link::before {\n display: inline-block;\n content: \"\";\n padding-right: 8px; }\n\n.has-icon-location.has-right-icon .wp-block-button__link::after {\n position: relative;\n display: inline-block;\n content: \"\";\n right: 0;\n padding-left: 8px;\n transition: right .25s ease-in-out; }\n\n.has-icon-location:hover .wp-block-button__link::after {\n right: -6px; }\n\n.noor-block-bullet-point {\n display: flex;\n width: 100%; }\n .noor-block-bullet-point.has-align-center {\n justify-content: center; }\n .noor-block-bullet-point.has-align-right {\n justify-content: flex-end; }\n .noor-block-bullet-point.has-align-left {\n justify-content: flex-start; }\n .noor-block-bullet-point__point {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 87px;\n height: 87px;\n border-radius: 50%;\n overflow: hidden; }\n .noor-block-bullet-point__text-content {\n margin: 0 !important; }\n\n.noor-block-google-map {\n position: relative;\n height: 0;\n overflow: hidden; }\n .noor-block-google-map iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100% !important;\n height: 100% !important;\n border: 0 !important; }\n\n.noor-block-accordion__content {\n display: none;\n height: auto;\n max-height: 100%; }\n\n.noor-block-accordion[aria-expanded=\"true\"] + .noor-block-accordion__content {\n display: block; }\n\n.components-responsive-wrapper__content {\n width: auto; }\n"],"sourceRoot":""} \ No newline at end of file diff --git a/build/index.js b/build/index.js index e89991c..bd4f136 100644 --- a/build/index.js +++ b/build/index.js @@ -206,6 +206,23 @@ module.exports = _arrayWithHoles; /***/ }), +/***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return arrayLikeToArray(arr); +} + +module.exports = _arrayWithoutHoles; + +/***/ }), + /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***! @@ -261,6 +278,21 @@ module.exports = _extends; /***/ }), +/***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js": +/*!****************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); +} + +module.exports = _iterableToArray; + +/***/ }), + /***/ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": /*!*********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! @@ -314,6 +346,21 @@ module.exports = _nonIterableRest; /***/ }), +/***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +module.exports = _nonIterableSpread; + +/***/ }), + /***/ "./node_modules/@babel/runtime/helpers/slicedToArray.js": /*!**************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***! @@ -337,6 +384,29 @@ module.exports = _slicedToArray; /***/ }), +/***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***! + \******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); + +var iterableToArray = __webpack_require__(/*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/iterableToArray.js"); + +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); + +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js"); + +function _toConsumableArray(arr) { + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); +} + +module.exports = _toConsumableArray; + +/***/ }), + /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": /*!***************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! @@ -1105,15 +1175,22 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmallScreenControl", function() { return SmallScreenControl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnBackgrounControl", function() { return ColumnBackgrounControl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonIconControl", function() { return ButtonIconControl; }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__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 _components_radio_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/radio-group */ "./src/components/radio-group.js"); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"); +/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _components_radio_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/radio-group */ "./src/components/radio-group.js"); + + + @@ -1122,11 +1199,11 @@ __webpack_require__.r(__webpack_exports__); var SmallScreenControl = function SmallScreenControl(_ref) { var setAttributes = _ref.setAttributes, mediaControl = _ref.attributes.mediaControl; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["PanelBody"], { - title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mobile View Control'), + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Mobile View Control'), initialOpen: true - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["ToggleControl"], { - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])("".concat(mediaControl ? 'Display' : 'Hide', " on mobile")), + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ToggleControl"], { + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])("".concat(mediaControl ? 'Display' : 'Hide', " on mobile")), checked: mediaControl, onChange: function onChange(mediaControl) { return setAttributes({ @@ -1142,77 +1219,71 @@ var ColumnBackgrounControl = function ColumnBackgrounControl(_ref2) { setAttributes({ className: backgroundColor.class != undefined ? backgroundColor.class + ' has-background' : '' }); - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["PanelColorSettings"], { - title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Color settings'), + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__["PanelColorSettings"], { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Color settings'), initialOpen: false, colorSettings: [{ value: backgroundColor.color, onChange: setBackgroundColor, - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Column background color') + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Column background color') }] }); }; -var ButtonIconControl = function ButtonIconControl(_ref3) { - var _ref3$attributes = _ref3.attributes, - useIcon = _ref3$attributes.useIcon, - alignIcon = _ref3$attributes.alignIcon, - icon = _ref3$attributes.icon, - className = _ref3$attributes.className, - setAttributes = _ref3.setAttributes; - var iconControlOptions = ['arrow-right-alt', 'arrow-left-alt', 'arrow-right-alt2', 'arrow-left-alt2', 'clock', 'location']; +var ButtonIconControl = function ButtonIconControl(props) { + var attributes = props.attributes, + setAttributes = props.setAttributes; + var alignIcon = attributes.alignIcon, + className = attributes.className; - var setUseIcon = function setUseIcon(useIcon) { - setAttributes({ - useIcon: useIcon - }); + var classList = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(className.split(' ')); - if (!useIcon) { - setIcon(''); - } + var classes = classList.map(function (name) {}).join(' '); + var iconControlOptions = ['arrow-right-alt', 'arrow-left-alt', 'arrow-right-alt2', 'arrow-left-alt2', 'clock', 'location']; + + var findIcon = function findIcon() { + return iconControlOptions.filter(function (icon) { + return classList.includes("has-icon-".concat(icon)); + }).join(''); }; - var setIcon = function setIcon(value, event) { - if (event) { - event.preventDefault(); - } + var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["useState"])(className.includes('has-icon-')), + _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2), + useIcon = _useState2[0], + setUseIcon = _useState2[1]; - setAttributes({ - icon: value - }); - }; + var _useState3 = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["useState"])(findIcon), + _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3, 2), + icon = _useState4[0], + setIcon = _useState4[1]; - setIcon(icon); - setAttributes({ - className: (alignIcon && useIcon ? 'has-left-icon ' : 'has-right-icon ') + (icon !== '' && useIcon ? "has-icon-".concat(icon, " ") : '') - }); - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["PanelBody"], { - title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Inline Icon Control'), + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Inline Icon Control'), initialOpen: true - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["ToggleControl"], { - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Use inline icon'), + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ToggleControl"], { + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Use inline icon'), checked: useIcon, - onChange: setUseIcon - }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["ToggleControl"], { - label: alignIcon ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Icon before') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Icon after'), + onChange: function onChange() { + return setUseIcon(!useIcon); + } + }), useIcon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ToggleControl"], { + label: alignIcon ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Icon before') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Icon after'), checked: alignIcon, onChange: function onChange() { return setAttributes({ alignIcon: !alignIcon }); } - }), useIcon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_components_radio_group__WEBPACK_IMPORTED_MODULE_4__["RadioGroup"], { - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Inline Icon'), + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_components_radio_group__WEBPACK_IMPORTED_MODULE_6__["RadioGroup"], { + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Inline Icon'), + checked: icon, onClick: function onClick(event) { event.preventDefault(); - setAttributes({ - icon: event.currentTarget.value, - event: event - }); + setIcon(findIcon); }, options: iconControlOptions, initialChecked: icon, showIcons: true - })); + }))); }; /***/ }), @@ -1288,10 +1359,6 @@ var attributes = function attributes(settings, name) { if ('core/button' === name) { Object.assign(settings.attributes, { - useIcon: { - type: 'boolean', - default: true - }, alignIcon: { type: 'boolean', default: false @@ -1299,6 +1366,10 @@ var attributes = function attributes(settings, name) { icon: { type: 'string', default: 'arrow-right-alt' + }, + className: { + type: 'string', + default: 'is-style-primary has-right-icon has-icon-arrow-right-alt' } }); } @@ -1347,7 +1418,6 @@ var blockEdit = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["compose" }), Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["createHigherOrderComponent"])(function (BlockEdit) { return function (props) { if (!props.name.includes('noor')) { - console.log(props); return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(BlockEdit, props), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_components_controls__WEBPACK_IMPORTED_MODULE_4__["SmallScreenControl"], props), props.name === 'core/column' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_components_controls__WEBPACK_IMPORTED_MODULE_4__["ColumnBackgrounControl"], props), props.name === 'core/button' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_components_controls__WEBPACK_IMPORTED_MODULE_4__["ButtonIconControl"], props))); } @@ -1477,9 +1547,9 @@ registerNoorBlocks(); /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(/*! C:\Users\Christoffer\Projects\Wordpress\Plugins\gutenberg-blocks\src\index.js */"./src/index.js"); -__webpack_require__(/*! C:\Users\Christoffer\Projects\Wordpress\Plugins\gutenberg-blocks\src\styles\style.scss */"./src/styles/style.scss"); -module.exports = __webpack_require__(/*! C:\Users\Christoffer\Projects\Wordpress\Plugins\gutenberg-blocks\src\styles\editor.scss */"./src/styles/editor.scss"); +__webpack_require__(/*! /Users/christofferohman/projects/gutenberg-blocks/src/index.js */"./src/index.js"); +__webpack_require__(/*! /Users/christofferohman/projects/gutenberg-blocks/src/styles/style.scss */"./src/styles/style.scss"); +module.exports = __webpack_require__(/*! /Users/christofferohman/projects/gutenberg-blocks/src/styles/editor.scss */"./src/styles/editor.scss"); /***/ }), diff --git a/build/index.js.map b/build/index.js.map index efcc283..f8bd547 100644 --- a/build/index.js.map +++ b/build/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack:///./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./src/blocks/accordion/edit.js","webpack:///./src/blocks/accordion/index.js","webpack:///./src/blocks/accordion/save.js","webpack:///./src/blocks/bulletpoint/edit.js","webpack:///./src/blocks/bulletpoint/index.js","webpack:///./src/blocks/google-map/edit.js","webpack:///./src/blocks/google-map/index.js","webpack:///./src/components/controls.js","webpack:///./src/components/radio-group.js","webpack:///./src/filters/attributes.js","webpack:///./src/filters/blockEdit.js","webpack:///./src/filters/extraProps.js","webpack:///./src/filters/index.js","webpack:///./src/index.js","webpack:///./src/styles/editor.scss","webpack:///external {\"this\":[\"wp\",\"blockEditor\"]}","webpack:///external {\"this\":[\"wp\",\"blocks\"]}","webpack:///external {\"this\":[\"wp\",\"components\"]}","webpack:///external {\"this\":[\"wp\",\"compose\"]}","webpack:///external {\"this\":[\"wp\",\"data\"]}","webpack:///external {\"this\":[\"wp\",\"domReady\"]}","webpack:///external {\"this\":[\"wp\",\"element\"]}","webpack:///external {\"this\":[\"wp\",\"hooks\"]}","webpack:///external {\"this\":[\"wp\",\"i18n\"]}"],"names":["Edit","props","titleColor","setTitleColor","titleBackground","setTitleBackground","contentBackground","setContentBackground","attributes","setAttributes","useState","expanded","setExpanded","titleColorClass","class","undefined","titleBackgroundClass","contentBackgroundClass","titleTags","icons","expand","collapse","setTitleTag","event","titleTag","target","value","setExpandIcon","preventDefault","expandIcon","currentTarget","setCollapseIcon","collapseIcon","__","anchorContent","initialState","color","onChange","label","titleContent","name","settings","title","description","category","icon","supports","html","type","default","iconAlignment","edit","withColors","save","getColorClassName","setColor","backgroundColor","setBackgroundColor","className","align","mediaId","colorClass","backgroundColorClass","removeMedia","mediaUrl","onSelectMedia","media","id","url","blockStyle","backgroundImage","useMedia","open","media_details","width","height","source_url","mediaInput","nextAlign","compose","withSelect","select","getMedia","srcBase","googleAPIKey","options","map_secret_key","zoom","address","getaddress","Object","values","filter","line","queryString","reduce","acc","curr","i","trim","toLowerCase","getSrc","encodeURI","src","styles","paddingBottom","street","zip","city","country","SmallScreenControl","mediaControl","ColumnBackgrounControl","ButtonIconControl","useIcon","alignIcon","iconControlOptions","setUseIcon","setIcon","RadioGroup","onClick","initialChecked","showIcons","map","option","index","includes","assign","blockEdit","createHigherOrderComponent","BlockEdit","console","log","extraProps","blockType","filters","prefix","registerBlock","block","registerBlockType","registerNoorBlocks","accordion","bulletPoint","googleMap","forEach","addFilter","window","addEventListener","unregisterBlockStyle","registerBlockStyle","isDefault"],"mappings":";;;;;;;;;;;;;;;;QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA;QACA;QACA;;;;;;;;;;;;ACvJA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;;AAEA;AACA;;AAEA,mC;;;;;;;;;;;ACVA;AACA;AACA;;AAEA,iC;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA,iC;;;;;;;;;;;ACfA;AACA;AACA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,0B;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C,+BAA+B;AAC5E;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA,uC;;;;;;;;;;;AC3BA;AACA;AACA;;AAEA,kC;;;;;;;;;;;ACJA,qBAAqB,mBAAO,CAAC,iFAA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AItB,UAAAN,KAAK;AAAA,WAAID,aAAa,CAAEC,KAAF,CAAjB;AAAA,GAJiB,CAAN;AAAA,CAA3B;;AAMAO,kEAAS,CACP,0BADO,EAEP,yCAFO,EAGPV,sDAAO,CAAC/H,UAHD,CAAT;AAMAyI,kEAAS,CACP,kBADO,EAEP,sCAFO,EAGPV,sDAAO,CAACP,SAHD,CAAT;AAMAiB,kEAAS,CACP,kCADO,EAEP,kCAFO,EAGPV,sDAAO,CAACF,UAHD,CAAT;AAMAa,MAAM,CAACC,gBAAP,CAAyB,kBAAzB,EAA6C,YAAM;AAEjDC,gFAAoB,CAAC,aAAD,EAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CAApB;AAEAC,8EAAkB,CAAE,aAAF,EAAiB,CACjC;AACE7G,QAAI,EAAE,SADR;AAEEF,SAAK,EAAE,gBAFT;AAGEgH,aAAS,EAAE;AAHb,GADiC,EAMjC;AACE9G,QAAI,EAAE,WADR;AAEEF,SAAK,EAAE;AAFT,GANiC,CAAjB,CAAlB;AAWD,CAfD;AAiBAsG,kBAAkB,G;;;;;;;;;;;AC/DlB,uC;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,aAAa,4CAA4C,EAAE,I;;;;;;;;;;;ACA3D,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,qCAAqC,EAAE,I;;;;;;;;;;;ACApD,aAAa,yCAAyC,EAAE,I;;;;;;;;;;;ACAxD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,sCAAsC,EAAE,I;;;;;;;;;;;ACArD,aAAa,qCAAqC,EAAE,I","file":"index.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"index\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"style-index\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","import { __ } from '@wordpress/i18n';\r\nimport { Fragment, useState } from '@wordpress/element'\r\nimport { InspectorControls, InnerBlocks, RichText, PanelColorSettings } from '@wordpress/block-editor'\r\nimport { Dashicon, PanelBody, ToggleControl, __experimentalInputControl as InputControl } from '@wordpress/components'\r\nimport { RadioGroup } from '../../components/radio-group'\r\n\r\nexport default function Edit( props ) {\r\n\t\r\n\tconst { titleColor, setTitleColor, titleBackground, setTitleBackground, contentBackground, setContentBackground, attributes, setAttributes } = props;\r\n\t\r\n\tconst [expanded, setExpanded] = useState(false);\r\n\r\n\tconst titleColorClass = titleColor.class != undefined ? titleColor.class : '';\r\n\t\r\n\tconst titleBackgroundClass = titleBackground.class != undefined ? titleBackground.class : '';\r\n\r\n\tconst contentBackgroundClass = contentBackground.class != undefined ? contentBackground.class : '';\r\n\r\n\tconst titleTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\r\n\r\n\tconst icons = {\r\n\t\texpand: ['arrow-down', 'arrow-right', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-down-alt', 'arrow-right-alt', 'plus'],\r\n\t\tcollapse: ['arrow-up', 'arrow-up-alt2', 'minus', 'arrow-up-alt', 'no-alt']\r\n\t}\r\n\r\n\tconst setTitleTag = event => setAttributes({ titleTag: event.target.value });\r\n\r\n\tconst setExpandIcon = event => {\r\n\t\t\r\n\t\tevent.preventDefault();\r\n\t\treturn setAttributes({ expandIcon: event.currentTarget.value });\r\n\t}\r\n\r\n\tconst setCollapseIcon = event => {\r\n\t\t\r\n\t\tevent.preventDefault();\r\n\t\treturn setAttributes({ collapseIcon: event.currentTarget.value });\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t setAttributes({anchorContent})}\r\n\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t setAttributes({initialState: !attributes.initialState})}\r\n\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t
setExpanded(!expanded)} \r\n\t\t\t\taria-expanded={`${attributes.initialState || expanded}`}\r\n\t\t\t>\r\n\t\t\t\t setAttributes({titleContent})}\r\n\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n","import { __ } from '@wordpress/i18n';\r\nimport { withColors } from '@wordpress/block-editor'\r\nimport Edit from './edit';\r\nimport save from './save';\r\n\r\nexport const name = 'accordion';\r\n\r\nexport const settings = {\r\n title: __( 'Accordion', 'accordion' ),\r\n\tdescription: __( 'Accordion block', 'blocks' ),\r\n\tcategory: 'noor-collection',\r\n\ticon: 'list-view',\r\n\tsupports: {\r\n\t\thtml: false,\r\n\t},\r\n\tattributes: {\r\n\t\tanchorContent: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\ttitleContent: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'Example title...'\r\n\t\t},\r\n\t\ttitleTag: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'h4'\r\n\t\t},\r\n\t\tinitialState: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\ttitleColor: {\r\n\t\t\ttype: 'string'\r\n\t\t},\r\n\t\ttitleBackground: {\r\n\t\t\ttype: 'string'\r\n\t\t},\r\n\t\tcontentBackground: {\r\n\t\t\ttype: 'string'\r\n\t\t},\r\n\t\texpandIcon: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'arrow-down-alt2'\r\n\t\t},\r\n\t\tcollapseIcon: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'arrow-up-alt2'\r\n\t\t},\r\n\t\ticonAlignment: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'right'\r\n\t\t}\r\n\t},\r\n\tedit: withColors({\r\n\t\ttitleColor: 'color', \r\n\t\ttitleBackground: 'background-color', \r\n\t\tcontentBackground: 'background-color'\r\n\t})( Edit ),\r\n\tsave,\r\n}","import { __ } from '@wordpress/i18n';\r\nimport { InnerBlocks, RichText, getColorClassName } from '@wordpress/block-editor'\r\n\r\nexport default function save( { attributes } ) {\r\n\r\n\tconst { titleColor, titleBackground, contentBackground } = attributes;\r\n\r\n\tconst titleColorClass = titleColor != undefined ? getColorClassName('color', titleColor) : '';\r\n\r\n\tconst titleBackgroundClass = titleBackground != undefined ? getColorClassName('background-color', titleBackground) : '';\r\n\r\n\tconst contentBackgroundClass = contentBackground != undefined ? getColorClassName('background-color', contentBackground) : '';\r\n\t\r\n\treturn ( \r\n\t\t<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n}\r\n","import { __ } from '@wordpress/i18n';\r\nimport { MediaUpload, MediaUploadCheck, InspectorControls, BlockControls, BlockAlignmentToolbar, PanelColorSettings } from '@wordpress/block-editor'\r\nimport { PanelBody, Button, ResponsiveWrapper, __experimentalInputControl as InputControl, ToggleControl } from '@wordpress/components'\r\nimport { Fragment } from '@wordpress/element'\r\n\r\nexport default function Edit( props ) {\r\n\r\n const {color, setColor, backgroundColor, setBackgroundColor, attributes, setAttributes, className} = props;\r\n\r\n const { align, mediaId } = attributes;\r\n\r\n const colorClass = color.class != undefined ? color.class : '';\r\n\r\n const backgroundColorClass = backgroundColor.class != undefined ? backgroundColor.class : '';\r\n\r\n const removeMedia = () => {\r\n\t\tprops.setAttributes({\r\n\t\t\tmediaId: 0,\r\n\t\t\tmediaUrl: ''\r\n\t\t});\r\n\t}\r\n \r\n \tconst onSelectMedia = (media) => {\r\n\t\tprops.setAttributes({\r\n\t\t\tmediaId: media.id,\r\n\t\t\tmediaUrl: media.url\r\n\t\t});\r\n\t}\r\n \r\n\tconst blockStyle = {\r\n\t\tbackgroundImage: attributes.mediaUrl != '' ? 'url(\"' + attributes.mediaUrl + '\")' : 'none'\r\n\t};\r\n \r\n return (\r\n \r\n\r\n \r\n \r\n setAttributes({useMedia: !attributes.useMedia})}\r\n />\r\n {attributes.useMedia \r\n ?
\r\n \r\n (\r\n \r\n {mediaId == 0 && __( 'Choose an image' )}\r\n {props.media != undefined && \r\n \r\n \r\n \r\n }\r\n \r\n )}\r\n />\r\n \r\n
\r\n : setAttributes({ mediaInput })}\r\n />}\r\n
\r\n\r\n \r\n
\r\n \r\n \r\n {\r\n setAttributes({ align: nextAlign });\r\n }}\r\n controls={['left', 'right', 'center']}\r\n />\r\n \r\n\r\n
\r\n
\r\n {attributes.useMedia && attributes.mediaId != 0 \r\n ? \r\n :

{attributes.mediaInput}

\r\n }\r\n
\r\n
\r\n
\r\n );\r\n}","import { __ } from '@wordpress/i18n';\r\nimport { withColors } from '@wordpress/block-editor'\r\nimport { getColorClassName } from '@wordpress/block-editor'\r\nimport { compose } from '@wordpress/compose'\r\nimport { withSelect } from '@wordpress/data'\r\nimport Edit from './edit';\r\n\r\nexport const name = 'bullet-point';\r\n\r\nexport const settings = {\r\n title: __( 'Bullet point', 'accordion' ),\r\n\tdescription: __( 'Bullet point block', 'blocks' ),\r\n\tcategory: 'noor-collection',\r\n\ticon: 'marker',\r\n\tsupports: {\r\n\t\thtml: false,\r\n\t},\r\n\tattributes: {\r\n\t\tcolor: {\r\n\t\t\ttype: 'string'\r\n\t\t},\r\n\t\tbackgroundColor: {\r\n\t\t\ttype: 'string'\r\n\t\t},\r\n\t\talign: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: 'center'\r\n\t\t},\r\n\t\tuseMedia: {\r\n\t\t\ttype: 'boolean',\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\tmediaInput: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tmediaId: {\r\n\t\t\ttype: 'number',\r\n\t\t\tdefault: 0\r\n\t\t},\r\n\t\tmediaUrl: {\r\n\t\t\ttype: 'string',\r\n\t\t\tdefault: ''\r\n\t\t}\r\n\t},\r\n edit: compose(\r\n\t\twithColors({ color: 'color', backgroundColor: 'background-color' }), \r\n\t\twithSelect((select, props) => {\r\n\t\t\treturn { media: props.attributes.mediaId ? select('core').getMedia(props.attributes.mediaId) : undefined}\r\n\t\t}))( Edit ),\r\n save: ({ attributes }) => {\r\n\r\n\t\tconst {color, backgroundColor, align} = attributes;\r\n\r\n\t\tconst colorClass = color != undefined ? getColorClassName( 'color', color ) : '';\r\n\t\t\r\n\t\tconst backgroundColorClass = backgroundColor != undefined ? getColorClassName('background-color', backgroundColor) : '';\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{attributes.useMedia && attributes.mediaId != 0 \r\n\t\t\t\t\t\t? \r\n\t\t\t\t\t\t:

{attributes.mediaInput}

\r\n\t\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}","import { __ } from '@wordpress/i18n'\r\nimport { Fragment } from '@wordpress/element'\r\nimport { InspectorControls } from '@wordpress/block-editor'\r\nimport { RangeControl, PanelBody, __experimentalInputControl as InputControl } from '@wordpress/components'\r\n\r\nexport default function Edit ( props ) {\r\n\r\n const srcBase = 'https://www.google.com/maps/embed/v1/place?key=';\r\n\r\n const googleAPIKey = options.map_secret_key;\r\n\r\n const { attributes, setAttributes } = props;\r\n\r\n const { width, height, zoom, address } = attributes;\r\n \r\n const getaddress = Object.values(address).filter(line => line != '');\r\n \r\n const queryString = getaddress.reduce((acc, curr, i) => acc + ' ' + curr, '').trim().toLowerCase();\r\n\r\n const getSrc = `${srcBase + googleAPIKey}&q=${encodeURI(queryString)}&zoom=${zoom}`;\r\n\r\n setAttributes({ src: getSrc });\r\n\r\n const styles = {\r\n width: width + '%',\r\n paddingBottom: height + '%',\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n setAttributes({ width })}\r\n min={0}\r\n max={100}\r\n />\r\n setAttributes({ height })}\r\n min={0}\r\n max={100}\r\n />\r\n setAttributes({ zoom })}\r\n min={0}\r\n max={100}\r\n />\r\n \r\n\r\n \r\n \r\n setAttributes({ address: { ...address, street } })}\r\n />\r\n \r\n setAttributes({ address: { ...address, zip } })}\r\n />\r\n \r\n setAttributes({ address: { ...address, city } })}\r\n />\r\n \r\n setAttributes({ address: { ...address, country } })}\r\n />\r\n \r\n \r\n\r\n
\r\n {\r\n googleAPIKey != ''\r\n ? \r\n
\r\n )\r\n }\r\n}","import { __ } from '@wordpress/i18n'\r\nimport { PanelBody, ToggleControl } from '@wordpress/components'\r\nimport { PanelColorSettings } from '@wordpress/block-editor'\r\nimport { RadioGroup } from '../components/radio-group'\r\n\r\nexport const SmallScreenControl = ({ setAttributes, attributes: { mediaControl }}) => (\r\n \r\n setAttributes({ mediaControl })}\r\n />\r\n );\r\n\r\nexport const ColumnBackgrounControl = ({ backgroundColor, setBackgroundColor, setAttributes }) => {\r\n\r\n setAttributes({ className: backgroundColor.class != undefined ? backgroundColor.class + ' has-background' : '' });\r\n\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport const ButtonIconControl = ({ attributes: {useIcon, alignIcon, icon, className}, setAttributes }) => {\r\n\r\n const iconControlOptions = [\r\n 'arrow-right-alt',\r\n 'arrow-left-alt',\r\n 'arrow-right-alt2',\r\n 'arrow-left-alt2',\r\n 'clock',\r\n 'location'\r\n ];\r\n \r\n const setUseIcon = useIcon => {\r\n\r\n setAttributes({ useIcon });\r\n\r\n if ( ! useIcon ) {\r\n\r\n setIcon( '' );\r\n }\r\n }\r\n\r\n const setIcon = (value, event) => {\r\n\r\n if ( event ) {\r\n\r\n event.preventDefault();\r\n }\r\n\r\n setAttributes({ icon: value });\r\n }\r\n\r\n setIcon( icon );\r\n\r\n setAttributes({ className: (alignIcon && useIcon ? 'has-left-icon ' : 'has-right-icon ') + (icon !== '' && useIcon ? `has-icon-${icon} ` : '') });\r\n\r\n return (\r\n \r\n \r\n\r\n setAttributes({ alignIcon: ! alignIcon })}\r\n />\r\n\r\n {useIcon && {\r\n event.preventDefault();\r\n setAttributes({ icon: event.currentTarget.value, event });\r\n }}\r\n options={iconControlOptions} \r\n initialChecked={icon} \r\n showIcons={true} \r\n />}\r\n \r\n );\r\n}\r\n","import { ButtonGroup, Button, Dashicon } from '@wordpress/components'\r\n\r\nexport const RadioGroup = ({ onClick, options, initialChecked, showIcons, label }) => (\r\n onClick(event)})}>\r\n {label &&

{label}

}\r\n {options.map((option, index) => onClick(event)})}\r\n className={initialChecked === option && 'is-primary'}\r\n key={index}\r\n checked={initialChecked}\r\n value={option}\r\n >{showIcons ? : option})}\r\n
\r\n);","export const attributes = (settings, name) => {\r\n\r\n if ( ! name.includes( 'noor' ) ) {\r\n \r\n Object.assign(settings.attributes, {\r\n mediaControl: {\r\n type: 'boolean',\r\n default: true\r\n }\r\n });\r\n }\r\n\r\n if ( 'core/button' === name ) {\r\n\r\n Object.assign(settings.attributes, {\r\n useIcon: {\r\n type: 'boolean',\r\n default: true\r\n },\r\n alignIcon: {\r\n type: 'boolean',\r\n default: false\r\n },\r\n icon: {\r\n type: 'string',\r\n default: 'arrow-right-alt'\r\n }\r\n });\r\n }\r\n\r\n if ( 'core/column' === name ) {\r\n\r\n Object.assign(settings.attributes, {\r\n backgroundColor: {\r\n type: 'string',\r\n }\r\n })\r\n }\r\n\r\n return settings;\r\n}","import { __ } from '@wordpress/i18n'\r\nimport { createHigherOrderComponent } from '@wordpress/compose'\r\nimport { Fragment } from '@wordpress/element'\r\nimport { withColors, InspectorControls } from '@wordpress/block-editor'\r\nimport { compose } from '@wordpress/compose'\r\n\r\nimport { \r\n SmallScreenControl,\r\n ColumnBackgrounControl,\r\n ButtonIconControl\r\n} from '../components/controls'\r\n\r\nexport const blockEdit = compose(\r\n withColors({ backgroundColor: 'background-color' }),\r\n createHigherOrderComponent( BlockEdit => props => {\r\n \r\n if ( ! props.name.includes( 'noor' ) ) {\r\n console.log(props)\r\n return (\r\n \r\n \r\n \r\n \r\n {props.name === 'core/column' && }\r\n {props.name === 'core/button' && }\r\n \r\n \r\n )\r\n }\r\n\r\n return \r\n}, 'blockEdit'));","export const extraProps = ( props, blockType, attributes ) => {\r\n\r\n if ( ! attributes.mediaControl && ! blockType.name.includes('noor') ) {\r\n\r\n props.className = props.className + ' on-media-hide';\r\n }\r\n\r\n return props;\r\n}","import { attributes } from './attributes'\r\n\r\nimport { blockEdit } from './blockEdit'\r\n\r\nimport { extraProps } from './extraProps'\r\n\r\nexport const filters = {\r\n attributes,\r\n blockEdit,\r\n extraProps\r\n}\r\n","import { registerBlockType, unregisterBlockStyle, registerBlockStyle } from '@wordpress/blocks'\r\nimport domReady from '@wordpress/dom-ready'\r\n\r\nimport * as accordion from './blocks/accordion/index'\r\n\r\nimport * as bulletPoint from './blocks/bulletpoint/index'\r\n\r\nimport * as googleMap from './blocks/google-map/index'\r\n\r\nimport { addFilter } from '@wordpress/hooks'\r\n\r\nimport { filters } from './filters/index'\r\n\r\nconst prefix = 'noor/';\r\n\r\nconst registerBlock = block => {\r\n\r\n\tconst {name, settings} = block;\r\n\t\r\n\tregisterBlockType( prefix + name, settings );\r\n}\r\n\r\nconst registerNoorBlocks = () => [\r\n\taccordion,\r\n bulletPoint,\r\n googleMap\r\n].forEach( block => registerBlock( block ) );\r\n\r\naddFilter(\r\n 'blocks.registerBlockType',\r\n 'noor/gutenberg-blocks/custom-attributes',\r\n filters.attributes\r\n);\r\n\r\naddFilter( \r\n 'editor.BlockEdit', \r\n 'noor/gutenberg-blocks/custom-control', \r\n filters.blockEdit \r\n);\r\n\r\naddFilter(\r\n 'blocks.getSaveContent.extraProps',\r\n 'noor/gutenberg-blocks/extraProps',\r\n filters.extraProps\r\n);\r\n\r\nwindow.addEventListener( 'DOMContentLoaded', () => {\r\n\r\n unregisterBlockStyle('core/button', ['outline', 'fill']);\r\n\r\n registerBlockStyle( 'core/button', [\r\n {\r\n name: 'primary',\r\n label: 'Primary Button',\r\n isDefault: true\r\n },\r\n {\r\n name: 'secondary',\r\n label: 'Secondary Button'\r\n }\r\n ])\r\n})\r\n\r\nregisterNoorBlocks();","// extracted by mini-css-extract-plugin","(function() { module.exports = this[\"wp\"][\"blockEditor\"]; }());","(function() { module.exports = this[\"wp\"][\"blocks\"]; }());","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"wp\"][\"compose\"]; }());","(function() { module.exports = this[\"wp\"][\"data\"]; }());","(function() { module.exports = this[\"wp\"][\"domReady\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"wp\"][\"hooks\"]; }());","(function() { module.exports = this[\"wp\"][\"i18n\"]; }());"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./src/blocks/accordion/edit.js","webpack:///./src/blocks/accordion/index.js","webpack:///./src/blocks/accordion/save.js","webpack:///./src/blocks/bulletpoint/edit.js","webpack:///./src/blocks/bulletpoint/index.js","webpack:///./src/blocks/google-map/edit.js","webpack:///./src/blocks/google-map/index.js","webpack:///./src/components/controls.js","webpack:///./src/components/radio-group.js","webpack:///./src/filters/attributes.js","webpack:///./src/filters/blockEdit.js","webpack:///./src/filters/extraProps.js","webpack:///./src/filters/index.js","webpack:///./src/index.js","webpack:///./src/styles/editor.scss","webpack:///external {\"this\":[\"wp\",\"blockEditor\"]}","webpack:///external {\"this\":[\"wp\",\"blocks\"]}","webpack:///external {\"this\":[\"wp\",\"components\"]}","webpack:///external {\"this\":[\"wp\",\"compose\"]}","webpack:///external {\"this\":[\"wp\",\"data\"]}","webpack:///external {\"this\":[\"wp\",\"domReady\"]}","webpack:///external {\"this\":[\"wp\",\"element\"]}","webpack:///external {\"this\":[\"wp\",\"hooks\"]}","webpack:///external {\"this\":[\"wp\",\"i18n\"]}"],"names":["Edit","props","titleColor","setTitleColor","titleBackground","setTitleBackground","contentBackground","setContentBackground","attributes","setAttributes","useState","expanded","setExpanded","titleColorClass","class","undefined","titleBackgroundClass","contentBackgroundClass","titleTags","icons","expand","collapse","setTitleTag","event","titleTag","target","value","setExpandIcon","preventDefault","expandIcon","currentTarget","setCollapseIcon","collapseIcon","__","anchorContent","initialState","color","onChange","label","titleContent","name","settings","title","description","category","icon","supports","html","type","default","iconAlignment","edit","withColors","save","getColorClassName","setColor","backgroundColor","setBackgroundColor","className","align","mediaId","colorClass","backgroundColorClass","removeMedia","mediaUrl","onSelectMedia","media","id","url","blockStyle","backgroundImage","useMedia","open","media_details","width","height","source_url","mediaInput","nextAlign","compose","withSelect","select","getMedia","srcBase","googleAPIKey","options","map_secret_key","zoom","address","getaddress","Object","values","filter","line","queryString","reduce","acc","curr","i","trim","toLowerCase","getSrc","encodeURI","src","styles","paddingBottom","street","zip","city","country","SmallScreenControl","mediaControl","ColumnBackgrounControl","ButtonIconControl","alignIcon","classList","split","classes","map","join","iconControlOptions","findIcon","includes","useIcon","setUseIcon","setIcon","RadioGroup","onClick","initialChecked","showIcons","option","index","assign","blockEdit","createHigherOrderComponent","BlockEdit","extraProps","blockType","filters","prefix","registerBlock","block","registerBlockType","registerNoorBlocks","accordion","bulletPoint","googleMap","forEach","addFilter","window","addEventListener","unregisterBlockStyle","registerBlockStyle","isDefault"],"mappings":";;;;;;;;;;;;;;;;QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA;QACA;QACA;;;;;;;;;;;;ACvJA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;;AAEA;AACA;;AAEA,mC;;;;;;;;;;;ACVA;AACA;AACA;;AAEA,iC;;;;;;;;;;;ACJA,uBAAuB,mBAAO,CAAC,qFAAoB;;AAEnD;AACA;AACA;;AAEA,oC;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA,iC;;;;;;;;;;;ACfA;AACA;AACA,mBAAmB,sBAAsB;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAE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G,kBAAkB,G;;;;;;;;;;;AC/DlB,uC;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,aAAa,4CAA4C,EAAE,I;;;;;;;;;;;ACA3D,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,qCAAqC,EAAE,I;;;;;;;;;;;ACApD,aAAa,yCAAyC,EAAE,I;;;;;;;;;;;ACAxD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,sCAAsC,EAAE,I;;;;;;;;;;;ACArD,aAAa,qCAAqC,EAAE,I","file":"index.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"index\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"style-index\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","import { __ } from '@wordpress/i18n';\nimport { Fragment, useState } from '@wordpress/element'\nimport { InspectorControls, InnerBlocks, RichText, PanelColorSettings } from '@wordpress/block-editor'\nimport { Dashicon, PanelBody, ToggleControl, __experimentalInputControl as InputControl } from '@wordpress/components'\nimport { RadioGroup } from '../../components/radio-group'\n\nexport default function Edit( props ) {\n\t\n\tconst { titleColor, setTitleColor, titleBackground, setTitleBackground, contentBackground, setContentBackground, attributes, setAttributes } = props;\n\t\n\tconst [expanded, setExpanded] = useState(false);\n\n\tconst titleColorClass = titleColor.class != undefined ? titleColor.class : '';\n\t\n\tconst titleBackgroundClass = titleBackground.class != undefined ? titleBackground.class : '';\n\n\tconst contentBackgroundClass = contentBackground.class != undefined ? contentBackground.class : '';\n\n\tconst titleTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\n\tconst icons = {\n\t\texpand: ['arrow-down', 'arrow-right', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-down-alt', 'arrow-right-alt', 'plus'],\n\t\tcollapse: ['arrow-up', 'arrow-up-alt2', 'minus', 'arrow-up-alt', 'no-alt']\n\t}\n\n\tconst setTitleTag = event => setAttributes({ titleTag: event.target.value });\n\n\tconst setExpandIcon = event => {\n\t\t\n\t\tevent.preventDefault();\n\t\treturn setAttributes({ expandIcon: event.currentTarget.value });\n\t}\n\n\tconst setCollapseIcon = event => {\n\t\t\n\t\tevent.preventDefault();\n\t\treturn setAttributes({ collapseIcon: event.currentTarget.value });\n\t}\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t setAttributes({anchorContent})}\n\t\t\t\t\t/>\n\n\t\t\t\t\t\n\t\t\t\t\t setAttributes({initialState: !attributes.initialState})}\n\t\t\t\t\t/>\n\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t
setExpanded(!expanded)} \n\t\t\t\taria-expanded={`${attributes.initialState || expanded}`}\n\t\t\t>\n\t\t\t\t setAttributes({titleContent})}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n}\n","import { __ } from '@wordpress/i18n';\nimport { withColors } from '@wordpress/block-editor'\nimport Edit from './edit';\nimport save from './save';\n\nexport const name = 'accordion';\n\nexport const settings = {\n title: __( 'Accordion', 'accordion' ),\n\tdescription: __( 'Accordion block', 'blocks' ),\n\tcategory: 'noor-collection',\n\ticon: 'list-view',\n\tsupports: {\n\t\thtml: false,\n\t},\n\tattributes: {\n\t\tanchorContent: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\ttitleContent: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'Example title...'\n\t\t},\n\t\ttitleTag: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'h4'\n\t\t},\n\t\tinitialState: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: false\n\t\t},\n\t\ttitleColor: {\n\t\t\ttype: 'string'\n\t\t},\n\t\ttitleBackground: {\n\t\t\ttype: 'string'\n\t\t},\n\t\tcontentBackground: {\n\t\t\ttype: 'string'\n\t\t},\n\t\texpandIcon: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'arrow-down-alt2'\n\t\t},\n\t\tcollapseIcon: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'arrow-up-alt2'\n\t\t},\n\t\ticonAlignment: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'right'\n\t\t}\n\t},\n\tedit: withColors({\n\t\ttitleColor: 'color', \n\t\ttitleBackground: 'background-color', \n\t\tcontentBackground: 'background-color'\n\t})( Edit ),\n\tsave,\n}","import { __ } from '@wordpress/i18n';\nimport { InnerBlocks, RichText, getColorClassName } from '@wordpress/block-editor'\n\nexport default function save( { attributes } ) {\n\n\tconst { titleColor, titleBackground, contentBackground } = attributes;\n\n\tconst titleColorClass = titleColor != undefined ? getColorClassName('color', titleColor) : '';\n\n\tconst titleBackgroundClass = titleBackground != undefined ? getColorClassName('background-color', titleBackground) : '';\n\n\tconst contentBackgroundClass = contentBackground != undefined ? getColorClassName('background-color', contentBackground) : '';\n\t\n\treturn ( \n\t\t<>\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","import { __ } from '@wordpress/i18n';\nimport { MediaUpload, MediaUploadCheck, InspectorControls, BlockControls, BlockAlignmentToolbar, PanelColorSettings } from '@wordpress/block-editor'\nimport { PanelBody, Button, ResponsiveWrapper, __experimentalInputControl as InputControl, ToggleControl } from '@wordpress/components'\nimport { Fragment } from '@wordpress/element'\n\nexport default function Edit( props ) {\n\n const {color, setColor, backgroundColor, setBackgroundColor, attributes, setAttributes, className} = props;\n\n const { align, mediaId } = attributes;\n\n const colorClass = color.class != undefined ? color.class : '';\n\n const backgroundColorClass = backgroundColor.class != undefined ? backgroundColor.class : '';\n\n const removeMedia = () => {\n\t\tprops.setAttributes({\n\t\t\tmediaId: 0,\n\t\t\tmediaUrl: ''\n\t\t});\n\t}\n \n \tconst onSelectMedia = (media) => {\n\t\tprops.setAttributes({\n\t\t\tmediaId: media.id,\n\t\t\tmediaUrl: media.url\n\t\t});\n\t}\n \n\tconst blockStyle = {\n\t\tbackgroundImage: attributes.mediaUrl != '' ? 'url(\"' + attributes.mediaUrl + '\")' : 'none'\n\t};\n \n return (\n \n\n \n \n setAttributes({useMedia: !attributes.useMedia})}\n />\n {attributes.useMedia \n ?
\n \n (\n \n {mediaId == 0 && __( 'Choose an image' )}\n {props.media != undefined && \n \n \n \n }\n \n )}\n />\n \n
\n : setAttributes({ mediaInput })}\n />}\n
\n\n \n
\n \n \n {\n setAttributes({ align: nextAlign });\n }}\n controls={['left', 'right', 'center']}\n />\n \n\n
\n
\n {attributes.useMedia && attributes.mediaId != 0 \n ? \n :

{attributes.mediaInput}

\n }\n
\n
\n
\n );\n}","import { __ } from '@wordpress/i18n';\nimport { withColors } from '@wordpress/block-editor'\nimport { getColorClassName } from '@wordpress/block-editor'\nimport { compose } from '@wordpress/compose'\nimport { withSelect } from '@wordpress/data'\nimport Edit from './edit';\n\nexport const name = 'bullet-point';\n\nexport const settings = {\n title: __( 'Bullet point', 'accordion' ),\n\tdescription: __( 'Bullet point block', 'blocks' ),\n\tcategory: 'noor-collection',\n\ticon: 'marker',\n\tsupports: {\n\t\thtml: false,\n\t},\n\tattributes: {\n\t\tcolor: {\n\t\t\ttype: 'string'\n\t\t},\n\t\tbackgroundColor: {\n\t\t\ttype: 'string'\n\t\t},\n\t\talign: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'center'\n\t\t},\n\t\tuseMedia: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: false\n\t\t},\n\t\tmediaInput: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tmediaId: {\n\t\t\ttype: 'number',\n\t\t\tdefault: 0\n\t\t},\n\t\tmediaUrl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n edit: compose(\n\t\twithColors({ color: 'color', backgroundColor: 'background-color' }), \n\t\twithSelect((select, props) => {\n\t\t\treturn { media: props.attributes.mediaId ? select('core').getMedia(props.attributes.mediaId) : undefined}\n\t\t}))( Edit ),\n save: ({ attributes }) => {\n\n\t\tconst {color, backgroundColor, align} = attributes;\n\n\t\tconst colorClass = color != undefined ? getColorClassName( 'color', color ) : '';\n\t\t\n\t\tconst backgroundColorClass = backgroundColor != undefined ? getColorClassName('background-color', backgroundColor) : '';\n\n\t\treturn (\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{attributes.useMedia && attributes.mediaId != 0 \n\t\t\t\t\t\t? \n\t\t\t\t\t\t:

{attributes.mediaInput}

\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t}\n}","import { __ } from '@wordpress/i18n'\nimport { Fragment } from '@wordpress/element'\nimport { InspectorControls } from '@wordpress/block-editor'\nimport { RangeControl, PanelBody, __experimentalInputControl as InputControl } from '@wordpress/components'\n\nexport default function Edit ( props ) {\n\n const srcBase = 'https://www.google.com/maps/embed/v1/place?key=';\n\n const googleAPIKey = options.map_secret_key;\n\n const { attributes, setAttributes } = props;\n\n const { width, height, zoom, address } = attributes;\n \n const getaddress = Object.values(address).filter(line => line != '');\n \n const queryString = getaddress.reduce((acc, curr, i) => acc + ' ' + curr, '').trim().toLowerCase();\n\n const getSrc = `${srcBase + googleAPIKey}&q=${encodeURI(queryString)}&zoom=${zoom}`;\n\n setAttributes({ src: getSrc });\n\n const styles = {\n width: width + '%',\n paddingBottom: height + '%',\n };\n\n return (\n \n \n \n setAttributes({ width })}\n min={0}\n max={100}\n />\n setAttributes({ height })}\n min={0}\n max={100}\n />\n setAttributes({ zoom })}\n min={0}\n max={100}\n />\n \n\n \n \n setAttributes({ address: { ...address, street } })}\n />\n \n setAttributes({ address: { ...address, zip } })}\n />\n \n setAttributes({ address: { ...address, city } })}\n />\n \n setAttributes({ address: { ...address, country } })}\n />\n \n \n\n
\n {\n googleAPIKey != ''\n ? \n
\n )\n }\n}","import { __ } from '@wordpress/i18n'\nimport { PanelBody, ToggleControl } from '@wordpress/components'\nimport { PanelColorSettings } from '@wordpress/block-editor'\nimport { RadioGroup } from '../components/radio-group'\nimport { Fragment, useState } from '@wordpress/element'\n\nexport const SmallScreenControl = ({ setAttributes, attributes: { mediaControl }}) => (\n \n setAttributes({ mediaControl })}\n />\n );\n\nexport const ColumnBackgrounControl = ({ backgroundColor, setBackgroundColor, setAttributes }) => {\n\n setAttributes({ className: backgroundColor.class != undefined ? backgroundColor.class + ' has-background' : '' });\n\n return (\n \n );\n}\n\nexport const ButtonIconControl = props => {\n\n const { attributes, setAttributes } = props;\n\n const { alignIcon, className} = attributes;\n\n const classList = [ ...className.split(' ') ];\n\n const classes = classList.map( name => {\n\n \n }).join(' ');\n\n const iconControlOptions = [\n 'arrow-right-alt',\n 'arrow-left-alt',\n 'arrow-right-alt2',\n 'arrow-left-alt2',\n 'clock',\n 'location'\n ];\n\n const findIcon = () => iconControlOptions.filter( icon => classList.includes( `has-icon-${icon}` )).join('');\n\n const [useIcon, setUseIcon] = useState(className.includes( 'has-icon-' ));\n\n const [icon, setIcon] = useState(findIcon);\n\n return (\n \n setUseIcon( ! useIcon )}\n />\n\n {useIcon && \n \n setAttributes({ alignIcon: ! alignIcon })}\n />\n\n {\n event.preventDefault();\n setIcon(findIcon)\n }}\n options={iconControlOptions} \n initialChecked={icon} \n showIcons={true} \n />\n }\n \n );\n}\n","import { ButtonGroup, Button, Dashicon } from '@wordpress/components'\n\nexport const RadioGroup = ({ onClick, options, initialChecked, showIcons, label }) => (\n onClick(event)})}>\n {label &&

{label}

}\n {options.map((option, index) => onClick(event)})}\n className={initialChecked === option && 'is-primary'}\n key={index}\n checked={initialChecked}\n value={option}\n >{showIcons ? : option})}\n
\n);","export const attributes = (settings, name) => {\n\n if ( ! name.includes( 'noor' ) ) {\n \n Object.assign(settings.attributes, {\n mediaControl: {\n type: 'boolean',\n default: true\n }\n });\n }\n\n if ( 'core/button' === name ) {\n\n Object.assign(settings.attributes, {\n alignIcon: {\n type: 'boolean',\n default: false\n },\n icon: {\n type: 'string',\n default: 'arrow-right-alt'\n },\n className: {\n type: 'string',\n default: 'is-style-primary has-right-icon has-icon-arrow-right-alt'\n }\n });\n }\n\n if ( 'core/column' === name ) {\n\n Object.assign(settings.attributes, {\n backgroundColor: {\n type: 'string',\n }\n })\n }\n\n return settings;\n}","import { __ } from '@wordpress/i18n'\nimport { createHigherOrderComponent } from '@wordpress/compose'\nimport { Fragment } from '@wordpress/element'\nimport { withColors, InspectorControls } from '@wordpress/block-editor'\nimport { compose } from '@wordpress/compose'\n\nimport { \n SmallScreenControl,\n ColumnBackgrounControl,\n ButtonIconControl\n} from '../components/controls'\n\nexport const blockEdit = compose(\n withColors({ backgroundColor: 'background-color' }),\n createHigherOrderComponent( BlockEdit => props => {\n \n if ( ! props.name.includes( 'noor' ) ) {\n\n return (\n \n \n \n \n {props.name === 'core/column' && }\n {props.name === 'core/button' && }\n \n \n )\n }\n\n return \n}, 'blockEdit'));","export const extraProps = ( props, blockType, attributes ) => {\n\n if ( ! attributes.mediaControl && ! blockType.name.includes('noor') ) {\n\n props.className = props.className + ' on-media-hide';\n }\n\n return props;\n}","import { attributes } from './attributes'\n\nimport { blockEdit } from './blockEdit'\n\nimport { extraProps } from './extraProps'\n\nexport const filters = {\n attributes,\n blockEdit,\n extraProps\n}\n","import { registerBlockType, unregisterBlockStyle, registerBlockStyle } from '@wordpress/blocks'\nimport domReady from '@wordpress/dom-ready'\n\nimport * as accordion from './blocks/accordion/index'\n\nimport * as bulletPoint from './blocks/bulletpoint/index'\n\nimport * as googleMap from './blocks/google-map/index'\n\nimport { addFilter } from '@wordpress/hooks'\n\nimport { filters } from './filters/index'\n\nconst prefix = 'noor/';\n\nconst registerBlock = block => {\n\n\tconst {name, settings} = block;\n\t\n\tregisterBlockType( prefix + name, settings );\n}\n\nconst registerNoorBlocks = () => [\n\taccordion,\n bulletPoint,\n googleMap\n].forEach( block => registerBlock( block ) );\n\naddFilter(\n 'blocks.registerBlockType',\n 'noor/gutenberg-blocks/custom-attributes',\n filters.attributes\n);\n\naddFilter( \n 'editor.BlockEdit', \n 'noor/gutenberg-blocks/custom-control', \n filters.blockEdit \n);\n\naddFilter(\n 'blocks.getSaveContent.extraProps',\n 'noor/gutenberg-blocks/extraProps',\n filters.extraProps\n);\n\nwindow.addEventListener( 'DOMContentLoaded', () => {\n\n unregisterBlockStyle('core/button', ['outline', 'fill']);\n\n registerBlockStyle( 'core/button', [\n {\n name: 'primary',\n label: 'Primary Button',\n isDefault: true\n },\n {\n name: 'secondary',\n label: 'Secondary Button'\n }\n ])\n})\n\nregisterNoorBlocks();","// extracted by mini-css-extract-plugin","(function() { module.exports = this[\"wp\"][\"blockEditor\"]; }());","(function() { module.exports = this[\"wp\"][\"blocks\"]; }());","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"wp\"][\"compose\"]; }());","(function() { module.exports = this[\"wp\"][\"data\"]; }());","(function() { module.exports = this[\"wp\"][\"domReady\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"wp\"][\"hooks\"]; }());","(function() { module.exports = this[\"wp\"][\"i18n\"]; }());"],"sourceRoot":""} \ No newline at end of file diff --git a/src/components/controls.js b/src/components/controls.js index 7077dd6..559333a 100644 --- a/src/components/controls.js +++ b/src/components/controls.js @@ -2,6 +2,7 @@ import { __ } from '@wordpress/i18n' import { PanelBody, ToggleControl } from '@wordpress/components' import { PanelColorSettings } from '@wordpress/block-editor' import { RadioGroup } from '../components/radio-group' +import { Fragment, useState } from '@wordpress/element' export const SmallScreenControl = ({ setAttributes, attributes: { mediaControl }}) => ( { +export const ButtonIconControl = props => { + + const { attributes, setAttributes } = props; + + const { alignIcon, className} = attributes; + + const classList = [ ...className.split(' ') ]; + + const classes = classList.map( name => { + + + }).join(' '); const iconControlOptions = [ 'arrow-right-alt', @@ -44,30 +56,12 @@ export const ButtonIconControl = ({ attributes: {useIcon, alignIcon, icon, class 'clock', 'location' ]; - - const setUseIcon = useIcon => { - - setAttributes({ useIcon }); - if ( ! useIcon ) { + const findIcon = () => iconControlOptions.filter( icon => classList.includes( `has-icon-${icon}` )).join(''); - setIcon( '' ); - } - } + const [useIcon, setUseIcon] = useState(className.includes( 'has-icon-' )); - const setIcon = (value, event) => { - - if ( event ) { - - event.preventDefault(); - } - - setAttributes({ icon: value }); - } - - setIcon( icon ); - - setAttributes({ className: (alignIcon && useIcon ? 'has-left-icon ' : 'has-right-icon ') + (icon !== '' && useIcon ? `has-icon-${icon} ` : '') }); + const [icon, setIcon] = useState(findIcon); return ( - - setAttributes({ alignIcon: ! alignIcon })} + onChange={() => setUseIcon( ! useIcon )} /> - {useIcon && { - event.preventDefault(); - setAttributes({ icon: event.currentTarget.value, event }); - }} - options={iconControlOptions} - initialChecked={icon} - showIcons={true} - />} + {useIcon && + + setAttributes({ alignIcon: ! alignIcon })} + /> + + { + event.preventDefault(); + setIcon(findIcon) + }} + options={iconControlOptions} + initialChecked={icon} + showIcons={true} + /> + } ); } diff --git a/src/filters/attributes.js b/src/filters/attributes.js index e18fd73..9dee7c2 100644 --- a/src/filters/attributes.js +++ b/src/filters/attributes.js @@ -13,10 +13,6 @@ export const attributes = (settings, name) => { if ( 'core/button' === name ) { Object.assign(settings.attributes, { - useIcon: { - type: 'boolean', - default: true - }, alignIcon: { type: 'boolean', default: false @@ -24,6 +20,10 @@ export const attributes = (settings, name) => { icon: { type: 'string', default: 'arrow-right-alt' + }, + className: { + type: 'string', + default: 'is-style-primary has-right-icon has-icon-arrow-right-alt' } }); } diff --git a/src/filters/blockEdit.js b/src/filters/blockEdit.js index 87bca92..f8e10a4 100644 --- a/src/filters/blockEdit.js +++ b/src/filters/blockEdit.js @@ -15,7 +15,7 @@ export const blockEdit = compose( createHigherOrderComponent( BlockEdit => props => { if ( ! props.name.includes( 'noor' ) ) { - console.log(props) + return (