1 this["wp"] = this["wp"] || {}; this["wp"]["primitives"] = |
1 /******/ (function() { // webpackBootstrap |
2 /******/ (function(modules) { // webpackBootstrap |
2 /******/ var __webpack_modules__ = ({ |
3 /******/ // The module cache |
3 |
4 /******/ var installedModules = {}; |
4 /***/ 4403: |
5 /******/ |
|
6 /******/ // The require function |
|
7 /******/ function __webpack_require__(moduleId) { |
|
8 /******/ |
|
9 /******/ // Check if module is in cache |
|
10 /******/ if(installedModules[moduleId]) { |
|
11 /******/ return installedModules[moduleId].exports; |
|
12 /******/ } |
|
13 /******/ // Create a new module (and put it into the cache) |
|
14 /******/ var module = installedModules[moduleId] = { |
|
15 /******/ i: moduleId, |
|
16 /******/ l: false, |
|
17 /******/ exports: {} |
|
18 /******/ }; |
|
19 /******/ |
|
20 /******/ // Execute the module function |
|
21 /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
|
22 /******/ |
|
23 /******/ // Flag the module as loaded |
|
24 /******/ module.l = true; |
|
25 /******/ |
|
26 /******/ // Return the exports of the module |
|
27 /******/ return module.exports; |
|
28 /******/ } |
|
29 /******/ |
|
30 /******/ |
|
31 /******/ // expose the modules object (__webpack_modules__) |
|
32 /******/ __webpack_require__.m = modules; |
|
33 /******/ |
|
34 /******/ // expose the module cache |
|
35 /******/ __webpack_require__.c = installedModules; |
|
36 /******/ |
|
37 /******/ // define getter function for harmony exports |
|
38 /******/ __webpack_require__.d = function(exports, name, getter) { |
|
39 /******/ if(!__webpack_require__.o(exports, name)) { |
|
40 /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
|
41 /******/ } |
|
42 /******/ }; |
|
43 /******/ |
|
44 /******/ // define __esModule on exports |
|
45 /******/ __webpack_require__.r = function(exports) { |
|
46 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
|
47 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
|
48 /******/ } |
|
49 /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
|
50 /******/ }; |
|
51 /******/ |
|
52 /******/ // create a fake namespace object |
|
53 /******/ // mode & 1: value is a module id, require it |
|
54 /******/ // mode & 2: merge all properties of value into the ns |
|
55 /******/ // mode & 4: return value when already ns object |
|
56 /******/ // mode & 8|1: behave like require |
|
57 /******/ __webpack_require__.t = function(value, mode) { |
|
58 /******/ if(mode & 1) value = __webpack_require__(value); |
|
59 /******/ if(mode & 8) return value; |
|
60 /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
|
61 /******/ var ns = Object.create(null); |
|
62 /******/ __webpack_require__.r(ns); |
|
63 /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
|
64 /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
|
65 /******/ return ns; |
|
66 /******/ }; |
|
67 /******/ |
|
68 /******/ // getDefaultExport function for compatibility with non-harmony modules |
|
69 /******/ __webpack_require__.n = function(module) { |
|
70 /******/ var getter = module && module.__esModule ? |
|
71 /******/ function getDefault() { return module['default']; } : |
|
72 /******/ function getModuleExports() { return module; }; |
|
73 /******/ __webpack_require__.d(getter, 'a', getter); |
|
74 /******/ return getter; |
|
75 /******/ }; |
|
76 /******/ |
|
77 /******/ // Object.prototype.hasOwnProperty.call |
|
78 /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; |
|
79 /******/ |
|
80 /******/ // __webpack_public_path__ |
|
81 /******/ __webpack_require__.p = ""; |
|
82 /******/ |
|
83 /******/ |
|
84 /******/ // Load entry module and return exports |
|
85 /******/ return __webpack_require__(__webpack_require__.s = "G8AQ"); |
|
86 /******/ }) |
|
87 /************************************************************************/ |
|
88 /******/ ({ |
|
89 |
|
90 /***/ "G8AQ": |
|
91 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
92 |
|
93 "use strict"; |
|
94 // ESM COMPAT FLAG |
|
95 __webpack_require__.r(__webpack_exports__); |
|
96 |
|
97 // EXPORTS |
|
98 __webpack_require__.d(__webpack_exports__, "Circle", function() { return /* reexport */ Circle; }); |
|
99 __webpack_require__.d(__webpack_exports__, "G", function() { return /* reexport */ G; }); |
|
100 __webpack_require__.d(__webpack_exports__, "Path", function() { return /* reexport */ Path; }); |
|
101 __webpack_require__.d(__webpack_exports__, "Polygon", function() { return /* reexport */ Polygon; }); |
|
102 __webpack_require__.d(__webpack_exports__, "Rect", function() { return /* reexport */ Rect; }); |
|
103 __webpack_require__.d(__webpack_exports__, "Defs", function() { return /* reexport */ Defs; }); |
|
104 __webpack_require__.d(__webpack_exports__, "RadialGradient", function() { return /* reexport */ RadialGradient; }); |
|
105 __webpack_require__.d(__webpack_exports__, "LinearGradient", function() { return /* reexport */ LinearGradient; }); |
|
106 __webpack_require__.d(__webpack_exports__, "Stop", function() { return /* reexport */ Stop; }); |
|
107 __webpack_require__.d(__webpack_exports__, "SVG", function() { return /* reexport */ SVG; }); |
|
108 __webpack_require__.d(__webpack_exports__, "HorizontalRule", function() { return /* reexport */ HorizontalRule; }); |
|
109 __webpack_require__.d(__webpack_exports__, "BlockQuotation", function() { return /* reexport */ BlockQuotation; }); |
|
110 __webpack_require__.d(__webpack_exports__, "View", function() { return /* reexport */ View; }); |
|
111 |
|
112 // EXTERNAL MODULE: ./node_modules/classnames/index.js |
|
113 var classnames = __webpack_require__("TSYQ"); |
|
114 var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); |
|
115 |
|
116 // EXTERNAL MODULE: external ["wp","element"] |
|
117 var external_wp_element_ = __webpack_require__("GRId"); |
|
118 |
|
119 // CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js |
|
120 /** |
|
121 * External dependencies |
|
122 */ |
|
123 |
|
124 /** |
|
125 * WordPress dependencies |
|
126 */ |
|
127 |
|
128 |
|
129 /** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */ |
|
130 |
|
131 /** |
|
132 * @param {import('react').ComponentPropsWithoutRef<'circle'>} props |
|
133 * |
|
134 * @return {JSX.Element} Circle component |
|
135 */ |
|
136 |
|
137 const Circle = props => Object(external_wp_element_["createElement"])('circle', props); |
|
138 /** |
|
139 * @param {import('react').ComponentPropsWithoutRef<'g'>} props |
|
140 * |
|
141 * @return {JSX.Element} G component |
|
142 */ |
|
143 |
|
144 const G = props => Object(external_wp_element_["createElement"])('g', props); |
|
145 /** |
|
146 * @param {import('react').ComponentPropsWithoutRef<'path'>} props |
|
147 * |
|
148 * @return {JSX.Element} Path component |
|
149 */ |
|
150 |
|
151 const Path = props => Object(external_wp_element_["createElement"])('path', props); |
|
152 /** |
|
153 * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props |
|
154 * |
|
155 * @return {JSX.Element} Polygon component |
|
156 */ |
|
157 |
|
158 const Polygon = props => Object(external_wp_element_["createElement"])('polygon', props); |
|
159 /** |
|
160 * @param {import('react').ComponentPropsWithoutRef<'rect'>} props |
|
161 * |
|
162 * @return {JSX.Element} Rect component |
|
163 */ |
|
164 |
|
165 const Rect = props => Object(external_wp_element_["createElement"])('rect', props); |
|
166 /** |
|
167 * @param {import('react').ComponentPropsWithoutRef<'defs'>} props |
|
168 * |
|
169 * @return {JSX.Element} Defs component |
|
170 */ |
|
171 |
|
172 const Defs = props => Object(external_wp_element_["createElement"])('defs', props); |
|
173 /** |
|
174 * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props |
|
175 * |
|
176 * @return {JSX.Element} RadialGradient component |
|
177 */ |
|
178 |
|
179 const RadialGradient = props => Object(external_wp_element_["createElement"])('radialGradient', props); |
|
180 /** |
|
181 * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props |
|
182 * |
|
183 * @return {JSX.Element} LinearGradient component |
|
184 */ |
|
185 |
|
186 const LinearGradient = props => Object(external_wp_element_["createElement"])('linearGradient', props); |
|
187 /** |
|
188 * @param {import('react').ComponentPropsWithoutRef<'stop'>} props |
|
189 * |
|
190 * @return {JSX.Element} Stop component |
|
191 */ |
|
192 |
|
193 const Stop = props => Object(external_wp_element_["createElement"])('stop', props); |
|
194 /** |
|
195 * |
|
196 * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed. |
|
197 * Other props will be passed through to svg component. |
|
198 * |
|
199 * @return {JSX.Element} Stop component |
|
200 */ |
|
201 |
|
202 const SVG = ({ |
|
203 className, |
|
204 isPressed, |
|
205 ...props |
|
206 }) => { |
|
207 const appliedProps = { ...props, |
|
208 className: classnames_default()(className, { |
|
209 'is-pressed': isPressed |
|
210 }) || undefined, |
|
211 role: 'img', |
|
212 'aria-hidden': true, |
|
213 focusable: false |
|
214 }; // Disable reason: We need to have a way to render HTML tag for web. |
|
215 // eslint-disable-next-line react/forbid-elements |
|
216 |
|
217 return Object(external_wp_element_["createElement"])("svg", appliedProps); |
|
218 }; |
|
219 |
|
220 // CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/horizontal-rule/index.js |
|
221 const HorizontalRule = 'hr'; |
|
222 |
|
223 // CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/block-quotation/index.js |
|
224 const BlockQuotation = 'blockquote'; |
|
225 |
|
226 // CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/view/index.js |
|
227 const View = 'div'; |
|
228 |
|
229 // CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/index.js |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 /***/ }), |
|
237 |
|
238 /***/ "GRId": |
|
239 /***/ (function(module, exports) { |
5 /***/ (function(module, exports) { |
240 |
|
241 (function() { module.exports = window["wp"]["element"]; }()); |
|
242 |
|
243 /***/ }), |
|
244 |
|
245 /***/ "TSYQ": |
|
246 /***/ (function(module, exports, __webpack_require__) { |
|
247 |
6 |
248 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! |
7 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! |
249 Copyright (c) 2018 Jed Watson. |
8 Copyright (c) 2018 Jed Watson. |
250 Licensed under the MIT License (MIT), see |
9 Licensed under the MIT License (MIT), see |
251 http://jedwatson.github.io/classnames |
10 http://jedwatson.github.io/classnames |
297 } else if (true) { |
56 } else if (true) { |
298 // register as 'classnames', consistent with npm package name |
57 // register as 'classnames', consistent with npm package name |
299 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { |
58 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { |
300 return classNames; |
59 return classNames; |
301 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), |
60 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), |
302 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); |
61 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); |
303 } else {} |
62 } else {} |
304 }()); |
63 }()); |
305 |
64 |
306 |
65 |
307 /***/ }) |
66 /***/ }) |
308 |
67 |
309 /******/ }); |
68 /******/ }); |
|
69 /************************************************************************/ |
|
70 /******/ // The module cache |
|
71 /******/ var __webpack_module_cache__ = {}; |
|
72 /******/ |
|
73 /******/ // The require function |
|
74 /******/ function __webpack_require__(moduleId) { |
|
75 /******/ // Check if module is in cache |
|
76 /******/ var cachedModule = __webpack_module_cache__[moduleId]; |
|
77 /******/ if (cachedModule !== undefined) { |
|
78 /******/ return cachedModule.exports; |
|
79 /******/ } |
|
80 /******/ // Create a new module (and put it into the cache) |
|
81 /******/ var module = __webpack_module_cache__[moduleId] = { |
|
82 /******/ // no module.id needed |
|
83 /******/ // no module.loaded needed |
|
84 /******/ exports: {} |
|
85 /******/ }; |
|
86 /******/ |
|
87 /******/ // Execute the module function |
|
88 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
|
89 /******/ |
|
90 /******/ // Return the exports of the module |
|
91 /******/ return module.exports; |
|
92 /******/ } |
|
93 /******/ |
|
94 /************************************************************************/ |
|
95 /******/ /* webpack/runtime/compat get default export */ |
|
96 /******/ !function() { |
|
97 /******/ // getDefaultExport function for compatibility with non-harmony modules |
|
98 /******/ __webpack_require__.n = function(module) { |
|
99 /******/ var getter = module && module.__esModule ? |
|
100 /******/ function() { return module['default']; } : |
|
101 /******/ function() { return module; }; |
|
102 /******/ __webpack_require__.d(getter, { a: getter }); |
|
103 /******/ return getter; |
|
104 /******/ }; |
|
105 /******/ }(); |
|
106 /******/ |
|
107 /******/ /* webpack/runtime/define property getters */ |
|
108 /******/ !function() { |
|
109 /******/ // define getter functions for harmony exports |
|
110 /******/ __webpack_require__.d = function(exports, definition) { |
|
111 /******/ for(var key in definition) { |
|
112 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
|
113 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
|
114 /******/ } |
|
115 /******/ } |
|
116 /******/ }; |
|
117 /******/ }(); |
|
118 /******/ |
|
119 /******/ /* webpack/runtime/hasOwnProperty shorthand */ |
|
120 /******/ !function() { |
|
121 /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } |
|
122 /******/ }(); |
|
123 /******/ |
|
124 /******/ /* webpack/runtime/make namespace object */ |
|
125 /******/ !function() { |
|
126 /******/ // define __esModule on exports |
|
127 /******/ __webpack_require__.r = function(exports) { |
|
128 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
|
129 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
|
130 /******/ } |
|
131 /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
|
132 /******/ }; |
|
133 /******/ }(); |
|
134 /******/ |
|
135 /************************************************************************/ |
|
136 var __webpack_exports__ = {}; |
|
137 // This entry need to be wrapped in an IIFE because it need to be in strict mode. |
|
138 !function() { |
|
139 "use strict"; |
|
140 // ESM COMPAT FLAG |
|
141 __webpack_require__.r(__webpack_exports__); |
|
142 |
|
143 // EXPORTS |
|
144 __webpack_require__.d(__webpack_exports__, { |
|
145 "BlockQuotation": function() { return /* reexport */ BlockQuotation; }, |
|
146 "Circle": function() { return /* reexport */ Circle; }, |
|
147 "Defs": function() { return /* reexport */ Defs; }, |
|
148 "G": function() { return /* reexport */ G; }, |
|
149 "HorizontalRule": function() { return /* reexport */ HorizontalRule; }, |
|
150 "LinearGradient": function() { return /* reexport */ LinearGradient; }, |
|
151 "Path": function() { return /* reexport */ Path; }, |
|
152 "Polygon": function() { return /* reexport */ Polygon; }, |
|
153 "RadialGradient": function() { return /* reexport */ RadialGradient; }, |
|
154 "Rect": function() { return /* reexport */ Rect; }, |
|
155 "SVG": function() { return /* reexport */ SVG; }, |
|
156 "Stop": function() { return /* reexport */ Stop; }, |
|
157 "View": function() { return /* reexport */ View; } |
|
158 }); |
|
159 |
|
160 // EXTERNAL MODULE: ./node_modules/classnames/index.js |
|
161 var classnames = __webpack_require__(4403); |
|
162 var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); |
|
163 ;// CONCATENATED MODULE: external ["wp","element"] |
|
164 var external_wp_element_namespaceObject = window["wp"]["element"]; |
|
165 ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js |
|
166 /** |
|
167 * External dependencies |
|
168 */ |
|
169 |
|
170 /** |
|
171 * WordPress dependencies |
|
172 */ |
|
173 |
|
174 |
|
175 /** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */ |
|
176 |
|
177 /** |
|
178 * @param {import('react').ComponentPropsWithoutRef<'circle'>} props |
|
179 * |
|
180 * @return {JSX.Element} Circle component |
|
181 */ |
|
182 |
|
183 const Circle = props => (0,external_wp_element_namespaceObject.createElement)('circle', props); |
|
184 /** |
|
185 * @param {import('react').ComponentPropsWithoutRef<'g'>} props |
|
186 * |
|
187 * @return {JSX.Element} G component |
|
188 */ |
|
189 |
|
190 const G = props => (0,external_wp_element_namespaceObject.createElement)('g', props); |
|
191 /** |
|
192 * @param {import('react').ComponentPropsWithoutRef<'path'>} props |
|
193 * |
|
194 * @return {JSX.Element} Path component |
|
195 */ |
|
196 |
|
197 const Path = props => (0,external_wp_element_namespaceObject.createElement)('path', props); |
|
198 /** |
|
199 * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props |
|
200 * |
|
201 * @return {JSX.Element} Polygon component |
|
202 */ |
|
203 |
|
204 const Polygon = props => (0,external_wp_element_namespaceObject.createElement)('polygon', props); |
|
205 /** |
|
206 * @param {import('react').ComponentPropsWithoutRef<'rect'>} props |
|
207 * |
|
208 * @return {JSX.Element} Rect component |
|
209 */ |
|
210 |
|
211 const Rect = props => (0,external_wp_element_namespaceObject.createElement)('rect', props); |
|
212 /** |
|
213 * @param {import('react').ComponentPropsWithoutRef<'defs'>} props |
|
214 * |
|
215 * @return {JSX.Element} Defs component |
|
216 */ |
|
217 |
|
218 const Defs = props => (0,external_wp_element_namespaceObject.createElement)('defs', props); |
|
219 /** |
|
220 * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props |
|
221 * |
|
222 * @return {JSX.Element} RadialGradient component |
|
223 */ |
|
224 |
|
225 const RadialGradient = props => (0,external_wp_element_namespaceObject.createElement)('radialGradient', props); |
|
226 /** |
|
227 * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props |
|
228 * |
|
229 * @return {JSX.Element} LinearGradient component |
|
230 */ |
|
231 |
|
232 const LinearGradient = props => (0,external_wp_element_namespaceObject.createElement)('linearGradient', props); |
|
233 /** |
|
234 * @param {import('react').ComponentPropsWithoutRef<'stop'>} props |
|
235 * |
|
236 * @return {JSX.Element} Stop component |
|
237 */ |
|
238 |
|
239 const Stop = props => (0,external_wp_element_namespaceObject.createElement)('stop', props); |
|
240 /** |
|
241 * |
|
242 * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed. |
|
243 * Other props will be passed through to svg component. |
|
244 * |
|
245 * @return {JSX.Element} Stop component |
|
246 */ |
|
247 |
|
248 const SVG = _ref => { |
|
249 let { |
|
250 className, |
|
251 isPressed, |
|
252 ...props |
|
253 } = _ref; |
|
254 const appliedProps = { ...props, |
|
255 className: classnames_default()(className, { |
|
256 'is-pressed': isPressed |
|
257 }) || undefined, |
|
258 'aria-hidden': true, |
|
259 focusable: false |
|
260 }; // Disable reason: We need to have a way to render HTML tag for web. |
|
261 // eslint-disable-next-line react/forbid-elements |
|
262 |
|
263 return (0,external_wp_element_namespaceObject.createElement)("svg", appliedProps); |
|
264 }; |
|
265 |
|
266 ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/horizontal-rule/index.js |
|
267 const HorizontalRule = 'hr'; |
|
268 |
|
269 ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/block-quotation/index.js |
|
270 const BlockQuotation = 'blockquote'; |
|
271 |
|
272 ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/view/index.js |
|
273 const View = 'div'; |
|
274 |
|
275 ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/index.js |
|
276 |
|
277 |
|
278 |
|
279 |
|
280 |
|
281 }(); |
|
282 (window.wp = window.wp || {}).primitives = __webpack_exports__; |
|
283 /******/ })() |
|
284 ; |