|
|
|
@ -1,629 +1 @@ |
|
|
|
/******/ (() => { // webpackBootstrap
|
|
|
|
(()=>{"use strict";var e,i={487:(e,i,n)=>{const o=window.wp.blocks,t=window.wp.i18n,s=window.wp.blockEditor,l=window.wp.element,r=window.wp.apiFetch;var a=n.n(r);const c=window.wp.components,h=window.wp.primitives,w=window.ReactJSXRuntime,v=(0,w.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w.jsx)(h.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),p=(0,w.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w.jsx)(h.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),d=(0,w.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w.jsx)(h.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),x=(0,w.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w.jsx)(h.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),u=(0,w.jsx)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w.jsx)(h.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),g=JSON.parse('{"UU":"massivedynamic/wpsi-menu"}');(0,o.registerBlockType)(g.UU,{edit:({attributes:e,setAttributes:i})=>{const[n,o]=(0,l.useState)([]),{alignment:r,orientation:h,exclude:g,openInNewTab:m}=e,j=(0,l.useMemo)((()=>{const e=[];for(const[i,o]of Object.entries(n))e.push({key:i,value:o});return e}),[n]),b=(0,l.useMemo)((()=>j.filter((e=>!g.includes(e.key)))),[j,g]);return(0,l.useEffect)((()=>{a()({path:"/wp-social-icons/items"}).then((e=>{o(e)})).catch((e=>console.error("ERR",e)))}),[]),(0,w.jsxs)("section",{...(0,s.useBlockProps)(),children:[(0,w.jsxs)(s.InspectorControls,{children:[(0,w.jsx)(c.PanelBody,{title:(0,t.__)("Active Services","wpsocialicons"),initialOpen:!0,children:j.map((e=>(0,w.jsx)(c.PanelRow,{children:(0,w.jsx)(c.ToggleControl,{label:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:`wpsi-${e.key}`,style:{fontSize:"1.2rem",verticalAlign:"middle",marginRight:"0.5rem"}})," ",(0,w.jsx)("span",{style:{verticalAlign:"middle"},children:e.key})]}),checked:!g.includes(e.key),onChange:()=>{return n=e.key,void i({exclude:g.includes(n)?g.filter((e=>e!==n)):[...g,n]});var n}})})))}),(0,w.jsx)(c.PanelBody,{title:(0,t.__)("Link Behavior","wpsocialicons"),initialOpen:!0,children:(0,w.jsx)(c.PanelRow,{children:(0,w.jsx)(c.ToggleControl,{label:(0,t.__)("Open links in new tab","wpsocialicons"),checked:m,onChange:e=>i({openInNewTab:e})})})})]}),(0,w.jsxs)(s.BlockControls,{children:[(0,w.jsxs)(c.ToolbarGroup,{children:[(0,w.jsx)(c.ToolbarButton,{isActive:"horizontal"===h,icon:v,title:(0,t.__)("align horizontal","wpsocialicons"),onClick:()=>i({orientation:"horizontal"})}),(0,w.jsx)(c.ToolbarButton,{isActive:"vertical"===h,icon:p,title:(0,t.__)("align vertical","wpsocialicons"),onClick:()=>i({orientation:"vertical"})})]}),(0,w.jsxs)(c.ToolbarGroup,{children:[(0,w.jsx)(c.ToolbarButton,{isActive:"left"===r,icon:d,title:(0,t.__)("align left","wpsocialicons"),onClick:()=>i({alignment:"left"})}),(0,w.jsx)(c.ToolbarButton,{isActive:"center"===r,icon:x,title:(0,t.__)("align center","wpsocialicons"),onClick:()=>i({alignment:"center"})}),(0,w.jsx)(c.ToolbarButton,{isActive:"right"===r,icon:u,title:(0,t.__)("align right","wpsocialicons"),onClick:()=>i({alignment:"right"})})]})]}),b.length<1?(0,w.jsx)("section",{children:"No elements"}):(0,w.jsx)("nav",{className:`wpsi-menu ${h} align-${r}`,children:b.map((e=>(0,w.jsx)("a",{href:e.value,children:(0,w.jsx)("span",{className:`wpsi wpsi-${e.key}`})})))})]})}})}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return i[e](s,s.exports,o),s.exports}o.m=i,e=[],o.O=(i,n,t,s)=>{if(!n){var l=1/0;for(h=0;h<e.length;h++){for(var[n,t,s]=e[h],r=!0,a=0;a<n.length;a++)(!1&s||l>=s)&&Object.keys(o.O).every((e=>o.O[e](n[a])))?n.splice(a--,1):(r=!1,s<l&&(l=s));if(r){e.splice(h--,1);var c=t();void 0!==c&&(i=c)}}return i}s=s||0;for(var h=e.length;h>0&&e[h-1][2]>s;h--)e[h]=e[h-1];e[h]=[n,t,s]},o.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return o.d(i,{a:i}),i},o.d=(e,i)=>{for(var n in i)o.o(i,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={57:0,350:0};o.O.j=i=>0===e[i];var i=(i,n)=>{var t,s,[l,r,a]=n,c=0;if(l.some((i=>0!==e[i]))){for(t in r)o.o(r,t)&&(o.m[t]=r[t]);if(a)var h=a(o)}for(i&&i(n);c<l.length;c++)s=l[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(h)},n=globalThis.webpackChunkwpsi_menu=globalThis.webpackChunkwpsi_menu||[];n.forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n))})();var t=o.O(void 0,[350],(()=>o(487)));t=o.O(t)})(); |
|
|
|
/******/ "use strict"; |
|
|
|
|
|
|
|
/******/ var __webpack_modules__ = ({ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@wordpress/icons/build-module/library/align-center.js": |
|
|
|
|
|
|
|
/*!****************************************************************************!*\ |
|
|
|
|
|
|
|
!*** ./node_modules/@wordpress/icons/build-module/library/align-center.js ***! |
|
|
|
|
|
|
|
\****************************************************************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
|
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
|
|
|
|
|
|
/* harmony export */ }); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* WordPress dependencies |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const alignCenter = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { |
|
|
|
|
|
|
|
xmlns: "http://www.w3.org/2000/svg", |
|
|
|
|
|
|
|
viewBox: "0 0 24 24", |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { |
|
|
|
|
|
|
|
d: "M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (alignCenter); |
|
|
|
|
|
|
|
//# sourceMappingURL=align-center.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@wordpress/icons/build-module/library/align-left.js": |
|
|
|
|
|
|
|
/*!**************************************************************************!*\ |
|
|
|
|
|
|
|
!*** ./node_modules/@wordpress/icons/build-module/library/align-left.js ***! |
|
|
|
|
|
|
|
\**************************************************************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
|
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
|
|
|
|
|
|
/* harmony export */ }); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* WordPress dependencies |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const alignLeft = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { |
|
|
|
|
|
|
|
xmlns: "http://www.w3.org/2000/svg", |
|
|
|
|
|
|
|
viewBox: "0 0 24 24", |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { |
|
|
|
|
|
|
|
d: "M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (alignLeft); |
|
|
|
|
|
|
|
//# sourceMappingURL=align-left.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@wordpress/icons/build-module/library/align-right.js": |
|
|
|
|
|
|
|
/*!***************************************************************************!*\ |
|
|
|
|
|
|
|
!*** ./node_modules/@wordpress/icons/build-module/library/align-right.js ***! |
|
|
|
|
|
|
|
\***************************************************************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
|
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
|
|
|
|
|
|
/* harmony export */ }); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* WordPress dependencies |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const alignRight = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { |
|
|
|
|
|
|
|
xmlns: "http://www.w3.org/2000/svg", |
|
|
|
|
|
|
|
viewBox: "0 0 24 24", |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { |
|
|
|
|
|
|
|
d: "M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (alignRight); |
|
|
|
|
|
|
|
//# sourceMappingURL=align-right.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@wordpress/icons/build-module/library/justify-center-vertical.js": |
|
|
|
|
|
|
|
/*!***************************************************************************************!*\ |
|
|
|
|
|
|
|
!*** ./node_modules/@wordpress/icons/build-module/library/justify-center-vertical.js ***! |
|
|
|
|
|
|
|
\***************************************************************************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
|
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
|
|
|
|
|
|
/* harmony export */ }); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* WordPress dependencies |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const justifyCenterVertical = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { |
|
|
|
|
|
|
|
xmlns: "http://www.w3.org/2000/svg", |
|
|
|
|
|
|
|
viewBox: "0 0 24 24", |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { |
|
|
|
|
|
|
|
d: "M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (justifyCenterVertical); |
|
|
|
|
|
|
|
//# sourceMappingURL=justify-center-vertical.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@wordpress/icons/build-module/library/justify-center.js": |
|
|
|
|
|
|
|
/*!******************************************************************************!*\ |
|
|
|
|
|
|
|
!*** ./node_modules/@wordpress/icons/build-module/library/justify-center.js ***! |
|
|
|
|
|
|
|
\******************************************************************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
|
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
|
|
|
|
|
|
/* harmony export */ }); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* WordPress dependencies |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const justifyCenter = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { |
|
|
|
|
|
|
|
xmlns: "http://www.w3.org/2000/svg", |
|
|
|
|
|
|
|
viewBox: "0 0 24 24", |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { |
|
|
|
|
|
|
|
d: "M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (justifyCenter); |
|
|
|
|
|
|
|
//# sourceMappingURL=justify-center.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./src/block.json": |
|
|
|
|
|
|
|
/*!************************!*\ |
|
|
|
|
|
|
|
!*** ./src/block.json ***! |
|
|
|
|
|
|
|
\************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"massivedynamic/wpsi-menu","version":"0.0.1","title":"WP Social Icons Menu","category":"widgets","icon":"networking","description":"WP Social Icons Menu Block for Gutenberg","example":{},"supports":{"html":false},"attributes":{"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"exclude":{"type":"array","default":[]},"openInNewTab":{"type":"boolean","default":false}},"textdomain":"wpsi-menu","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php"}'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./src/edit.js": |
|
|
|
|
|
|
|
/*!*********************!*\ |
|
|
|
|
|
|
|
!*** ./src/edit.js ***! |
|
|
|
|
|
|
|
\*********************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, { |
|
|
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
|
|
|
|
|
|
|
/* harmony export */ }); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__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_api_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/api-fetch */ "@wordpress/api-fetch"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__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_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/justify-center.js"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/justify-center-vertical.js"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/align-left.js"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/align-center.js"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/align-right.js"); |
|
|
|
|
|
|
|
/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editor.scss */ "./src/editor.scss"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); |
|
|
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Edit = ({ |
|
|
|
|
|
|
|
attributes, |
|
|
|
|
|
|
|
setAttributes |
|
|
|
|
|
|
|
}) => { |
|
|
|
|
|
|
|
const [items, setItems] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)([]); |
|
|
|
|
|
|
|
const { |
|
|
|
|
|
|
|
alignment, |
|
|
|
|
|
|
|
orientation, |
|
|
|
|
|
|
|
exclude, |
|
|
|
|
|
|
|
openInNewTab |
|
|
|
|
|
|
|
} = attributes; |
|
|
|
|
|
|
|
const iterator = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useMemo)(() => { |
|
|
|
|
|
|
|
const out = []; |
|
|
|
|
|
|
|
for (const [key, value] of Object.entries(items)) out.push({ |
|
|
|
|
|
|
|
key, |
|
|
|
|
|
|
|
value |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return out; |
|
|
|
|
|
|
|
}, [items]); |
|
|
|
|
|
|
|
const activeItems = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useMemo)(() => { |
|
|
|
|
|
|
|
return iterator.filter(item => !exclude.includes(item.key)); |
|
|
|
|
|
|
|
}, [iterator, exclude]); |
|
|
|
|
|
|
|
const excludeService = service => { |
|
|
|
|
|
|
|
setAttributes({ |
|
|
|
|
|
|
|
exclude: exclude.includes(service) ? exclude.filter(item => item !== service) : [...exclude, service] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(() => { |
|
|
|
|
|
|
|
_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_3___default()({ |
|
|
|
|
|
|
|
path: "/wp-social-icons/items" |
|
|
|
|
|
|
|
}).then(response => { |
|
|
|
|
|
|
|
setItems(response); |
|
|
|
|
|
|
|
}).catch(error => console.error("ERR", error)); |
|
|
|
|
|
|
|
}, []); |
|
|
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("section", { |
|
|
|
|
|
|
|
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), |
|
|
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { |
|
|
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { |
|
|
|
|
|
|
|
title: "Active Services", |
|
|
|
|
|
|
|
initialOpen: true, |
|
|
|
|
|
|
|
children: iterator.map(item => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelRow, { |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToggleControl, { |
|
|
|
|
|
|
|
label: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { |
|
|
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span", { |
|
|
|
|
|
|
|
className: `wpsi-${item.key}`, |
|
|
|
|
|
|
|
style: { |
|
|
|
|
|
|
|
fontSize: "1.2rem", |
|
|
|
|
|
|
|
verticalAlign: "middle", |
|
|
|
|
|
|
|
marginRight: "0.5rem" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span", { |
|
|
|
|
|
|
|
style: { |
|
|
|
|
|
|
|
verticalAlign: "middle" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
children: item.key |
|
|
|
|
|
|
|
})] |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
checked: !exclude.includes(item.key), |
|
|
|
|
|
|
|
onChange: () => excludeService(item.key) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
})) |
|
|
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { |
|
|
|
|
|
|
|
title: "Link Behavior", |
|
|
|
|
|
|
|
initialOpen: true, |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelRow, { |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToggleControl, { |
|
|
|
|
|
|
|
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Open links in new tab", "wpsi-menu"), |
|
|
|
|
|
|
|
checked: openInNewTab, |
|
|
|
|
|
|
|
onChange: value => setAttributes({ |
|
|
|
|
|
|
|
openInNewTab: value |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
})] |
|
|
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, { |
|
|
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarGroup, { |
|
|
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton, { |
|
|
|
|
|
|
|
isActive: orientation === "horizontal", |
|
|
|
|
|
|
|
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__["default"], |
|
|
|
|
|
|
|
onClick: () => setAttributes({ |
|
|
|
|
|
|
|
orientation: "horizontal" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton, { |
|
|
|
|
|
|
|
isActive: orientation === "vertical", |
|
|
|
|
|
|
|
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__["default"], |
|
|
|
|
|
|
|
title: "wdwdwd", |
|
|
|
|
|
|
|
onClick: () => setAttributes({ |
|
|
|
|
|
|
|
orientation: "vertical" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
})] |
|
|
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarGroup, { |
|
|
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton, { |
|
|
|
|
|
|
|
isActive: alignment === "left", |
|
|
|
|
|
|
|
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__["default"], |
|
|
|
|
|
|
|
title: "align left", |
|
|
|
|
|
|
|
onClick: () => setAttributes({ |
|
|
|
|
|
|
|
alignment: "left" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton, { |
|
|
|
|
|
|
|
isActive: alignment === "center", |
|
|
|
|
|
|
|
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__["default"], |
|
|
|
|
|
|
|
title: "align center", |
|
|
|
|
|
|
|
onClick: () => setAttributes({ |
|
|
|
|
|
|
|
alignment: "center" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton, { |
|
|
|
|
|
|
|
isActive: alignment === "right", |
|
|
|
|
|
|
|
icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__["default"], |
|
|
|
|
|
|
|
title: "align right", |
|
|
|
|
|
|
|
onClick: () => setAttributes({ |
|
|
|
|
|
|
|
alignment: "right" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
})] |
|
|
|
|
|
|
|
})] |
|
|
|
|
|
|
|
}), activeItems.length < 1 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("section", { |
|
|
|
|
|
|
|
children: "No elements" |
|
|
|
|
|
|
|
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("nav", { |
|
|
|
|
|
|
|
className: `wpsi-menu ${orientation} align-${alignment}`, |
|
|
|
|
|
|
|
children: activeItems.map(item => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("a", { |
|
|
|
|
|
|
|
href: item.value, |
|
|
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span", { |
|
|
|
|
|
|
|
className: `wpsi wpsi-${item.key}` |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
})) |
|
|
|
|
|
|
|
})] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Edit); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./src/editor.scss": |
|
|
|
|
|
|
|
/*!*************************!*\ |
|
|
|
|
|
|
|
!*** ./src/editor.scss ***! |
|
|
|
|
|
|
|
\*************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./src/index.js": |
|
|
|
|
|
|
|
/*!**********************!*\ |
|
|
|
|
|
|
|
!*** ./src/index.js ***! |
|
|
|
|
|
|
|
\**********************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); |
|
|
|
|
|
|
|
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); |
|
|
|
|
|
|
|
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ "./src/edit.js"); |
|
|
|
|
|
|
|
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block.json */ "./src/block.json"); |
|
|
|
|
|
|
|
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style.scss */ "./src/style.scss"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_2__.name, { |
|
|
|
|
|
|
|
edit: _edit__WEBPACK_IMPORTED_MODULE_1__["default"] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "./src/style.scss": |
|
|
|
|
|
|
|
/*!************************!*\ |
|
|
|
|
|
|
|
!*** ./src/style.scss ***! |
|
|
|
|
|
|
|
\************************/ |
|
|
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/api-fetch": |
|
|
|
|
|
|
|
/*!**********************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","apiFetch"] ***! |
|
|
|
|
|
|
|
\**********************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["apiFetch"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/block-editor": |
|
|
|
|
|
|
|
/*!*************************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","blockEditor"] ***! |
|
|
|
|
|
|
|
\*************************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["blockEditor"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/blocks": |
|
|
|
|
|
|
|
/*!********************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","blocks"] ***! |
|
|
|
|
|
|
|
\********************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["blocks"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/components": |
|
|
|
|
|
|
|
/*!************************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","components"] ***! |
|
|
|
|
|
|
|
\************************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["components"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/element": |
|
|
|
|
|
|
|
/*!*********************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","element"] ***! |
|
|
|
|
|
|
|
\*********************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["element"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/i18n": |
|
|
|
|
|
|
|
/*!******************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","i18n"] ***! |
|
|
|
|
|
|
|
\******************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["i18n"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "@wordpress/primitives": |
|
|
|
|
|
|
|
/*!************************************!*\ |
|
|
|
|
|
|
|
!*** external ["wp","primitives"] ***! |
|
|
|
|
|
|
|
\************************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["wp"]["primitives"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ "react/jsx-runtime": |
|
|
|
|
|
|
|
/*!**********************************!*\ |
|
|
|
|
|
|
|
!*** external "ReactJSXRuntime" ***! |
|
|
|
|
|
|
|
\**********************************/ |
|
|
|
|
|
|
|
/***/ ((module) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = window["ReactJSXRuntime"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******/ }); |
|
|
|
|
|
|
|
/************************************************************************/ |
|
|
|
|
|
|
|
/******/ // The module cache
|
|
|
|
|
|
|
|
/******/ var __webpack_module_cache__ = {}; |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // The require function
|
|
|
|
|
|
|
|
/******/ function __webpack_require__(moduleId) { |
|
|
|
|
|
|
|
/******/ // Check if module is in cache
|
|
|
|
|
|
|
|
/******/ var cachedModule = __webpack_module_cache__[moduleId]; |
|
|
|
|
|
|
|
/******/ if (cachedModule !== undefined) { |
|
|
|
|
|
|
|
/******/ return cachedModule.exports; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ // Create a new module (and put it into the cache)
|
|
|
|
|
|
|
|
/******/ var module = __webpack_module_cache__[moduleId] = { |
|
|
|
|
|
|
|
/******/ // no module.id needed
|
|
|
|
|
|
|
|
/******/ // no module.loaded needed
|
|
|
|
|
|
|
|
/******/ exports: {} |
|
|
|
|
|
|
|
/******/ }; |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // Execute the module function
|
|
|
|
|
|
|
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // Return the exports of the module
|
|
|
|
|
|
|
|
/******/ return module.exports; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
|
|
|
|
|
|
/******/ __webpack_require__.m = __webpack_modules__; |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/************************************************************************/ |
|
|
|
|
|
|
|
/******/ /* webpack/runtime/chunk loaded */ |
|
|
|
|
|
|
|
/******/ (() => { |
|
|
|
|
|
|
|
/******/ var deferred = []; |
|
|
|
|
|
|
|
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { |
|
|
|
|
|
|
|
/******/ if(chunkIds) { |
|
|
|
|
|
|
|
/******/ priority = priority || 0; |
|
|
|
|
|
|
|
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; |
|
|
|
|
|
|
|
/******/ deferred[i] = [chunkIds, fn, priority]; |
|
|
|
|
|
|
|
/******/ return; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ var notFulfilled = Infinity; |
|
|
|
|
|
|
|
/******/ for (var i = 0; i < deferred.length; i++) { |
|
|
|
|
|
|
|
/******/ var [chunkIds, fn, priority] = deferred[i]; |
|
|
|
|
|
|
|
/******/ var fulfilled = true; |
|
|
|
|
|
|
|
/******/ for (var j = 0; j < chunkIds.length; j++) { |
|
|
|
|
|
|
|
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { |
|
|
|
|
|
|
|
/******/ chunkIds.splice(j--, 1); |
|
|
|
|
|
|
|
/******/ } else { |
|
|
|
|
|
|
|
/******/ fulfilled = false; |
|
|
|
|
|
|
|
/******/ if(priority < notFulfilled) notFulfilled = priority; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ if(fulfilled) { |
|
|
|
|
|
|
|
/******/ deferred.splice(i--, 1) |
|
|
|
|
|
|
|
/******/ var r = fn(); |
|
|
|
|
|
|
|
/******/ if (r !== undefined) result = r; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ return result; |
|
|
|
|
|
|
|
/******/ }; |
|
|
|
|
|
|
|
/******/ })(); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ /* webpack/runtime/compat get default export */ |
|
|
|
|
|
|
|
/******/ (() => { |
|
|
|
|
|
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
|
|
|
|
|
|
/******/ __webpack_require__.n = (module) => { |
|
|
|
|
|
|
|
/******/ var getter = module && module.__esModule ? |
|
|
|
|
|
|
|
/******/ () => (module['default']) : |
|
|
|
|
|
|
|
/******/ () => (module); |
|
|
|
|
|
|
|
/******/ __webpack_require__.d(getter, { a: getter }); |
|
|
|
|
|
|
|
/******/ return getter; |
|
|
|
|
|
|
|
/******/ }; |
|
|
|
|
|
|
|
/******/ })(); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ /* webpack/runtime/define property getters */ |
|
|
|
|
|
|
|
/******/ (() => { |
|
|
|
|
|
|
|
/******/ // define getter functions for harmony exports
|
|
|
|
|
|
|
|
/******/ __webpack_require__.d = (exports, definition) => { |
|
|
|
|
|
|
|
/******/ for(var key in definition) { |
|
|
|
|
|
|
|
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
|
|
|
|
|
|
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ }; |
|
|
|
|
|
|
|
/******/ })(); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */ |
|
|
|
|
|
|
|
/******/ (() => { |
|
|
|
|
|
|
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) |
|
|
|
|
|
|
|
/******/ })(); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ /* webpack/runtime/make namespace object */ |
|
|
|
|
|
|
|
/******/ (() => { |
|
|
|
|
|
|
|
/******/ // define __esModule on exports
|
|
|
|
|
|
|
|
/******/ __webpack_require__.r = (exports) => { |
|
|
|
|
|
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
|
|
|
|
|
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
|
|
|
|
|
|
|
/******/ }; |
|
|
|
|
|
|
|
/******/ })(); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ /* webpack/runtime/jsonp chunk loading */ |
|
|
|
|
|
|
|
/******/ (() => { |
|
|
|
|
|
|
|
/******/ // no baseURI
|
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // object to store loaded and loading chunks
|
|
|
|
|
|
|
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
|
|
|
|
|
|
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
|
|
|
|
|
|
/******/ var installedChunks = { |
|
|
|
|
|
|
|
/******/ "index": 0, |
|
|
|
|
|
|
|
/******/ "./style-index": 0 |
|
|
|
|
|
|
|
/******/ }; |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // no chunk on demand loading
|
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // no prefetching
|
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // no preloaded
|
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // no HMR
|
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // no HMR manifest
|
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // install a JSONP callback for chunk loading
|
|
|
|
|
|
|
|
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { |
|
|
|
|
|
|
|
/******/ var [chunkIds, moreModules, runtime] = data; |
|
|
|
|
|
|
|
/******/ // add "moreModules" to the modules object,
|
|
|
|
|
|
|
|
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
|
|
|
|
|
|
/******/ var moduleId, chunkId, i = 0; |
|
|
|
|
|
|
|
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { |
|
|
|
|
|
|
|
/******/ for(moduleId in moreModules) { |
|
|
|
|
|
|
|
/******/ if(__webpack_require__.o(moreModules, moduleId)) { |
|
|
|
|
|
|
|
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ if(runtime) var result = runtime(__webpack_require__); |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); |
|
|
|
|
|
|
|
/******/ for(;i < chunkIds.length; i++) { |
|
|
|
|
|
|
|
/******/ chunkId = chunkIds[i]; |
|
|
|
|
|
|
|
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { |
|
|
|
|
|
|
|
/******/ installedChunks[chunkId][0](); |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ installedChunks[chunkId] = 0; |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/ return __webpack_require__.O(result); |
|
|
|
|
|
|
|
/******/ } |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ var chunkLoadingGlobal = globalThis["webpackChunkwpsi_menu"] = globalThis["webpackChunkwpsi_menu"] || []; |
|
|
|
|
|
|
|
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); |
|
|
|
|
|
|
|
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); |
|
|
|
|
|
|
|
/******/ })(); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/************************************************************************/ |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ // startup
|
|
|
|
|
|
|
|
/******/ // Load entry module and return exports
|
|
|
|
|
|
|
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
|
|
|
|
|
|
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["./style-index"], () => (__webpack_require__("./src/index.js"))) |
|
|
|
|
|
|
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); |
|
|
|
|
|
|
|
/******/
|
|
|
|
|
|
|
|
/******/ })() |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
|