Crowdsignal Forms - Version 1.5.13

Version Description

Download this release

Release Info

Developer donncha
Plugin Icon wp plugin Crowdsignal Forms
Version 1.5.13
Comparing to
See all releases

Code changes from version 1.5.12 to 1.5.13

README.TXT CHANGED
@@ -4,7 +4,7 @@ Tags: polls, forms, surveys, gutenberg, block
4
  Requires at least: 5.0
5
  Requires PHP: 5.6.20
6
  Tested up to: 5.6
7
- Stable tag: 1.5.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,6 +67,11 @@ Compare our [simple and affordable plans](https://crowdsignal.com/pricing/) or t
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
70
  = 1.5.11 =
71
  * Default polls to "Button" style (#189)
72
 
@@ -144,8 +149,8 @@ Compare our [simple and affordable plans](https://crowdsignal.com/pricing/) or t
144
 
145
  == Upgrade Notice ==
146
 
147
- = 1.5.7 =
148
- Bugfixes and typos. v1.5.7 addresses an issue with newer version of Gutenberg preventing Feedback Button to render properly on the editor.
149
 
150
  = 0.9 =
151
  Initial release
4
  Requires at least: 5.0
5
  Requires PHP: 5.6.20
6
  Tested up to: 5.6
7
+ Stable tag: 1.5.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Changelog ==
69
 
70
+ = 1.5.12 =
71
+ * Improve broken connection handling (#193)
72
+ * Fix multiple choice poll check position (#192)
73
+ * Rework backend code (#191)
74
+
75
  = 1.5.11 =
76
  * Default polls to "Button" style (#189)
77
 
149
 
150
  == Upgrade Notice ==
151
 
152
+ = 1.5.12 =
153
+ Improve broken connection handling, fix multiple choice poll check styling. Bugs and fixes on backend code.
154
 
155
  = 0.9 =
156
  Initial release
build/apifetch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a67b4035c2c5ab289ad85a0ea4436959');
1
+ <?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '84a3863c212dad335f8cfa9a08255235');
build/apifetch.js CHANGED
@@ -1 +1,246 @@
1
- window.crowdsignalForms=window.crowdsignalForms||{},window.crowdsignalForms.apiFetch=function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=12)}([function(r,e){!function(){r.exports=this.regeneratorRuntime}()},function(r,e){r.exports=function(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}},function(r,e,t){var n=t(11);r.exports=function(r,e){if(null==r)return{};var t,o,i=n(r,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(o=0;o<u.length;o++)t=u[o],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(r,t)&&(i[t]=r[t])}return i}},function(r,e){function t(r,e,t,n,o,i,u){try{var c=r[i](u),a=c.value}catch(f){return void t(f)}c.done?e(a):Promise.resolve(a).then(n,o)}r.exports=function(r){return function(){var e=this,n=arguments;return new Promise((function(o,i){var u=r.apply(e,n);function c(r){t(u,o,i,c,a,"next",r)}function a(r){t(u,o,i,c,a,"throw",r)}c(void 0)}))}}},function(r,e){!function(){r.exports=this.lodash}()},function(r,e,t){var n=t(6),o=t(7),i=t(8),u=t(10);r.exports=function(r){return n(r)||o(r)||i(r)||u()}},function(r,e){r.exports=function(r){if(Array.isArray(r))return r}},function(r,e){r.exports=function(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}},function(r,e,t){var n=t(9);r.exports=function(r,e){if(r){if("string"==typeof r)return n(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(r,e):void 0}}},function(r,e){r.exports=function(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}},function(r,e){r.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(r,e){r.exports=function(r,e){if(null==r)return{};var t,n,o={},i=Object.keys(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}},function(r,e,t){"use strict";t.r(e);var n=t(0),o=t.n(n),i=t(1),u=t.n(i),c=t(5),a=t.n(c),f=t(2),s=t.n(f),p=t(3),l=t.n(p),d=t(4);function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function y(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?b(Object(t),!0).forEach((function(e){u()(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}function O(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){u()(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var m=[],v=function(){var r=l()(o.a.mark((function r(e,t){var n,i,u,c,f,p;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.path,i=s()(e,["path"]),u=a()(t),c=u[0],f=u.slice(1),c){r.next=7;break}return r.next=5,window.fetch(n,i);case 5:return p=r.sent,r.abrupt("return",p.json());case 7:return r.abrupt("return",c(w({path:n},i),(function(r){return v(r,f)})));case 8:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}(),h=function(){var r=l()(o.a.mark((function r(e){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",v(e,m));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();h.use=function(r){return m.push(r)},h.disable=function(r){var e=Object(d.findIndex)(m,(function(e){return e===r}));e&&m.splice(e,1)},h.middleware={defaultHeaders:function(r,e){return e(y({},r,{headers:y({},r.headers||{},{Accept:"application/json, */*;q=0.1"})}))},formatURL:function(r,e){return 0===r.path.indexOf("/crowdsignal-forms/v1")&&(r.path="/wp-json".concat(r.path)),e(r)},formatRequest:function(r,e){var t=r.data,n=s()(r,["data"]);return e(t?y({},n,{headers:y({},n.headers,{"Content-Type":"application/json"}),body:JSON.stringify(t)}):n)},wpAuth:function(r,e){return window._crowdsignalFormsWpNonce?e(y({credentials:"same-origin",mode:"same-origin"},r,{headers:y({"X-WP-Nonce":window._crowdsignalFormsWpNonce},r.headers)})):e(r)}},Object(d.forEach)(h.middleware,h.use);e.default=h}]).default;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ window["crowdsignalForms"] = window["crowdsignalForms"] || {}; window["crowdsignalForms"]["apiFetch"] =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
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 = "./client/apifetch/index.js");
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ "./client/apifetch/index.js":
91
+ /*!**********************************!*\
92
+ !*** ./client/apifetch/index.js ***!
93
+ \**********************************/
94
+ /*! exports provided: default */
95
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
96
+
97
+ "use strict";
98
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/toArray */ \"./node_modules/@babel/runtime/helpers/toArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _middleware__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./middleware */ \"./client/apifetch/middleware.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Middlewares to be applied to the apiFetch call.\n */\n\nvar middlewareRegistry = [];\n/**\n * Applies all middlewares and runs the request.\n *\n * @param {Object} options Passed as the second param for window.fetch\n * @param {string} options.path Request URL\n * @param {Function} apply The middleware to apply next\n * @return {Promise} Request promise\n */\n\nvar run = /*#__PURE__*/function () {\n var _ref3 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(_ref, _ref2) {\n var path, options, _ref4, apply, middlewares, response;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n path = _ref.path, options = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_ref, [\"path\"]);\n _ref4 = _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2___default()(_ref2), apply = _ref4[0], middlewares = _ref4.slice(1);\n\n if (apply) {\n _context.next = 7;\n break;\n }\n\n _context.next = 5;\n return window.fetch(path, options);\n\n case 5:\n response = _context.sent;\n return _context.abrupt(\"return\", response.json());\n\n case 7:\n return _context.abrupt(\"return\", apply(_objectSpread({\n path: path\n }, options), function (nextOptions) {\n return run(nextOptions, middlewares);\n }));\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function run(_x, _x2) {\n return _ref3.apply(this, arguments);\n };\n}();\n/**\n * Makes a request using window.fetch and registered middleware.\n *\n * @param {Object} options Request options\n * @param {string} options.path Request URL (required)\n * @return {Promise} Request promise\n */\n\n\nvar apiFetch = /*#__PURE__*/function () {\n var _ref5 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(options) {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n return _context2.abrupt(\"return\", run(options, middlewareRegistry));\n\n case 1:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function apiFetch(_x3) {\n return _ref5.apply(this, arguments);\n };\n}();\n/**\n * Appends a middleware to apiFetch\n *\n * @param {Function} middleware Middleware function\n */\n\n\napiFetch.use = function (middleware) {\n return middlewareRegistry.push(middleware);\n};\n/**\n * Removes a middleware from apiFetch\n *\n * @param {Function} middleware The middleware to remove\n */\n\n\napiFetch.disable = function (middleware) {\n var index = Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"findIndex\"])(middlewareRegistry, function (m) {\n return m === middleware;\n });\n\n if (index) {\n middlewareRegistry.splice(index, 1);\n }\n};\n/**\n * Export the default middlewares on the apiFetch object\n *\n * @type {Object}\n */\n\n\napiFetch.middleware = {\n defaultHeaders: _middleware__WEBPACK_IMPORTED_MODULE_6__[\"defaultHeaders\"],\n formatURL: _middleware__WEBPACK_IMPORTED_MODULE_6__[\"formatURL\"],\n formatRequest: _middleware__WEBPACK_IMPORTED_MODULE_6__[\"formatRequest\"],\n wpAuth: _middleware__WEBPACK_IMPORTED_MODULE_6__[\"wpAuth\"]\n};\n/**\n * Apply the default middlewares\n */\n\nObject(lodash__WEBPACK_IMPORTED_MODULE_5__[\"forEach\"])(apiFetch.middleware, apiFetch.use);\n/* harmony default export */ __webpack_exports__[\"default\"] = (apiFetch);\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./client/apifetch/index.js?");
99
+
100
+ /***/ }),
101
+
102
+ /***/ "./client/apifetch/middleware.js":
103
+ /*!***************************************!*\
104
+ !*** ./client/apifetch/middleware.js ***!
105
+ \***************************************/
106
+ /*! exports provided: formatURL, defaultHeaders, formatRequest, wpAuth */
107
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
108
+
109
+ "use strict";
110
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formatURL\", function() { return formatURL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defaultHeaders\", function() { return defaultHeaders; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formatRequest\", function() { return formatRequest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wpAuth\", function() { return wpAuth; });\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * Prefixes the request URLs with '/wp-json'\n *\n * @param {Object} options Request options\n * @param {Function} next Next middleware\n * @return {Promise} Request promsie\n */\nvar formatURL = function formatURL(options, next) {\n if (options.path.indexOf('/crowdsignal-forms/v1') === 0) {\n options.path = \"/wp-json\".concat(options.path);\n }\n\n return next(options);\n};\n/**\n * Set default headers\n *\n * @param {Object} options Request options\n * @param {Function} next Next middleware\n * @return {Promise} Request promsie\n */\n\nvar defaultHeaders = function defaultHeaders(options, next) {\n var headers = options.headers || {};\n return next(_objectSpread({}, options, {\n headers: _objectSpread({}, headers, {\n // The backend uses the Accept header as a condition for considering an\n // incoming request as a REST request.\n //\n // See: https://core.trac.wordpress.org/ticket/44534\n Accept: 'application/json, */*;q=0.1'\n })\n }));\n};\n/**\n * Convert data to JSON\n *\n * @param {Object} options Request options\n * @param {Object} options.data Request data\n * @param {Function} next Next middleware\n * @return {Promise} Request promsie\n */\n\nvar formatRequest = function formatRequest(_ref, next) {\n var data = _ref.data,\n options = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, [\"data\"]);\n\n if (!data) {\n return next(options);\n }\n\n return next(_objectSpread({}, options, {\n headers: _objectSpread({}, options.headers, {\n 'Content-Type': 'application/json'\n }),\n body: JSON.stringify(data)\n }));\n};\n/**\n * Auth middleware.\n * Detects whether the current user is logged in and if so, include credentials in the request.\n *\n * @param {Object} options Request options\n * @param {Function} next Next middleware\n * @return {Promise} Request promsie\n */\n\nvar wpAuth = function wpAuth(options, next) {\n if (!window._crowdsignalFormsWpNonce) {\n return next(options);\n }\n\n return next(_objectSpread({\n credentials: 'same-origin',\n mode: 'same-origin'\n }, options, {\n headers: _objectSpread({\n 'X-WP-Nonce': window._crowdsignalFormsWpNonce\n }, options.headers)\n }));\n};\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./client/apifetch/middleware.js?");
111
+
112
+ /***/ }),
113
+
114
+ /***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
115
+ /*!*****************************************************************!*\
116
+ !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
117
+ \*****************************************************************/
118
+ /*! no static exports found */
119
+ /***/ (function(module, exports) {
120
+
121
+ eval("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;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/arrayLikeToArray.js?");
122
+
123
+ /***/ }),
124
+
125
+ /***/ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
126
+ /*!***************************************************************!*\
127
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
128
+ \***************************************************************/
129
+ /*! no static exports found */
130
+ /***/ (function(module, exports) {
131
+
132
+ eval("function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/arrayWithHoles.js?");
133
+
134
+ /***/ }),
135
+
136
+ /***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js":
137
+ /*!*****************************************************************!*\
138
+ !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
139
+ \*****************************************************************/
140
+ /*! no static exports found */
141
+ /***/ (function(module, exports) {
142
+
143
+ eval("function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/asyncToGenerator.js?");
144
+
145
+ /***/ }),
146
+
147
+ /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
148
+ /*!***************************************************************!*\
149
+ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
150
+ \***************************************************************/
151
+ /*! no static exports found */
152
+ /***/ (function(module, exports) {
153
+
154
+ eval("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;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/defineProperty.js?");
155
+
156
+ /***/ }),
157
+
158
+ /***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js":
159
+ /*!****************************************************************!*\
160
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
161
+ \****************************************************************/
162
+ /*! no static exports found */
163
+ /***/ (function(module, exports) {
164
+
165
+ eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/iterableToArray.js?");
166
+
167
+ /***/ }),
168
+
169
+ /***/ "./node_modules/@babel/runtime/helpers/nonIterableRest.js":
170
+ /*!****************************************************************!*\
171
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
172
+ \****************************************************************/
173
+ /*! no static exports found */
174
+ /***/ (function(module, exports) {
175
+
176
+ eval("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;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/nonIterableRest.js?");
177
+
178
+ /***/ }),
179
+
180
+ /***/ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":
181
+ /*!************************************************************************!*\
182
+ !*** ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
183
+ \************************************************************************/
184
+ /*! no static exports found */
185
+ /***/ (function(module, exports, __webpack_require__) {
186
+
187
+ eval("var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/objectWithoutProperties.js?");
188
+
189
+ /***/ }),
190
+
191
+ /***/ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
192
+ /*!*****************************************************************************!*\
193
+ !*** ./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
194
+ \*****************************************************************************/
195
+ /*! no static exports found */
196
+ /***/ (function(module, exports) {
197
+
198
+ eval("function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js?");
199
+
200
+ /***/ }),
201
+
202
+ /***/ "./node_modules/@babel/runtime/helpers/toArray.js":
203
+ /*!********************************************************!*\
204
+ !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
205
+ \********************************************************/
206
+ /*! no static exports found */
207
+ /***/ (function(module, exports, __webpack_require__) {
208
+
209
+ eval("var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles */ \"./node_modules/@babel/runtime/helpers/arrayWithHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray */ \"./node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableRest = __webpack_require__(/*! ./nonIterableRest */ \"./node_modules/@babel/runtime/helpers/nonIterableRest.js\");\n\nfunction _toArray(arr) {\n return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();\n}\n\nmodule.exports = _toArray;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/toArray.js?");
210
+
211
+ /***/ }),
212
+
213
+ /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
214
+ /*!***************************************************************************!*\
215
+ !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
216
+ \***************************************************************************/
217
+ /*! no static exports found */
218
+ /***/ (function(module, exports, __webpack_require__) {
219
+
220
+ eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\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(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js?");
221
+
222
+ /***/ }),
223
+
224
+ /***/ "@babel/runtime/regenerator":
225
+ /*!**********************************************!*\
226
+ !*** external {"this":"regeneratorRuntime"} ***!
227
+ \**********************************************/
228
+ /*! no static exports found */
229
+ /***/ (function(module, exports) {
230
+
231
+ eval("(function() { module.exports = this[\"regeneratorRuntime\"]; }());\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/external_%7B%22this%22:%22regeneratorRuntime%22%7D?");
232
+
233
+ /***/ }),
234
+
235
+ /***/ "lodash":
236
+ /*!**********************************!*\
237
+ !*** external {"this":"lodash"} ***!
238
+ \**********************************/
239
+ /*! no static exports found */
240
+ /***/ (function(module, exports) {
241
+
242
+ eval("(function() { module.exports = this[\"lodash\"]; }());\n\n//# sourceURL=webpack://crowdsignalForms.apiFetch/external_%7B%22this%22:%22lodash%22%7D?");
243
+
244
+ /***/ })
245
+
246
+ /******/ })["default"];
build/applause.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '19795797ea42963c610060fbef4f25e1');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bfb3bce5da130a37899e9ec45f5b549a');
build/applause.js CHANGED
@@ -1,13 +1,771 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){var r=n(26),o=n(27),a=n(17),i=n(28);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},function(e,t){function n(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,s,"next",e)}function s(e){n(i,o,a,c,s,"throw",e)}c(void 0)}))}}},function(e,t,n){var r;
2
- /*!
3
- Copyright (c) 2017 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){e.exports=n(29)()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r,o;
7
- /*!
8
- * JavaScript Cookie v2.2.1
9
- * https://github.com/js-cookie/js-cookie
10
- *
11
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
12
- * Released under the MIT license
13
- */!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var i=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=i,c}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in a)a[s]&&(c+="; "+s,!0!==a[s]&&(c+="="+a[s].split(";")[0]));return document.cookie=t+"="+n+c}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var c=a[i].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(l){}if(o[u]=s,e===u)break}catch(l){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(12);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){var r=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(31),o=n(32),a=n(17),i=n(33);e.exports=function(e){return r(e)||o(e)||a(e)||i()}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(34);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,n){var r=n(35),o=n(36);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(10),o=n(12),a=n(37),i=n(38);function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},c(t)}e.exports=c},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(s){o=!0,a=s}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(30);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(18);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(12),o=n(39);function a(t,n,i){return o()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){"use strict";n.r(t);var r,o=n(0),a=n(2),i=n(5),c=n.n(i),s=n(9),u=n.n(s),l=n(3),f=(n(19),n(7)),p=n.n(f),d=(n(13),n(8)),b=n(1),m=n.n(b),O=(Object.freeze({THANK_YOU:"thank-you",CUSTOM_TEXT:"custom-text",REDIRECT:"redirect",RESULTS:"results"}),Object.freeze({THEME_DEFAULT:"theme-default",GEORGIA:"georgia",PALATINO:"palatino",TIMES_NEW_ROMAN:"times-new-roman",ARIAL:"arial",IMPACT:"impact",LUCIDA:"lucida",TAHOMA:"tahoma",TREBUCHET:"trebuchet",VERDANA:"verdana",COURIER:"courier",CABIN:"Cabin",CHIVO:"Chivo",OPEN_SANS:"Open+Sans",FIRA_SANS:"Fira+Sans",ROBOTO:"Roboto",NUNITO:"Nunito",OVERPASS:"Overpass",LATO:"Lato",LIBRE_FRANKLIN:"Libre+Franklin",MONTSERRAT:"Montserrat",POPPINS:"Poppins",RUBIK:"Rubik",RALEWAY:"Raleway",JOSEFIN_SANS:"Josefin+Sans",ALEGREYA_SANS:"Alegreya+Sans",OSWALD:"Oswald"})),h=(Object.freeze([O.CABIN,O.CHIVO,O.OPEN_SANS,O.FIRA_SANS,O.ROBOTO,O.NUNITO,O.OVERPASS,O.LATO,O.LIBRE_FRANKLIN,O.MONTSERRAT,O.POPPINS,O.RUBIK,O.RALEWAY,O.JOSEFIN_SANS,O.ALEGREYA_SANS,O.OSWALD]),Object.freeze((r={},m()(r,O.THEME_DEFAULT,null),m()(r,O.GEORGIA,"Georgia, serif"),m()(r,O.PALATINO,'"Palatino Linotype", "Book Antiqua", Palatino, serif'),m()(r,O.TIMES_NEW_ROMAN,'"Times New Roman", Times, serif'),m()(r,O.ARIAL,"Arial, Helvetica, sans-serif"),m()(r,O.IMPACT,"Impact, Charcoal, sans-serif"),m()(r,O.LUCIDA,'"Lucida Sans Unicode", "Lucida Grande", sans-serif'),m()(r,O.TAHOMA,"Tahoma, Geneva, sans-serif"),m()(r,O.TREBUCHET,'"Trebuchet MS", Helvetica, sans-serif'),m()(r,O.VERDANA,"Verdana, Geneva, sans-serif"),m()(r,O.COURIER,'"Courier New", Courier, monospace'),m()(r,O.CABIN,'"Cabin", sans-serif'),m()(r,O.CHIVO,'"Chivo", sans-serif'),m()(r,O.OPEN_SANS,'"Open Sans", sans-serif'),m()(r,O.FIRA_SANS,'"Fira Sans", sans-serif'),m()(r,O.ROBOTO,'"Roboto", sans-serif'),m()(r,O.NUNITO,'"Nunito", sans-serif'),m()(r,O.OVERPASS,'"Overpass", sans-serif'),m()(r,O.LATO,'"Lato", sans-serif'),m()(r,O.LIBRE_FRANKLIN,'"Libre Franklin", sans-serif'),m()(r,O.MONTSERRAT,'"Montserrat", sans-serif'),m()(r,O.POPPINS,'"Poppins", sans-serif'),m()(r,O.RUBIK,'"Rubik", sans-serif'),m()(r,O.RALEWAY,'"Raleway", sans-serif'),m()(r,O.JOSEFIN_SANS,'"Josefin Sans", sans-serif'),m()(r,O.ALEGREYA_SANS,'"Alegreya Sans", sans-serif'),m()(r,O.OSWALD,'"Oswald", sans-serif'),r)),Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"})),y=(Object.freeze({SHOW_RESULTS:"show-results",SHOW_CLOSED_BANNER:"show-closed-banner",HIDDEN:"hidden"}),Object.freeze({RADIO:"radio",BUTTON:"button"}),Object.freeze({LIST:"list",INLINE:"inline"}),n(20)),w=n.n(y),v=n(21),C=n.n(v),g=n(22),S=function(e){for(var t=window.getComputedStyle(e).backgroundColor;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)e=e.parentNode,t=window.getComputedStyle(e).backgroundColor;return t},E=function(){return Object(o.createElement)("div",{className:"crowdsignal-forms__style-probe"},Object(o.createElement)("p",null),Object(o.createElement)("h3",null,"Text"),Object(o.createElement)("div",{className:"wp-block-button"},Object(o.createElement)("div",{className:"wp-block-button__link"})),Object(o.createElement)("div",{className:"entry-content"},Object(o.createElement)("div",{className:"alignwide"})))},x=function(e){if(null===e)return{};var t,n=e.querySelector(".wp-block-button__link"),r=e.querySelector("p"),o=e.querySelector("h3"),a=e.querySelector(".alignwide"),i=S(n),c=S(r),s=window.getComputedStyle(r).color;if(i===c){var u=(t=n,"0px"!==window.getComputedStyle(t).borderBlockStartWidth?window.getComputedStyle(t).borderBlockStartColor:null);i=u||s}return{accentColor:i,backgroundColor:c,textColor:s,textColorInverted:window.getComputedStyle(n).color,textFont:window.getComputedStyle(r).fontFamily,textSize:window.getComputedStyle(r).fontSize,headingFont:window.getComputedStyle(o).fontFamily,contentWideWidth:window.getComputedStyle(a).maxWidth}},j=n(4),L=n.n(j),A=n(6),R=n.n(A),N=n(11),_=n.n(N),T=n(14),I=n.n(T),k=n(15),P=n.n(k),M=n(23),D=n.n(M),F=n(10),U=n.n(F),B=n(24),W=n.n(B);n(16);function H(e){return function(){var t,n=U()(e);if(V()){var r=U()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return D()(this,t)}}function V(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var z=function(){var e=R()(L.a.mark((function e(t){var n,r,o=arguments;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(o.length>1&&void 0!==o[1])||o[1],r="https://api.crowdsignal.com/v3/polls",n){e.next=4;break}return e.abrupt("return",null);case 4:return e.abrupt("return",window.fetch("".concat(r,"/").concat(t,"/results"),{method:"GET",headers:{"content-type":"application/json"}}).then((function(e){if(e.status>=200&&e.status<300)return e.json();throw e})).then((function(e){if(404===e.status)return{};if(e.error)throw new Error(e.message);return e.results.votes_by_answer})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=R()(L.a.mark((function e(t){var n,r,o;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"5430eeac3911395001d731d9702fc38b",n=(new Date).getTime(),e.next=4,window.fetch("https://poll.fm/n/".concat("5430eeac3911395001d731d9702fc38b","/").concat(t,"?").concat(n,"&format=json"));case 4:if((r=e.sent).ok){e.next=7;break}throw new J;case 7:return e.next=9,r.json();case 9:if((o=e.sent).nonce){e.next=12;break}throw new J;case 12:return e.abrupt("return",o.nonce);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=R()(L.a.mark((function e(t,n,r,o){var a,i,c;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.join(","),e.next=3,window.fetch("https://polls.polldaddy.com/vote-js.php?format=json&p=".concat(n,"&b=1&a=").concat(a,"&o=&va=16&cookie=0&n=").concat(t,"&url=").concat(encodeURIComponent(window.location),"&vi=").concat(o));case 3:if((i=e.sent).ok){e.next=6;break}throw new J;case 6:return e.next=8,i.json();case 8:if("error"!==(c=e.sent).status){e.next=11;break}throw new q(c.error);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),q=function(e){P()(n,e);var t=H(n);function n(){return I()(this,n),t.apply(this,arguments)}return n}(W()(Error)),J=function(e){P()(n,e);var t=H(n);function n(){return I()(this,n),t.call(this,Object(d.__)("Server error. Please try again.","crowdsignal-forms"))}return n}(q),Y=function(e,t){var n=Object(a.useState)(null),r=c()(n,2),o=r[0],i=r[1],s=Object(a.useState)(null),u=c()(s,2),l=u[0],f=u[1],p=Object(a.useState)(!0),d=c()(p,2),b=d[0],m=d[1];return Object(a.useEffect)((function(){m(!0),f(null),i(null),e().then(i).catch(f).finally((function(){return m(!1)}))}),t),{data:o,error:l,loading:b}},Z=function(e){var t=e.showBranding,n=e.referralCode;return Object(o.createElement)("div",{className:"crowdsignal-forms__branding"},t&&Object(o.createElement)("a",{className:"crowdsignal-forms__branding-link with-external-icon",href:"https://crowdsignal.com?ref=".concat(n),target:"blank",rel:"noopener noreferrer"},Object(d.__)("Powered by Crowdsignal","crowdsignal-forms")),!t&&Object(o.createElement)("span",{className:"crowdsignal-forms__branding-link"}," "))};Z.propTypes={showBranding:u.a.bool,referralCode:u.a.string.isRequired};var X=Z,$=function(e){var t=e.active,n=e.className,r=p()("crowdsignal-forms-applause__animation",n,{"is-active":t});return Object(o.createElement)("svg",{className:r,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("g",{className:"crowdsignal-forms-applause__animation-right"},Object(o.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813Z"}),Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813ZM23.6104 16.605L22.538 10.5434L22.0547 10.6502L21.4234 15.0093L13.8574 9.48855C13.8574 9.48855 13.4691 9.4034 13.349 9.56801C13.2288 9.73262 13.2638 9.95632 13.4284 10.0764L17.667 13.1693L16.8091 14.345L11.2301 10.2742C11.0655 10.1541 10.8418 10.189 10.7217 10.3536C10.6016 10.5182 10.6365 10.7419 10.8012 10.862L16.3802 14.9329L15.5222 16.1087L10.4782 12.4282C10.3136 12.3081 10.0899 12.343 9.96978 12.5076C9.84967 12.6722 9.88463 12.8959 10.0492 13.0161L15.0933 16.6966L14.2353 17.8723L10.7962 15.3629C10.6316 15.2428 10.4079 15.2777 10.2878 15.4423C10.1677 15.607 10.2027 15.8307 10.3673 15.9508L18.5094 21.8919C19.1561 22.3638 20.0713 22.2207 20.5431 21.5741L23.3571 17.7175C23.5888 17.4001 23.6766 16.9957 23.6104 16.605Z"})),Object(o.createElement)("g",{className:"crowdsignal-forms-applause__animation-left"},Object(o.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813Z"}),Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813ZM20.3108 16.805L19.2384 10.7434L18.7551 10.8502L18.1239 15.2093L10.5578 9.68854C10.5578 9.68854 10.1695 9.6034 10.0494 9.76801C9.92928 9.93261 9.96425 10.1563 10.1289 10.2764L14.3675 13.3692L13.5096 14.545L7.93056 10.4742C7.76595 10.354 7.54224 10.389 7.42213 10.5536C7.30202 10.7182 7.33699 10.9419 7.50159 11.062L13.0806 15.1329L12.2227 16.3087L7.17864 12.6282C7.01403 12.5081 6.79033 12.543 6.67022 12.7076C6.55011 12.8722 6.58507 13.0959 6.74968 13.216L11.7937 16.8965L10.9358 18.0723L7.49667 15.5629C7.33206 15.4428 7.10836 15.4777 6.98825 15.6423C6.86814 15.8069 6.9031 16.0307 7.06771 16.1508L15.2099 22.0919C15.8566 22.5638 16.7717 22.4207 17.2436 21.7741L20.0576 17.9175C20.2892 17.6001 20.3771 17.1957 20.3108 16.805Z"})),Object(o.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-small"},Object(o.createElement)("rect",{x:"15.4854",y:"4.42176",width:"1.5",height:"3",transform:"rotate(8 15.4854 4.42176)"}),Object(o.createElement)("rect",{x:"19.9369",y:"5.15548",width:"1.5",height:"3",transform:"rotate(43 19.9369 5.15548)"}),Object(o.createElement)("rect",{x:"11.1523",y:"4.78963",width:"1.5",height:"3",transform:"rotate(-27 11.1523 4.78963)"})),Object(o.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-large"},Object(o.createElement)("rect",{x:"23.453",y:"2.41095",width:"1.5",height:"3",transform:"rotate(38 23.453 2.41095)"}),Object(o.createElement)("rect",{x:"26.9413",y:"5.27211",width:"1.5",height:"3",transform:"rotate(73 26.9413 5.27211)"}),Object(o.createElement)("rect",{x:"19.5165",y:"0.562988",width:"1.5",height:"3",transform:"rotate(3 19.5165 0.562988)"}),Object(o.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.788011 0.615662 0.615662 0.788011 8.52597 2.41095)"}),Object(o.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.292372 0.956305 0.956305 0.292372 5.03775 5.27211)"}),Object(o.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.99863 0.052336 0.052336 0.99863 12.4625 0.562988)"})))},Q=function(e){var t,n=e.attributes,r=e.fallbackStyles,i=e.renderStyleProbe,s=n.apiPollData?n.apiPollData.id:null,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="cs-poll-".concat(e),o=Object(a.useState)(!1),i=c()(o,2),s=i[0],u=i[1],l=Object(a.useState)(!1),f=c()(l,2),p=f[0],d=f[1],b=Object(a.useState)(""),m=c()(b,2),O=m[0],h=m[1];Object(a.useEffect)((function(){t&&void 0!==_.a.get(r)&&(d(!0),h(_.a.get(r)))}),[]);var y=function(){var o=R()(L.a.mark((function o(a){var i,c,s,l=arguments;return L.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=l.length>1&&void 0!==l[1]?l[1]:1,o.prev=1,u(!0),o.next=5,G(e);case 5:return c=o.sent,o.next=8,K(c,e,a,i);case 8:d(!0),t&&(s=n?a.join(","):(new Date).getTime(),_.a.set(r,s,{sameSite:"Strict",expires:365}),h(s));case 10:return o.prev=10,u(!1),o.finish(10);case 13:case"end":return o.stop()}}),o,null,[[1,,10,13]])})));return function(e){return o.apply(this,arguments)}}();return{hasVoted:p,isVoting:s,vote:y,storedCookieValue:O}}(s,!0),f=u.hasVoted,d=u.vote,b=Object(a.useState)(0),m=c()(b,2),O=m[0],y=m[1],w=Object(a.useState)(0),v=c()(w,2),C=v[0],g=v[1],S=Object(a.useState)(null),E=c()(S,2),x=E[0],j=E[1],A=Object(a.useState)(!1),N=c()(A,2),T=N[0],I=N[1],k=Object(a.useState)(null),P=c()(k,2),M=P[0],D=P[1],F=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Y((function(){return z(e,t)}),[e]),r=n.data,o=n.error,a=n.loading;return{error:o,loading:a,results:r}}(s).results,U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(h.CLOSED===e)return!0;if(h.CLOSED_AFTER===e){var r=new Date(t);return r<n}return!1}(n.pollStatus,n.closedAfterDateTime),B=function(){if(null!==s&&!U){M&&clearTimeout(M),I(!0),D(setTimeout((function(){I(!1)}),200));var e=C+1;g(e),y(O+1);var t=n.apiPollData.answers[0].id;null!==x&&clearTimeout(x);var r=setTimeout((function(){d([t],e),j(null),g(0)}),1e3);j(r)}},W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return p()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(n,"crowdsignal-forms-applause",n.className,"size-".concat(n.size),{"is-closed":U}),H=function(e,t){var n=Object(l.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(l.mapKeys)({bgColor:e.backgroundColor||t.backgroundColor,textColor:n,hoverColor:t.accentColor,borderRadius:"".concat(e.borderRadius||0,"px"),borderWidth:"".concat(e.borderWidth||0,"px"),borderColor:e.borderColor},(function(e,t){return"--crowdsignal-forms-applause-".concat(Object(l.kebabCase)(t))}))}(n,r),V=(null!==F?Object(l.values)(F)[0]:0)+O;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:W,style:H,onClick:B,onKeyPress:B,role:"button",tabIndex:0},Object(o.createElement)($,{active:T}),Object(o.createElement)("p",{className:"crowdsignal-forms-applause__count"},(t=V)?t>=1e7?"".concat(Object(l.round)(t/1e6),"M"):t>=1e6?"".concat((t/1e6).toFixed(1),"M"):t>=1e4?"".concat(Object(l.round)(t/1e3),"K"):t>=1e3?"".concat((t/1e3).toFixed(1),"K"):t.toString():"0"," Claps"),i()),Object(o.createElement)(X,{showBranding:f&&!n.hideBranding,referralCode:"cs-forms-applause"}))};Q.propTypes={className:u.a.string};var ee,te=(ee=Q,Object(g.withFallbackStyles)((function(e){return{fallbackStyles:x(e.querySelector(".crowdsignal-forms__style-probe"))}}))((function(e){var t=e.fallbackStyles,n=C()(e,["fallbackStyles"]);return Object(o.createElement)(ee,w()({fallbackStyles:t||{},renderStyleProbe:function(){return t?null:Object(o.createElement)(E,null)}},n))}))),ne=n(25),re=function(e,t){return Object(l.forEach)(document.querySelectorAll("div[".concat(e,"]")),(function(n){try{var r=JSON.parse(n.dataset[Object(l.camelCase)(e.substr("data-".length))]),o=t(r,n);n.removeAttribute(e),Object(ne.render)(o,n)}catch(a){console.error("Crowdsignal Forms: Failed to parse block data for: %s",e)}}))},oe=function(e,t){(Object(l.isEmpty)(window.CrowdsignalMutationObservers)||!0!==window.CrowdsignalMutationObservers[e])&&(new window.MutationObserver((function(){return re(e,t)})).observe(document.body,{attributes:!0,attributeFilter:[e],childList:!0,subtree:!0}),Object(l.isEmpty)(window.CrowdsignalMutationObservers)&&(window.CrowdsignalMutationObservers=[]),window.CrowdsignalMutationObservers[e]=!0,re(e,t))};(function(e,t){if("complete"===document.readyState)return oe(e,t);window.addEventListener("load",(function(){return oe(e,t)}))})("data-crowdsignal-applause",(function(e){return Object(o.createElement)(te,{attributes:e})}))}]));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(e, a) { for(var i in a) e[i] = a[i]; }(window, /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40
+ /******/ }
41
+ /******/ };
42
+ /******/
43
+ /******/ // define __esModule on exports
44
+ /******/ __webpack_require__.r = function(exports) {
45
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47
+ /******/ }
48
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
49
+ /******/ };
50
+ /******/
51
+ /******/ // create a fake namespace object
52
+ /******/ // mode & 1: value is a module id, require it
53
+ /******/ // mode & 2: merge all properties of value into the ns
54
+ /******/ // mode & 4: return value when already ns object
55
+ /******/ // mode & 8|1: behave like require
56
+ /******/ __webpack_require__.t = function(value, mode) {
57
+ /******/ if(mode & 1) value = __webpack_require__(value);
58
+ /******/ if(mode & 8) return value;
59
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60
+ /******/ var ns = Object.create(null);
61
+ /******/ __webpack_require__.r(ns);
62
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64
+ /******/ return ns;
65
+ /******/ };
66
+ /******/
67
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
68
+ /******/ __webpack_require__.n = function(module) {
69
+ /******/ var getter = module && module.__esModule ?
70
+ /******/ function getDefault() { return module['default']; } :
71
+ /******/ function getModuleExports() { return module; };
72
+ /******/ __webpack_require__.d(getter, 'a', getter);
73
+ /******/ return getter;
74
+ /******/ };
75
+ /******/
76
+ /******/ // Object.prototype.hasOwnProperty.call
77
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78
+ /******/
79
+ /******/ // __webpack_public_path__
80
+ /******/ __webpack_require__.p = "";
81
+ /******/
82
+ /******/
83
+ /******/ // Load entry module and return exports
84
+ /******/ return __webpack_require__(__webpack_require__.s = "./client/applause.js");
85
+ /******/ })
86
+ /************************************************************************/
87
+ /******/ ({
88
+
89
+ /***/ "./client/applause.js":
90
+ /*!****************************!*\
91
+ !*** ./client/applause.js ***!
92
+ \****************************/
93
+ /*! no exports provided */
94
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
95
+
96
+ "use strict";
97
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_applause__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/applause */ \"./client/components/applause/index.js\");\n/* harmony import */ var lib_mutation_observer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lib/mutation-observer */ \"./client/lib/mutation-observer/index.js\");\n\n\n/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\nObject(lib_mutation_observer__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('data-crowdsignal-applause', function (attributes) {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_applause__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n attributes: attributes\n });\n});\n\n//# sourceURL=webpack:///./client/applause.js?");
98
+
99
+ /***/ }),
100
+
101
+ /***/ "./client/blocks/applause/util.js":
102
+ /*!****************************************!*\
103
+ !*** ./client/blocks/applause/util.js ***!
104
+ \****************************************/
105
+ /*! exports provided: getApplauseStyleVars, getBlockCssClasses */
106
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
107
+
108
+ "use strict";
109
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getApplauseStyleVars\", function() { return getApplauseStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBlockCssClasses\", function() { return getBlockCssClasses; });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\nvar getApplauseStyleVars = function getApplauseStyleVars(attributes, fallbackStyles) {\n var textColor = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(attributes.textColor) ? fallbackStyles.textColor : attributes.textColor;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"mapKeys\"])({\n bgColor: attributes.backgroundColor || fallbackStyles.backgroundColor,\n textColor: textColor,\n hoverColor: fallbackStyles.accentColor,\n borderRadius: \"\".concat(attributes.borderRadius || 0, \"px\"),\n borderWidth: \"\".concat(attributes.borderWidth || 0, \"px\"),\n borderColor: attributes.borderColor\n }, function (_, key) {\n return \"--crowdsignal-forms-applause-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"kebabCase\"])(key));\n });\n};\n/**\n * Returns a css 'class' string of overridden styles given a collection of attributes.\n *\n * @param {*} attributes The block's attributes\n * @param {...any} extraClasses A list of additional classes to add to the class string\n */\n\nvar getBlockCssClasses = function getBlockCssClasses(attributes) {\n for (var _len = arguments.length, extraClasses = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n extraClasses[_key - 1] = arguments[_key];\n }\n\n return classnames__WEBPACK_IMPORTED_MODULE_0___default()({\n 'has-bg-color': attributes.backgroundColor,\n 'has-text-color': attributes.textColor,\n 'has-border-color': attributes.borderColor\n }, extraClasses);\n};\n\n//# sourceURL=webpack:///./client/blocks/applause/util.js?");
110
+
111
+ /***/ }),
112
+
113
+ /***/ "./client/blocks/poll/constants.js":
114
+ /*!*****************************************!*\
115
+ !*** ./client/blocks/poll/constants.js ***!
116
+ \*****************************************/
117
+ /*! exports provided: ConfirmMessageType, FontFamilyType, GoogleFonts, FontFamilyMap, PollStatus, ClosedPollState, AnswerStyle, ButtonAlignment */
118
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
119
+
120
+ "use strict";
121
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ConfirmMessageType\", function() { return ConfirmMessageType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontFamilyType\", function() { return FontFamilyType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GoogleFonts\", function() { return GoogleFonts; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontFamilyMap\", function() { return FontFamilyMap; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PollStatus\", function() { return PollStatus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ClosedPollState\", function() { return ClosedPollState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AnswerStyle\", function() { return AnswerStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ButtonAlignment\", function() { return ButtonAlignment; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n\n\nvar _Object$freeze;\n\nvar ConfirmMessageType = Object.freeze({\n THANK_YOU: 'thank-you',\n CUSTOM_TEXT: 'custom-text',\n REDIRECT: 'redirect',\n RESULTS: 'results'\n});\nvar FontFamilyType = Object.freeze({\n THEME_DEFAULT: 'theme-default',\n GEORGIA: 'georgia',\n PALATINO: 'palatino',\n TIMES_NEW_ROMAN: 'times-new-roman',\n ARIAL: 'arial',\n IMPACT: 'impact',\n LUCIDA: 'lucida',\n TAHOMA: 'tahoma',\n TREBUCHET: 'trebuchet',\n VERDANA: 'verdana',\n COURIER: 'courier',\n // Google fonts: enum value = google font url slug\n CABIN: 'Cabin',\n CHIVO: 'Chivo',\n OPEN_SANS: 'Open+Sans',\n FIRA_SANS: 'Fira+Sans',\n ROBOTO: 'Roboto',\n NUNITO: 'Nunito',\n OVERPASS: 'Overpass',\n LATO: 'Lato',\n LIBRE_FRANKLIN: 'Libre+Franklin',\n MONTSERRAT: 'Montserrat',\n POPPINS: 'Poppins',\n RUBIK: 'Rubik',\n RALEWAY: 'Raleway',\n JOSEFIN_SANS: 'Josefin+Sans',\n ALEGREYA_SANS: 'Alegreya+Sans',\n OSWALD: 'Oswald'\n});\nvar GoogleFonts = Object.freeze([FontFamilyType.CABIN, FontFamilyType.CHIVO, FontFamilyType.OPEN_SANS, FontFamilyType.FIRA_SANS, FontFamilyType.ROBOTO, FontFamilyType.NUNITO, FontFamilyType.OVERPASS, FontFamilyType.LATO, FontFamilyType.LIBRE_FRANKLIN, FontFamilyType.MONTSERRAT, FontFamilyType.POPPINS, FontFamilyType.RUBIK, FontFamilyType.RALEWAY, FontFamilyType.JOSEFIN_SANS, FontFamilyType.ALEGREYA_SANS, FontFamilyType.OSWALD]);\nvar FontFamilyMap = Object.freeze((_Object$freeze = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.THEME_DEFAULT, null), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.GEORGIA, 'Georgia, serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.PALATINO, '\"Palatino Linotype\", \"Book Antiqua\", Palatino, serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.TIMES_NEW_ROMAN, '\"Times New Roman\", Times, serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.ARIAL, 'Arial, Helvetica, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.IMPACT, 'Impact, Charcoal, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.LUCIDA, '\"Lucida Sans Unicode\", \"Lucida Grande\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.TAHOMA, 'Tahoma, Geneva, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.TREBUCHET, '\"Trebuchet MS\", Helvetica, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.VERDANA, 'Verdana, Geneva, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.COURIER, '\"Courier New\", Courier, monospace'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.CABIN, '\"Cabin\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.CHIVO, '\"Chivo\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.OPEN_SANS, '\"Open Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.FIRA_SANS, '\"Fira Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.ROBOTO, '\"Roboto\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.NUNITO, '\"Nunito\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.OVERPASS, '\"Overpass\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.LATO, '\"Lato\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.LIBRE_FRANKLIN, '\"Libre Franklin\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.MONTSERRAT, '\"Montserrat\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.POPPINS, '\"Poppins\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.RUBIK, '\"Rubik\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.RALEWAY, '\"Raleway\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.JOSEFIN_SANS, '\"Josefin Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.ALEGREYA_SANS, '\"Alegreya Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.OSWALD, '\"Oswald\", sans-serif'), _Object$freeze));\nvar PollStatus = Object.freeze({\n OPEN: 'open',\n CLOSED: 'closed',\n CLOSED_AFTER: 'closed-after'\n});\nvar ClosedPollState = Object.freeze({\n SHOW_RESULTS: 'show-results',\n SHOW_CLOSED_BANNER: 'show-closed-banner',\n HIDDEN: 'hidden'\n});\nvar AnswerStyle = Object.freeze({\n RADIO: 'radio',\n BUTTON: 'button'\n});\nvar ButtonAlignment = Object.freeze({\n LIST: 'list',\n INLINE: 'inline'\n});\n\n//# sourceURL=webpack:///./client/blocks/poll/constants.js?");
122
+
123
+ /***/ }),
124
+
125
+ /***/ "./client/blocks/poll/util.js":
126
+ /*!************************************!*\
127
+ !*** ./client/blocks/poll/util.js ***!
128
+ \************************************/
129
+ /*! exports provided: addAnswer, getFontFamilyFromType, getStyleVars, extractRGBColorProperties, hexToRGB, getBlockCssClasses, isPollClosed, getAnswerStyle, toggleButtonStyleAvailability */
130
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
131
+
132
+ "use strict";
133
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addAnswer\", function() { return addAnswer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFontFamilyFromType\", function() { return getFontFamilyFromType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStyleVars\", function() { return getStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extractRGBColorProperties\", function() { return extractRGBColorProperties; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hexToRGB\", function() { return hexToRGB; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBlockCssClasses\", function() { return getBlockCssClasses; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isPollClosed\", function() { return isPollClosed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAnswerStyle\", function() { return getAnswerStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toggleButtonStyleAvailability\", function() { return toggleButtonStyleAvailability; });\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Creates a new Answer object then returns a copy of the passed in `answers` array with the new answer appended to it.\n *\n * @param {Array} answers The existing array of answers.\n * @param {string} text\tThe text for the new answer to add.\n * @return {Array}\t\t\tThe newly created answers array.\n */\n\nvar addAnswer = function addAnswer(answers, text) {\n return [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(answers), [{\n answerId: null,\n text: text\n }]);\n};\nvar getFontFamilyFromType = function getFontFamilyFromType(type) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_5__[\"FontFamilyType\"], type)) {\n return null;\n }\n\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"FontFamilyMap\"][type];\n};\nvar getStyleVars = function getStyleVars(attributes, fallbackStyles) {\n var _attributes$borderCol, _getFontFamilyFromTyp, _getFontFamilyFromTyp2, _extractRGBColorPrope;\n\n var textColor = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isEmpty\"])(attributes.textColor) ? fallbackStyles.textColor : attributes.textColor;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"mapKeys\"])({\n borderColor: (_attributes$borderCol = attributes.borderColor) !== null && _attributes$borderCol !== void 0 ? _attributes$borderCol : fallbackStyles.accentColor,\n borderRadius: \"\".concat(attributes.borderRadius, \"px\"),\n borderWidth: \"\".concat(attributes.borderWidth, \"px\"),\n bgColor: attributes.backgroundColor,\n bodyFontFamily: (_getFontFamilyFromTyp = getFontFamilyFromType(attributes.fontFamily)) !== null && _getFontFamilyFromTyp !== void 0 ? _getFontFamilyFromTyp : fallbackStyles.textFont,\n questionFontFamily: (_getFontFamilyFromTyp2 = getFontFamilyFromType(attributes.fontFamily)) !== null && _getFontFamilyFromTyp2 !== void 0 ? _getFontFamilyFromTyp2 : fallbackStyles.headingFont,\n submitButtonBgColor: attributes.submitButtonBackgroundColor || fallbackStyles.accentColor,\n submitButtonTextColor: attributes.submitButtonTextColor || fallbackStyles.textColorInverted,\n textColor: textColor,\n textColorProperties: (_extractRGBColorPrope = extractRGBColorProperties(textColor)) !== null && _extractRGBColorPrope !== void 0 ? _extractRGBColorPrope : '0, 0, 0',\n contentWideWidth: fallbackStyles.contentWideWidth\n }, function (_, key) {\n return \"--crowdsignal-forms-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"kebabCase\"])(key));\n });\n};\n/**\n * Extracts the comma separated color properties from an rgb string.\n * rgba strings are not supported for now because it introduces too many complications.\n *\n * @param {string} color The color string.\n * @return {string} The 3 comma separated rgb color properties.\n */\n\nvar extractRGBColorProperties = function extractRGBColorProperties(color) {\n if (!color || 'string' !== typeof color || -1 === color.indexOf('rgb') && 0 !== color.indexOf('#') || -1 < color.indexOf('rgba')) {\n return null;\n }\n\n if (0 === color.indexOf('#')) {\n color = hexToRGB(color);\n }\n\n return color.match(/\\((.*?)\\)/)[1];\n};\n/**\n * converts css color hex to rgb\n *\n * @param {string} h The hex color string.\n * @return {string} The rgb value.\n */\n\nvar hexToRGB = function hexToRGB(h) {\n var r = 0,\n g = 0,\n b = 0;\n var hexCode = 4 === h.length ? \"#\".concat(h[1] + h[1] + h[2] + h[2] + h[3] + h[3]) : h;\n\n if (7 === hexCode.length) {\n r = parseInt(hexCode.substr(1, 2), 16) || 0;\n g = parseInt(hexCode.substr(3, 2), 16) || 0;\n b = parseInt(hexCode.substr(5, 2), 16) || 0;\n }\n\n return \"rgb(\".concat(r, \", \").concat(g, \", \").concat(b, \")\");\n};\n/**\n * Returns a css 'class' string of overridden styles given a collection of attributes.\n *\n * @param {*} attributes The block's attributes\n * @param {...any} extraClasses A list of additional classes to add to the class string\n */\n\nvar getBlockCssClasses = function getBlockCssClasses(attributes) {\n var _attributes$borderRad;\n\n for (var _len = arguments.length, extraClasses = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n extraClasses[_key - 1] = arguments[_key];\n }\n\n return classnames__WEBPACK_IMPORTED_MODULE_1___default()({\n 'has-bg-color': attributes.backgroundColor,\n 'has-text-color': attributes.textColor,\n 'has-submit-button-bg-color': attributes.submitButtonBackgroundColor,\n 'has-submit-button-text-color': attributes.submitButtonTextColor,\n 'has-border-radius': (_attributes$borderRad = attributes.borderRadius) !== null && _attributes$borderRad !== void 0 ? _attributes$borderRad : false,\n 'has-box-shadow': attributes.hasBoxShadow\n }, extraClasses);\n};\n/**\n * Determines if the poll is closed based on its editor settings.\n *\n * @param {string} pollStatus The poll's status, as set in the editor.\n * @param {string} closedAfterDateTimeUTC The UTC date time string to close the poll after if pollStatus is PollStatus.CLOSED_AFTER.\n * @param {Date} currentDateTime Optionally set the current date that will be used for current time comparisons.\n */\n\nvar isPollClosed = function isPollClosed(pollStatus, closedAfterDateTimeUTC) {\n var currentDateTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Date();\n\n if (_constants__WEBPACK_IMPORTED_MODULE_5__[\"PollStatus\"].CLOSED === pollStatus) {\n return true;\n }\n\n if (_constants__WEBPACK_IMPORTED_MODULE_5__[\"PollStatus\"].CLOSED_AFTER === pollStatus) {\n var closedAfterDateTime = new Date(closedAfterDateTimeUTC);\n return closedAfterDateTime < currentDateTime;\n }\n\n return false;\n};\n/**\n * Returns the type of answer controls that should be rendered given the current state of the block.\n *\n * @param {*} attributes the poll's attributes.\n * @param {string} className the css class string Gutenberg is passing into the block.\n */\n\nvar getAnswerStyle = function getAnswerStyle(attributes, className) {\n if (attributes.isMultipleChoice) {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"AnswerStyle\"].RADIO;\n }\n\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isEmpty\"])(className) && className.indexOf('is-style-buttons') > -1) {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"AnswerStyle\"].BUTTON;\n }\n\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"AnswerStyle\"].RADIO;\n};\n/**\n * Registers or de-registers the `buttons` block style.\n *\n * @param {boolean} enable True if button style should be available, false if not.\n */\n\nvar toggleButtonStyleAvailability = function toggleButtonStyleAvailability(enable) {\n if (enable) {\n Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__[\"registerBlockStyle\"])('crowdsignal-forms/poll', {\n name: 'buttons',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Buttons', 'crowdsignal-forms')\n });\n } else {\n Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__[\"unregisterBlockStyle\"])('crowdsignal-forms/poll', 'buttons');\n }\n};\n\n//# sourceURL=webpack:///./client/blocks/poll/util.js?");
134
+
135
+ /***/ }),
136
+
137
+ /***/ "./client/components/applause/animation.js":
138
+ /*!*************************************************!*\
139
+ !*** ./client/components/applause/animation.js ***!
140
+ \*************************************************/
141
+ /*! exports provided: default */
142
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
143
+
144
+ "use strict";
145
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\n\n\n/**\n * External dependencies\n */\n\n\n\nvar ApplauseAnimation = function ApplauseAnimation(_ref) {\n var active = _ref.active,\n className = _ref.className;\n var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('crowdsignal-forms-applause__animation', className, {\n 'is-active': active\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n className: classes,\n width: \"32\",\n height: \"32\",\n viewBox: \"0 0 32 32\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-right\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n className: \"crowdsignal-forms-applause__animation-inner-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813ZM23.6104 16.605L22.538 10.5434L22.0547 10.6502L21.4234 15.0093L13.8574 9.48855C13.8574 9.48855 13.4691 9.4034 13.349 9.56801C13.2288 9.73262 13.2638 9.95632 13.4284 10.0764L17.667 13.1693L16.8091 14.345L11.2301 10.2742C11.0655 10.1541 10.8418 10.189 10.7217 10.3536C10.6016 10.5182 10.6365 10.7419 10.8012 10.862L16.3802 14.9329L15.5222 16.1087L10.4782 12.4282C10.3136 12.3081 10.0899 12.343 9.96978 12.5076C9.84967 12.6722 9.88463 12.8959 10.0492 13.0161L15.0933 16.6966L14.2353 17.8723L10.7962 15.3629C10.6316 15.2428 10.4079 15.2777 10.2878 15.4423C10.1677 15.607 10.2027 15.8307 10.3673 15.9508L18.5094 21.8919C19.1561 22.3638 20.0713 22.2207 20.5431 21.5741L23.3571 17.7175C23.5888 17.4001 23.6766 16.9957 23.6104 16.605Z\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-left\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n className: \"crowdsignal-forms-applause__animation-inner-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813ZM20.3108 16.805L19.2384 10.7434L18.7551 10.8502L18.1239 15.2093L10.5578 9.68854C10.5578 9.68854 10.1695 9.6034 10.0494 9.76801C9.92928 9.93261 9.96425 10.1563 10.1289 10.2764L14.3675 13.3692L13.5096 14.545L7.93056 10.4742C7.76595 10.354 7.54224 10.389 7.42213 10.5536C7.30202 10.7182 7.33699 10.9419 7.50159 11.062L13.0806 15.1329L12.2227 16.3087L7.17864 12.6282C7.01403 12.5081 6.79033 12.543 6.67022 12.7076C6.55011 12.8722 6.58507 13.0959 6.74968 13.216L11.7937 16.8965L10.9358 18.0723L7.49667 15.5629C7.33206 15.4428 7.10836 15.4777 6.98825 15.6423C6.86814 15.8069 6.9031 16.0307 7.06771 16.1508L15.2099 22.0919C15.8566 22.5638 16.7717 22.4207 17.2436 21.7741L20.0576 17.9175C20.2892 17.6001 20.3771 17.1957 20.3108 16.805Z\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-wave-small\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"15.4854\",\n y: \"4.42176\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(8 15.4854 4.42176)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"19.9369\",\n y: \"5.15548\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(43 19.9369 5.15548)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"11.1523\",\n y: \"4.78963\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(-27 11.1523 4.78963)\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-wave-large\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"23.453\",\n y: \"2.41095\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(38 23.453 2.41095)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"26.9413\",\n y: \"5.27211\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(73 26.9413 5.27211)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"19.5165\",\n y: \"0.562988\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(3 19.5165 0.562988)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"1.5\",\n height: \"3\",\n transform: \"matrix(-0.788011 0.615662 0.615662 0.788011 8.52597 2.41095)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"1.5\",\n height: \"3\",\n transform: \"matrix(-0.292372 0.956305 0.956305 0.292372 5.03775 5.27211)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"1.5\",\n height: \"3\",\n transform: \"matrix(-0.99863 0.052336 0.052336 0.99863 12.4625 0.562988)\"\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ApplauseAnimation);\n\n//# sourceURL=webpack:///./client/components/applause/animation.js?");
146
+
147
+ /***/ }),
148
+
149
+ /***/ "./client/components/applause/index.js":
150
+ /*!*********************************************!*\
151
+ !*** ./client/components/applause/index.js ***!
152
+ \*********************************************/
153
+ /*! exports provided: default */
154
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
155
+
156
+ "use strict";
157
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var blocks_poll_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! blocks/poll/util */ \"./client/blocks/poll/util.js\");\n/* harmony import */ var blocks_applause_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! blocks/applause/util */ \"./client/blocks/applause/util.js\");\n/* harmony import */ var components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/with-fallback-styles */ \"./client/components/with-fallback-styles/index.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var components_vote_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! components/vote/util */ \"./client/components/vote/util.js\");\n/* harmony import */ var components_brand_link__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! components/brand-link */ \"./client/components/brand-link/index.js\");\n/* harmony import */ var _animation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./animation */ \"./client/components/applause/animation.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\nvar Applause = function Applause(props) {\n var attributes = props.attributes,\n fallbackStyles = props.fallbackStyles,\n renderStyleProbe = props.renderStyleProbe;\n var apiPollId = attributes.apiPollData ? attributes.apiPollData.id : null;\n\n var _usePollVote = Object(data_hooks__WEBPACK_IMPORTED_MODULE_8__[\"usePollVote\"])(apiPollId, true),\n hasVoted = _usePollVote.hasVoted,\n vote = _usePollVote.vote;\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(0),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n currentVote = _useState2[0],\n setCurrentVote = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(0),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3, 2),\n queuedVotes = _useState4[0],\n setQueuedVotes = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(null),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState5, 2),\n timeoutHandle = _useState6[0],\n setTimeoutHandle = _useState6[1];\n\n var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(false),\n _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState7, 2),\n animationActiveState = _useState8[0],\n setAnimationActiveState = _useState8[1];\n\n var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(null),\n _useState10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState9, 2),\n animationTimeoutHandle = _useState10[0],\n setAnimationTimeoutHandle = _useState10[1];\n\n var _usePollResults = Object(data_hooks__WEBPACK_IMPORTED_MODULE_8__[\"usePollResults\"])(apiPollId),\n results = _usePollResults.results;\n\n var isClosed = Object(blocks_poll_util__WEBPACK_IMPORTED_MODULE_5__[\"isPollClosed\"])(attributes.pollStatus, attributes.closedAfterDateTime);\n\n var handleVote = function handleVote() {\n if (apiPollId === null || isClosed) {\n return;\n }\n\n if (animationTimeoutHandle) {\n clearTimeout(animationTimeoutHandle);\n }\n\n setAnimationActiveState(true);\n setAnimationTimeoutHandle(setTimeout(function () {\n setAnimationActiveState(false);\n }, 200));\n var newQueuedVoteCount = queuedVotes + 1;\n setQueuedVotes(newQueuedVoteCount);\n setCurrentVote(currentVote + 1);\n var answerId = attributes.apiPollData.answers[0].id;\n\n if (null !== timeoutHandle) {\n clearTimeout(timeoutHandle);\n }\n\n var handle = setTimeout(function () {\n vote([answerId], newQueuedVoteCount);\n setTimeoutHandle(null);\n setQueuedVotes(0);\n }, 1000);\n setTimeoutHandle(handle);\n };\n\n var classes = Object(blocks_applause_util__WEBPACK_IMPORTED_MODULE_6__[\"getBlockCssClasses\"])(attributes, 'crowdsignal-forms-applause', attributes.className, \"size-\".concat(attributes.size), {\n 'is-closed': isClosed\n });\n var styleVars = Object(blocks_applause_util__WEBPACK_IMPORTED_MODULE_6__[\"getApplauseStyleVars\"])(attributes, fallbackStyles);\n var apiVoteCount = null !== results ? Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"values\"])(results)[0] : 0;\n var displayedVoteCount = apiVoteCount + currentVote;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"Fragment\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: classes,\n style: styleVars,\n onClick: handleVote,\n onKeyPress: handleVote,\n role: \"button\",\n tabIndex: 0\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_animation__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n active: animationActiveState\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"p\", {\n className: \"crowdsignal-forms-applause__count\"\n }, Object(components_vote_util__WEBPACK_IMPORTED_MODULE_9__[\"formatVoteCount\"])(displayedVoteCount), \" Claps\"), renderStyleProbe()), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_brand_link__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n showBranding: hasVoted && !attributes.hideBranding,\n referralCode: \"cs-forms-applause\"\n }));\n};\n\nApplause.propTypes = {\n className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_7__[\"withFallbackStyles\"])(Applause));\n\n//# sourceURL=webpack:///./client/components/applause/index.js?");
158
+
159
+ /***/ }),
160
+
161
+ /***/ "./client/components/brand-link/index.js":
162
+ /*!***********************************************!*\
163
+ !*** ./client/components/brand-link/index.js ***!
164
+ \***********************************************/
165
+ /*! exports provided: default */
166
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
167
+
168
+ "use strict";
169
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n\n\n/**\n * External dependencies\n */\n\n\n\n\nvar BrandLink = function BrandLink(_ref) {\n var showBranding = _ref.showBranding,\n referralCode = _ref.referralCode;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__branding\"\n }, showBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"a\", {\n className: \"crowdsignal-forms__branding-link with-external-icon\",\n href: \"https://crowdsignal.com?ref=\".concat(referralCode),\n target: \"blank\",\n rel: \"noopener noreferrer\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Powered by Crowdsignal', 'crowdsignal-forms')), !showBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n className: \"crowdsignal-forms__branding-link\"\n }, \"\\xA0\"));\n};\n\nBrandLink.propTypes = {\n showBranding: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n referralCode: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (BrandLink);\n\n//# sourceURL=webpack:///./client/components/brand-link/index.js?");
170
+
171
+ /***/ }),
172
+
173
+ /***/ "./client/components/vote/util.js":
174
+ /*!****************************************!*\
175
+ !*** ./client/components/vote/util.js ***!
176
+ \****************************************/
177
+ /*! exports provided: formatVoteCount */
178
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
179
+
180
+ "use strict";
181
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formatVoteCount\", function() { return formatVoteCount; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\n/**\n * Formats the counter values on vote items:\n *\n * @param {number} count Vote count\n * @return {string} Formatted count\n */\n\nvar formatVoteCount = function formatVoteCount(count) {\n if (!count) {\n return '0';\n }\n\n if (count >= 10000000) {\n return \"\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"round\"])(count / 1000000), \"M\");\n }\n\n if (count >= 1000000) {\n return \"\".concat((count / 1000000).toFixed(1), \"M\");\n }\n\n if (count >= 10000) {\n return \"\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"round\"])(count / 1000), \"K\");\n }\n\n if (count >= 1000) {\n return \"\".concat((count / 1000).toFixed(1), \"K\");\n }\n\n return count.toString();\n};\n\n//# sourceURL=webpack:///./client/components/vote/util.js?");
182
+
183
+ /***/ }),
184
+
185
+ /***/ "./client/components/with-fallback-styles/index.js":
186
+ /*!*********************************************************!*\
187
+ !*** ./client/components/with-fallback-styles/index.js ***!
188
+ \*********************************************************/
189
+ /*! exports provided: withFallbackStyles */
190
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
191
+
192
+ "use strict";
193
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withFallbackStyles\", function() { return withFallbackStyles; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ \"./client/components/with-fallback-styles/util.js\");\n\n\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar StyleProbe = function StyleProbe() {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__style-probe\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"p\", null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"h3\", null, \"Text\"), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"wp-block-button\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"wp-block-button__link\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"entry-content\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"alignwide\"\n })));\n};\n\nvar getStyles = function getStyles(node) {\n if (null === node) {\n return {};\n }\n\n var buttonNode = node.querySelector('.wp-block-button__link');\n var textNode = node.querySelector('p');\n var h3Node = node.querySelector('h3');\n var wideContentNode = node.querySelector('.alignwide');\n var accentColor = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"getBackgroundColor\"])(buttonNode);\n var backgroundColor = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"getBackgroundColor\"])(textNode);\n var textColor = window.getComputedStyle(textNode).color; // Ensure that we don't end up with the same color for surface and accent.\n // Falls back to button border color, then text color.\n\n if (accentColor === backgroundColor) {\n var borderColor = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"getBorderColor\"])(buttonNode);\n accentColor = borderColor ? borderColor : textColor;\n }\n\n return {\n accentColor: accentColor,\n backgroundColor: backgroundColor,\n textColor: textColor,\n textColorInverted: window.getComputedStyle(buttonNode).color,\n textFont: window.getComputedStyle(textNode).fontFamily,\n textSize: window.getComputedStyle(textNode).fontSize,\n headingFont: window.getComputedStyle(h3Node).fontFamily,\n contentWideWidth: window.getComputedStyle(wideContentNode).maxWidth\n };\n};\n\nvar withFallbackStyles = function withFallbackStyles(WrappedComponent) {\n var getFallbackStyles = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"withFallbackStyles\"])(function (node) {\n return {\n fallbackStyles: getStyles(node.querySelector('.crowdsignal-forms__style-probe'))\n };\n });\n return getFallbackStyles(function (_ref) {\n var fallbackStyles = _ref.fallbackStyles,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"fallbackStyles\"]);\n\n var renderProbe = function renderProbe() {\n if (fallbackStyles) {\n return null;\n }\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(StyleProbe, null);\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(WrappedComponent, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n fallbackStyles: fallbackStyles || {},\n renderStyleProbe: renderProbe\n }, props));\n });\n};\n\n//# sourceURL=webpack:///./client/components/with-fallback-styles/index.js?");
194
+
195
+ /***/ }),
196
+
197
+ /***/ "./client/components/with-fallback-styles/util.js":
198
+ /*!********************************************************!*\
199
+ !*** ./client/components/with-fallback-styles/util.js ***!
200
+ \********************************************************/
201
+ /*! exports provided: getBackgroundColor, getBorderColor */
202
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
203
+
204
+ "use strict";
205
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBackgroundColor\", function() { return getBackgroundColor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBorderColor\", function() { return getBorderColor; });\n/**\n * Traverses the parent chain of the given node to get a 'best guess' of\n * what the background color is if the provided node has a transparent background.\n * Algorithm for traversing parent chain \"borrowed\" from\n * https://github.com/WordPress/gutenberg/blob/0c6e369/packages/block-editor/src/components/colors/use-colors.js#L201-L216\n *\n * @param {Element} backgroundColorNode The element to check for background color\n * @return {string} The background colour of the node\n */\nvar getBackgroundColor = function getBackgroundColor(backgroundColorNode) {\n var backgroundColor = window.getComputedStyle(backgroundColorNode).backgroundColor;\n\n while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === window.Node.ELEMENT_NODE) {\n backgroundColorNode = backgroundColorNode.parentNode;\n backgroundColor = window.getComputedStyle(backgroundColorNode).backgroundColor;\n }\n\n return backgroundColor;\n};\n/**\n * Gets the border color for a node, if it appears valid.\n * If we get '0px' for the width, then we likely don't have a border and return null.\n * We use 'borderBlockStartWidth' because of FF: https://bugzilla.mozilla.org/show_bug.cgi?id=137688\n *\n * @param {Element} borderNode The element to check for a border color\n * @return {string|null} The border colour value of null if invalid\n */\n\nvar getBorderColor = function getBorderColor(borderNode) {\n var borderWidth = window.getComputedStyle(borderNode).borderBlockStartWidth;\n return borderWidth !== '0px' ? window.getComputedStyle(borderNode).borderBlockStartColor : null;\n};\n\n//# sourceURL=webpack:///./client/components/with-fallback-styles/util.js?");
206
+
207
+ /***/ }),
208
+
209
+ /***/ "./client/data/hooks/index.js":
210
+ /*!************************************!*\
211
+ !*** ./client/data/hooks/index.js ***!
212
+ \************************************/
213
+ /*! exports provided: usePollResults, usePollVote, useAccountInfo */
214
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
215
+
216
+ "use strict";
217
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"usePollResults\", function() { return usePollResults; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"usePollVote\", function() { return usePollVote; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useAccountInfo\", function() { return useAccountInfo; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! js-cookie */ \"./node_modules/js-cookie/src/js.cookie.js\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var data_poll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! data/poll */ \"./client/data/poll/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ \"./client/data/hooks/util.js\");\n\n\n\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar usePollResults = function usePollResults(pollId) {\n var doFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n var _useFetch = Object(_util__WEBPACK_IMPORTED_MODULE_6__[\"useFetch\"])(function () {\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestResults\"])(pollId, doFetch);\n }, [pollId]),\n data = _useFetch.data,\n error = _useFetch.error,\n loading = _useFetch.loading;\n\n return {\n error: error,\n loading: loading,\n results: data\n };\n};\n/**\n * React Hook that returns state variables for voting status and a function to perform a vote.\n *\n * @param {number} pollId ID of the poll being loaded.\n * @param {boolean} enableVoteTracking sets whether or not the vote cookie is read and set\n * @param {boolean} storeAnswerIdsInCookie sets whether or not the answer ids are stored in the vote restriction cookie\n */\n\nvar usePollVote = function usePollVote(pollId) {\n var enableVoteTracking = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var storeAnswerIdsInCookie = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var cookieName = \"cs-poll-\".concat(pollId);\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),\n isVoting = _useState2[0],\n setIsVoting = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),\n hasVoted = _useState4[0],\n setHasVoted = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(''),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2),\n storedCookieValue = _useState6[0],\n setStoredCookieValue = _useState6[1];\n\n Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useEffect\"])(function () {\n if (enableVoteTracking && undefined !== js_cookie__WEBPACK_IMPORTED_MODULE_4___default.a.get(cookieName)) {\n setHasVoted(true);\n setStoredCookieValue(js_cookie__WEBPACK_IMPORTED_MODULE_4___default.a.get(cookieName));\n }\n }, []);\n\n var vote = /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(selectedAnswerIds) {\n var voteCount,\n nonce,\n cookieValue,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n voteCount = _args.length > 1 && _args[1] !== undefined ? _args[1] : 1;\n _context.prev = 1;\n setIsVoting(true);\n _context.next = 5;\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestVoteNonce\"])(pollId);\n\n case 5:\n nonce = _context.sent;\n _context.next = 8;\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestVote\"])(nonce, pollId, selectedAnswerIds, voteCount);\n\n case 8:\n setHasVoted(true);\n\n if (enableVoteTracking) {\n cookieValue = storeAnswerIdsInCookie ? selectedAnswerIds.join(',') : new Date().getTime();\n js_cookie__WEBPACK_IMPORTED_MODULE_4___default.a.set(cookieName, cookieValue, {\n sameSite: 'Strict',\n expires: 365\n });\n setStoredCookieValue(cookieValue);\n }\n\n case 10:\n _context.prev = 10;\n setIsVoting(false);\n return _context.finish(10);\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1,, 10, 13]]);\n }));\n\n return function vote(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n\n return {\n hasVoted: hasVoted,\n isVoting: isVoting,\n vote: vote,\n storedCookieValue: storedCookieValue\n };\n};\nvar defaultAccountInfo = {\n is_verified: true,\n capabilities: ['hide-branding'],\n signal_count: {\n count: 0,\n userLimit: 2500,\n shouldDisplay: false\n }\n};\nvar useAccountInfo = function useAccountInfo() {\n // assume everything is fine with the user and\n // hide branding until request comes back\n var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(defaultAccountInfo),\n _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState7, 2),\n accountInfo = _useState8[0],\n setAccountInfo = _useState8[1];\n\n var getAccountInfo = /*#__PURE__*/function () {\n var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() {\n var info;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestAccountInfo\"])();\n\n case 2:\n info = _context2.sent;\n setAccountInfo(info);\n return _context2.abrupt(\"return\", info);\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function getAccountInfo() {\n return _ref2.apply(this, arguments);\n };\n }();\n\n Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useEffect\"])(function () {\n getAccountInfo();\n }, []);\n return {\n accountInfo: accountInfo,\n reloadAccountInfo: getAccountInfo\n };\n};\n\n//# sourceURL=webpack:///./client/data/hooks/index.js?");
218
+
219
+ /***/ }),
220
+
221
+ /***/ "./client/data/hooks/util.js":
222
+ /*!***********************************!*\
223
+ !*** ./client/data/hooks/util.js ***!
224
+ \***********************************/
225
+ /*! exports provided: useFetch */
226
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
227
+
228
+ "use strict";
229
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useFetch\", function() { return useFetch; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/**\n * External dependencies\n */\n\nvar useFetch = function useFetch(fetchCallback, watchProps) {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n data = _useState2[0],\n setData = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3, 2),\n error = _useState4[0],\n setError = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(true),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState5, 2),\n loading = _useState6[0],\n setLoading = _useState6[1];\n\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n setLoading(true);\n setError(null);\n setData(null);\n fetchCallback().then(setData).catch(setError).finally(function () {\n return setLoading(false);\n });\n }, watchProps);\n return {\n data: data,\n error: error,\n loading: loading\n };\n};\n\n//# sourceURL=webpack:///./client/data/hooks/util.js?");
230
+
231
+ /***/ }),
232
+
233
+ /***/ "./client/data/poll/index.js":
234
+ /*!***********************************!*\
235
+ !*** ./client/data/poll/index.js ***!
236
+ \***********************************/
237
+ /*! exports provided: requestResults, requestVoteNonce, requestVote, CrowdsignalFormsError, CrowdsignalFormsServerError, requestIsCsConnected, requestAccountInfo */
238
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
239
+
240
+ "use strict";
241
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestResults\", function() { return requestResults; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestVoteNonce\", function() { return requestVoteNonce; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestVote\", function() { return requestVote; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CrowdsignalFormsError\", function() { return CrowdsignalFormsError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CrowdsignalFormsServerError\", function() { return CrowdsignalFormsServerError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestIsCsConnected\", function() { return requestIsCsConnected; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestAccountInfo\", function() { return requestAccountInfo; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ \"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js\");\n/* harmony import */ var _babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/api-fetch */ \"@wordpress/api-fetch\");\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { return function () { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * External dependencies\n */\n\n\n/**\n * Fetch the poll results for the given pollId\n *\n * @param {number} pollId Poll ID.\n * @param {boolean} doFetch Whether or not to actually perform the request.\n * @return {Promise} Promise that resolves to a key-value object with answer IDs and vote counts.\n */\n\nvar requestResults = /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee(pollId) {\n var doFetch,\n baseUrl,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n doFetch = _args.length > 1 && _args[1] !== undefined ? _args[1] : true;\n baseUrl = 'https://api.crowdsignal.com/v3/polls';\n\n if (doFetch) {\n _context.next = 4;\n break;\n }\n\n return _context.abrupt(\"return\", null);\n\n case 4:\n return _context.abrupt(\"return\", window.fetch(\"\".concat(baseUrl, \"/\").concat(pollId, \"/results\"), {\n method: 'GET',\n headers: {\n 'content-type': 'application/json'\n }\n }).then(function (response) {\n if (response.status >= 200 && response.status < 300) {\n return response.json();\n }\n\n throw response;\n }).then(function (response) {\n if (404 === response.status) {\n // poll doesn't exist on the platform yet, return an empty result\n return {};\n } else if (response.error) {\n throw new Error(response.message);\n }\n\n return response.results.votes_by_answer;\n }));\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function requestResults(_x) {\n return _ref.apply(this, arguments);\n };\n}();\nvar requestVoteNonce = /*#__PURE__*/function () {\n var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee2(pollId) {\n var hash, timestamp, respNonce, jsonNonce;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n hash = '5430eeac3911395001d731d9702fc38b'; // hash not used when format=json is passed\n\n timestamp = new Date().getTime();\n _context2.next = 4;\n return window.fetch(\"https://poll.fm/n/\".concat(hash, \"/\").concat(pollId, \"?\").concat(timestamp, \"&format=json\"));\n\n case 4:\n respNonce = _context2.sent;\n\n if (respNonce.ok) {\n _context2.next = 7;\n break;\n }\n\n throw new CrowdsignalFormsServerError();\n\n case 7:\n _context2.next = 9;\n return respNonce.json();\n\n case 9:\n jsonNonce = _context2.sent;\n\n if (jsonNonce.nonce) {\n _context2.next = 12;\n break;\n }\n\n throw new CrowdsignalFormsServerError();\n\n case 12:\n return _context2.abrupt(\"return\", jsonNonce.nonce);\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function requestVoteNonce(_x2) {\n return _ref2.apply(this, arguments);\n };\n}();\nvar requestVote = /*#__PURE__*/function () {\n var _ref3 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee3(nonce, pollId, selectedAnswerIds, voteCount) {\n var answerString, respVote, jsonVote;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n answerString = selectedAnswerIds.join(',');\n _context3.next = 3;\n return window.fetch(\"https://polls.polldaddy.com/vote-js.php?format=json&p=\".concat(pollId, \"&b=1&a=\").concat(answerString, \"&o=&va=16&cookie=0&n=\").concat(nonce, \"&url=\").concat(encodeURIComponent(window.location), \"&vi=\").concat(voteCount));\n\n case 3:\n respVote = _context3.sent;\n\n if (respVote.ok) {\n _context3.next = 6;\n break;\n }\n\n throw new CrowdsignalFormsServerError();\n\n case 6:\n _context3.next = 8;\n return respVote.json();\n\n case 8:\n jsonVote = _context3.sent;\n\n if (!('error' === jsonVote.status)) {\n _context3.next = 11;\n break;\n }\n\n throw new CrowdsignalFormsError(jsonVote.error);\n\n case 11:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function requestVote(_x3, _x4, _x5, _x6) {\n return _ref3.apply(this, arguments);\n };\n}();\nvar CrowdsignalFormsError = /*#__PURE__*/function (_Error) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default()(CrowdsignalFormsError, _Error);\n\n var _super = _createSuper(CrowdsignalFormsError);\n\n function CrowdsignalFormsError() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CrowdsignalFormsError);\n\n return _super.apply(this, arguments);\n }\n\n return CrowdsignalFormsError;\n}( /*#__PURE__*/_babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4___default()(Error));\nvar CrowdsignalFormsServerError = /*#__PURE__*/function (_CrowdsignalFormsErro) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default()(CrowdsignalFormsServerError, _CrowdsignalFormsErro);\n\n var _super2 = _createSuper(CrowdsignalFormsServerError);\n\n function CrowdsignalFormsServerError() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CrowdsignalFormsServerError);\n\n return _super2.call(this, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__[\"__\"])('Server error. Please try again.', 'crowdsignal-forms'));\n }\n\n return CrowdsignalFormsServerError;\n}(CrowdsignalFormsError);\n/**\n * Returns the connected state of the current user's account.\n *\n * @return {string} Enum value of the account's state.\n */\n\nvar requestIsCsConnected = /*#__PURE__*/function () {\n var _ref4 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee4() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7___default()({\n path: \"/crowdsignal-forms/v1/account/connected\",\n method: 'GET'\n });\n\n case 2:\n return _context4.abrupt(\"return\", _context4.sent);\n\n case 3:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n\n return function requestIsCsConnected() {\n return _ref4.apply(this, arguments);\n };\n}();\nvar requestAccountInfo = /*#__PURE__*/function () {\n var _ref5 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee5() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7___default()({\n path: '/crowdsignal-forms/v1/account/info',\n method: 'GET'\n });\n\n case 2:\n return _context5.abrupt(\"return\", _context5.sent);\n\n case 3:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }));\n\n return function requestAccountInfo() {\n return _ref5.apply(this, arguments);\n };\n}();\n\n//# sourceURL=webpack:///./client/data/poll/index.js?");
242
+
243
+ /***/ }),
244
+
245
+ /***/ "./client/lib/mutation-observer/index.js":
246
+ /*!***********************************************!*\
247
+ !*** ./client/lib/mutation-observer/index.js ***!
248
+ \***********************************************/
249
+ /*! exports provided: default */
250
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
251
+
252
+ "use strict";
253
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ \"react-dom\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n\n\nvar MutationObserver = function MutationObserver(dataAttributeName, blockBuilder) {\n if ('complete' === document.readyState) {\n return blockObserver(dataAttributeName, blockBuilder);\n }\n\n window.addEventListener('load', function () {\n return blockObserver(dataAttributeName, blockBuilder);\n });\n};\n\nvar initBlocks = function initBlocks(dataAttributeName, blockBuilder) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"forEach\"])(document.querySelectorAll(\"div[\".concat(dataAttributeName, \"]\")), function (element) {\n // Try-catch potentially prevents other blocks from breaking\n // when there's more then one on the page\n try {\n var attributes = JSON.parse(element.dataset[Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"camelCase\"])(dataAttributeName.substr('data-'.length))]);\n var block = blockBuilder(attributes, element);\n element.removeAttribute(dataAttributeName);\n Object(react_dom__WEBPACK_IMPORTED_MODULE_0__[\"render\"])(block, element);\n } catch (error) {\n // eslint-disable-next-line\n console.error('Crowdsignal Forms: Failed to parse block data for: %s', dataAttributeName);\n }\n });\n};\n\nvar blockObserver = function blockObserver(dataAttributeName, blockBuilder) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(window.CrowdsignalMutationObservers) && true === window.CrowdsignalMutationObservers[dataAttributeName]) {\n return;\n }\n\n var observer = new window.MutationObserver(function () {\n return initBlocks(dataAttributeName, blockBuilder);\n });\n observer.observe(document.body, {\n attributes: true,\n attributeFilter: [dataAttributeName],\n childList: true,\n subtree: true\n });\n\n if (Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(window.CrowdsignalMutationObservers)) {\n window.CrowdsignalMutationObservers = [];\n }\n\n window.CrowdsignalMutationObservers[dataAttributeName] = true; // Run the first pass on load\n\n initBlocks(dataAttributeName, blockBuilder);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (MutationObserver);\n\n//# sourceURL=webpack:///./client/lib/mutation-observer/index.js?");
254
+
255
+ /***/ }),
256
+
257
+ /***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
258
+ /*!*****************************************************************!*\
259
+ !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
260
+ \*****************************************************************/
261
+ /*! no static exports found */
262
+ /***/ (function(module, exports) {
263
+
264
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js?");
265
+
266
+ /***/ }),
267
+
268
+ /***/ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
269
+ /*!***************************************************************!*\
270
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
271
+ \***************************************************************/
272
+ /*! no static exports found */
273
+ /***/ (function(module, exports) {
274
+
275
+ eval("function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js?");
276
+
277
+ /***/ }),
278
+
279
+ /***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
280
+ /*!******************************************************************!*\
281
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
282
+ \******************************************************************/
283
+ /*! no static exports found */
284
+ /***/ (function(module, exports, __webpack_require__) {
285
+
286
+ eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js?");
287
+
288
+ /***/ }),
289
+
290
+ /***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js":
291
+ /*!**********************************************************************!*\
292
+ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
293
+ \**********************************************************************/
294
+ /*! no static exports found */
295
+ /***/ (function(module, exports) {
296
+
297
+ eval("function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js?");
298
+
299
+ /***/ }),
300
+
301
+ /***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js":
302
+ /*!*****************************************************************!*\
303
+ !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
304
+ \*****************************************************************/
305
+ /*! no static exports found */
306
+ /***/ (function(module, exports) {
307
+
308
+ eval("function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/asyncToGenerator.js?");
309
+
310
+ /***/ }),
311
+
312
+ /***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js":
313
+ /*!***************************************************************!*\
314
+ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
315
+ \***************************************************************/
316
+ /*! no static exports found */
317
+ /***/ (function(module, exports) {
318
+
319
+ eval("function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/classCallCheck.js?");
320
+
321
+ /***/ }),
322
+
323
+ /***/ "./node_modules/@babel/runtime/helpers/construct.js":
324
+ /*!**********************************************************!*\
325
+ !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
326
+ \**********************************************************/
327
+ /*! no static exports found */
328
+ /***/ (function(module, exports, __webpack_require__) {
329
+
330
+ eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nvar isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct */ \"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js\");\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/construct.js?");
331
+
332
+ /***/ }),
333
+
334
+ /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
335
+ /*!***************************************************************!*\
336
+ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
337
+ \***************************************************************/
338
+ /*! no static exports found */
339
+ /***/ (function(module, exports) {
340
+
341
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js?");
342
+
343
+ /***/ }),
344
+
345
+ /***/ "./node_modules/@babel/runtime/helpers/extends.js":
346
+ /*!********************************************************!*\
347
+ !*** ./node_modules/@babel/runtime/helpers/extends.js ***!
348
+ \********************************************************/
349
+ /*! no static exports found */
350
+ /***/ (function(module, exports) {
351
+
352
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/extends.js?");
353
+
354
+ /***/ }),
355
+
356
+ /***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js":
357
+ /*!***************************************************************!*\
358
+ !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
359
+ \***************************************************************/
360
+ /*! no static exports found */
361
+ /***/ (function(module, exports) {
362
+
363
+ eval("function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js?");
364
+
365
+ /***/ }),
366
+
367
+ /***/ "./node_modules/@babel/runtime/helpers/inherits.js":
368
+ /*!*********************************************************!*\
369
+ !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
370
+ \*********************************************************/
371
+ /*! no static exports found */
372
+ /***/ (function(module, exports, __webpack_require__) {
373
+
374
+ eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/inherits.js?");
375
+
376
+ /***/ }),
377
+
378
+ /***/ "./node_modules/@babel/runtime/helpers/isNativeFunction.js":
379
+ /*!*****************************************************************!*\
380
+ !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
381
+ \*****************************************************************/
382
+ /*! no static exports found */
383
+ /***/ (function(module, exports) {
384
+
385
+ eval("function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/isNativeFunction.js?");
386
+
387
+ /***/ }),
388
+
389
+ /***/ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
390
+ /*!*************************************************************************!*\
391
+ !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
392
+ \*************************************************************************/
393
+ /*! no static exports found */
394
+ /***/ (function(module, exports) {
395
+
396
+ eval("function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nmodule.exports = _isNativeReflectConstruct;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js?");
397
+
398
+ /***/ }),
399
+
400
+ /***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js":
401
+ /*!****************************************************************!*\
402
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
403
+ \****************************************************************/
404
+ /*! no static exports found */
405
+ /***/ (function(module, exports) {
406
+
407
+ eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js?");
408
+
409
+ /***/ }),
410
+
411
+ /***/ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
412
+ /*!*********************************************************************!*\
413
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
414
+ \*********************************************************************/
415
+ /*! no static exports found */
416
+ /***/ (function(module, exports) {
417
+
418
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js?");
419
+
420
+ /***/ }),
421
+
422
+ /***/ "./node_modules/@babel/runtime/helpers/nonIterableRest.js":
423
+ /*!****************************************************************!*\
424
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
425
+ \****************************************************************/
426
+ /*! no static exports found */
427
+ /***/ (function(module, exports) {
428
+
429
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/nonIterableRest.js?");
430
+
431
+ /***/ }),
432
+
433
+ /***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js":
434
+ /*!******************************************************************!*\
435
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
436
+ \******************************************************************/
437
+ /*! no static exports found */
438
+ /***/ (function(module, exports) {
439
+
440
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js?");
441
+
442
+ /***/ }),
443
+
444
+ /***/ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":
445
+ /*!************************************************************************!*\
446
+ !*** ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
447
+ \************************************************************************/
448
+ /*! no static exports found */
449
+ /***/ (function(module, exports, __webpack_require__) {
450
+
451
+ eval("var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/objectWithoutProperties.js?");
452
+
453
+ /***/ }),
454
+
455
+ /***/ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
456
+ /*!*****************************************************************************!*\
457
+ !*** ./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
458
+ \*****************************************************************************/
459
+ /*! no static exports found */
460
+ /***/ (function(module, exports) {
461
+
462
+ eval("function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js?");
463
+
464
+ /***/ }),
465
+
466
+ /***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
467
+ /*!**************************************************************************!*\
468
+ !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
469
+ \**************************************************************************/
470
+ /*! no static exports found */
471
+ /***/ (function(module, exports, __webpack_require__) {
472
+
473
+ eval("var _typeof = __webpack_require__(/*! ../helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n\nvar assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js?");
474
+
475
+ /***/ }),
476
+
477
+ /***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js":
478
+ /*!***************************************************************!*\
479
+ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
480
+ \***************************************************************/
481
+ /*! no static exports found */
482
+ /***/ (function(module, exports) {
483
+
484
+ eval("function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js?");
485
+
486
+ /***/ }),
487
+
488
+ /***/ "./node_modules/@babel/runtime/helpers/slicedToArray.js":
489
+ /*!**************************************************************!*\
490
+ !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
491
+ \**************************************************************/
492
+ /*! no static exports found */
493
+ /***/ (function(module, exports, __webpack_require__) {
494
+
495
+ eval("var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles */ \"./node_modules/@babel/runtime/helpers/arrayWithHoles.js\");\n\nvar iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit */ \"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableRest = __webpack_require__(/*! ./nonIterableRest */ \"./node_modules/@babel/runtime/helpers/nonIterableRest.js\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/slicedToArray.js?");
496
+
497
+ /***/ }),
498
+
499
+ /***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js":
500
+ /*!******************************************************************!*\
501
+ !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
502
+ \******************************************************************/
503
+ /*! no static exports found */
504
+ /***/ (function(module, exports, __webpack_require__) {
505
+
506
+ eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ \"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray */ \"./node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ \"./node_modules/@babel/runtime/helpers/nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js?");
507
+
508
+ /***/ }),
509
+
510
+ /***/ "./node_modules/@babel/runtime/helpers/typeof.js":
511
+ /*!*******************************************************!*\
512
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
513
+ \*******************************************************/
514
+ /*! no static exports found */
515
+ /***/ (function(module, exports) {
516
+
517
+ eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/typeof.js?");
518
+
519
+ /***/ }),
520
+
521
+ /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
522
+ /*!***************************************************************************!*\
523
+ !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
524
+ \***************************************************************************/
525
+ /*! no static exports found */
526
+ /***/ (function(module, exports, __webpack_require__) {
527
+
528
+ eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\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(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js?");
529
+
530
+ /***/ }),
531
+
532
+ /***/ "./node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
533
+ /*!****************************************************************!*\
534
+ !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
535
+ \****************************************************************/
536
+ /*! no static exports found */
537
+ /***/ (function(module, exports, __webpack_require__) {
538
+
539
+ eval("var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n\nvar setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nvar isNativeFunction = __webpack_require__(/*! ./isNativeFunction */ \"./node_modules/@babel/runtime/helpers/isNativeFunction.js\");\n\nvar construct = __webpack_require__(/*! ./construct */ \"./node_modules/@babel/runtime/helpers/construct.js\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/wrapNativeSuper.js?");
540
+
541
+ /***/ }),
542
+
543
+ /***/ "./node_modules/classnames/index.js":
544
+ /*!******************************************!*\
545
+ !*** ./node_modules/classnames/index.js ***!
546
+ \******************************************/
547
+ /*! no static exports found */
548
+ /***/ (function(module, exports, __webpack_require__) {
549
+
550
+ eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif ( true && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (true) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\t\t\treturn classNames;\n\t\t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {}\n}());\n\n\n//# sourceURL=webpack:///./node_modules/classnames/index.js?");
551
+
552
+ /***/ }),
553
+
554
+ /***/ "./node_modules/js-cookie/src/js.cookie.js":
555
+ /*!*************************************************!*\
556
+ !*** ./node_modules/js-cookie/src/js.cookie.js ***!
557
+ \*************************************************/
558
+ /*! no static exports found */
559
+ /***/ (function(module, exports, __webpack_require__) {
560
+
561
+ eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (true) {\n\t\t!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (true) {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n\n\n//# sourceURL=webpack:///./node_modules/js-cookie/src/js.cookie.js?");
562
+
563
+ /***/ }),
564
+
565
+ /***/ "./node_modules/object-assign/index.js":
566
+ /*!*********************************************!*\
567
+ !*** ./node_modules/object-assign/index.js ***!
568
+ \*********************************************/
569
+ /*! no static exports found */
570
+ /***/ (function(module, exports, __webpack_require__) {
571
+
572
+ "use strict";
573
+ eval("/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n//# sourceURL=webpack:///./node_modules/object-assign/index.js?");
574
+
575
+ /***/ }),
576
+
577
+ /***/ "./node_modules/prop-types/checkPropTypes.js":
578
+ /*!***************************************************!*\
579
+ !*** ./node_modules/prop-types/checkPropTypes.js ***!
580
+ \***************************************************/
581
+ /*! no static exports found */
582
+ /***/ (function(module, exports, __webpack_require__) {
583
+
584
+ "use strict";
585
+ eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar printWarning = function() {};\n\nif (undefined !== 'production') {\n var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"./node_modules/prop-types/lib/ReactPropTypesSecret.js\");\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (undefined !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (undefined !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/checkPropTypes.js?");
586
+
587
+ /***/ }),
588
+
589
+ /***/ "./node_modules/prop-types/factoryWithThrowingShims.js":
590
+ /*!*************************************************************!*\
591
+ !*** ./node_modules/prop-types/factoryWithThrowingShims.js ***!
592
+ \*************************************************************/
593
+ /*! no static exports found */
594
+ /***/ (function(module, exports, __webpack_require__) {
595
+
596
+ "use strict";
597
+ eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"./node_modules/prop-types/lib/ReactPropTypesSecret.js\");\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/factoryWithThrowingShims.js?");
598
+
599
+ /***/ }),
600
+
601
+ /***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
602
+ /*!************************************************************!*\
603
+ !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
604
+ \************************************************************/
605
+ /*! no static exports found */
606
+ /***/ (function(module, exports, __webpack_require__) {
607
+
608
+ "use strict";
609
+ eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactIs = __webpack_require__(/*! react-is */ \"./node_modules/react-is/index.js\");\nvar assign = __webpack_require__(/*! object-assign */ \"./node_modules/object-assign/index.js\");\n\nvar ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"./node_modules/prop-types/lib/ReactPropTypesSecret.js\");\nvar checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ \"./node_modules/prop-types/checkPropTypes.js\");\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (undefined !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (undefined !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (undefined !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (undefined !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n undefined !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js?");
610
+
611
+ /***/ }),
612
+
613
+ /***/ "./node_modules/prop-types/index.js":
614
+ /*!******************************************!*\
615
+ !*** ./node_modules/prop-types/index.js ***!
616
+ \******************************************/
617
+ /*! no static exports found */
618
+ /***/ (function(module, exports, __webpack_require__) {
619
+
620
+ eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (undefined !== 'production') {\n var ReactIs = __webpack_require__(/*! react-is */ \"./node_modules/react-is/index.js\");\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ \"./node_modules/prop-types/factoryWithTypeCheckers.js\")(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = __webpack_require__(/*! ./factoryWithThrowingShims */ \"./node_modules/prop-types/factoryWithThrowingShims.js\")();\n}\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/index.js?");
621
+
622
+ /***/ }),
623
+
624
+ /***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
625
+ /*!*************************************************************!*\
626
+ !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
627
+ \*************************************************************/
628
+ /*! no static exports found */
629
+ /***/ (function(module, exports, __webpack_require__) {
630
+
631
+ "use strict";
632
+ eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js?");
633
+
634
+ /***/ }),
635
+
636
+ /***/ "./node_modules/react-is/cjs/react-is.development.js":
637
+ /*!***********************************************************!*\
638
+ !*** ./node_modules/react-is/cjs/react-is.development.js ***!
639
+ \***********************************************************/
640
+ /*! no static exports found */
641
+ /***/ (function(module, exports, __webpack_require__) {
642
+
643
+ "use strict";
644
+ eval("/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n\n\nif (undefined !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n\n\n//# sourceURL=webpack:///./node_modules/react-is/cjs/react-is.development.js?");
645
+
646
+ /***/ }),
647
+
648
+ /***/ "./node_modules/react-is/cjs/react-is.production.min.js":
649
+ /*!**************************************************************!*\
650
+ !*** ./node_modules/react-is/cjs/react-is.production.min.js ***!
651
+ \**************************************************************/
652
+ /*! no static exports found */
653
+ /***/ (function(module, exports, __webpack_require__) {
654
+
655
+ "use strict";
656
+ eval("/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n\n\n//# sourceURL=webpack:///./node_modules/react-is/cjs/react-is.production.min.js?");
657
+
658
+ /***/ }),
659
+
660
+ /***/ "./node_modules/react-is/index.js":
661
+ /*!****************************************!*\
662
+ !*** ./node_modules/react-is/index.js ***!
663
+ \****************************************/
664
+ /*! no static exports found */
665
+ /***/ (function(module, exports, __webpack_require__) {
666
+
667
+ "use strict";
668
+ eval("\n\nif (undefined === 'production') {\n module.exports = __webpack_require__(/*! ./cjs/react-is.production.min.js */ \"./node_modules/react-is/cjs/react-is.production.min.js\");\n} else {\n module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ \"./node_modules/react-is/cjs/react-is.development.js\");\n}\n\n\n//# sourceURL=webpack:///./node_modules/react-is/index.js?");
669
+
670
+ /***/ }),
671
+
672
+ /***/ "@babel/runtime/regenerator":
673
+ /*!**********************************************!*\
674
+ !*** external {"this":"regeneratorRuntime"} ***!
675
+ \**********************************************/
676
+ /*! no static exports found */
677
+ /***/ (function(module, exports) {
678
+
679
+ eval("(function() { module.exports = this[\"regeneratorRuntime\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%22regeneratorRuntime%22%7D?");
680
+
681
+ /***/ }),
682
+
683
+ /***/ "@wordpress/api-fetch":
684
+ /*!*******************************************!*\
685
+ !*** external {"this":["wp","apiFetch"]} ***!
686
+ \*******************************************/
687
+ /*! no static exports found */
688
+ /***/ (function(module, exports) {
689
+
690
+ eval("(function() { module.exports = this[\"wp\"][\"apiFetch\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%5B%22wp%22,%22apiFetch%22%5D%7D?");
691
+
692
+ /***/ }),
693
+
694
+ /***/ "@wordpress/blocks":
695
+ /*!*****************************************!*\
696
+ !*** external {"this":["wp","blocks"]} ***!
697
+ \*****************************************/
698
+ /*! no static exports found */
699
+ /***/ (function(module, exports) {
700
+
701
+ eval("(function() { module.exports = this[\"wp\"][\"blocks\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%5B%22wp%22,%22blocks%22%5D%7D?");
702
+
703
+ /***/ }),
704
+
705
+ /***/ "@wordpress/components":
706
+ /*!*********************************************!*\
707
+ !*** external {"this":["wp","components"]} ***!
708
+ \*********************************************/
709
+ /*! no static exports found */
710
+ /***/ (function(module, exports) {
711
+
712
+ eval("(function() { module.exports = this[\"wp\"][\"components\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%5B%22wp%22,%22components%22%5D%7D?");
713
+
714
+ /***/ }),
715
+
716
+ /***/ "@wordpress/element":
717
+ /*!******************************************!*\
718
+ !*** external {"this":["wp","element"]} ***!
719
+ \******************************************/
720
+ /*! no static exports found */
721
+ /***/ (function(module, exports) {
722
+
723
+ eval("(function() { module.exports = this[\"wp\"][\"element\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%5B%22wp%22,%22element%22%5D%7D?");
724
+
725
+ /***/ }),
726
+
727
+ /***/ "@wordpress/i18n":
728
+ /*!***************************************!*\
729
+ !*** external {"this":["wp","i18n"]} ***!
730
+ \***************************************/
731
+ /*! no static exports found */
732
+ /***/ (function(module, exports) {
733
+
734
+ eval("(function() { module.exports = this[\"wp\"][\"i18n\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%5B%22wp%22,%22i18n%22%5D%7D?");
735
+
736
+ /***/ }),
737
+
738
+ /***/ "lodash":
739
+ /*!**********************************!*\
740
+ !*** external {"this":"lodash"} ***!
741
+ \**********************************/
742
+ /*! no static exports found */
743
+ /***/ (function(module, exports) {
744
+
745
+ eval("(function() { module.exports = this[\"lodash\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%22lodash%22%7D?");
746
+
747
+ /***/ }),
748
+
749
+ /***/ "react":
750
+ /*!*********************************!*\
751
+ !*** external {"this":"React"} ***!
752
+ \*********************************/
753
+ /*! no static exports found */
754
+ /***/ (function(module, exports) {
755
+
756
+ eval("(function() { module.exports = this[\"React\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%22React%22%7D?");
757
+
758
+ /***/ }),
759
+
760
+ /***/ "react-dom":
761
+ /*!************************************!*\
762
+ !*** external {"this":"ReactDOM"} ***!
763
+ \************************************/
764
+ /*! no static exports found */
765
+ /***/ (function(module, exports) {
766
+
767
+ eval("(function() { module.exports = this[\"ReactDOM\"]; }());\n\n//# sourceURL=webpack:///external_%7B%22this%22:%22ReactDOM%22%7D?");
768
+
769
+ /***/ })
770
+
771
+ /******/ })));
build/editor.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'eca1f8791482563f84488f462a8c5543');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'e246d8a4b0bc6baa7349ce7b9d09ec8e');
build/editor.js CHANGED
@@ -1,13 +1,4940 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=51)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){var r=n(40),o=n(41),a=n(29),l=n(42);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||l()}},function(e,t,n){e.exports=n(43)()},function(e,t,n){var r;
2
- /*!
3
- Copyright (c) 2017 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var l=o.apply(null,r);l&&e.push(l)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function n(e,t,n,r,o,a,l){try{var c=e[a](l),i=c.value}catch(s){return void n(s)}c.done?t(i):Promise.resolve(i).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var l=e.apply(t,r);function c(e){n(l,o,a,c,i,"next",e)}function i(e){n(l,o,a,c,i,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){var r=n(37),o=n(38),a=n(29),l=n(39);e.exports=function(e){return r(e)||o(e)||a(e)||l()}},function(e,t,n){var r=n(50);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r,o;
7
- /*!
8
- * JavaScript Cookie v2.2.1
9
- * https://github.com/js-cookie/js-cookie
10
- *
11
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
12
- * Released under the MIT license
13
- */!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var l=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=l,c}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var l=JSON.stringify(n);/^[\{\[]/.test(l)&&(n=l)}catch(s){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var i in a)a[i]&&(c+="; "+i,!0!==a[i]&&(c+="="+a[i].split(";")[0]));return document.cookie=t+"="+n+c}}function l(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],l=0;l<a.length;l++){var c=a[l].split("="),i=c.slice(1).join("=");n||'"'!==i.charAt(0)||(i=i.slice(1,-1));try{var s=t(c[0]);if(i=(r.read||r)(i,s)||t(i),n)try{i=JSON.parse(i)}catch(u){}if(o[s]=i,e===s)break}catch(u){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return l(e,!1)},o.getJSON=function(e){return l(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(23);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(28);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(45),o=n(46);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(20),o=n(23),a=n(47),l=n(48);function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return l(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},c(t)}e.exports=c},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},,,,function(e,t,n){var r=n(28);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(i){o=!0,a=i}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(44);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,l){if(l!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(23),o=n(49);function a(t,n,l){return o()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";n.r(t);var r=n(17),o=n(24),a=n(0),l=n(1),c=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 6L5.5 18C5.5 18.2761 5.72386 18.5 6 18.5L18 18.5C18.2761 18.5 18.5 18.2761 18.5 18L18.5 6C18.5 5.72386 18.2761 5.5 18 5.5L6 5.5C5.72386 5.5 5.5 5.72386 5.5 6ZM4 18L4 6C4 4.89543 4.89543 4 6 4L18 4C19.1046 4 20 4.89543 20 6L20 18C20 19.1046 19.1046 20 18 20L6 20C4.89543 20 4 19.1046 4 18Z"}),Object(a.createElement)("rect",{x:"15",y:"17",width:"6",height:"1.5",transform:"rotate(-90 15 17)"}),Object(a.createElement)("rect",{x:"11.5",y:"17",width:"9",height:"1.5",transform:"rotate(-90 11.5 17)"}),Object(a.createElement)("rect",{x:"8",y:"17",width:"5",height:"1.5",transform:"rotate(-90 8 17)"}))},i=n(18),s=n.n(i),u=n(5),d=n.n(u),f=n(12),b=n(3);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={tryFetch:!1,isFetching:!1,pollsByClientId:{},pollClientIds:[]},O={setTryFetchPollData:function(e){return{type:"SET_TRY_FETCH",tryFetch:e}},setIsFetchingPollData:function(e){return{type:"IS_FETCHING",isFetching:e}},setPollApiDataForClientId:function(e,t){return{type:"SET_POLL",clientId:e,pollData:t}},addPollClientId:function(e){return{type:"ADD_POLL_CLIENT_ID",clientId:e}},removePollClientId:function(e){return{type:"REMOVE_POLL_CLIENT_ID",clientId:e}}},v=(Object(f.registerStore)("crowdsignal-forms/polls",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TRY_FETCH":return p({},e,{tryFetch:!!t.tryFetch});case"IS_FETCHING":return p({},e,{isFetching:!!t.isFetching});case"SET_POLL":return p({},e,{pollsByClientId:p({},e.pollsByClientId,d()({},t.clientId,t.pollData))});case"ADD_POLL_CLIENT_ID":return p({},e,{pollClientIds:e.pollClientIds.indexOf(t.clientId)<0?[].concat(s()(e.pollClientIds),[t.clientId]):e.pollClientIds});case"REMOVE_POLL_CLIENT_ID":return p({},e,{pollClientIds:Object(b.filter)(e.pollClientIds,(function(e){return e!==t.clientId}))});default:return e}},actions:O,selectors:{shouldTryFetchingPollData:function(e){return!!e.tryFetch},getPollDataByClientId:function(e,t){return e.pollsByClientId[t]||null},getPollClientIds:function(e){return e.pollClientIds},isFetchingPollData:function(e){return!!e.isFetching}},controls:{},resolvers:{}}),n(10)),w=n.n(v),h=n(7),j=n.n(h),_=n(2),y=n.n(_),C=n(6),E=n(4),k=n(15),x=n(13),S=n(9),T=n.n(S),I=function(e){var t=e.hasVoted,n=e.isPollClosed,r=e.isPollHidden,o=e.showSubmitMessage,c=T()({"is-transparent":o},"crowdsignal-forms-poll__closed-banner");return Object(a.createElement)("div",{className:c},r&&Object(l.__)("This Poll is Hidden","crowdsignal-forms"),n&&!r&&Object(l.__)("This Poll is Closed","crowdsignal-forms"),t&&Object(l.__)("Thanks For Voting!","crowdsignal-forms"))},P=n(8),L=n.n(P),N=n(11),A=n.n(N),R=n(14),D=n.n(R),B=n(21),F=n.n(B),M=n(25),H=n.n(M),V=n(26),W=n.n(V),U=n(30),z=n.n(U),q=n(20),K=n.n(q),G=n(31),Z=n.n(G),Y=n(16),Q=n.n(Y);function J(e){return function(){var t,n=K()(e);if(X()){var r=K()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return z()(this,t)}}function X(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var $=function(){var e=D()(A.a.mark((function e(t){var n,r,o=arguments;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(o.length>1&&void 0!==o[1])||o[1],r="https://api.crowdsignal.com/v3/polls",n){e.next=4;break}return e.abrupt("return",null);case 4:return e.abrupt("return",window.fetch("".concat(r,"/").concat(t,"/results"),{method:"GET",headers:{"content-type":"application/json"}}).then((function(e){if(e.status>=200&&e.status<300)return e.json();throw e})).then((function(e){if(404===e.status)return{};if(e.error)throw new Error(e.message);return e.results.votes_by_answer})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=D()(A.a.mark((function e(t){var n,r,o;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"5430eeac3911395001d731d9702fc38b",n=(new Date).getTime(),e.next=4,window.fetch("https://poll.fm/n/".concat("5430eeac3911395001d731d9702fc38b","/").concat(t,"?").concat(n,"&format=json"));case 4:if((r=e.sent).ok){e.next=7;break}throw new re;case 7:return e.next=9,r.json();case 9:if((o=e.sent).nonce){e.next=12;break}throw new re;case 12:return e.abrupt("return",o.nonce);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=D()(A.a.mark((function e(t,n,r,o){var a,l,c;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.join(","),e.next=3,window.fetch("https://polls.polldaddy.com/vote-js.php?format=json&p=".concat(n,"&b=1&a=").concat(a,"&o=&va=16&cookie=0&n=").concat(t,"&url=").concat(encodeURIComponent(window.location),"&vi=").concat(o));case 3:if((l=e.sent).ok){e.next=6;break}throw new re;case 6:return e.next=8,l.json();case 8:if("error"!==(c=e.sent).status){e.next=11;break}throw new ne(c.error);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),ne=function(e){W()(n,e);var t=J(n);function n(){return H()(this,n),t.apply(this,arguments)}return n}(Z()(Error)),re=function(e){W()(n,e);var t=J(n);function n(){return H()(this,n),t.call(this,Object(l.__)("Server error. Please try again.","crowdsignal-forms"))}return n}(ne),oe=function(){var e=D()(A.a.mark((function e(){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q()({path:"/crowdsignal-forms/v1/account/info",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(e,t){var n=Object(_.useState)(null),r=j()(n,2),o=r[0],a=r[1],l=Object(_.useState)(null),c=j()(l,2),i=c[0],s=c[1],u=Object(_.useState)(!0),d=j()(u,2),f=d[0],b=d[1];return Object(_.useEffect)((function(){b(!0),s(null),a(null),e().then(a).catch(s).finally((function(){return b(!1)}))}),t),{data:o,error:i,loading:f}},le=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ae((function(){return $(e,t)}),[e]),r=n.data,o=n.error,a=n.loading;return{error:o,loading:a,results:r}},ce={is_verified:!0,capabilities:["hide-branding"],signal_count:{count:0,userLimit:2500,shouldDisplay:!1}},ie=function(){var e=Object(_.useState)(ce),t=j()(e,2),n=t[0],r=t[1],o=function(){var e=D()(A.a.mark((function e(){var t;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe();case 2:return t=e.sent,r(t),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(_.useEffect)((function(){o()}),[]),{accountInfo:n,reloadAccountInfo:o}},se=function(e){var t=e.error,n=e.loading,r=e.text,o=e.totalVotes,c=e.votes,i=T()("crowdsignal-forms-poll__answer-results",{"is-error":t,"is-loading":n}),s=!n&&!t,u=0===o?0:100*c/o,d={width:"".concat(parseInt(u,10),"%")};return Object(a.createElement)("div",{className:i},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-labels"},Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-answer"},Object(k.decodeEntities)(r)),Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-votes"},s&&Object(l.sprintf)(Object(l._n)("%s vote","%s votes",c,"crowdsignal-forms"),c.toLocaleString())),Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-percent"},s&&"".concat(u.toFixed(2),"%"))),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-progress-track"},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-progress-bar",style:d})))};se.propTypes={loading:L.a.bool,text:L.a.string.isRequired,totalVotes:L.a.number,votes:L.a.number};var ue,de=se,fe=Object(a.createElement)("span",null,"Hide Crowdsignal ads",Object(a.createElement)("br",null),"and get unlimited",Object(a.createElement)("br",null),"signals -"," ",Object(a.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer"},"Upgrade")),be=function(e){var t=e.showLogo,n=e.editing,r=e.message,o=e.trackRef,c=void 0===o?"cs-forms-poll":o;return Object(a.createElement)("div",{className:"crowdsignal-forms__footer-branding"},Object(a.createElement)("a",{className:"crowdsignal-forms__footer-cs-link",href:"https://crowdsignal.com?ref="+c,target:"_blank",rel:"noopener noreferrer"},r||Object(l.__)("Create your own poll with Crowdsignal","crowdsignal-forms")),n&&Object(a.createElement)(E.Tooltip,{text:fe,position:"top center"},Object(a.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer",className:"crowdsignal-forms__branding-promote"},Object(l.__)("Hide","crowdsignal-forms"))),t&&Object(a.createElement)("a",{href:"https://crowdsignal.com?ref="+c,target:"_blank",rel:"noopener noreferrer"},Object(a.createElement)("img",{className:"crowdsignal-forms__footer-branding-logo",src:"https://app.crowdsignal.com/images/svg/cs-logo-dots.svg",alt:"Crowdsignal sticker"})))},me=Object.freeze({THANK_YOU:"thank-you",CUSTOM_TEXT:"custom-text",REDIRECT:"redirect",RESULTS:"results"}),pe=Object.freeze({THEME_DEFAULT:"theme-default",GEORGIA:"georgia",PALATINO:"palatino",TIMES_NEW_ROMAN:"times-new-roman",ARIAL:"arial",IMPACT:"impact",LUCIDA:"lucida",TAHOMA:"tahoma",TREBUCHET:"trebuchet",VERDANA:"verdana",COURIER:"courier",CABIN:"Cabin",CHIVO:"Chivo",OPEN_SANS:"Open+Sans",FIRA_SANS:"Fira+Sans",ROBOTO:"Roboto",NUNITO:"Nunito",OVERPASS:"Overpass",LATO:"Lato",LIBRE_FRANKLIN:"Libre+Franklin",MONTSERRAT:"Montserrat",POPPINS:"Poppins",RUBIK:"Rubik",RALEWAY:"Raleway",JOSEFIN_SANS:"Josefin+Sans",ALEGREYA_SANS:"Alegreya+Sans",OSWALD:"Oswald"}),ge=Object.freeze([pe.CABIN,pe.CHIVO,pe.OPEN_SANS,pe.FIRA_SANS,pe.ROBOTO,pe.NUNITO,pe.OVERPASS,pe.LATO,pe.LIBRE_FRANKLIN,pe.MONTSERRAT,pe.POPPINS,pe.RUBIK,pe.RALEWAY,pe.JOSEFIN_SANS,pe.ALEGREYA_SANS,pe.OSWALD]),Oe=Object.freeze((ue={},d()(ue,pe.THEME_DEFAULT,null),d()(ue,pe.GEORGIA,"Georgia, serif"),d()(ue,pe.PALATINO,'"Palatino Linotype", "Book Antiqua", Palatino, serif'),d()(ue,pe.TIMES_NEW_ROMAN,'"Times New Roman", Times, serif'),d()(ue,pe.ARIAL,"Arial, Helvetica, sans-serif"),d()(ue,pe.IMPACT,"Impact, Charcoal, sans-serif"),d()(ue,pe.LUCIDA,'"Lucida Sans Unicode", "Lucida Grande", sans-serif'),d()(ue,pe.TAHOMA,"Tahoma, Geneva, sans-serif"),d()(ue,pe.TREBUCHET,'"Trebuchet MS", Helvetica, sans-serif'),d()(ue,pe.VERDANA,"Verdana, Geneva, sans-serif"),d()(ue,pe.COURIER,'"Courier New", Courier, monospace'),d()(ue,pe.CABIN,'"Cabin", sans-serif'),d()(ue,pe.CHIVO,'"Chivo", sans-serif'),d()(ue,pe.OPEN_SANS,'"Open Sans", sans-serif'),d()(ue,pe.FIRA_SANS,'"Fira Sans", sans-serif'),d()(ue,pe.ROBOTO,'"Roboto", sans-serif'),d()(ue,pe.NUNITO,'"Nunito", sans-serif'),d()(ue,pe.OVERPASS,'"Overpass", sans-serif'),d()(ue,pe.LATO,'"Lato", sans-serif'),d()(ue,pe.LIBRE_FRANKLIN,'"Libre Franklin", sans-serif'),d()(ue,pe.MONTSERRAT,'"Montserrat", sans-serif'),d()(ue,pe.POPPINS,'"Poppins", sans-serif'),d()(ue,pe.RUBIK,'"Rubik", sans-serif'),d()(ue,pe.RALEWAY,'"Raleway", sans-serif'),d()(ue,pe.JOSEFIN_SANS,'"Josefin Sans", sans-serif'),d()(ue,pe.ALEGREYA_SANS,'"Alegreya Sans", sans-serif'),d()(ue,pe.OSWALD,'"Oswald", sans-serif'),ue)),ve=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),we=Object.freeze({SHOW_RESULTS:"show-results",SHOW_CLOSED_BANNER:"show-closed-banner",HIDDEN:"hidden"}),he=Object.freeze({RADIO:"radio",BUTTON:"button"}),je=Object.freeze({LIST:"list",INLINE:"inline"});function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ye=function(e,t){return Object(b.map)(e,(function(e){return void 0!==e.answerIdFromApi?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{answerIdFromApi:t[e.answerId]})}))},Ce=function(e){return Object(b.isEmpty)(e)||void 0===e.text||null===e.text||""===e.text},Ee=function(e){var t=e.answers,n=e.pollIdFromApi,r=e.setErrorMessage,o=e.hideBranding,c=le(n),i=c.error,s=c.loading,u=c.results;Object(_.useEffect)((function(){r(i?Object(l.__)("Unfortunately, we're having some trouble retrieving the results for this poll at this time.","crowdsignal-forms"):"")}),[i]);var d=T()("crowdsignal-forms-poll__results",{"is-error":!!i,"is-loading":s}),f=Object(b.sum)(Object(b.values)(u));return Object(a.createElement)("div",{className:d},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__results-list"},Object(b.map)(t,(function(e){var t;return!Ce(e)&&Object(a.createElement)(de,{key:e.answerId,error:!!i,loading:s,text:e.text,totalVotes:f,votes:u&&null!==(t=u[e.answerIdFromApi])&&void 0!==t?t:0})}))),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__results-footer"},Object(a.createElement)("span",{className:"crowdsignal-forms-poll__results-total"},Object(l.sprintf)(Object(l._n)("%s total vote","%s total votes",f,"crowdsignal-forms"),f?f.toLocaleString():0)),!o&&Object(a.createElement)(be,null)))};Ee.propTypes={pollIdFromApi:L.a.number,answers:L.a.arrayOf(L.a.shape({answerId:L.a.string.isRequired,answerIdFromApi:L.a.number,text:L.a.string})).isRequired,setErrorMessage:L.a.func.isRequired,hideBranding:L.a.bool};var ke=Ee,xe=n(19),Se=n.n(xe),Te=function(e){for(var t=window.getComputedStyle(e).backgroundColor;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)e=e.parentNode,t=window.getComputedStyle(e).backgroundColor;return t},Ie=function(){return Object(a.createElement)("div",{className:"crowdsignal-forms__style-probe"},Object(a.createElement)("p",null),Object(a.createElement)("h3",null,"Text"),Object(a.createElement)("div",{className:"wp-block-button"},Object(a.createElement)("div",{className:"wp-block-button__link"})),Object(a.createElement)("div",{className:"entry-content"},Object(a.createElement)("div",{className:"alignwide"})))},Pe=function(e){if(null===e)return{};var t,n=e.querySelector(".wp-block-button__link"),r=e.querySelector("p"),o=e.querySelector("h3"),a=e.querySelector(".alignwide"),l=Te(n),c=Te(r),i=window.getComputedStyle(r).color;if(l===c){var s=(t=n,"0px"!==window.getComputedStyle(t).borderBlockStartWidth?window.getComputedStyle(t).borderBlockStartColor:null);l=s||i}return{accentColor:l,backgroundColor:c,textColor:i,textColorInverted:window.getComputedStyle(n).color,textFont:window.getComputedStyle(r).fontFamily,textSize:window.getComputedStyle(r).fontSize,headingFont:window.getComputedStyle(o).fontFamily,contentWideWidth:window.getComputedStyle(a).maxWidth}},Le=function(e){return Object(E.withFallbackStyles)((function(e){return{fallbackStyles:Pe(e.querySelector(".crowdsignal-forms__style-probe"))}}))((function(t){var n=t.fallbackStyles,r=Se()(t,["fallbackStyles"]);return Object(a.createElement)(e,w()({fallbackStyles:n||{},renderStyleProbe:function(){return n?null:Object(a.createElement)(Ie,null)}},r))}))};function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ae=function(e){var t=e.answer,n=e.answerStyle,r=e.index,o=e.isMultipleChoice,c=e.onChange,i=e.onDelete,s=e.onNewAnswer,u=e.disabled,f=function(e){return c(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{text:e}))},m=function(){return i(r)},p=function(){return s(r+1)},g=T()("crowdsignal-forms-poll__answer",{"is-multiple-choice":o,"is-button":he.BUTTON===n});return Object(a.createElement)("div",{className:g},he.RADIO===n&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"crowdsignal-forms-poll__check"}),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-label-wrapper"},u?Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-label"},t.text?Object(k.decodeEntities)(t.text):Object(l.__)("Enter an answer","crowdsignal-forms")):Object(a.createElement)(C.RichText,{className:"crowdsignal-forms-poll__answer-label",placeholder:Object(l.__)("Enter an answer","crowdsignal-forms"),multiline:!1,preserveWhiteSpace:!1,onChange:f,onSplit:p,onReplace:b.noop,onRemove:m,value:t.text,allowedFormats:[],withoutInteractiveFormatting:!0}))),he.BUTTON===n&&Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-poll__block-button"},u?Object(a.createElement)("div",{className:"wp-block-button__link crowdsignal-forms-poll__submit-button"},t.text?Object(k.decodeEntities)(t.text):Object(l.__)("Enter an answer","crowdsignal-forms")):Object(a.createElement)(C.RichText,{className:"wp-block-button__link crowdsignal-forms-poll__submit-button",placeholder:Object(l.__)("Enter an answer","crowdsignal-forms"),multiline:!1,preserveWhiteSpace:!1,onChange:f,onSplit:p,onReplace:b.noop,onRemove:m,value:t.text,allowedFormats:[],withoutInteractiveFormatting:!0})))},Re=function(e,t){return Object(b.tap)(e.querySelectorAll("[role=textbox]")[t],(function(e){return e&&e.focus()}))},De=function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.disabled,l=e.answerStyle,c=e.buttonAlignment,i=Object(_.useRef)(),u=function(e,n){return r({answers:Object(b.tap)(s()(t.answers),(function(t){t[e]=n}))})},d=function(e){Re(i.current,Math.max(e-1,0)),r({answers:Object(b.filter)(t.answers,(function(n){return t.answers.length<=2||n!==t.answers[e]}))})},f=function(e){e<t.answers.length&&r({answers:[].concat(s()(Object(b.slice)(t.answers,0,e)),[{}],s()(Object(b.slice)(t.answers,e,t.answers.length)))}),Re(i.current,Math.min(e,t.answers.length))},m=n&&Object(b.last)(t.answers).text?[].concat(s()(t.answers),[{}]):t.answers,p=T()({"is-button":he.BUTTON===l,"is-inline-button-alignment":je.INLINE===c},"crowdsignal-forms-poll__options"),g=he.RADIO===l;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{ref:i,className:p},Object(b.map)(m,(function(e,r){return function(e){return n&&!o||!Ce(e)}(e)&&Object(a.createElement)(Ae,{key:"poll-answer-".concat(r),answer:e,answerStyle:l,index:r,isMultipleChoice:t.isMultipleChoice,onChange:u,onDelete:d,onNewAnswer:f,disabled:o})}))),g&&Object(a.createElement)("div",{className:"crowdsignal-forms-poll__actions"},Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-poll__block-button"},o?Object(a.createElement)("div",{className:"wp-block-button__link crowdsignal-forms-poll__submit-button"},t.submitButtonLabel):Object(a.createElement)(C.RichText,{className:"wp-block-button__link crowdsignal-forms-poll__submit-button",onChange:function(e){return r({submitButtonLabel:e})},value:t.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0}))))},Be=function(e){return Object(b.includes)(pe,e)?Oe[e]:null},Fe=function(e,t){var n,r,o,a,l=Object(b.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(b.mapKeys)({borderColor:null!==(n=e.borderColor)&&void 0!==n?n:t.accentColor,borderRadius:"".concat(e.borderRadius,"px"),borderWidth:"".concat(e.borderWidth,"px"),bgColor:e.backgroundColor,bodyFontFamily:null!==(r=Be(e.fontFamily))&&void 0!==r?r:t.textFont,questionFontFamily:null!==(o=Be(e.fontFamily))&&void 0!==o?o:t.headingFont,submitButtonBgColor:e.submitButtonBackgroundColor||t.accentColor,submitButtonTextColor:e.submitButtonTextColor||t.textColorInverted,textColor:l,textColorProperties:null!==(a=Me(l))&&void 0!==a?a:"0, 0, 0",contentWideWidth:t.contentWideWidth},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))},Me=function(e){return!e||"string"!=typeof e||-1===e.indexOf("rgb")&&0!==e.indexOf("#")||-1<e.indexOf("rgba")?null:(0===e.indexOf("#")&&(e=He(e)),e.match(/\((.*?)\)/)[1])},He=function(e){var t=0,n=0,r=0,o=4===e.length?"#".concat(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]):e;return 7===o.length&&(t=parseInt(o.substr(1,2),16)||0,n=parseInt(o.substr(3,2),16)||0,r=parseInt(o.substr(5,2),16)||0),"rgb(".concat(t,", ").concat(n,", ").concat(r,")")},Ve=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-submit-button-bg-color":e.submitButtonBackgroundColor,"has-submit-button-text-color":e.submitButtonTextColor,"has-border-radius":null!==(t=e.borderRadius)&&void 0!==t&&t,"has-box-shadow":e.hasBoxShadow},r)},We=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(ve.CLOSED===e)return!0;if(ve.CLOSED_AFTER===e){var r=new Date(t);return r<n}return!1},Ue=function(e,t){return e.isMultipleChoice?he.RADIO:!Object(b.isEmpty)(t)&&t.indexOf("is-style-buttons")>-1?he.BUTTON:he.RADIO},ze=function(e){e?Object(r.registerBlockStyle)("crowdsignal-forms/poll",{name:"buttons",label:Object(l.__)("Buttons","crowdsignal-forms")}):Object(r.unregisterBlockStyle)("crowdsignal-forms/poll","buttons")},qe=function(e){var t=e.signalWarning;return Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.Button,{href:"https://crowdsignal.com/pricing",isSecondary:!0,target:"_blank"},Object(l.__)("Upgrade","crowdsignal-forms")),t?Object(a.createElement)("div",{className:"crowdsignal-forms__sidebar-promote"},Object(a.createElement)("em",null,Object(l.__)("Your free Crowdsignal account has ","crowdsignal-forms"),Object(a.createElement)("strong",null,Object(a.createElement)(E.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("reached the signals limit.","crowdsignal-forms"))))):Object(a.createElement)("div",{className:"crowdsignal-forms__sidebar-promote"},Object(a.createElement)("em",null,Object(l.__)("Hide Crowdsignal branding and get ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("unlimited signals","crowdsignal-forms")))))},Ke=function(e){var t,n=e.attributes,r=e.className,o=e.setAttributes,c=e.fallbackBackgroundColor,i=e.fallbackTextColor,s=e.fallbackSubmitButtonBackgroundColor,u=e.fallbackSubmitButtonTextColor,d=e.viewResultsUrl,f=e.shouldPromote,m=e.signalWarning,p=""!==d,g=Ue(n,r);return me.REDIRECT===n.confirmMessageType&&(n.confirmMessageType=me.THANK_YOU),Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,p?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{href:d,isSecondary:!0,target:"_blank",disabled:!p},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{value:Object(k.decodeEntities)(null!==(t=n.title)&&void 0!==t?t:n.question),label:Object(l.__)("Title of the poll block","crowdsignal-forms"),onChange:function(e){return o({title:e})}}),f&&Object(a.createElement)(qe,{signalWarning:m})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Confirmation message","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:n.confirmMessageType,label:Object(l.__)("On submission","crowdsignal-forms"),options:[{label:Object(l.__)("Show results","crowdsignal-forms"),value:me.RESULTS},{label:Object(l.__)('Show "Thank You" message',"crowdsignal-forms"),value:me.THANK_YOU},{label:Object(l.__)("Show a custom text message","crowdsignal-forms"),value:me.CUSTOM_TEXT}],onChange:function(e){return Object(b.includes)(me,e)&&o({confirmMessageType:e})}}),me.CUSTOM_TEXT===n.confirmMessageType&&Object(a.createElement)(E.TextareaControl,{value:n.customConfirmMessage,label:Object(l.__)("Message text","crowdsignal-forms"),placeholder:Object(l.__)("Thanks for voting!","crowdsignal-forms"),onChange:function(e){return o({customConfirmMessage:e})}}),me.REDIRECT===n.confirmMessageType&&Object(a.createElement)(C.URLInput,{className:"crowdsignal-forms__redirect-url",value:n.redirectAddress,label:Object(l.__)("Redirect address","crowdsignal-forms"),onChange:function(e){return o({redirectAddress:e})}})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:n.pollStatus,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:ve.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:ve.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:ve.CLOSED}],onChange:function(e){Object(b.includes)(ve,e)&&o({closedAfterDateTime:e===ve.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),ve.CLOSED_AFTER===n.pollStatus&&Object(a.createElement)(E.TimePicker,{currentTime:n.closedAfterDateTime,label:Object(l.__)("Close poll on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);o({closedAfterDateTime:t.toISOString()})},is12Hour:!0}),ve.OPEN!==n.pollStatus&&Object(a.createElement)(E.SelectControl,{value:n.closedPollState,label:Object(l.__)("When poll is closed","crowdsignal-forms"),options:[{label:Object(l.__)("Show results","crowdsignal-forms"),value:we.SHOW_RESULTS},{label:Object(l.__)('Show poll with "Closed" banner',"crowdsignal-forms"),value:we.SHOW_CLOSED_BANNER},{label:Object(l.__)("Hide poll","crowdsignal-forms"),value:we.HIDDEN}],onChange:function(e){return Object(b.includes)(we,e)&&o({closedPollState:e})}})),Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{value:n.textColor,onChange:function(e){return o({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:n.backgroundColor,onChange:function(e){return o({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:n.borderColor,onChange:function(e){return o({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]},Object(a.createElement)(C.ContrastChecker,{textColor:n.textColor,backgroundColor:n.backgroundColor,fallbackBackgroundColor:c,fallbackTextColor:i}),Object(a.createElement)(E.SelectControl,{value:n.fontFamily,label:Object(l.__)("Choose font","crowdsignal-forms"),options:[{label:Object(l.__)("Default theme font","crowdsignal-forms"),value:pe.THEME_DEFAULT},{label:"Alegreya Sans",value:pe.ALEGREYA_SANS},{label:"Arial",value:pe.ARIAL},{label:"Cabin",value:pe.CABIN},{label:"Chivo",value:pe.CHIVO},{label:"Courier",value:pe.COURIER},{label:"Fira Sans",value:pe.FIRA_SANS},{label:"Georgia",value:pe.GEORGIA},{label:"Impact",value:pe.IMPACT},{label:"Josefin Sans",value:pe.JOSEFIN_SANS},{label:"Lato",value:pe.LATO},{label:"Libre Franklin",value:pe.LIBRE_FRANKLIN},{label:"Lucida",value:pe.LUCIDA},{label:"Montserrat",value:pe.MONTSERRAT},{label:"Nunito",value:pe.NUNITO},{label:"Open Sans",value:pe.OPEN_SANS},{label:"Oswald",value:pe.OSWALD},{label:"Overpass",value:pe.OVERPASS},{label:"Palatino",value:pe.PALATINO},{label:"Poppins",value:pe.POPPINS},{label:"Raleway",value:pe.RALEWAY},{label:"Roboto",value:pe.ROBOTO},{label:"Rubik",value:pe.RUBIK},{label:"Tahoma",value:pe.TAHOMA},{label:"Times New Roman",value:pe.TIMES_NEW_ROMAN},{label:"Trebuchet",value:pe.TREBUCHET},{label:"Verdana",value:pe.VERDANA}],onChange:function(e){return Object(b.includes)(pe,e)&&o({fontFamily:e})}}),"full"!==n.align&&Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{type:"number",label:Object(l.__)("Width (%)","crowdsignal-forms"),value:n.width,onChange:function(e){return o({width:parseInt(e,10)})}}),Object(a.createElement)(E.Button,{isSmall:!0,className:"crowdsignal-forms__reset-width-button",onClick:function(){return o({width:100})}},Object(l.__)("Reset","crowdsignal-forms"))),Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),value:n.borderWidth,onChange:function(e){o({borderWidth:parseInt(e,10)||0})},type:"number",className:"crowdsignal-forms__small-text-input"}),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),value:n.borderRadius,onChange:function(e){o({borderRadius:parseInt(e,10)||0})},type:"number",className:"crowdsignal-forms__small-text-input"})),Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Drop shadow","crowdsignal-forms"),checked:n.hasBoxShadow,onChange:function(e){o({hasBoxShadow:e})}})),Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Button styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{value:n.submitButtonTextColor,onChange:function(e){return o({submitButtonTextColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:n.submitButtonBackgroundColor,onChange:function(e){return o({submitButtonBackgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")}]},Object(a.createElement)(C.ContrastChecker,{textColor:n.submitButtonTextColor,backgroundColor:n.submitButtonBackgroundColor,fallbackBackgroundColor:s,fallbackTextColor:u}),he.BUTTON===g&&Object(a.createElement)(E.SelectControl,{value:n.buttonAlignment,label:Object(l.__)("Alignment","crowdsignal-forms"),options:[{value:je.LIST,label:Object(l.__)("List","crowdsignal-forms")},{value:je.INLINE,label:Object(l.__)("Inline","crowdsignal-forms")}],onChange:function(e){return o({buttonAlignment:e})}})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Answer settings","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)(E.CheckboxControl,{checked:n.hasOneResponsePerComputer,label:Object(l.__)("One response per computer","crowdsignal-forms"),onChange:function(e){return o({hasOneResponsePerComputer:e})}}),Object(a.createElement)(E.CheckboxControl,{checked:n.randomizeAnswers,label:Object(l.__)("Randomize answer order","crowdsignal-forms"),onChange:function(e){return o({randomizeAnswers:e})}})))};function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ze=[{icon:function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M20 6.75H12V5.25H20V6.75Z"}),Object(a.createElement)("path",{d:"M20 12.5H12V11H20V12.5Z"}),Object(a.createElement)("path",{d:"M20 18.75H12V17.25H20V18.75Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7C6.55228 7 7 6.55228 7 6C7 5.44772 6.55228 5 6 5C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7ZM6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z"}),Object(a.createElement)("path",{d:"M6 12.75C6.55228 12.75 7 12.3023 7 11.75C7 11.1977 6.55228 10.75 6 10.75C5.44772 10.75 5 11.1977 5 11.75C5 12.3023 5.44772 12.75 6 12.75ZM6 13.75C7.10457 13.75 8 12.8546 8 11.75C8 10.6454 7.10457 9.75 6 9.75C4.89543 9.75 4 10.6454 4 11.75C4 12.8546 4.89543 13.75 6 13.75Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 19C6.55228 19 7 18.5523 7 18C7 17.4477 6.55228 17 6 17C5.44772 17 5 17.4477 5 18C5 18.5523 5.44772 19 6 19ZM6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z"}))},title:Object(l.__)("Choose one answer","crowdsignal-forms"),value:!1},{icon:function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75H5V12.75H7V10.75ZM4 9.75V13.75H8V9.75H4Z"}),Object(a.createElement)("path",{d:"M4 4H8V8H4V4Z"}),Object(a.createElement)("path",{d:"M4 16H8V20H4V16Z"}),Object(a.createElement)("path",{d:"M20 6.75H12V5.25H20V6.75Z"}),Object(a.createElement)("path",{d:"M20 12.5H12V11H20V12.5Z"}),Object(a.createElement)("path",{d:"M20 18.75H12V17.25H20V18.75Z"}))},title:Object(l.__)("Choose multiple answers","crowdsignal-forms"),value:!0}],Ye=function(e){var t=e.attributes,n=e.setAttributes,r=Object(b.map)(Ze,(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:e.value===t.isMultipleChoice,onClick:function(){n({isMultipleChoice:e.value}),ze(e.value)}})}));return Object(a.createElement)(C.BlockControls,null,Object(a.createElement)(E.Toolbar,{controls:r}))},Qe=function(e){var t=e.children;return Object(a.createElement)("div",{className:"crowdsignal-forms-poll__error-banner"},t)},Je="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Xe=new Uint8Array(16);function $e(){if(!Je)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Je(Xe)}for(var et=[],tt=0;tt<256;++tt)et.push((tt+256).toString(16).substr(1));var nt=function(e,t){var n=t||0;return(et[e[n+0]]+et[e[n+1]]+et[e[n+2]]+et[e[n+3]]+"-"+et[e[n+4]]+et[e[n+5]]+"-"+et[e[n+6]]+et[e[n+7]]+"-"+et[e[n+8]]+et[e[n+9]]+"-"+et[e[n+10]]+et[e[n+11]]+et[e[n+12]]+et[e[n+13]]+et[e[n+14]]+et[e[n+15]]).toLowerCase()};var rt=function(e,t,n){var r=(e=e||{}).random||(e.rng||$e)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return nt(r)},ot=function(e){var t=e.onEditClick;return Object(a.createElement)("div",{className:"crowdsignal-forms-poll__edit-bar"},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__edit-bar-message"},Object(l.__)("Warning! This poll is published. Deleting or reordering answers may cause the loss of existing responses.","crowdsignal-forms")),Object(a.createElement)("button",{className:"crowdsignal-forms-poll__edit-bar-button",onClick:function(){t()}},Object(l.__)("Edit","crowdsignal-forms")))},at=Object(b.debounce)((function(e,t){window._tkq=window._tkq||[],window._tkq.push(["recordEvent","crowdsignal_connection_failed",{author_id:e,block_name:t}])}),5e3),lt=function(e){var t=e.blockIcon,n=e.blockName,r=e.children,o=ie(),c=o.accountInfo,i=o.reloadAccountInfo,s=c&&0!==c.id,u=!!c.is_verified,d=Object(f.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("author")})),b=function(){var e=D()(A.a.mark((function e(){var t,n,r,o;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s,e.next=3,i();case 3:n=e.sent,r=0!==n.id,o=!!n.is_verified,r||window.open("/wp-admin/admin.php?page=crowdsignal-forms-setup"),t&&!o&&window.open("https://wordpress.com/me/account");case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(s&&u)return r;var m=!s,p=s&&!u;return at(d,n),Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal"},Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-header"},t,Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-title"},n)),Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-body"},m&&Object(l.__)("You need to connect to a Crowdsignal account to collect and manage your results.","crowdsignal-forms"),p&&Object(l.__)("Please verify your WordPress.com email address in order to publish your poll.","crowdsignal-forms")),Object(a.createElement)(E.Button,{isPrimary:!0,onClick:b},m&&Object(l.__)("Connect to Crowdsignal","crowdsignal-forms"),p&&Object(l.__)("Verify or Change your Email Address","crowdsignal-forms")))};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st=function(e){return!!e&&("crowdsignal-forms/poll"===e.name||"crowdsignal-forms/applause"===e.name||"crowdsignal-forms/vote"===e.name)},ut=!1,dt=!1;!function(){if(!ut){ut=!0;var e=Object(f.select)("core/editor"),t=e.isEditedPostDirty,n=e.isEditedPostNew,r=e.isSavingPost,o=e.isCleanNewPost,a=e.getCurrentPostId,l=Object(f.dispatch)("crowdsignal-forms/polls"),c=l.setTryFetchPollData,i=l.setPollApiDataForClientId,s=l.setIsFetchingPollData,u=Object(f.select)("crowdsignal-forms/polls"),d=u.shouldTryFetchingPollData,m=u.getPollDataByClientId,p=u.isFetchingPollData;Object(f.subscribe)((function(){var e=Object(b.filter)(Object(f.select)("core/block-editor").getBlocks(),st);if(!(e.length<1)&&(!p()&&!(o()||n()||r()||t())&&a())){var l=Object(b.filter)(e,(function(e){var t=e.attributes;return t.pollId&&null===m(t.pollId)}));l.length<1||(d()?p()||(s(!0),Promise.all(Object(b.map)(l,(function(e){var t=e.attributes.pollId;return Q()({path:"/crowdsignal-forms/v1/polls/".concat(t,"?cached=1"),method:"GET"}).then((function(e){return i(t,it({},e,{viewResultsUrl:"https://app.crowdsignal.com/polls/".concat(e.id,"/results")}))}),(function(){return i(t,null)}))}))).finally((function(){return s(!1)}))):c(!0))}}))}}();var ft=function(e){return function(t){var n=t.attributes,r=t.setAttributes,o=t.addPollClientId,l=t.removePollClientId;return Object(_.useEffect)((function(){return("p2tenberg"in window||"p2editor"in window)&&function(){if(!dt){dt=!0;var e=null,t=function(){null!==e&&clearTimeout(e),e=setTimeout((function(){return n()}),1e3+1e3*Math.random())},n=function(){var e=Object(f.select)("crowdsignal-forms/polls"),n=e.getPollClientIds,r=e.getPollDataByClientId,o=e.shouldTryFetchingPollData,a=e.isFetchingPollData,l=Object(b.filter)(n(),(function(e){return null===r(e)}));if(l.length<1)return t();var c=Object(f.dispatch)("crowdsignal-forms/polls"),i=c.setTryFetchPollData,s=c.setPollApiDataForClientId,u=c.setIsFetchingPollData;return o()?a()||(u(!0),Promise.all(Object(b.map)(l,(function(e){return Q()({path:"/crowdsignal-forms/v1/polls/".concat(e,"?cached=1"),method:"GET"}).then((function(t){return s(e,it({},t,{viewResultsUrl:"https://app.crowdsignal.com/polls/".concat(t.id,"/results")}))}),(function(){return s(e,null)}))}))).finally((function(){return u(!1)}))):i(!0),t()};n()}}(),n.pollId&&o(n.pollId),function(){n.pollId&&l(n.pollId)}}),[]),function(e,t,n,r){Object(_.useEffect)((function(){if(!Object(b.isEmpty)(t))if(window.csPolls||(window.csPolls={}),window.csPolls[t])if(window.csPolls[t].indexOf(e)>-1);else{var o=Object(b.map)(n,(function(e){return Object(b.omit)(e,["answerId"])}));r({pollId:null,answers:o})}else window.csPolls[t]=[e]}),[t])}(t.clientId,n.pollId,n.answers,r),Object(a.createElement)(e,t)}},bt=function(e){return Object(x.compose)([Object(f.withSelect)((function(e,t){var n=e("crowdsignal-forms/polls"),r=n.getPollDataByClientId,o=n.shouldTryFetchingPollData,a=n.isFetchingPollData,l=t.attributes;return{pollDataFromApi:l.pollId?r(l.pollId):null,getPollDataByClientId:r,shouldTryFetchingPollData:o,isFetchingPollData:a}})),Object(f.withDispatch)((function(e){var t=e("crowdsignal-forms/polls");return{setTryFetchPollData:t.setTryFetchPollData,setPollApiDataForClientId:t.setPollApiDataForClientId,setIsFetchingPollData:t.setIsFetchingPollData,addPollClientId:t.addPollClientId,removePollClientId:t.removePollClientId}})),ft])(e)},mt=function(e){var t=e.icon,n=e.children,r=e.componentActions,o=void 0===r?[]:r,l=Se()(e,["icon","children","componentActions"]);return Object(a.createElement)(E.Notice,w()({className:"crowdsignal-forms__editor-notice"},l),t&&Object(a.createElement)("div",{className:"crowdsignal-forms__editor-notice-icon"},Object(a.createElement)(E.Icon,{icon:t})),Object(a.createElement)("div",{className:"crowdsignal-forms__editor-notice-text"},n),o.map((function(e){return e})))},pt=function(){return Object(a.createElement)(mt,{icon:"warning",status:"warn",isDismissible:!1,actions:[{label:Object(l.__)("Please upgrade","crowdsignal-forms"),url:"https://crowdsignal.com/pricing",className:"is-secondary",noDefaultClasses:!0}]},Object(l.__)("Your free Crowdsignal account has ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("exceeded 2500 signals.","crowdsignal-forms")))};function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ot=Object(x.compose)([Le,bt,function(e){return function(t){var n=t.attributes,r=t.setAttributes;return Object(_.useEffect)((function(){if(!n.pollId){var e=rt();r({pollId:e})}if(Object(b.some)(n.answers,(function(e){return!e.answerId&&e.text}))){var t=Object(b.map)(n.answers,(function(e){return e.answerId||!e.text?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{answerId:rt()})}));r({answers:t})}})),Object(a.createElement)(e,t)}}])((function(e){var t=e.attributes,n=e.className,r=e.fallbackStyles,o=e.isSelected,i=e.setAttributes,s=e.renderStyleProbe,u=e.pollDataFromApi,d=Object(_.useState)(!0),f=j()(d,2),m=f[0],p=f[1],g=Object(_.useState)(""),O=j()(g,2),v=O[0],h=O[1],y=!Object(b.isEmpty)(u),x=u?u.viewResultsUrl:"",S=u?u.id:null,T={};u&&Object(b.map)(u.answers,(function(e){T[e.client_id]=e.id}));var P=o&&"full"!==t.align,L="full"!==t.align?"".concat(t.width,"%"):"auto",N=We(t.pollStatus,t.closedAfterDateTime),A=t.note||o&&m,R=N&&we.SHOW_RESULTS===t.closedPollState,D=N&&we.HIDDEN===t.closedPollState,B=ie().accountInfo,F=Object(b.get)(B,"capabilities",[]).includes("hide-branding");Object(_.useEffect)((function(){return p(!y)}),[o]),Object(_.useEffect)((function(){o&&ze(!t.isMultipleChoice)}),[t.isMultipleChoice,o]);var M=o&&y&&!m,H=Ue(t,n);t.fontFamily&&function(e){if(!Object(b.isEmpty)(e)&&pe.THEME_DEFAULT!==e&&-1!==ge.indexOf(e)){var t="https://fonts.googleapis.com/css2?family=".concat(e,":wght@400;600;700&display=swap");0===Object(b.filter)(Array.from(document.head.childNodes),(function(e){return"link"===e.nodeName.toLowerCase()&&e.href===t})).length&&document.head.appendChild(Object(b.tap)(document.createElement("link"),(function(e){e.type="text/css",e.rel="stylesheet",e.href=t})))}}(t.fontFamily);var V=Object(b.get)(B,["signalCount","shouldDisplay"]),W=V&&Object(b.get)(B,["signalCount","count"])>=Object(b.get)(B,["signalCount","userLimit"]);return Object(a.createElement)(lt,{blockIcon:Object(a.createElement)(c,null),blockName:Object(l.__)("Crowdsignal Poll","crowdsignal-forms")},Object(a.createElement)(Ye,e),Object(a.createElement)(Ke,w()({},e,{viewResultsUrl:x,shouldPromote:V,signalWarning:W})),W&&Object(a.createElement)(pt,null),Object(a.createElement)(E.ResizableBox,{className:"crowdsignal-forms-poll__resize-wrapper",size:{height:"auto",width:L},minWidth:"25%",maxWidth:"100%",enable:{left:!0,right:!0},onResizeStop:function(e,t,n){"right"!==t&&"left"!==t||i({width:Object(b.round)(n.offsetWidth/n.parentNode.offsetWidth*100)})},showHandle:P,resizeRatio:2},Object(a.createElement)("div",{className:Ve(t,n,{"is-selected-in-editor":o,"is-closed":N,"is-hidden":D},"crowdsignal-forms-poll"),style:Fe(t,r)},M&&Object(a.createElement)(ot,{onEditClick:function(){p(!0)}}),v&&Object(a.createElement)(Qe,null,v),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__content"},m?Object(a.createElement)(C.RichText,{tagName:"h3",className:"crowdsignal-forms-poll__question",placeholder:Object(l.__)("Enter your question","crowdsignal-forms"),onChange:function(e){return i({question:e})},value:t.question,allowedFormats:[]}):Object(a.createElement)(C.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-poll__question",placeholder:Object(l.__)("Enter your question","crowdsignal-forms"),value:Object(k.decodeEntities)(t.question)}),A&&(m?Object(a.createElement)(C.RichText,{tagName:"p",className:"crowdsignal-forms-poll__note",placeholder:Object(l.__)("Add a note (optional)","crowdsignal-forms"),onChange:function(e){return i({note:e})},value:t.note,allowedFormats:[]}):Object(a.createElement)(C.RichText.Content,{tagName:"div",className:"crowdsignal-forms-poll__note",placeholder:Object(l.__)("Add a note (optional)","crowdsignal-forms"),value:Object(k.decodeEntities)(t.note)})),!R&&Object(a.createElement)(De,w()({},e,{setAttributes:i,disabled:!m,answerStyle:H,buttonAlignment:t.buttonAlignment})),R&&Object(a.createElement)(ke,{answers:ye(Object(b.filter)(t.answers,(function(e){return!Ce(e)})),T),pollIdFromApi:S,hideBranding:F,setErrorMessage:h}),!F&&Object(a.createElement)(be,{editing:!0})),N&&Object(a.createElement)(I,{isPollHidden:D,isPollClosed:N}),s())))})),vt={pollId:{type:"string",default:null},isMultipleChoice:{type:"boolean",default:!1},title:{type:"string",default:null},question:{type:"string",default:""},note:{type:"string",default:""},answers:{type:"array",default:[{},{},{}],items:{type:"object",properties:{answerId:{type:"string",default:null},text:{type:"string",default:""}}}},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},confirmMessageType:{type:"string",default:me.RESULTS},customConfirmMessage:{type:"string"},redirectAddress:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"},borderWidth:{type:"number",default:2},borderRadius:{type:"number",default:0},hasBoxShadow:{type:"boolean",default:!1},fontFamily:{type:"string",default:pe.THEME_DEFAULT},hasOneResponsePerComputer:{type:"boolean",default:!1},randomizeAnswers:{type:"boolean",default:!1},align:{type:"string"},width:{type:"number",default:100},pollStatus:{type:"string",default:ve.OPEN},closedPollState:{type:"string",default:we.SHOW_RESULTS},closedAfterDateTime:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},buttonAlignment:{type:"string",default:je.LIST}},wt={title:Object(l.__)("Poll","crowdsignal-forms"),description:Object(l.__)("Create polls and get your audience’s opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:[Object(l.__)("ask","crowdsignal-forms"),"crowdsignal",Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("pop","crowdsignal-forms"),Object(l.__)("question","crowdsignal-forms"),Object(l.__)("quiz","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms"),Object(l.__)("vote","crowdsignal-forms")],icon:Object(a.createElement)(c,null),edit:Ot,attributes:vt,supports:{align:["center","wide","full"]},getEditWrapperProps:function(e){return{"data-align":e.align}},example:{attributes:{question:Object(l.__)("How did you hear about us?","crowdsignal-forms"),answers:[{text:Object(l.__)("Search","crowdsignal-forms")},{text:Object(l.__)("Friend","crowdsignal-forms")},{text:Object(l.__)("Email","crowdsignal-forms")}]}},styles:[{name:"default",label:Object(l.__)("List","crowdsignal-forms"),isDefault:!0},{name:"buttons",label:Object(l.__)("Buttons","crowdsignal-forms")}],variations:[{isDefault:!0,attributes:{className:"is-style-buttons"}}]},ht=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("mask",{id:"maskVote","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"3",y:"3",width:"18",height:"18"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5999 9.525H13.3942L14.1779 5.75475L14.2027 5.49075C14.2027 5.1525 14.0624 4.839 13.8397 4.61625L12.9652 3.75L7.53666 9.18675C7.23142 9.48374 7.04992 9.89621 7.04991 10.3499H3.75V18.6824H7.05V18.6178C7.05963 19.5172 7.79834 20.25 8.69991 20.25H16.1249C16.8097 20.25 17.3954 19.8375 17.6429 19.2435L20.1344 13.4273C20.2087 13.2375 20.2499 13.0395 20.2499 12.825V11.175C20.2499 10.2675 19.5074 9.525 18.5999 9.525ZM7.05 18.6178V10.3499H7.04991C7.04991 10.35 7.04991 10.35 7.04991 10.35V18.6C7.04991 18.6059 7.04994 18.6119 7.05 18.6178ZM18.5999 12.825L16.1249 18.6H8.69986V10.35L12.2804 6.76952L11.3646 11.175H18.5999V12.825Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskVote)"},Object(a.createElement)("rect",{x:"1.00024",y:"1.25",width:"22",height:"22"})))},jt=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),_t=(Object.freeze({CONNECTED:"connected",NOT_CONNECTED:"not-connected",NOT_VERIFIED:"not-verified"}),[{title:Object(l.__)("Small","crowdsignal-forms"),size:"small"},{title:Object(l.__)("Medium","crowdsignal-forms"),size:"medium"},{title:Object(l.__)("Large","crowdsignal-forms"),size:"large"}]),yt={position:"bottom right",isAlternate:!0,className:"crowdsignal-forms-vote__size-dropdown"},Ct=function(e){var t=e.attributes,n=e.setAttributes,r=e.viewResultsUrl,o=e.signalWarning,c=e.shouldPromote,i=""!==r;return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,i?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{href:r,isSecondary:!0,target:"_blank",disabled:!i},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{value:t.title,label:Object(l.__)("Title of the vote block","crowdsignal-forms"),onChange:function(e){return n({title:e})}}),c&&Object(a.createElement)(qe,{signalWarning:o})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms")},Object(a.createElement)(E.SelectControl,{value:t.pollStatus,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:jt.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:jt.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:jt.CLOSED}],onChange:function(e){Object(b.includes)(jt,e)&&n({closedAfterDateTime:e===jt.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),jt.CLOSED_AFTER===t.pollStatus&&Object(a.createElement)(E.TimePicker,{currentTime:t.closedAfterDateTime,label:Object(l.__)("Close vote block on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},Et=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1894 5.75L13.6668 5.75L13.6668 4.25H19.0002H19.7502L19.7502 5V10.3333H18.2502V6.81054L6.81072 18.25L10.3333 18.25V19.75L5 19.75H4.25V19V13.6666L5.75 13.6666L5.75 17.1894L17.1894 5.75Z"}))},kt=function(){return Object(a.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("line",{x1:"8",y1:"8.5",x2:"24",y2:"8.5",stroke:"currentColor"}),Object(a.createElement)("line",{x1:"8",y1:"15",x2:"24",y2:"15",stroke:"currentColor",strokeWidth:"2"}),Object(a.createElement)("line",{x1:"8",y1:"22.5",x2:"24",y2:"22.5",stroke:"currentColor",strokeWidth:"3"}))},xt=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M12.0078 18.2266C14.7656 18.2266 16.4062 15.9531 16.4062 12.3438C16.4062 8.73438 14.75 6.5 12.0078 6.5C9.25781 6.5 7.59375 8.75 7.59375 12.3516C7.59375 15.9688 9.24219 18.2266 12.0078 18.2266ZM12.0078 16.5781C10.5078 16.5781 9.625 15 9.625 12.3438C9.625 9.73438 10.5234 8.14844 12.0078 8.14844C13.4844 8.14844 14.3672 9.71875 14.3672 12.3516C14.3672 15.0078 13.5 16.5781 12.0078 16.5781Z"}))};function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Tt=function(e){var t=e.attributes,n=e.setAttributes,r=Object(b.get)(t,"size","medium"),o=_t,c=Object(_.useState)(!1),i=j()(c,2),s=i[0],u=i[1],f=function(){return u(!s)},m=t.hideResults?Object(l.__)("Show vote counters","crowdsignal-forms"):Object(l.__)("Hide vote counters","crowdsignal-forms");return Object(a.createElement)(C.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{isCollapsed:!0,icon:Et,label:Object(l.__)("Change block size","crowdsignal-forms"),popoverProps:yt,controls:o.map((function(e){var t=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:r===t,role:"menuitemradio",onClick:function(){return n({size:t})}})}))}),Object(a.createElement)(E.Toolbar,{controls:[{icon:kt,onClick:f},{icon:xt,label:m,onClick:function(){return n({hideResults:!t.hideResults})},isActive:!t.hideResults,isPressed:!t.hideResults}]}),s&&Object(a.createElement)(E.Popover,{className:"crowdsignal-forms__border-popover",onFocusOutside:f},Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderWidth:parseInt(e,10)||0})},value:t.borderWidth||0}),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderRadius:parseInt(e,10)||0})},value:t.borderRadius||0}))))},It=function(e){return function(t){return function(n){var r=n.attributes,o=n.setAttributes;return Object(_.useEffect)((function(){Object(b.forEach)(e,(function(e){r[e]||o(d()({},e,rt()))}))}),[]),Object(a.createElement)(t,n)}}},Pt=function(e,t,n,r){return Object(_.useEffect)((function(){Object(b.isEmpty)(window.csBlockTypeCount)&&(window.csBlockTypeCount={}),Object(b.isNil)(window.csBlockTypeCount[e])&&(window.csBlockTypeCount[e]=0),window.csBlockTypeCount[e]++,null===n.title&&(1===window.csBlockTypeCount[e]?r({title:t}):r({title:"".concat(t," ").concat(window.csBlockTypeCount[e])}))}),[])},Lt=Object(x.compose)([bt,It(["pollId"])])((function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.pollDataFromApi;Pt(e.name,Object(l.__)("Untitled Vote","crowdsignal-forms"),t,n);var c=o?o.viewResultsUrl:"",i=We(t.pollStatus,t.closedAfterDateTime),s=T()(r,"crowdsignal-forms-vote","size-".concat(t.size),{"no-results":t.hideResults,"is-closed":i}),u=function(e){return Object(b.mapKeys)({borderRadius:"".concat(e.borderRadius,"px"),borderWidth:"".concat(e.borderWidth,"px")},(function(e,t){return"--crowdsignal-forms-vote-".concat(Object(b.kebabCase)(t))}))}(t),d=ie().accountInfo,f=Object(b.get)(d,["signalCount","shouldDisplay"]),m=f&&Object(b.get)(d,["signalCount","count"])>=Object(b.get)(d,["signalCount","userLimit"]);return Object(a.createElement)(lt,{blockIcon:null,blockName:Object(l.__)("Crowdsignal Vote","crowdsignal-forms")},Object(a.createElement)(Ct,w()({},e,{shouldPromote:f,signalWarning:m,viewResultsUrl:c})),Object(a.createElement)(Tt,e),Object(a.createElement)("div",{className:s,style:u},Object(a.createElement)("div",{className:"crowdsignal-forms-vote__items"},Object(a.createElement)(C.InnerBlocks,{template:[["crowdsignal-forms/vote-item",{type:"up"}],["crowdsignal-forms/vote-item",{type:"down"}]],templateInsertUpdatesSelection:!1,templateLock:"insert",allowedBlocks:["crowdsignal-forms/vote-item"],orientation:"horizontal",__experimentalMoverDirection:"horizontal"}))))})),Nt={pollId:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},title:{type:"string",default:null},pollStatus:{type:"string",default:jt.OPEN},closedAfterDateTime:{type:"string",default:null},size:{type:"string",default:"medium"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:5},hideResults:{type:"boolean",default:!1}},At={title:Object(l.__)("Vote","crowdsignal-forms"),description:Object(l.__)("Allow your audience to rate your work or express their opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:[Object(l.__)("ballot","crowdsignal-forms"),Object(l.__)("button","crowdsignal-forms"),Object(l.__)("count","crowdsignal-forms"),"crowdsignal",Object(l.__)("deciding","crowdsignal-forms"),Object(l.__)("decision","crowdsignal-forms"),Object(l.__)("elect","crowdsignal-forms"),Object(l.__)("election","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("like","crowdsignal-forms"),Object(l.__)("nero","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("polling","crowdsignal-forms"),Object(l.__)("rate","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms"),Object(l.__)("thumb down","crowdsignal-forms"),Object(l.__)("thumb up","crowdsignal-forms"),Object(l.__)("thumbs","crowdsignal-forms"),Object(l.__)("vote","crowdsignal-forms"),Object(l.__)("voting","crowdsignal-forms")],icon:Object(a.createElement)(ht,null),edit:Lt,save:function(){return Object(a.createElement)(C.InnerBlocks.Content,null)},attributes:Nt,example:{attributes:{className:"crowdsignal-forms-vote__example",size:"large"}}},Rt=function(e){var t=e.attributes,n=e.setAttributes;return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Styling","crowdsignal-forms"),initialOpen:!0,colorSettings:[{value:t.textColor,onChange:function(e){return n({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:t.borderColor,onChange:function(e){return n({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]}))};function Dt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Bt(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ft=n(22),Mt=n.n(Ft),Ht=!1,Vt=y.a.createContext(null),Wt="entering",Ut="entered",zt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o="exited",r.appearStatus=Wt):o=Ut:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Dt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Wt&&n!==Ut&&(t=Wt):n!==Wt&&n!==Ut||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Wt?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Mt.a.findDOMNode(this),r],a=o[0],l=o[1],c=this.getTimeouts(),i=r?c.appear:c.enter;!e&&!n||Ht?this.safeSetState({status:Ut},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:Wt},(function(){t.props.onEntering(a,l),t.onTransitionEnd(i,(function(){t.safeSetState({status:Ut},(function(){t.props.onEntered(a,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Mt.a.findDOMNode(this);t&&!Ht?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Mt.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Bt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return y.a.createElement(Vt.Provider,{value:null},"function"==typeof n?n(e,r):y.a.cloneElement(y.a.Children.only(n),r))},t}(y.a.Component);function qt(){}zt.contextType=Vt,zt.propTypes={},zt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qt,onEntering:qt,onEntered:qt,onExit:qt,onExiting:qt,onExited:qt},zt.UNMOUNTED="unmounted",zt.EXITED="exited",zt.ENTERING=Wt,zt.ENTERED=Ut,zt.EXITING="exiting";var Kt,Gt,Zt=zt;var Yt="out-in",Qt="in-out",Jt=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Xt=((Kt={})[Yt]=function(e){var t=e.current,n=e.changeState;return y.a.cloneElement(t,{in:!1,onExited:Jt(t,"onExited",(function(){n(Wt,null)}))})},Kt[Qt]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,y.a.cloneElement(r,{in:!0,onEntered:Jt(r,"onEntered",(function(){n(Wt)}))})]},Kt),$t=((Gt={})[Yt]=function(e){var t=e.children,n=e.changeState;return y.a.cloneElement(t,{in:!0,onEntered:Jt(t,"onEntered",(function(){n(Ut,y.a.cloneElement(t,{in:!0}))}))})},Gt[Qt]=function(e){var t=e.current,n=e.children,r=e.changeState;return[y.a.cloneElement(t,{in:!1,onExited:Jt(t,"onExited",(function(){r(Ut,y.a.cloneElement(n,{in:!0}))}))}),y.a.cloneElement(n,{in:!0})]},Gt),en=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Ut,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Dt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Wt&&e.mode===Qt?{status:Wt}:!t.current||(n=t.current,r=e.children,n===r||y.a.isValidElement(n)&&y.a.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:y.a.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,l=o.current,c={children:n,current:l,changeState:this.changeState,status:a};switch(a){case Wt:e=$t[r](c);break;case"exiting":e=Xt[r](c);break;case Ut:e=l}return y.a.createElement(Vt.Provider,{value:{isMounting:!this.appeared}},e)},t}(y.a.Component);en.propTypes={},en.defaultProps={mode:Yt};var tn=en;function nn(){return(nn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function rn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var on=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=rn(n.className,r):n.setAttribute("class",rn(n.className&&n.className.baseVal||"",r)));var n,r}))},an=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Dt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&on(e,r),o&&on(e,o),a&&on(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Bt(e,["classNames"]));return y.a.createElement(Zt,nn({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(y.a.Component);an.defaultProps={classNames:""},an.propTypes={};var ln=an,cn=function(e){var t=e.className,n=e.fillColor,r=void 0===n?"black":n;return Object(a.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clipThumbsUp)"},Object(a.createElement)("mask",{id:"maskThumbsUp","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"-1",width:"20",height:"20"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.35 6.24998H13.5658L14.4366 2.06081L14.4641 1.76748C14.4641 1.39165 14.3083 1.04331 14.0608 0.795813L13.0891 -0.166687L7.05748 5.87415C6.71831 6.20415 6.51664 6.66248 6.51664 7.16665L2.84998 7.16665V16.425H6.51664V16.3333C6.51664 17.3416 7.34164 18.1666 8.34998 18.1666H16.6C17.3608 18.1666 18.0116 17.7083 18.2866 17.0483L21.055 10.5858C21.1375 10.375 21.1833 10.155 21.1833 9.91665V8.08331C21.1833 7.07498 20.3583 6.24998 19.35 6.24998ZM19.35 9.91665L16.6 16.3333H8.34998V7.16665L12.3283 3.18831L11.3108 8.08331H19.35V9.91665Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskThumbsUp)"},Object(a.createElement)("rect",{x:"0.999878",y:"-3.05176e-05",width:"22",height:"22",fill:r}))),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clipThumbsUp"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))},sn=function(e){var t=e.className,n=e.fillColor,r=void 0===n?"black":n;return Object(a.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clipThumbsDown)"},Object(a.createElement)("mask",{id:"maskThumbsDown","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"5",width:"20",height:"20"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.65002 17.75H10.4342L9.56336 21.9392L9.53586 22.2325C9.53586 22.6083 9.69169 22.9567 9.93919 23.2042L10.9109 24.1667L16.9425 18.1258C17.2817 17.7958 17.4834 17.3375 17.4834 16.8333L21.15 16.8333L21.15 7.57499H17.4834V7.66666C17.4834 6.65832 16.6584 5.83332 15.65 5.83332H7.40003C6.63919 5.83332 5.98836 6.29165 5.71336 6.95166L2.94503 13.4142C2.86253 13.625 2.81669 13.845 2.81669 14.0833V15.9167C2.81669 16.925 3.64169 17.75 4.65002 17.75ZM4.65002 14.0833L7.40002 7.66666H15.65L15.65 16.8333L11.6717 20.8117L12.6892 15.9167H4.65002V14.0833Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskThumbsDown)"},Object(a.createElement)("rect",{x:"23.0001",y:"24",width:"22",height:"22",transform:"rotate(-180 23.0001 24)",fill:r}))),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clipThumbsDown"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))},un=function(e){return e?e>=1e7?"".concat(Object(b.round)(e/1e6),"M"):e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e4?"".concat(Object(b.round)(e/1e3),"K"):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):e.toString():"0"},dn=function(e){var t=e.attributes,n=e.voteCount,r=e.apiAnswerId,o=e.onVote,l=e.disabled,c=e.isVotedOn,i=e.hideCount,s=e.fallbackStyles,u=e.isInEditor,d=t.className,f=t.type,m=Object(_.useState)(0),p=j()(m,2),g=p[0],O=p[1],v=function(){!l&&o&&(O(1),o(r))},w="up"===f?cn:sn,h="is-type-".concat(f),y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(t,"crowdsignal-forms-vote-item",d,{"is-voted-on":c,"is-disabled":l,"is-in-editor":u},h),C=function(e,t){var n=Object(b.isEmpty)(e.textColor)?t.textColor:e.textColor,r=Object(b.isEmpty)(e.backgroundColor)?t.backgroundColor:e.backgroundColor;return Object(b.mapKeys)({borderColor:e.borderColor,bgColor:r,textColor:n,votedColor:t.accentColor},(function(e,t){return"--crowdsignal-forms-vote-".concat(Object(b.kebabCase)(t))}))}(t,s),E=n+g;return Object(a.createElement)("div",{className:y,onClick:v,onKeyPress:v,role:"button",style:C,tabIndex:0},Object(a.createElement)(w,{className:"crowdsignal-forms-vote-item__icon",fillColor:"currentColor"}),!i&&Object(a.createElement)(tn,{mode:"in-out"},Object(a.createElement)(ln,{key:g,classNames:"crowdsignal-forms-vote-item__count",timeout:300},Object(a.createElement)("div",{className:"crowdsignal-forms-vote-item__count"},un(E)))))};dn.propTypes={apiAnswerId:L.a.number,className:L.a.string,disabled:L.a.bool,isVotedOn:L.a.bool,onVote:L.a.func,type:L.a.string.isRequired,voteCount:L.a.number.isRequired};var fn=dn,bn=Object(x.compose)([Le,It(["answerId"])])((function(e){var t=e.attributes,n=e.className,r=e.fallbackStyles,o=e.renderStyleProbe;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Rt,e),Object(a.createElement)(fn,{attributes:t,fallbackStyles:r,className:n,voteCount:0,isInEditor:!0,type:t.type}),o())})),mn={title:Object(l.__)("Vote Item","crowdsignal-forms"),description:Object(l.__)("Allow your audience to rate your work or express their opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",parent:["crowdsignal-forms/vote"],icon:Object(a.createElement)(ht,null),edit:bn,attributes:{answerId:{type:"string",default:null},type:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"}}},pn=function(e){var t=e.showBranding,n=e.referralCode;return Object(a.createElement)("div",{className:"crowdsignal-forms__branding"},t&&Object(a.createElement)("a",{className:"crowdsignal-forms__branding-link with-external-icon",href:"https://crowdsignal.com?ref=".concat(n),target:"blank",rel:"noopener noreferrer"},Object(l.__)("Powered by Crowdsignal","crowdsignal-forms")),!t&&Object(a.createElement)("span",{className:"crowdsignal-forms__branding-link"}," "))};pn.propTypes={showBranding:L.a.bool,referralCode:L.a.string.isRequired};var gn=pn,On=function(e){var t=e.active,n=e.className,r=T()("crowdsignal-forms-applause__animation",n,{"is-active":t});return Object(a.createElement)("svg",{className:r,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-right"},Object(a.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813ZM23.6104 16.605L22.538 10.5434L22.0547 10.6502L21.4234 15.0093L13.8574 9.48855C13.8574 9.48855 13.4691 9.4034 13.349 9.56801C13.2288 9.73262 13.2638 9.95632 13.4284 10.0764L17.667 13.1693L16.8091 14.345L11.2301 10.2742C11.0655 10.1541 10.8418 10.189 10.7217 10.3536C10.6016 10.5182 10.6365 10.7419 10.8012 10.862L16.3802 14.9329L15.5222 16.1087L10.4782 12.4282C10.3136 12.3081 10.0899 12.343 9.96978 12.5076C9.84967 12.6722 9.88463 12.8959 10.0492 13.0161L15.0933 16.6966L14.2353 17.8723L10.7962 15.3629C10.6316 15.2428 10.4079 15.2777 10.2878 15.4423C10.1677 15.607 10.2027 15.8307 10.3673 15.9508L18.5094 21.8919C19.1561 22.3638 20.0713 22.2207 20.5431 21.5741L23.3571 17.7175C23.5888 17.4001 23.6766 16.9957 23.6104 16.605Z"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-left"},Object(a.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813ZM20.3108 16.805L19.2384 10.7434L18.7551 10.8502L18.1239 15.2093L10.5578 9.68854C10.5578 9.68854 10.1695 9.6034 10.0494 9.76801C9.92928 9.93261 9.96425 10.1563 10.1289 10.2764L14.3675 13.3692L13.5096 14.545L7.93056 10.4742C7.76595 10.354 7.54224 10.389 7.42213 10.5536C7.30202 10.7182 7.33699 10.9419 7.50159 11.062L13.0806 15.1329L12.2227 16.3087L7.17864 12.6282C7.01403 12.5081 6.79033 12.543 6.67022 12.7076C6.55011 12.8722 6.58507 13.0959 6.74968 13.216L11.7937 16.8965L10.9358 18.0723L7.49667 15.5629C7.33206 15.4428 7.10836 15.4777 6.98825 15.6423C6.86814 15.8069 6.9031 16.0307 7.06771 16.1508L15.2099 22.0919C15.8566 22.5638 16.7717 22.4207 17.2436 21.7741L20.0576 17.9175C20.2892 17.6001 20.3771 17.1957 20.3108 16.805Z"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-small"},Object(a.createElement)("rect",{x:"15.4854",y:"4.42176",width:"1.5",height:"3",transform:"rotate(8 15.4854 4.42176)"}),Object(a.createElement)("rect",{x:"19.9369",y:"5.15548",width:"1.5",height:"3",transform:"rotate(43 19.9369 5.15548)"}),Object(a.createElement)("rect",{x:"11.1523",y:"4.78963",width:"1.5",height:"3",transform:"rotate(-27 11.1523 4.78963)"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-large"},Object(a.createElement)("rect",{x:"23.453",y:"2.41095",width:"1.5",height:"3",transform:"rotate(38 23.453 2.41095)"}),Object(a.createElement)("rect",{x:"26.9413",y:"5.27211",width:"1.5",height:"3",transform:"rotate(73 26.9413 5.27211)"}),Object(a.createElement)("rect",{x:"19.5165",y:"0.562988",width:"1.5",height:"3",transform:"rotate(3 19.5165 0.562988)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.788011 0.615662 0.615662 0.788011 8.52597 2.41095)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.292372 0.956305 0.956305 0.292372 5.03775 5.27211)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.99863 0.052336 0.052336 0.99863 12.4625 0.562988)"})))},vn=function(e){var t=e.attributes,n=e.fallbackStyles,r=e.renderStyleProbe,o=t.apiPollData?t.apiPollData.id:null,l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="cs-poll-".concat(e),o=Object(_.useState)(!1),a=j()(o,2),l=a[0],c=a[1],i=Object(_.useState)(!1),s=j()(i,2),u=s[0],d=s[1],f=Object(_.useState)(""),b=j()(f,2),m=b[0],p=b[1];Object(_.useEffect)((function(){t&&void 0!==F.a.get(r)&&(d(!0),p(F.a.get(r)))}),[]);var g=function(){var o=D()(A.a.mark((function o(a){var l,i,s,u=arguments;return A.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l=u.length>1&&void 0!==u[1]?u[1]:1,o.prev=1,c(!0),o.next=5,ee(e);case 5:return i=o.sent,o.next=8,te(i,e,a,l);case 8:d(!0),t&&(s=n?a.join(","):(new Date).getTime(),F.a.set(r,s,{sameSite:"Strict",expires:365}),p(s));case 10:return o.prev=10,c(!1),o.finish(10);case 13:case"end":return o.stop()}}),o,null,[[1,,10,13]])})));return function(e){return o.apply(this,arguments)}}();return{hasVoted:u,isVoting:l,vote:g,storedCookieValue:m}}(o,!0),c=l.hasVoted,i=l.vote,s=Object(_.useState)(0),u=j()(s,2),d=u[0],f=u[1],m=Object(_.useState)(0),p=j()(m,2),g=p[0],O=p[1],v=Object(_.useState)(null),w=j()(v,2),h=w[0],y=w[1],C=Object(_.useState)(!1),E=j()(C,2),k=E[0],x=E[1],S=Object(_.useState)(null),I=j()(S,2),P=I[0],L=I[1],N=le(o).results,R=We(t.pollStatus,t.closedAfterDateTime),B=function(){if(null!==o&&!R){P&&clearTimeout(P),x(!0),L(setTimeout((function(){x(!1)}),200));var e=g+1;O(e),f(d+1);var n=t.apiPollData.answers[0].id;null!==h&&clearTimeout(h);var r=setTimeout((function(){i([n],e),y(null),O(0)}),1e3);y(r)}},M=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(t,"crowdsignal-forms-applause",t.className,"size-".concat(t.size),{"is-closed":R}),H=function(e,t){var n=Object(b.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(b.mapKeys)({bgColor:e.backgroundColor||t.backgroundColor,textColor:n,hoverColor:t.accentColor,borderRadius:"".concat(e.borderRadius||0,"px"),borderWidth:"".concat(e.borderWidth||0,"px"),borderColor:e.borderColor},(function(e,t){return"--crowdsignal-forms-applause-".concat(Object(b.kebabCase)(t))}))}(t,n),V=(null!==N?Object(b.values)(N)[0]:0)+d;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:M,style:H,onClick:B,onKeyPress:B,role:"button",tabIndex:0},Object(a.createElement)(On,{active:k}),Object(a.createElement)("p",{className:"crowdsignal-forms-applause__count"},un(V)," Claps"),r()),Object(a.createElement)(gn,{showBranding:c&&!t.hideBranding,referralCode:"cs-forms-applause"}))};vn.propTypes={className:L.a.string};var wn=Le(vn),hn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),jn=[{title:Object(l.__)("Small","crowdsignal-forms"),size:"small"},{title:Object(l.__)("Medium","crowdsignal-forms"),size:"medium"},{title:Object(l.__)("Large","crowdsignal-forms"),size:"large"}],_n={position:"bottom right",isAlternate:!0,className:"crowdsignal-forms-vote__size-dropdown"};function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cn=function(e){var t=e.attributes,n=e.setAttributes,r=Object(b.get)(t,"size","medium"),o=jn,c=Object(_.useState)(!1),i=j()(c,2),s=i[0],u=i[1],f=function(){return u(!s)};return Object(a.createElement)(C.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{isCollapsed:!0,icon:Et,label:Object(l.__)("Change block size","crowdsignal-forms"),popoverProps:_n,controls:o.map((function(e){var t=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:r===t,role:"menuitemradio",onClick:function(){return n({size:t})}})}))}),Object(a.createElement)(E.Toolbar,{controls:[{icon:kt,onClick:f}]}),s&&Object(a.createElement)(E.Popover,{className:"crowdsignal-forms__border-popover",onFocusOutside:f},Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderWidth:parseInt(e,10)||0})},value:t.borderWidth}),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderRadius:parseInt(e,10)||0})},value:t.borderRadius}))))},En=function(e){var t=e.attributes,n=e.setAttributes,r=e.viewResultsUrl,o=e.shouldPromote,c=e.signalWarning,i=""!==r;return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,i?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{href:r,isSecondary:!0,target:"_blank",disabled:!i},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{value:t.title,label:Object(l.__)("Title of the applause block","crowdsignal-forms"),onChange:function(e){return n({title:e})}}),o&&Object(a.createElement)(qe,{signalWarning:c})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms")},Object(a.createElement)(E.SelectControl,{value:t.pollStatus,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:hn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:hn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:hn.CLOSED}],onChange:function(e){Object(b.includes)(hn,e)&&n({closedAfterDateTime:e===hn.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),hn.CLOSED_AFTER===t.pollStatus&&Object(a.createElement)(E.TimePicker,{currentTime:t.closedAfterDateTime,label:Object(l.__)("Close applause block on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})),Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Styling","crowdsignal-forms"),initialOpen:!0,colorSettings:[{value:t.textColor,onChange:function(e){return n({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:t.borderColor,onChange:function(e){return n({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]}))},kn=Object(x.compose)([bt,It(["pollId","answerId"])])((function(e){var t=e.attributes,n=e.setAttributes,r=e.pollDataFromApi,o=r?r.viewResultsUrl:"";Pt(e.name,Object(l.__)("Untitled Applause","crowdsignal-forms"),t,n);var c=ie().accountInfo,i=Object(b.get)(c,["signalCount","shouldDisplay"]),s=i&&Object(b.get)(c,["signalCount","count"])>=Object(b.get)(c,["signalCount","userLimit"]);return Object(a.createElement)(lt,{blockIcon:null,blockName:Object(l.__)("Crowdsignal Applause","crowdsignal-forms")},Object(a.createElement)(En,w()({},e,{shouldPromote:i,signalWarning:s,viewResultsUrl:o})),Object(a.createElement)(Cn,e),Object(a.createElement)(wn,e))})),xn={pollId:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},title:{type:"string",default:null},answerId:{type:"string",default:null},size:{type:"string",default:"medium"},pollStatus:{type:"string",default:hn.OPEN},closedAfterDateTime:{type:"string",default:null},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"},borderWidth:{type:"number",default:0},borderRadius:{type:"number",default:0}},Sn={title:Object(l.__)("Applause","crowdsignal-forms"),description:Object(l.__)("Let your audience cheer with a big round of applause — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:["crowdsignal",Object(l.__)("applause","crowdsignal-forms"),Object(l.__)("cheer","crowdsignal-forms"),Object(l.__)("cheering","crowdsignal-forms"),Object(l.__)("clap","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("kudos","crowdsignal-forms"),Object(l.__)("like","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("praise","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("upvote","crowdsignal-forms"),Object(l.__)("upvoting","crowdsignal-forms"),Object(l.__)("votes","crowdsignal-forms"),Object(l.__)("voting","crowdsignal-forms")],icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clip0)"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5284 16.5813L18.7187 20.432C17.7707 21.7312 15.9506 22.0157 14.6513 21.0676L6.50915 15.1265C5.69788 14.5345 5.51988 13.3957 6.11185 12.5844C6.18478 12.4845 6.26946 12.3931 6.35573 12.3119L6.19112 12.1918C5.37984 11.5998 5.20185 10.461 5.79382 9.64968C5.93538 9.45568 6.10792 9.29329 6.30287 9.17428C6.1079 8.62662 6.17683 8.00125 6.54574 7.49567C7.11197 6.71967 8.18077 6.52659 8.98362 7.03133C9.03891 6.91852 9.10007 6.81 9.173 6.71006C9.76497 5.89878 10.9038 5.72079 11.7151 6.31276L17.3294 10.4094L17.6107 8.44349C17.6946 7.84704 18.1496 7.35925 18.7389 7.23069L20.7027 6.79878L22.045 14.3547C22.1819 15.1302 21.9917 15.9464 21.5284 16.5813ZM20.61 14.605L19.5377 8.54337L19.0543 8.65016L18.4231 13.0093L10.857 7.48855C10.857 7.48855 10.4687 7.4034 10.3486 7.56801C10.2285 7.73262 10.2635 7.95632 10.4281 8.07643L14.6667 11.1693L13.8088 12.345L8.22979 8.27416C8.06518 8.15405 7.84147 8.18902 7.72136 8.35362C7.60126 8.51823 7.63622 8.74194 7.80082 8.86204L13.3798 12.9329L12.5219 14.1087L7.47787 10.4282C7.31327 10.3081 7.08956 10.343 6.96945 10.5076C6.84934 10.6722 6.8843 10.8959 7.04891 11.0161L12.0929 14.6966L11.235 15.8723L7.7959 13.3629C7.6313 13.2428 7.40759 13.2777 7.28748 13.4423C7.16737 13.607 7.20233 13.8307 7.36694 13.9508L15.5091 19.8919C16.1558 20.3638 17.0709 20.2207 17.5428 19.5741L20.3568 15.7175C20.5884 15.4001 20.6763 14.9957 20.61 14.605Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813Z",fill:"white"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813ZM17.3105 14.805L16.2381 8.74337L15.7548 8.85016L15.1235 13.2093L7.55749 7.68854C7.55749 7.68854 7.16918 7.6034 7.04907 7.76801C6.92896 7.93261 6.96392 8.15632 7.12853 8.27643L11.3672 11.3692L10.5092 12.545L4.93023 8.47416C4.76562 8.35405 4.54191 8.38901 4.4218 8.55362C4.3017 8.71823 4.33666 8.94193 4.50126 9.06204L10.0803 13.1329L9.22235 14.3087L4.17831 10.6282C4.0137 10.5081 3.79 10.543 3.66989 10.7076C3.54978 10.8722 3.58474 11.0959 3.74935 11.216L8.79338 14.8965L7.93546 16.0723L4.49634 13.5629C4.33173 13.4428 4.10803 13.4777 3.98792 13.6423C3.86781 13.8069 3.90277 14.0307 4.06738 14.1508L12.2096 20.0919C12.8562 20.5638 13.7714 20.4207 14.2432 19.7741L17.0572 15.9175C17.2889 15.6001 17.3767 15.1957 17.3105 14.805Z"}),Object(a.createElement)("rect",{x:"12.4851",y:"1.42175",width:"1.5",height:"3",transform:"rotate(8 12.4851 1.42175)"}),Object(a.createElement)("rect",{x:"16.9365",y:"2.15547",width:"1.5",height:"3",transform:"rotate(43 16.9365 2.15547)"}),Object(a.createElement)("rect",{x:"8.15195",y:"1.78963",width:"1.5",height:"3",transform:"rotate(-27 8.15195 1.78963)"})),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clip0"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))}),null),edit:kn,attributes:xn,example:{attributes:{size:"large"}}},Tn="rating",In="feedback",Pn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Ln={backgroundColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},feedbackPlaceholder:{type:"string",default:Object(l.__)("Please help us understand your rating","crowdsignal-forms")},feedbackQuestion:{type:"string",default:Object(l.__)("Thanks so much for your response! How could we do better?","crowdsignal-forms")},hideBranding:{type:"boolean",default:!1},highRatingLabel:{type:"string",default:Object(l.__)("Extremely likely","crowdsignal-forms")},lowRatingLabel:{type:"string",default:Object(l.__)("Not likely at all","crowdsignal-forms")},ratingQuestion:{type:"string",default:Object(l.__)("How likely is it that you would recommend this project to a friend or colleague?","crowdsignal-forms")},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},surveyId:{type:"number",default:null},textColor:{type:"string"},title:{type:"string",default:""},viewThreshold:{type:"string",default:2},status:{type:"string",default:Pn.OPEN},closedAfterDateTime:{type:"string",default:null},isExample:{type:"boolean",default:!1}},Nn=n(32),An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(_.useState)(!1),r=j()(n,2),o=r[0],a=r[1],l=Object(_.useRef)(0),c=Object(_.useCallback)(Object(b.debounce)((function(t,n){return e(t).catch(n)}),1500),[]),i=Object(_.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a(!1),c(t,(function(){e===l.current&&(n<3?i(e,n+1):a(!0))}))}),Object(b.values)(t));return Object(_.useEffect)((function(){0!=l.current++&&i(l.current)}),Object(b.values)(t)),{error:o,save:function(){return i(l.current)}}},Rn=function(e){return new Promise((function(t,n){var r=setTimeout((function(){return n(new Error("Request timed out"))}),1e4);e.then(t,n).finally((function(){return clearTimeout(r)}))}))},Dn=function(e){return Rn(Q()({path:Object(b.trimEnd)("/crowdsignal-forms/v1/nps/".concat(e.surveyId||""),"/"),method:"POST",data:e}))},Bn=function(e){var t=e.attributes,n=e.setAttributes,r=e.shouldPromote,o=e.signalWarning,c="https://app.crowdsignal.com/surveys/".concat(t.surveyId,"/report/overview"),i=function(e){return function(t){return n(d()({},e,t))}};return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,t.surveyId?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Save the block to track results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{isSecondary:!0,disabled:!t.surveyId,href:c,target:"blank"},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Title (optional)","crowdsignal-forms"),onChange:function(e){return n({title:e})},value:Object(k.decodeEntities)(t.title)}),r&&Object(a.createElement)(qe,{signalWarning:o})),Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:i("backgroundColor"),value:t.backgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:i("textColor"),value:t.textColor},{label:Object(l.__)("Button color","crowdsignal-forms"),onChange:i("buttonColor"),value:t.buttonColor},{label:Object(l.__)("Button text color","crowdsignal-forms"),onChange:i("buttonTextColor"),value:t.buttonTextColor}]}),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:t.status,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:Pn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:Pn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:Pn.CLOSED}],onChange:function(e){return n({status:e})},help:Pn.CLOSED_AFTER===t.status&&null!==t.closedAfterDateTime&&(new Date).toISOString()>t.closedAfterDateTime?"Currently closed as date has passed":""}),Pn.CLOSED_AFTER===t.status&&Object(a.createElement)(E.DateTimePicker,{currentDate:t.closedAfterDateTime&&new Date(t.closedAfterDateTime)||new Date,label:Object(l.__)("Close on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},Fn=function(e){var t=e.attributes,n=e.currentView,r=e.onViewChange,o=e.setAttributes,c=Object(_.useState)(!1),i=j()(c,2),s=i[0],u=i[1],d=function(e){return function(){return r(e)}};return Object(a.createElement)(C.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{label:Object(l.__)("Current view","crowdsignal-forms")},Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-toggle",isActive:n===Tn,label:Object(l.__)("Rating","crowdsignal-forms"),onClick:d(Tn)},Object(l.__)("Rating","crowdsignal-forms")),Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-toggle",isActive:n===In,label:Object(l.__)("Feedback","crowdsignal-forms"),onClick:d(In)},Object(l.__)("Feedback","crowdsignal-forms"))),Object(a.createElement)(E.ToolbarGroup,null,Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-popover-button",icon:"visibility",label:Object(l.__)("Set view threshold","crowdsignal-forms"),onClick:function(){return u(!0)}},s&&Object(a.createElement)(E.Popover,{onClose:function(){return u(!1)}},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__toolbar-popover"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Show this block after __ visits:","crowdsignal-forms"),value:t.viewThreshold,onChange:function(e){return o({viewThreshold:e})},type:"number",min:"1"}))))))},Mn=function(e,t){return Object(b.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))},Hn=function(e){var t=e.retryHandler;return Object(a.createElement)(mt,{status:"error",icon:"warning",isDismissible:!1,actions:[{className:"is-destructive",label:Object(l.__)("Retry","crowdsignal-forms"),onClick:t}]},Object(l.__)("Unfortunately, the block couldn't be saved to Crowdsignal.com.","crowdsignal-forms"))},Vn=Object(x.compose)([Object(f.withSelect)((function(e){var t=e("core/editor").getPermalink();return t||(t=e("core").getSite()&&e("core").getSite().url),{sourceLink:t}})),Le])((function(e){var t=Object(_.useState)(Tn),n=j()(t,2),r=n[0],o=n[1],c=e.attributes,i=e.clientId,s=e.fallbackStyles,u=e.isSelected,m=e.setAttributes,p=e.renderStyleProbe,g=e.sourceLink,O=c.feedbackQuestion,v=c.ratingQuestion,h=c.surveyId,y=c.title,k=c.isExample,x=c.viewThreshold,S=An(function(){var e=D()(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(f.dispatch)("core/editor").lockPostSaving(i),e.prev=1,e.next=4,Dn({feedbackQuestion:t.feedbackQuestion,ratingQuestion:t.ratingQuestion,sourceLink:t.sourceLink,surveyId:t.surveyId,title:t.title||t.ratingQuestion});case 4:n=e.sent,t.surveyId||m({surveyId:n.surveyId});case 6:return e.prev=6,Object(f.dispatch)("core/editor").unlockPostSaving(i),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})));return function(t){return e.apply(this,arguments)}}(),{feedbackQuestion:O,ratingQuestion:v,sourceLink:g,surveyId:h,title:y}),I=S.error,P=S.save;Object(_.useEffect)((function(){k||c.surveyId||P()}),[]),Object(_.useEffect)((function(){u||o(Tn)}),[u]);var L=function(e){return function(t){return m(d()({},e,t))}},N=T()("crowdsignal-forms-nps",{"is-inactive":!k&&!u}),R=ie().accountInfo,B=Object(b.get)(R,"capabilities",[]).includes("hide-branding"),F=Object(b.get)(R,["signalCount","shouldDisplay"]),M=F&&Object(b.get)(R,["signalCount","count"])>=Object(b.get)(R,["signalCount","userLimit"]);return Object(a.createElement)(lt,{blockIcon:null,blockName:Object(l.__)("Crowdsignal NPS","crowdsignal-forms")},Object(a.createElement)(Fn,w()({currentView:r,onViewChange:o},e)),Object(a.createElement)(Bn,w()({shouldPromote:F,signalWarning:M},e)),!k&&M&&Object(a.createElement)(pt,null),!k&&I&&Object(a.createElement)(Hn,{retryHandler:P}),!k&&Object(a.createElement)(mt,{isDismissible:!1,icon:"visibility",componentActions:[Object(a.createElement)(Nn.PostPreviewButton,{key:1,className:["is-secondary","components-notice__action","crowdsignal-forms-nps__preview-button",c.surveyId?"":"is-disabled"],textContent:Object(l.__)("Preview","crowdsignal-forms")})]},Object(l.sprintf)(Object(l._n)("This block will appear as a popup window to people who have visited this page at least %d time.","This block will appear as a popup window to people who have visited this page at least %d times.",x,"crowdsignal-forms"),x)),(r===Tn||!u)&&Object(a.createElement)("div",{className:N,style:Mn(c,s)},Object(a.createElement)(C.RichText,{tagName:"h3",className:"crowdsignal-forms-nps__question",placeholder:Object(l.__)("Enter your rating question","crowdsignal-forms"),onChange:L("ratingQuestion"),value:v,allowedFormats:[]}),Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating"},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating-labels"},Object(a.createElement)(C.RichText,{tagName:"span",placeholder:Object(l.__)("Not likely","crowdsignal-forms"),onChange:L("lowRatingLabel"),value:c.lowRatingLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0}),Object(a.createElement)(C.RichText,{tagName:"span",placeholder:Object(l.__)("Very likely","crowdsignal-forms"),onChange:L("highRatingLabel"),value:c.highRatingLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating-scale"},Object(b.times)(11,(function(e){return Object(a.createElement)("div",{key:"rating-".concat(e),className:"crowdsignal-forms-nps__rating-button"},e)}))),!B&&Object(a.createElement)(be,{trackRef:"cs-forms-nps",editing:!0,message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))),r===In&&u&&Object(a.createElement)("div",{className:N,style:Mn(c,s)},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__feedback"},Object(a.createElement)(C.RichText,{tagName:"h3",className:"crowdsignal-forms-nps__question",placeholder:Object(l.__)("Enter your feedback question","crowdsignal-forms"),onChange:L("feedbackQuestion"),value:O,allowedFormats:[]}),Object(a.createElement)(E.TextareaControl,{className:"crowdsignal-forms-nps__feedback-text",rows:6,onChange:L("feedbackPlaceholder"),value:c.feedbackPlaceholder}),Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-nps__feedback-button-wrapper"},Object(a.createElement)(C.RichText,{className:"wp-block-button__link crowdsignal-forms-nps__feedback-button",onChange:L("submitButtonLabel"),value:c.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),!B&&Object(a.createElement)(be,{trackRef:"cs-forms-nps",editing:!0,message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))),p())})),Wn={title:Object(l.__)("Measure NPS","crowdsignal-forms"),description:Object(l.__)("Calculate your Net Promoter Score! Collect feedback and track customer satisfaction over time. — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",attributes:Ln,supports:{multiple:!1,html:!1,reusable:!1},icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M4.49707 15V10.3857H4.54102L7.83691 15H9.05762V7.9541H7.64648V12.5439H7.60742L4.31641 7.9541H3.08594V15H4.49707ZM9.73438 7.9541V15H11.209V12.7783H12.5273C14.0117 12.7783 15.042 11.8115 15.042 10.3662C15.042 8.91602 14.0459 7.9541 12.6006 7.9541H9.73438ZM11.209 9.12109H12.21C13.0547 9.12109 13.543 9.57031 13.543 10.3711C13.543 11.1768 13.0498 11.626 12.2051 11.626H11.209V9.12109ZM15.1523 12.9932C15.1963 14.3164 16.2754 15.1221 17.9697 15.1221C19.7178 15.1221 20.8262 14.2578 20.8262 12.8906C20.8262 11.8164 20.2109 11.2109 18.7998 10.9082L17.9453 10.7275C17.1348 10.542 16.793 10.2979 16.793 9.86328C16.793 9.34082 17.2812 8.99414 18.0088 8.99414C18.7461 8.99414 19.2686 9.35547 19.3174 9.95117H20.6992C20.6748 8.67676 19.6445 7.83203 18.0039 7.83203C16.4316 7.83203 15.3086 8.69141 15.3086 9.99023C15.3086 11.0205 15.9482 11.6797 17.2471 11.958L18.165 12.1582C19.0146 12.3486 19.3516 12.6025 19.3516 13.0615C19.3516 13.5791 18.8145 13.9551 18.0283 13.9551C17.2471 13.9551 16.6416 13.5742 16.5732 12.9932H15.1523Z"}))}),null),edit:Vn,keywords:[Object(l.__)("ask","crowdsignal-forms"),"crowdsignal",Object(l.__)("CSAT","crowdsignal-forms"),Object(l.__)("customer experience","crowdsignal-forms"),Object(l.__)("customer satisfaction","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("loyalty","crowdsignal-forms"),Object(l.__)("net promoter score","crowdsignal-forms"),Object(l.__)("nps","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("promoter","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("review","crowdsignal-forms"),Object(l.__)("score","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms")],example:{attributes:{isExample:!0,ratingQuestion:Object(l.__)("How satisfied are you with the content of the site?","crowdsignal-forms"),feedbackQuestion:Object(l.__)("Any advise on how we could improve your experience?","crowdsignal-forms"),lowRatingLabel:Object(l.__)("Not satisfied","crowdsignal-forms"),highRatingLabel:Object(l.__)("Very satisfied","crowdsignal-forms")}}},Un=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.25V17.6893L6.42678 16.2626C6.75497 15.9344 7.20008 15.75 7.66421 15.75H18.75C18.8881 15.75 19 15.6381 19 15.5V5.5C19 5.36193 18.8881 5.25 18.75 5.25H5ZM3.5 5C3.5 4.30965 4.05964 3.75 4.75 3.75H18.75C19.7165 3.75 20.5 4.5335 20.5 5.5V15.5C20.5 16.4665 19.7165 17.25 18.75 17.25H7.66421C7.59791 17.25 7.53432 17.2763 7.48744 17.3232L3.5 21.3107V5Z"}),Object(a.createElement)("rect",{x:"7",y:"9.75",width:"1.5",height:"1.5"}),Object(a.createElement)("rect",{x:"11.25",y:"9.75",width:"1.5",height:"1.5"}),Object(a.createElement)("rect",{x:"15.5",y:"9.75",width:"1.5",height:"1.5"}))},zn="question",qn="submit",Kn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Gn=Object.freeze({CLICK:"click",HOVER:"hover",PAGE_LOAD:"load"}),Zn={backgroundColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},emailPlaceholder:{type:"string",default:Object(l.__)("Your Email","crowdsignal-forms")},emailRequired:{type:"boolean",default:!1},feedbackPlaceholder:{type:"string",default:Object(l.__)("Please let us know how we can do better…","crowdsignal-forms")},header:{type:"string",default:Object(l.__)("👋 Hey there!","crowdsignal-forms")},hideBranding:{type:"boolean",default:!1},hideTriggerShadow:{type:"boolean",default:!1},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},submitText:{type:"string",default:Object(l.__)("Thanks for letting us know!","crowdsignal-forms")},surveyId:{type:"number",default:null},textColor:{type:"string"},toggleOn:{type:"string",default:Gn.CLICK},triggerLabel:{type:"string",default:Object(l.__)("Feedback","crowdsignal-forms")},triggerBackgroundColor:{type:"string"},triggerTextColor:{type:"string"},title:{type:"string",default:""},x:{type:"string",default:"left"},y:{type:"string",default:"bottom"},status:{type:"string",default:Kn.OPEN},closedAfterDateTime:{type:"string",default:null},emailResponses:{type:"boolean",default:!0},isExample:{type:"boolean",default:!1},isWidget:{type:"boolean",default:!1}};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jn,Xn=function(e,t){return{left:e.left+t.x+window.scrollX,right:e.right+(window.innerWidth>t.left+t.width?window.innerWidth-t.left-t.width:0),top:e.top+t.y+window.scrollY,bottom:e.bottom+(window.innerHeight>t.top+t.height?window.innerHeight-t.top-t.height:0)}},$n=function(e,t,n){return{left:"left"===e?n.left:null,right:"right"===e?n.right:null}},er=function(e,t,n){return"center"===e?{top:(window.innerHeight-t)/2,bottom:null}:{top:"top"===e?n.top:null,bottom:"bottom"===e?n.bottom:null}},tr=function(e){var t=e.attributes,n=e.setAttributes,r=e.shouldPromote,o=e.signalWarning,c=e.email,i="https://app.crowdsignal.com/surveys/".concat(t.surveyId,"/report/overview"),s=function(e){return function(t){return n(d()({},e,t))}};return Object(a.createElement)(C.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,t.surveyId?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Save the block to track results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{isSecondary:!0,disabled:!t.surveyId,href:i,target:"blank"},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Title (optional)","crowdsignal-forms"),onChange:function(e){return n({title:e})},value:Object(k.decodeEntities)(t.title)}),Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Send me responses via email","crowdsignal-forms"),checked:t.emailResponses,onChange:s("emailResponses"),help:t.emailResponses&&c&&Object(l.sprintf)(Object(l.__)("Responses will be sent to %s","crowdsignal-forms"),c)}),r&&Object(a.createElement)(qe,{signalWarning:o})),Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Feedback Button","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:s("triggerBackgroundColor"),value:t.triggerBackgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:s("triggerTextColor"),value:t.triggerTextColor}]},Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Hide Shadow","crowdsignal-forms"),checked:t.hideTriggerShadow,onChange:s("hideTriggerShadow")})),Object(a.createElement)(C.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:s("backgroundColor"),value:t.backgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:s("textColor"),value:t.textColor},{label:Object(l.__)("Button color","crowdsignal-forms"),onChange:s("buttonColor"),value:t.buttonColor},{label:Object(l.__)("Button text color","crowdsignal-forms"),onChange:s("buttonTextColor"),value:t.buttonTextColor}]}),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:t.status,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:Kn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:Kn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:Kn.CLOSED}],onChange:function(e){return n({status:e})},help:Kn.CLOSED_AFTER===t.status&&null!==t.closedAfterDateTime&&(new Date).toISOString()>t.closedAfterDateTime?"Currently closed as date has passed":""}),Kn.CLOSED_AFTER===t.status&&Object(a.createElement)(E.DateTimePicker,{currentDate:t.closedAfterDateTime&&new Date(t.closedAfterDateTime)||new Date,label:Object(l.__)("Close on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0}),Object(a.createElement)(E.SelectControl,{value:t.toggleOn,label:Object(l.__)("Show feedback form on:","crowdsignal-forms"),options:[{label:Object(l.__)("Click","crowdsignal-forms"),value:Gn.CLICK},{label:Object(l.__)("Hover","crowdsignal-forms"),value:Gn.HOVER},{label:Object(l.__)("Page load","crowdsignal-forms"),value:Gn.PAGE_LOAD}],onChange:s("toggleOn")}),Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Require email address","crowdsignal-forms"),checked:t.emailRequired,onChange:s("emailRequired")})))},nr=n(33);function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lr(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ir(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function sr(e){return e?e.ownerDocument||e:document}try{Jn=window}catch(ba){}function ur(e){return e&&sr(e).defaultView||Jn}var dr,fr=(dr=ur(),Boolean(void 0!==dr&&dr.document&&dr.document.createElement)),br=fr?_.useLayoutEffect:_.useEffect;function mr(e){return Object(_.useState)(e)[0]}function pr(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=ir(e);!(t=o()).done;)r();return n}function gr(e){for(var t,n=[],r=ir(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Or(e){return e.slice().reverse()}function vr(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function wr(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=vr(e.items||[]))||void 0===n?void 0:n.id}function hr(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function jr(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function _r(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var yr=Object(_.createContext)(_r);function Cr(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Er(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Cr(t.ref.current,e.ref.current)}))}function kr(e){for(var t,n=0,r=ir(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function xr(e){for(var t=pr(e),n=kr(t),r=[],o=0;o<n;o+=1)for(var a,l=ir(t);!(a=l()).done;){var c=a.value;c[o]&&r.push(ar(ar({},c[o]),{},{groupId:c[o].groupId?""+o:void 0}))}return r}function Sr(e,t,n){for(var r,o=kr(e),a=ir(e);!(r=a()).done;)for(var l=r.value,c=0;c<o;c+=1){var i=l[c];if(!i||n&&i.disabled){var s=0===c&&n?vr(l):l[c-1];l[c]=s&&t!==(null==s?void 0:s.id)&&n?s:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==s?void 0:s.groupId}}}return e}var Tr={id:null,ref:{current:null}};function Ir(e,t){return e.filter((function(e){return e.groupId===t}))}var Pr={horizontal:"vertical",vertical:"horizontal"};function Lr(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function Nr(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],a=t[0],l=t[1],c=o.ref.current,i=l.ref.current;return c&&i?Cr(c,i)?(r>a&&(n=!0),-1):(r<a&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function Ar(e,t){var n=Nr(e);e!==n&&t(n)}function Rr(e,t){var n=Object(_.useRef)([]);Object(_.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,a=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var l=a();if("object"==typeof l)return l.v}return sr(o).body}(e),a=new IntersectionObserver((function(){!!n.current.length&&Ar(e,t),n.current=e}),{root:o}),l=ir(e);!(r=l()).done;){var c=r.value;c.ref.current&&a.observe(c.ref.current)}return function(){a.disconnect()}}),[e])}function Dr(e,t){"function"==typeof IntersectionObserver?Rr(e,t):function(e,t){Object(_.useEffect)((function(){var n=setTimeout((function(){return Ar(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function Br(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,a=e.items,l=e.groups,c=e.currentId,i=e.loop,s=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,b=e.unstable_includesBaseElement,m=e.initialVirtual,p=e.initialRTL,g=e.initialOrientation,O=e.initialCurrentId,v=e.initialLoop,w=e.initialWrap,h=e.initialShift,j=e.hasSetCurrentId;switch(t.type){case"registerGroup":var _=t.group;if(0===l.length)return ar(ar({},e),{},{groups:[_]});var y=Er(l,_);return ar(ar({},e),{},{groups:Lr(l,_,y)});case"unregisterGroup":var C=t.id,E=l.filter((function(e){return e.id!==C}));return E.length===l.length?e:ar(ar({},e),{},{groups:E});case"registerItem":var k,x=t.item,S=l.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(x.ref.current)})),T=ar({groupId:null==S?void 0:S.id},x),I=Er(a,T),P=ar(ar({},e),{},{items:Lr(a,T,I)});return j||f||void 0!==O?P:ar(ar({},P),{},{currentId:null===(k=vr(P.items))||void 0===k?void 0:k.id});case"unregisterItem":var L=t.id,N=a.filter((function(e){return e.id!==L}));if(N.length===a.length)return e;var A=u.filter((function(e){return e!==L})),R=ar(ar({},e),{},{pastIds:A,items:N});if(c&&c===L){var D=b?null:wr(ar(ar({},R),{},{currentId:A[0]}));return ar(ar({},R),{},{currentId:D})}return R;case"move":var B=t.id;if(void 0===B)return e;var F=u.filter((function(e){return e!==c&&e!==B})),M=c?[c].concat(F):F,H=ar(ar({},e),{},{pastIds:M});if(null===B)return ar(ar({},H),{},{unstable_moves:f+1,currentId:wr(H,B)});var V=hr(a,B);return ar(ar({},H),{},{unstable_moves:V?f+1:f,currentId:wr(H,null==V?void 0:V.id)});case"next":if(null==c)return Br(e,ar(ar({},t),{},{type:"first"}));var W=r&&"vertical"!==o,U=W?Or(a):a,z=U.find((function(e){return e.id===c}));if(!z)return Br(e,ar(ar({},t),{},{type:"first"}));var q=!!z.groupId,K=U.indexOf(z),G=U.slice(K+1),Z=Ir(G,z.groupId);if(t.allTheWay){var Y=vr(W?Ir(U,z.groupId):Or(Z));return Br(e,ar(ar({},t),{},{type:"move",id:null==Y?void 0:Y.id}))}var Q=function(e){return e&&Pr[e]}(q?o||"horizontal":o),J=i&&i!==Q,X=q&&s&&s!==Q,$=t.hasNullItem||!q&&J&&b;if(J){var ee=vr(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[Tr]:[],e.slice(0,r))}(X&&!$?U:Ir(U,z.groupId),c,$),c);return Br(e,ar(ar({},t),{},{type:"move",id:null==ee?void 0:ee.id}))}if(X){var te=vr($?Z:G,c),ne=$?(null==te?void 0:te.id)||null:null==te?void 0:te.id;return Br(e,ar(ar({},t),{},{type:"move",id:ne}))}var re=vr(Z,c);return Br(e,!re&&$?ar(ar({},t),{},{type:"move",id:null}):ar(ar({},t),{},{type:"move",id:null==re?void 0:re.id}));case"previous":var oe=!!!l.length&&b,ae=Br(ar(ar({},e),{},{items:Or(a)}),ar(ar({},t),{},{type:"next",hasNullItem:oe}));return ar(ar({},ae),{},{items:a});case"down":var le=d&&!t.allTheWay,ce=xr(gr(Sr(pr(a),c,le))),ie=i&&"horizontal"!==i&&b,se=Br(ar(ar({},e),{},{orientation:"vertical",items:ce}),ar(ar({},t),{},{type:"next",hasNullItem:ie}));return ar(ar({},se),{},{orientation:o,items:a});case"up":var ue=d&&!t.allTheWay,de=xr(Or(gr(Sr(pr(a),c,ue)))),fe=b,be=Br(ar(ar({},e),{},{orientation:"vertical",items:de}),ar(ar({},t),{},{type:"next",hasNullItem:fe}));return ar(ar({},be),{},{orientation:o,items:a});case"first":var me=vr(a);return Br(e,ar(ar({},t),{},{type:"move",id:null==me?void 0:me.id}));case"last":var pe=Br(ar(ar({},e),{},{items:Or(a)}),ar(ar({},t),{},{type:"first"}));return ar(ar({},pe),{},{items:a});case"sort":return ar(ar({},e),{},{items:Nr(a),groups:Nr(l)});case"setVirtual":return ar(ar({},e),{},{unstable_virtual:jr(t.virtual,n)});case"setRTL":return ar(ar({},e),{},{rtl:jr(t.rtl,r)});case"setOrientation":return ar(ar({},e),{},{orientation:jr(t.orientation,o)});case"setCurrentId":var ge=wr(ar(ar({},e),{},{currentId:jr(t.currentId,c)}));return ar(ar({},e),{},{currentId:ge,hasSetCurrentId:!0});case"setLoop":return ar(ar({},e),{},{loop:jr(t.loop,i)});case"setWrap":return ar(ar({},e),{},{wrap:jr(t.wrap,s)});case"setShift":return ar(ar({},e),{},{shift:jr(t.shift,d)});case"setIncludesBaseElement":return ar(ar({},e),{},{unstable_includesBaseElement:jr(t.includesBaseElement,b)});case"reset":return ar(ar({},e),{},{unstable_virtual:m,rtl:p,orientation:g,currentId:wr(ar(ar({},e),{},{currentId:O})),loop:v,wrap:w,shift:h,unstable_moves:0,pastIds:[]});case"setItems":return ar(ar({},e),{},{items:t.items});default:throw new Error}}function Fr(e){return Object(_.useCallback)(e,[])}function Mr(e){void 0===e&&(e={});var t=mr(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,a=void 0!==o&&o,l=t.orientation,c=t.currentId,i=t.loop,s=void 0!==i&&i,u=t.wrap,d=void 0!==u&&u,f=t.shift,b=void 0!==f&&f,m=t.unstable_includesBaseElement,p=function(e){void 0===e&&(e={});var t=mr(e).baseId,n=Object(_.useContext)(yr),r=Object(_.useRef)(0),o=Object(_.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}(lr(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),g=Object(_.useReducer)(Br,{unstable_virtual:r,rtl:a,orientation:l,items:[],groups:[],currentId:c,loop:s,wrap:d,shift:b,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=m?m:null===c,initialVirtual:r,initialRTL:a,initialOrientation:l,initialCurrentId:c,initialLoop:s,initialWrap:d,initialShift:b}),O=g[0],v=(O.pastIds,O.initialVirtual,O.initialRTL,O.initialOrientation,O.initialCurrentId,O.initialLoop,O.initialWrap,O.initialShift,O.hasSetCurrentId,lr(O,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),w=g[1],h=Object(_.useState)(!1),j=h[0],y=h[1],C=function(){var e=Object(_.useRef)(!1);return br((function(){return function(){e.current=!0}}),[]),e}(),E=Object(_.useCallback)((function(e){return w({type:"setItems",items:e})}),[]);return Dr(v.items,E),ar(ar(ar({},p),v),{},{unstable_hasActiveWidget:j,unstable_setHasActiveWidget:y,registerItem:Fr((function(e){C.current||w({type:"registerItem",item:e})})),unregisterItem:Fr((function(e){C.current||w({type:"unregisterItem",id:e})})),registerGroup:Fr((function(e){C.current||w({type:"registerGroup",group:e})})),unregisterGroup:Fr((function(e){C.current||w({type:"unregisterGroup",id:e})})),move:Fr((function(e){return w({type:"move",id:e})})),next:Fr((function(e){return w({type:"next",allTheWay:e})})),previous:Fr((function(e){return w({type:"previous",allTheWay:e})})),up:Fr((function(e){return w({type:"up",allTheWay:e})})),down:Fr((function(e){return w({type:"down",allTheWay:e})})),first:Fr((function(){return w({type:"first"})})),last:Fr((function(){return w({type:"last"})})),sort:Fr((function(){return w({type:"sort"})})),unstable_setVirtual:Fr((function(e){return w({type:"setVirtual",virtual:e})})),setRTL:Fr((function(e){return w({type:"setRTL",rtl:e})})),setOrientation:Fr((function(e){return w({type:"setOrientation",orientation:e})})),setCurrentId:Fr((function(e){return w({type:"setCurrentId",currentId:e})})),setLoop:Fr((function(e){return w({type:"setLoop",loop:e})})),setWrap:Fr((function(e){return w({type:"setWrap",wrap:e})})),setShift:Fr((function(e){return w({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:Fr((function(e){return w({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:Fr((function(){return w({type:"reset"})}))})}function Hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){Hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Kr=Object(_.createContext)({});var Gr=function(e,t,n){void 0===n&&(n=t.children);var r=Object(_.useContext)(Kr);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Ur(t,["children"]))}return Object(_.createElement)(e,t,n)};function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e){return"object"==typeof e&&null!=e}function Xr(e){var t;if(!Jr(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function $r(e,t){for(var n={},r={},o=0,a=Object.keys(e);o<a.length;o++){var l=a[o];t.indexOf(l)>=0?n[l]=e[l]:r[l]=e[l]}return[n,r]}function eo(e,t){if(void 0===t&&(t=[]),!Xr(e.state))return $r(e,t);var n=$r(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["state"]);return[Qr(Qr({},a),l),o]}function to(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,l=n;a<l.length;a++){var c=l[a];if(e[c]!==t[c])return!1}return!0}function no(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return Xr(t.state)&&Xr(n.state)?e(Qr(Qr({},t.state),t),Qr(Qr({},n.state),n)):e(t,n)}}function ro(e){var t,n=e.as,r=e.useHook,o=e.memo,a=e.propsAreEqual,l=void 0===a?null==r?void 0:r.unstable_propsAreEqual:a,c=e.keys,i=void 0===c?(null==r?void 0:r.__keys)||[]:c,s=e.useCreateElement,u=void 0===s?Gr:s,d=function(e,t){var o=e.as,a=void 0===o?n:o,l=Ur(e,["as"]);if(r){var c,s=eo(l,i),d=s[0],f=s[1],b=r(d,Wr({ref:t},f)),m=b.wrapElement,p=Ur(b,["wrapElement"]),g=(null===(c=a.render)||void 0===c?void 0:c.__keys)||a.__keys,O=g&&eo(l,g)[0],v=O?Wr(Wr({},p),O):p,w=u(a,v);return m?m(w):w}return u(a,Wr({ref:t},l))};return t=d,d=Object(_.forwardRef)(t),o&&(d=function(e,t){return Object(_.memo)(e,t)}(d,l&&no(l))),d.__keys=i,d.unstable_propsAreEqual=no(l||to),d}function oo(e,t){Object(_.useDebugValue)(e);var n=Object(_.useContext)(Kr);return null!=n[e]?n[e]:t}function ao(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),a=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";Object(_.useDebugValue)(r);var o=oo(r);return o?Wr(Wr({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,a=qr(o);!(r=a()).done;){t=r.value.__useOptions(t,n)}return t},l=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=a(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";Object(_.useDebugValue)(r);var o=oo(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var l,c=qr(o);!(l=c()).done;){n=(0,l.value)(t,n,!0)}var i={},s=n||{};for(var u in s)void 0!==s[u]&&(i[u]=s[u]);return i};l.__useOptions=a;var c=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(c,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||to,l}function lo(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function co(e,t){return Object(_.useMemo)((function(){return null==e&&null==t?null:function(n){lo(e,n),lo(t,n)}}),[e,t])}function io(e){var t=Object(_.useRef)(e);return br((function(){t.current=e})),t}function so(e){return e.target===e.currentTarget}var uo=ao({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=lr(e,["unstable_system"]),o=t.unstable_system,a=lr(t,["unstable_system"]);return!(n!==o&&!to(n,o))&&to(r,a)}}),fo=(ro({as:"div",useHook:uo}),["button","color","file","image","reset","submit"]);function bo(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==fo.indexOf(t.type)}return!1}function mo(e){var t=sr(e).activeElement;return null!=t&&t.nodeName?t:null}function po(e,t){return e===t||e.contains(t)}function go(e){var t=mo(e);if(!t)return!1;if(po(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function Oo(e){return!po(e.currentTarget,e.target)}function vo(e){return!!fr&&-1!==window.navigator.userAgent.indexOf(e)}function wo(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}var ho="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function jo(e){return wo(e,ho)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var _o=vo("Mac")&&!vo("Chrome")&&(vo("Safari")||vo("Firefox"));function yo(e){!go(e)&&jo(e)&&e.focus()}function Co(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function Eo(e,t){return Object(_.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var ko=ao({name:"Tabbable",compose:uo,keys:["disabled","focusable"],useOptions:function(e,t){return ar({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,a=t.onMouseDownCapture,l=t.onMouseDown,c=t.onKeyPressCapture,i=t.style,s=lr(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=Object(_.useRef)(null),d=io(o),f=io(a),b=io(l),m=io(c),p=!!e.disabled&&!e.focusable,g=Object(_.useState)(!0),O=g[0],v=g[1],w=Object(_.useState)(!0),h=w[0],j=w[1],y=e.disabled?ar({pointerEvents:"none"},i):i;br((function(){var e,t=u.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&v(!1),function(e){return"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName}(t)||j(!1))}),[]);var C=Eo(d,e.disabled),E=Eo(f,e.disabled),k=Eo(m,e.disabled),x=Object(_.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e);var n=e.currentTarget;if(!e.defaultPrevented&&_o&&!Oo(e)&&bo(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),yo(n)})),o=function(){cancelAnimationFrame(r),yo(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return ar({ref:co(u,n),style:y,tabIndex:Co(p,O,h,r),disabled:!(!p||!h)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:C,onMouseDownCapture:E,onMouseDown:x,onKeyPressCapture:k},s)}});ro({as:"div",useHook:ko});function xo(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=sr(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function So(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):xo(e,t,n)}function To(e,t){var n=So(e,"blur",t),r=e.dispatchEvent(n),o=Qr(Qr({},t),{},{bubbles:!0});return e.dispatchEvent(So(e,"focusout",o)),r}function Io(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=sr(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,ur(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var Po=fr&&"msCrypto"in window;var Lo=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],No=Lo,Ao=No;function Ro(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function Do(e,t){e.userFocus=t}var Bo=fr&&"msCrypto"in window;function Fo(e,t,n){var r=io(n);return Object(_.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!so(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var a=null==t?void 0:t.ref.current;a&&(Io(a,n.type,n)||n.preventDefault(),n.currentTarget.contains(a)&&n.stopPropagation())}}),[e,t])}function Mo(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Ho=ro({as:"div",useHook:ao({name:"Composite",compose:[ko],keys:Lo,useOptions:function(e){return ar(ar({},e),{},{currentId:wr(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,a=t.onBlurCapture,l=t.onKeyDown,c=t.onKeyDownCapture,i=t.onKeyUpCapture,s=lr(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=Object(_.useRef)(null),d=hr(e.items,e.currentId),f=Object(_.useRef)(null),b=io(r),m=io(o),p=io(a),g=io(l),O=function(e){var t=io(e),n=Object(_.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return Object(_.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&Ro(n)}),[r]),o}(d),v=Bo?function(e){var t=Object(_.useRef)(null);return Object(_.useEffect)((function(){var n=sr(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;Object(_.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var w=Fo(e.unstable_virtual,d,c),h=Fo(e.unstable_virtual,d,i),j=Object(_.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==v?void 0:v.current)||t.relatedTarget,o=Mo(e.items,r);so(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),y=Object(_.useCallback)((function(t){var n;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented)if(e.unstable_virtual)so(t)&&O();else if(so(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),C=Object(_.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return Po?mo(e.currentTarget):e.relatedTarget}(t),a=Mo(e.items,o);if(so(t)&&a)o===r?f.current&&f.current!==o&&To(f.current,t):r&&To(r,t),t.stopPropagation();else!Mo(e.items,t.target)&&r&&To(r,t)}}),[e.unstable_virtual,e.items,d]),E=Object(_.useCallback)((function(t){var n,r;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented&&null===e.currentId&&so(t)){var o="horizontal"!==e.orientation,a="vertical"!==e.orientation,l=!(null===(r=e.groups)||void 0===r||!r.length),c={ArrowUp:(l||o)&&function(){if(l){var t,n=vr(gr(Or(pr(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(l||a)&&e.first,ArrowDown:(l||o)&&e.first,ArrowLeft:(l||a)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];c&&(t.preventDefault(),c())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return ar({ref:co(u,n),id:e.baseId,onFocus:y,onFocusCapture:j,onBlurCapture:C,onKeyDownCapture:w,onKeyDown:E,onKeyUpCapture:h,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},s)},useComposeProps:function(e,t){t=uo(e,t,!0);var n=ko(e,t,!0);return e.unstable_virtual||null===e.currentId?ar({tabIndex:0},n):ar(ar({},t),{},{ref:n.ref})}}),useCreateElement:function(e,t,n){return Gr(e,t,n)}}),Vo=ao({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=Object(_.useContext)(yr),r=Object(_.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=Object(_.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),a=t.id||e.id||""+o+r;return ar(ar({},e),{},{id:a})},useProps:function(e,t){return ar({id:e.id},t)}}),Wo=(ro({as:"div",useHook:Vo}),ao({name:"Group",compose:uo,keys:[],useProps:function(e,t){return ar({role:"group"},t)}})),Uo=(ro({as:"div",useHook:Wo}),ro({as:"div",useHook:ao({name:"CompositeGroup",compose:[Wo,Vo],keys:No,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Wo.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,lr(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,lr(t,["currentId","unstable_moves"]));if(e.items&&t.items){var l=hr(e.items,n),c=hr(t.items,o),i=null==l?void 0:l.groupId,s=null==c?void 0:c.groupId;if(t.id===s||t.id===i)return!1}return Wo.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=lr(t,["ref"]),o=Object(_.useRef)(null),a=e.id;return br((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),ar({ref:co(o,n)},r)}})}));var zo=ao({name:"Clickable",compose:ko,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return ar({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},lr(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=lr(t,["onKeyDown","onKeyUp"]),a=Object(_.useState)(!1),l=a[0],c=a[1],i=io(n),s=io(r),u=Object(_.useCallback)((function(t){var n;if(null===(n=i.current)||void 0===n||n.call(i,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&so(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(bo(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&c(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=Object(_.useCallback)((function(t){var n;if(null===(n=s.current)||void 0===n||n.call(s,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;l&&r&&(c(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,l]);return ar({"data-active":l||void 0,onKeyDown:u,onKeyUp:d},o)}});ro({as:"button",memo:!0,useHook:zo});function qo(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(o){return!1}}function Ko(e){var t=mo(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Go(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(xo(e,t,n))}(e,"input",{bubbles:!0}))}}function Zo(e){return e.querySelector("[data-composite-item-widget]")}var Yo=ro({as:"button",memo:!0,useHook:ao({name:"CompositeItem",compose:[zo,Vo],keys:Ao,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return zo.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=lr(e,["currentId","unstable_moves"]),a=t.currentId,l=t.unstable_moves,c=lr(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(r!==l)return!1;return zo.unstable_propsAreEqual(o,c)},useOptions:function(e){return ar(ar({},e),{},{id:e.id,currentId:wr(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,a=void 0===o?0:o,l=t.onMouseDown,c=t.onFocus,i=t.onBlurCapture,s=t.onKeyDown,u=t.onClick,d=lr(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=Object(_.useRef)(null),b=e.id,m=e.disabled&&!e.focusable,p=e.currentId===b,g=io(p),O=Object(_.useRef)(!1),v=function(e){return Object(_.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),w=io(l),h=io(c),j=io(i),y=io(s),C=io(u),E=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&p||!(null!==(n=e.items)&&void 0!==n&&n.length);Object(_.useEffect)((function(){var t;if(b)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:b,ref:f,disabled:!!m}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,b)}}),[b,m,e.registerItem,e.unregisterItem]),Object(_.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&g.current&&Ro(t)}),[e.unstable_moves]);var k=Object(_.useCallback)((function(e){var t;null===(t=w.current)||void 0===t||t.call(w,e),Do(e.currentTarget,!0)}),[]),x=Object(_.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(Do(t.currentTarget,!1),null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&!Oo(t)&&b&&!function(e,t){if(so(e))return!1;for(var n,r=ir(t);!(n=r()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,b),o&&e.unstable_virtual&&e.baseId&&so(t))){var a=sr(t.target).getElementById(e.baseId);a&&(O.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,a=void 0===o?Ko:o;a(e)||(e.focus({preventScroll:r}),a(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(a))}}),[b,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),S=Object(_.useCallback)((function(t){var n;null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||e.unstable_virtual&&O.current&&(O.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),T=Object(_.useCallback)((function(t){var n;if(so(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,a=!(null==v||!v.groupId),l={ArrowUp:(a||r)&&e.up,ArrowRight:(a||o)&&e.next,ArrowDown:(a||r)&&e.down,ArrowLeft:(a||o)&&e.previous,Home:function(){var n,r;!a||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!a||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;a?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;a?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(l)return t.preventDefault(),void l();if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var c=Zo(t.currentTarget);c&&qo(c)&&(c.focus(),Go(c,""))}else if("Delete"===t.key||"Backspace"===t.key){var i=Zo(t.currentTarget);i&&qo(i)&&(t.preventDefault(),Go(i,""))}}}),[e.orientation,v,e.up,e.next,e.down,e.previous,e.first,e.last]),I=Object(_.useCallback)((function(e){var t;if(null===(t=C.current)||void 0===t||t.call(C,e),!e.defaultPrevented){var n=Zo(e.currentTarget);n&&!go(n)&&n.focus()}}),[]);return ar({ref:co(f,r),id:b,tabIndex:E?a:-1,"aria-selected":!(!e.unstable_virtual||!p)||void 0,onMouseDown:k,onFocus:x,onBlurCapture:S,onKeyDown:T,onClick:I},d)}})}),Qo=function(e){var t=e.isActive,n=e.column,r=e.onSelect,o=e.row,l=Se()(e,["isActive","column","onSelect","row"]),c="".concat(o.label," ").concat(n.label),i=Object(_.useCallback)((function(){r(o.value,n.value)}),[r,o.value,n.value]),s=T()("crowdsignal-forms__block-alignment-control-button",{"is-active":t});return Object(a.createElement)(E.Tooltip,{text:c},Object(a.createElement)(Yo,w()({className:s,role:"gridcell",onFocus:i},l),Object(a.createElement)(E.VisuallyHidden,null,c)))},Jo=function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n)};var Xo=function e(t){var n=t.columns,r=t.onChange,o=t.rows,c=t.value,i=Object(x.useInstanceId)(e,"block-alignment-control-grid"),s=Mr({baseId:i,currentId:Jo(i,c.row,c.column),rtl:Object(l.isRTL)()});return Object(_.useEffect)((function(){s.setCurrentId(Jo(i,c.row,c.column))}),[c,s.setCurrentId]),Object(a.createElement)(Ho,w()({},s,{className:"crowdsignal-forms__block-alignment-control-grid"}),Object(b.map)(o,(function(e){return Object(a.createElement)(Uo,w()({},s,{key:"".concat(i,"-").concat(e.value),role:"row",className:"crowdsignal-forms__block-alignment-control-row"}),Object(b.map)(n,(function(t){var n=Jo(i,e.value,t.value),o=s.currentId===Jo(i,e.value,t.value);return Object(a.createElement)(Qo,w()({},s,{id:n,key:n,isActive:o,row:e,column:t,onSelect:r,tabIndex:o?0:-1}))})))})))},$o=function(e){var t=e.rows,n=e.columns,r=e.value,o=0,l=0;return Object(a.createElement)("div",{className:"crowdsignal-forms__block-alignment-control-icon"},Object(b.map)(t,(function(e){return Object(a.createElement)("div",{key:l++,className:"crowdsignal-forms__block-alignment-control-icon-row"},Object(b.map)(n,(function(t){var n=e.value===r.row&&t.value===r.column,l=T()("crowdsignal-forms__block-alignment-control-icon-dot",{"is-active":n});return Object(a.createElement)("span",{key:o++,className:l})})))})))},ea={"2x2":{rows:[{label:Object(l.__)("Top","crowdsignal-forms"),value:"top"},{label:Object(l.__)("Bottom","crowdsignal-forms"),value:"bottom"}],columns:[{label:Object(l.__)("Left","crowdsignal-forms"),value:"left"},{label:Object(l.__)("Right","crowdsignal-forms"),value:"right"}]},"2x3":{rows:[{label:Object(l.__)("Top","crowdsignal-forms"),value:"top"},{label:Object(l.__)("Center","crowdsignal-forms"),value:"center"},{label:Object(l.__)("Bottom","crowdsignal-forms"),value:"bottom"}],columns:[{label:Object(l.__)("Left","crowdsignal-forms"),value:"left"},{label:Object(l.__)("Right","crowdsignal-forms"),value:"right"}]}},ta=function(e){var t=e.closeOnSelectionChanged,n=e.disabled,r=e.label,o=e.onChange,l=e.rows,c=e.columns,i=e.value,s=Object(a.createElement)($o,{rows:l,columns:c,value:i});return Object(a.createElement)(E.Dropdown,{className:"crowdsignal-forms__block-alignment-control",popoverProps:{className:"crowdsignal-forms__block-alignment-control-popover"},renderToggle:function(e){var t=e.onToggle,o=e.isOpen;return Object(a.createElement)(E.Tooltip,{text:r},Object(a.createElement)(E.ToolbarButton,{showTooltip:!0,"aria-haspopup":"true","aria-expanded":o,disabled:n,icon:s,onClick:t,onKeyDown:function(e){o||e.keyCode!==nr.DOWN||(e.preventDefault(),e.stopPropagation(),t())}}))},renderContent:function(e){var n=e.onClose;return Object(a.createElement)(Xo,{onChange:function(e,r){o(e,r),!t||i.row===e&&i.column===r||n()},rows:l,columns:c,value:i})}})};ta.defaultProps={closeOnSelectionChanged:!1,label:Object(l.__)("Change block position","crowdsignal-forms"),onChange:b.noop};var na=ta,ra=function(e){var t=e.attributes,n=e.currentView,r=e.onViewChange,o=e.setAttributes,c=function(e){return function(){return r(e)}};return Object(a.createElement)(C.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{label:Object(l.__)("Current view","crowdsignal-forms")},Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-toggle",isActive:n===zn,label:Object(l.__)("Question","crowdsignal-forms"),onClick:c(zn)},Object(l.__)("Question","crowdsignal-forms")),Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-toggle",isActive:n===qn,label:Object(l.__)("Submit","crowdsignal-forms"),onClick:c(qn)},Object(l.__)("Submit","crowdsignal-forms"))),Object(a.createElement)(E.ToolbarGroup,null,Object(a.createElement)(na,w()({closeOnSelectionChanged:!0,onChange:function(e,t){return o({x:t,y:e})},label:Object(l.__)("Change button position","crowdsignal-forms"),value:{row:t.y,column:t.x}},ea["2x3"]))))},oa=function(){return!!window.wp.widgets},aa=function(e){return Rn(Q()({path:Object(b.trimEnd)("/crowdsignal-forms/v1/feedback/".concat(e.surveyId||""),"/"),method:"POST",data:e}))};function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ca=Object(x.compose)([Object(f.withSelect)((function(e){var t=e("core/editor").getPermalink();t||(t=e("core").getSite()&&e("core").getSite().url);var n=e("core/edit-post");return{isFullscreen:"isFeatureActive"in n?n.isFeatureActive("fullscreenMode"):n.getPreference("fullscreenMode"),isInserterActive:n.isInserterOpened(),isListViewActive:n.isListViewOpened(),isSidebarActive:n.isEditorSidebarOpened(),sourceLink:t}})),Le])((function(e){var t=Object(_.useState)(zn),n=j()(t,2),r=n[0],o=n[1],c=Object(_.useState)(null),i=j()(c,2),s=i[0],u=i[1],m=Object(_.useState)({}),p=j()(m,2),g=p[0],O=p[1],v=e.attributes,h=e.isFullscreen,y=e.isInserterActive,k=e.isListViewActive,x=e.isSidebarActive,S=e.fallbackStyles,I=e.isSelected,P=e.setAttributes,L=e.clientId,N=e.sourceLink,R=e.setPosition,B=v.isExample,F=v.feedbackPlaceholder,M=v.emailPlaceholder,H=v.surveyId,V=v.title,W=v.header,U=v.emailResponses,z=v.triggerLabel,q=Object(_.useState)({}),K=j()(q,2),G=K[0],Z=K[1],Y=Object(_.useState)(!1),Q=j()(Y,2),J=Q[0],X=Q[1],$=Object(_.useMemo)(oa,[]),ee=Object(_.useRef)(null),te=Object(_.useRef)(null),ne=Object(_.useRef)(null),re=An(function(){var e=D()(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(f.dispatch)("core/editor").lockPostSaving(L),e.prev=1,e.next=4,aa({feedbackPlaceholder:t.feedbackPlaceholder,emailPlaceholder:t.emailPlaceholder,sourceLink:t.sourceLink,surveyId:t.surveyId,title:t.title||t.header,emailResponses:t.emailResponses});case 4:n=e.sent,t.surveyId||P({surveyId:n.surveyId});case 6:return e.prev=6,Object(f.dispatch)("core/editor").unlockPostSaving(L),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})));return function(t){return e.apply(this,arguments)}}(),{feedbackPlaceholder:F,emailPlaceholder:M,sourceLink:N,surveyId:H,title:V,header:W,emailResponses:U}),oe=re.error,ae=re.save;Object(_.useEffect)((function(){B||v.surveyId||(ae(),P({isWidget:$}))}),[]),Object(_.useEffect)((function(){I||o(zn)}),[I]),Object(_.useEffect)((function(){window.requestAnimationFrame((function(){return X(!J)}))}),[y,k,x]),Object(_.useLayoutEffect)((function(){if(!B&&te.current&&!$){R(function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l={left:Object(b.isObject)(o)?o.left:o,right:Object(b.isObject)(o)?o.right:o,top:Object(b.isObject)(o)?o.top:o,bottom:Object(b.isObject)(o)?o.bottom:o};return a&&(l=Xn(l,a.getBoundingClientRect())),Qn({},$n(e,0,l),{},er(t,r,l))}(v.x,v.y,ee.current.offsetWidth,ee.current.offsetHeight,{left:"center"===v.y?10:20,right:"center"===v.y?10:20,top:I?80:20,bottom:20},document.getElementsByClassName("interface-interface-skeleton__content")[0]),te.current.offsetWidth,te.current.offsetHeight);var e=(Object(b.max)([te.current.offsetWidth,ee.current.offsetHeight])-te.current.offsetWidth)/2;Z({"--crowdsignal-forms-feedback__toggle-padding":"".concat(e,"px"),minHeight:"center"===v.y?te.current.offsetWidth:0,marginLeft:"center"===v.y&&"left"===v.x?te.current.offsetHeight-te.current.offsetWidth-10:0,marginRight:"center"===v.y&&"right"===v.x?te.current.offsetHeight-te.current.offsetWidth-10:0})}}),[J,h,I,R,v.x,v.y,te.current,ee.current,z,$]),Object(_.useLayoutEffect)((function(){ne.current&&u(ne.current.offsetHeight)}),[v.header,ne.current,I]),Object(_.useLayoutEffect)((function(){if(!oa)if(te.current&&te.current.ownerDocument!==document)O({bottom:0,left:0,right:0,top:0});else{var e=document.getElementsByClassName("interface-interface-skeleton__content")[0].getBoundingClientRect();O({bottom:window.innerHeight-(e.top+e.height),left:e.left,right:window.innerWidth-(e.left+e.width),top:e.top})}}),[J,h,I,te.current]);var le=function(e){return function(t){return P(d()({},e,t))}},ce=ie().accountInfo,se=Object(b.get)(ce,["signalCount","shouldDisplay"]),ue=se&&Object(b.get)(ce,["signalCount","count"])>=Object(b.get)(ce,["signalCount","userLimit"]),de=Object(b.get)(ce,["account","email"]),fe=T()("crowdsignal-forms-feedback","align-".concat(v.x),"vertical-align-".concat(v.y),{"no-shadow":v.hideTriggerShadow,"is-active":I,"is-vertical":"center"===v.y,"is-widget":$}),me=$&&te.current&&te.current.offsetHeight?"".concat(te.current&&te.current.offsetHeight,"px"):null,pe=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},function(e,t){return Object(b.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize,triggerBackgroundColor:e.triggerBackgroundColor||t.accentColor,triggerTextColor:e.triggerTextColor||t.textColorInverted},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))}(v,S),{},G,{"--crowdsignal-forms-trigger-height":me}),ge={height:s},Oe=Kn.CLOSED===v.status||Kn.CLOSED_AFTER===v.status&&null!==v.closedAfterDateTime&&(new Date).toISOString()>v.closedAfterDateTime,ve=Object(b.get)(ce,"capabilities",[]).includes("hide-branding");return Object(a.createElement)(lt,{blockName:Object(l.__)("Feedback Button","crowdsignal-forms"),blockIcon:Object(a.createElement)(Un,null)},Object(a.createElement)(ra,w()({currentView:r,onViewChange:o},e)),Object(a.createElement)(tr,w()({shouldPromote:se,signalWarning:ue,email:de},e)),$&&Object(a.createElement)(a.Fragment,null,!B&&!$&&ue&&Object(a.createElement)(pt,null),!B&&!$&&oe&&Object(a.createElement)(Hn,{retryHandler:ae}),Object(a.createElement)(mt,{icon:"warning",status:"warn",isDismissible:!1},Object(l.__)("This widget will appear in a fixed position as selected, in a corner or at an edge.","crowdsignal-forms"))),Object(a.createElement)("div",{ref:ee,className:fe,style:pe},Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__trigger-preview"},Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__trigger-wrapper"},Object(a.createElement)(C.RichText,{ref:te,className:"wp-block-button__link crowdsignal-forms-feedback__trigger",onChange:le("triggerLabel"),value:z,allowedFormats:[],multiline:!1,disableLineBreaks:!0}))),Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__popover-preview"},(B||I||$)&&Object(a.createElement)(a.Fragment,null,!$&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{"aria-modal":"true",role:"dialog",className:"crowdsignal-forms-feedback__popover-overlay",onClick:function(){Object(f.dispatch)("core/block-editor").clearSelectedBlock(),te.current.parentElement.parentElement.parentElement.blur()},style:g})),!B&&!$&&ue&&Object(a.createElement)(pt,null),!B&&!$&&oe&&Object(a.createElement)(Hn,{retryHandler:ae}),r===zn&&Object(a.createElement)("div",{ref:ne,className:"crowdsignal-forms-feedback__popover"},Object(a.createElement)(C.RichText,{tagName:"h3",className:"crowdsignal-forms-feedback__header",onChange:le("header"),value:v.header,allowedFormats:[]}),Object(a.createElement)(E.TextareaControl,{className:"crowdsignal-forms-feedback__input",rows:6,onChange:le("feedbackPlaceholder"),value:v.feedbackPlaceholder}),Object(a.createElement)(E.TextControl,{className:"crowdsignal-forms-feedback__input",onChange:le("emailPlaceholder"),value:v.emailPlaceholder}),Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__button-wrapper"},Object(a.createElement)(C.RichText,{className:"wp-block-button__link crowdsignal-forms-feedback__feedback-button",onChange:le("submitButtonLabel"),value:v.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),!ve&&Object(a.createElement)(be,{editing:!0,trackRef:"cs-forms-feedback",message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")})),r===qn&&Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__popover",style:ge},Object(a.createElement)(C.RichText,{tagName:"h3",className:"crowdsignal-forms-feedback__header",onChange:le("submitText"),value:v.submitText,allowedFormats:[]}),!ve&&Object(a.createElement)(be,{editing:!0,trackRef:"cs-forms-feedback",message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")})),Oe&&Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__closed-notice"},Object(l.__)("This Feedback Form is Closed","crowdsignal-forms"))))),e.renderStyleProbe())})),ia={title:Object(l.__)("Feedback Button","crowdsignal-forms"),description:Object(l.__)("Add an always visible button that allows your audience to share feedback anytime.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:["crowdsignal",Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("floating","crowdsignal-forms"),Object(l.__)("contact","crowdsignal-forms"),Object(l.__)("call to action","crowdsignal-forms"),Object(l.__)("cta","crowdsignal-forms"),Object(l.__)("button","crowdsignal-forms"),Object(l.__)("subscribe","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("email","crowdsignal-forms"),Object(l.__)("message","crowdsignal-forms")],icon:Object(a.createElement)(Un,null),edit:ca,supports:{multiple:!1,html:!1,reusable:!1},attributes:Zn,example:{attributes:{isExample:!0}}};function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var da={},fa=["crowdsignal-forms/feedback"];Object(r.registerBlockType)("crowdsignal-forms/poll",wt),Object(r.registerBlockType)("crowdsignal-forms/vote",At),Object(r.registerBlockType)("crowdsignal-forms/vote-item",mn),Object(r.registerBlockType)("crowdsignal-forms/applause",Sn),Object(r.registerBlockType)("crowdsignal-forms/nps",Wn),Object(r.registerBlockType)("crowdsignal-forms/feedback",ia),Object(o.addFilter)("editor.BlockListBlock","crowdsignal-forms/with-fixed-position",(function(e){return function(t){if(!Object(b.includes)(fa,t.name))return Object(a.createElement)(e,t);var n=Object(_.useState)({}),r=j()(n,2),o=r[0],l=r[1];da[t.clientId]=l,Object(_.useEffect)((function(){return function(){da[t.clientId]=null}}),[da,t.clientId]);var c=ua({},Object(b.get)(t,["wrapperProps","style"],{}),{},o,{position:Object(b.isEmpty)(o)?null:"fixed",margin:0}),i=ua({},t.wrapperProps,{style:c});return Object(a.createElement)(e,w()({},t,{wrapperProps:i}))}}),1),Object(o.addFilter)("editor.BlockEdit","crowdsignal-forms/with-fixed-position-control",(function(e){return function(t){if(!Object(b.includes)(fa,t.name))return Object(a.createElement)(e,t);var n=Object(_.useCallback)((function(e){da[t.clientId](Object(b.pick)(e,["top","left","right","bottom"]))}),[t.clientId]);return Object(a.createElement)(e,w()({},t,{setPosition:n}))}}))}]));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(e, a) { for(var i in a) e[i] = a[i]; }(window, /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40
+ /******/ }
41
+ /******/ };
42
+ /******/
43
+ /******/ // define __esModule on exports
44
+ /******/ __webpack_require__.r = function(exports) {
45
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47
+ /******/ }
48
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
49
+ /******/ };
50
+ /******/
51
+ /******/ // create a fake namespace object
52
+ /******/ // mode & 1: value is a module id, require it
53
+ /******/ // mode & 2: merge all properties of value into the ns
54
+ /******/ // mode & 4: return value when already ns object
55
+ /******/ // mode & 8|1: behave like require
56
+ /******/ __webpack_require__.t = function(value, mode) {
57
+ /******/ if(mode & 1) value = __webpack_require__(value);
58
+ /******/ if(mode & 8) return value;
59
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60
+ /******/ var ns = Object.create(null);
61
+ /******/ __webpack_require__.r(ns);
62
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64
+ /******/ return ns;
65
+ /******/ };
66
+ /******/
67
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
68
+ /******/ __webpack_require__.n = function(module) {
69
+ /******/ var getter = module && module.__esModule ?
70
+ /******/ function getDefault() { return module['default']; } :
71
+ /******/ function getModuleExports() { return module; };
72
+ /******/ __webpack_require__.d(getter, 'a', getter);
73
+ /******/ return getter;
74
+ /******/ };
75
+ /******/
76
+ /******/ // Object.prototype.hasOwnProperty.call
77
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78
+ /******/
79
+ /******/ // __webpack_public_path__
80
+ /******/ __webpack_require__.p = "";
81
+ /******/
82
+ /******/
83
+ /******/ // Load entry module and return exports
84
+ /******/ return __webpack_require__(__webpack_require__.s = "./client/editor.js");
85
+ /******/ })
86
+ /************************************************************************/
87
+ /******/ ({
88
+
89
+ /***/ "./client/blocks/applause/attributes.js":
90
+ /*!**********************************************!*\
91
+ !*** ./client/blocks/applause/attributes.js ***!
92
+ \**********************************************/
93
+ /*! exports provided: default */
94
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
95
+
96
+ "use strict";
97
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./client/blocks/applause/constants.js\");\n/*\n * Note: Any changes made to the attributes definition need to be duplicated in\n * Crowdsignal_Forms\\Frontend\\Blocks\\Crowdsignal_Forms_Applause_Block::attributes()\n * inside includes/frontend/blocks/class-crowdsignal-forms-applause-block.php.\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n pollId: {\n type: 'string',\n default: null\n },\n hideBranding: {\n type: 'boolean',\n default: false\n },\n title: {\n type: 'string',\n default: null\n },\n answerId: {\n type: 'string',\n default: null\n },\n size: {\n type: 'string',\n default: 'medium'\n },\n pollStatus: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_0__[\"PollStatus\"].OPEN\n },\n closedAfterDateTime: {\n type: 'string',\n default: null\n },\n textColor: {\n type: 'string'\n },\n backgroundColor: {\n type: 'string'\n },\n borderColor: {\n type: 'string'\n },\n borderWidth: {\n type: 'number',\n default: 0\n },\n borderRadius: {\n type: 'number',\n default: 0\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/applause/attributes.js?");
98
+
99
+ /***/ }),
100
+
101
+ /***/ "./client/blocks/applause/constants.js":
102
+ /*!*********************************************!*\
103
+ !*** ./client/blocks/applause/constants.js ***!
104
+ \*********************************************/
105
+ /*! exports provided: PollStatus, DEFAULT_SIZE_CONTROLS, POPOVER_PROPS */
106
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
107
+
108
+ "use strict";
109
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PollStatus\", function() { return PollStatus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DEFAULT_SIZE_CONTROLS\", function() { return DEFAULT_SIZE_CONTROLS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"POPOVER_PROPS\", function() { return POPOVER_PROPS; });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * WordPress dependencies\n */\n\nvar PollStatus = Object.freeze({\n OPEN: 'open',\n CLOSED: 'closed',\n CLOSED_AFTER: 'closed-after'\n});\nvar DEFAULT_SIZE_CONTROLS = [{\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Small', 'crowdsignal-forms'),\n size: 'small'\n}, {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Medium', 'crowdsignal-forms'),\n size: 'medium'\n}, {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Large', 'crowdsignal-forms'),\n size: 'large'\n}];\nvar POPOVER_PROPS = {\n position: 'bottom right',\n isAlternate: true,\n className: 'crowdsignal-forms-vote__size-dropdown'\n};\n\n//# sourceURL=webpack:///./client/blocks/applause/constants.js?");
110
+
111
+ /***/ }),
112
+
113
+ /***/ "./client/blocks/applause/edit.js":
114
+ /*!****************************************!*\
115
+ !*** ./client/blocks/applause/edit.js ***!
116
+ \****************************************/
117
+ /*! exports provided: default */
118
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
119
+
120
+ "use strict";
121
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! components/connect-to-crowdsignal */ \"./client/components/connect-to-crowdsignal/index.js\");\n/* harmony import */ var components_with_client_id__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/with-client-id */ \"./client/components/with-client-id/index.js\");\n/* harmony import */ var components_use_numbered_title__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! components/use-numbered-title */ \"./client/components/use-numbered-title/index.js\");\n/* harmony import */ var components_applause__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! components/applause */ \"./client/components/applause/index.js\");\n/* harmony import */ var components_with_poll_base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! components/with-poll-base */ \"./client/components/with-poll-base/index.js\");\n/* harmony import */ var _toolbar__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./toolbar */ \"./client/blocks/applause/toolbar.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./sidebar */ \"./client/blocks/applause/sidebar.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\nvar EditApplauseBlock = function EditApplauseBlock(props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes,\n pollDataFromApi = props.pollDataFromApi;\n var viewResultsUrl = pollDataFromApi ? pollDataFromApi.viewResultsUrl : '';\n Object(components_use_numbered_title__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(props.name, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Untitled Applause', 'crowdsignal-forms'), attributes, setAttributes);\n\n var _useAccountInfo = Object(data_hooks__WEBPACK_IMPORTED_MODULE_13__[\"useAccountInfo\"])(),\n accountInfo = _useAccountInfo.accountInfo;\n\n var shouldPromote = Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"get\"])(accountInfo, ['signalCount', 'shouldDisplay']);\n var signalWarning = shouldPromote && Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"get\"])(accountInfo, ['signalCount', 'count']) >= Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"get\"])(accountInfo, ['signalCount', 'userLimit']);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n blockIcon: null,\n blockName: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Crowdsignal Applause', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_sidebar__WEBPACK_IMPORTED_MODULE_12__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {\n shouldPromote: shouldPromote,\n signalWarning: signalWarning,\n viewResultsUrl: viewResultsUrl\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_toolbar__WEBPACK_IMPORTED_MODULE_11__[\"default\"], props), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_applause__WEBPACK_IMPORTED_MODULE_9__[\"default\"], props));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__[\"compose\"])([components_with_poll_base__WEBPACK_IMPORTED_MODULE_10__[\"default\"], Object(components_with_client_id__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(['pollId', 'answerId'])])(EditApplauseBlock));\n\n//# sourceURL=webpack:///./client/blocks/applause/edit.js?");
122
+
123
+ /***/ }),
124
+
125
+ /***/ "./client/blocks/applause/index.js":
126
+ /*!*****************************************!*\
127
+ !*** ./client/blocks/applause/index.js ***!
128
+ \*****************************************/
129
+ /*! exports provided: default */
130
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
131
+
132
+ "use strict";
133
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_icon_applause__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/icon/applause */ \"./client/components/icon/applause.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ \"./client/blocks/applause/edit.js\");\n/* harmony import */ var _attributes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./attributes */ \"./client/blocks/applause/attributes.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Applause', 'crowdsignal-forms'),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Let your audience cheer with a big round of applause — powered by Crowdsignal.', 'crowdsignal-forms'),\n category: 'crowdsignal-forms',\n keywords: ['crowdsignal', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('applause', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('cheer', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('cheering', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('clap', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('feedback', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('kudos', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('like', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('opinion', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('praise', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('rating', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('upvote', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('upvoting', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('votes', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('voting', 'crowdsignal-forms')],\n icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_icon_applause__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null),\n edit: _edit__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n attributes: _attributes__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n example: {\n attributes: {\n size: 'large'\n }\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/applause/index.js?");
134
+
135
+ /***/ }),
136
+
137
+ /***/ "./client/blocks/applause/sidebar.js":
138
+ /*!*******************************************!*\
139
+ !*** ./client/blocks/applause/sidebar.js ***!
140
+ \*******************************************/
141
+ /*! exports provided: default */
142
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
143
+
144
+ "use strict";
145
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./client/blocks/applause/constants.js\");\n/* harmony import */ var components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/sidebar-promote */ \"./client/components/sidebar-promote/index.js\");\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar SideBar = function SideBar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes,\n viewResultsUrl = _ref.viewResultsUrl,\n shouldPromote = _ref.shouldPromote,\n signalWarning = _ref.signalWarning;\n\n var handleChangeTitle = function handleChangeTitle(title) {\n return setAttributes({\n title: title\n });\n };\n\n var resultsLinkEnabled = '' !== viewResultsUrl;\n\n var handleChangePollStatus = function handleChangePollStatus(pollStatus) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"], pollStatus)) {\n return;\n } // closedAfterDateTime MUST be set when pollStatus is set to CLOSED_AFTER\n\n\n setAttributes({\n closedAfterDateTime: pollStatus === _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED_AFTER ? new Date(new Date().getTime() + 24 * 60 * 60 * 1000).toISOString() : null,\n pollStatus: pollStatus\n });\n };\n\n var handleChangeCloseAfterDateTime = function handleChangeCloseAfterDateTime(closedAfterDateTime) {\n var dateTime = new Date(closedAfterDateTime);\n setAttributes({\n closedAfterDateTime: dateTime.toISOString()\n });\n };\n\n var handleChangeTextColor = function handleChangeTextColor(textColor) {\n return setAttributes({\n textColor: textColor\n });\n };\n\n var handleChangeBackgroundColor = function handleChangeBackgroundColor(backgroundColor) {\n return setAttributes({\n backgroundColor: backgroundColor\n });\n };\n\n var handleChangeBorderColor = function handleChangeBorderColor(borderColor) {\n return setAttributes({\n borderColor: borderColor\n });\n };\n\n return 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\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Results', 'crowdsignal-forms'),\n initialOpen: true\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"p\", null, resultsLinkEnabled ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Manage results on ', 'crowdsignal-forms') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Publish this post to enable results on ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"ExternalLink\"], {\n href: \"https://www.crowdsignal.com\"\n }, \"crowdsignal.com\")), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"p\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n href: viewResultsUrl,\n isSecondary: true,\n target: \"_blank\",\n disabled: !resultsLinkEnabled\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('View results', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextControl\"], {\n value: attributes.title,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Title of the applause block', 'crowdsignal-forms'),\n onChange: handleChangeTitle\n }), shouldPromote && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n signalWarning: signalWarning\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Settings', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.pollStatus,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Status', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Open', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].OPEN\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Closed after', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED_AFTER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Closed', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED\n }],\n onChange: handleChangePollStatus\n }), _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED_AFTER === attributes.pollStatus && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TimePicker\"], {\n currentTime: attributes.closedAfterDateTime,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Close applause block on', 'crowdsignal-forms'),\n onChange: handleChangeCloseAfterDateTime,\n is12Hour: true\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Styling', 'crowdsignal-forms'),\n initialOpen: true,\n colorSettings: [{\n value: attributes.textColor,\n onChange: handleChangeTextColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Text color', 'crowdsignal-forms')\n }, {\n value: attributes.backgroundColor,\n onChange: handleChangeBackgroundColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Background color', 'crowdsignal-forms')\n }, {\n value: attributes.borderColor,\n onChange: handleChangeBorderColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Border color', 'crowdsignal-forms')\n }]\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SideBar);\n\n//# sourceURL=webpack:///./client/blocks/applause/sidebar.js?");
146
+
147
+ /***/ }),
148
+
149
+ /***/ "./client/blocks/applause/toolbar.js":
150
+ /*!*******************************************!*\
151
+ !*** ./client/blocks/applause/toolbar.js ***!
152
+ \*******************************************/
153
+ /*! exports provided: default */
154
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
155
+
156
+ "use strict";
157
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./client/blocks/applause/constants.js\");\n/* harmony import */ var components_icon_size__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! components/icon/size */ \"./client/components/icon/size.js\");\n/* harmony import */ var components_icon_border__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! components/icon/border */ \"./client/components/icon/border.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar ToolBar = function ToolBar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes;\n var size = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(attributes, 'size', 'medium');\n var sizeControls = _constants__WEBPACK_IMPORTED_MODULE_8__[\"DEFAULT_SIZE_CONTROLS\"];\n\n var handleChangeBorderRadius = function handleChangeBorderRadius(borderRadius) {\n setAttributes({\n borderRadius: parseInt(borderRadius, 10) || 0\n });\n };\n\n var handleChangeBorderWidth = function handleChangeBorderWidth(borderWidth) {\n setAttributes({\n borderWidth: parseInt(borderWidth, 10) || 0\n });\n };\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),\n isPopoverVisible = _useState2[0],\n setPopoverVisible = _useState2[1];\n\n var handlePopoverVisible = function handlePopoverVisible() {\n return setPopoverVisible(!isPopoverVisible);\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__[\"BlockControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"ToolbarGroup\"], {\n isCollapsed: true,\n icon: components_icon_size__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Change block size', 'crowdsignal-forms'),\n popoverProps: _constants__WEBPACK_IMPORTED_MODULE_8__[\"POPOVER_PROPS\"],\n controls: sizeControls.map(function (control) {\n var controlSize = control.size;\n var isActive = size === controlSize;\n return _objectSpread({}, control, {\n isActive: isActive,\n role: 'menuitemradio',\n onClick: function onClick() {\n return setAttributes({\n size: controlSize\n });\n }\n });\n })\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"Toolbar\"], {\n controls: [{\n icon: components_icon_border__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n onClick: handlePopoverVisible\n }]\n }), isPopoverVisible && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"Popover\"], {\n className: \"crowdsignal-forms__border-popover\",\n onFocusOutside: handlePopoverVisible\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__row\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Border thickness', 'crowdsignal-forms'),\n type: \"number\",\n className: \"crowdsignal-forms__small-text-input\",\n onChange: handleChangeBorderWidth,\n value: attributes.borderWidth\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Corner radius', 'crowdsignal-forms'),\n type: \"number\",\n className: \"crowdsignal-forms__small-text-input\",\n onChange: handleChangeBorderRadius,\n value: attributes.borderRadius\n }))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ToolBar);\n\n//# sourceURL=webpack:///./client/blocks/applause/toolbar.js?");
158
+
159
+ /***/ }),
160
+
161
+ /***/ "./client/blocks/applause/util.js":
162
+ /*!****************************************!*\
163
+ !*** ./client/blocks/applause/util.js ***!
164
+ \****************************************/
165
+ /*! exports provided: getApplauseStyleVars, getBlockCssClasses */
166
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
167
+
168
+ "use strict";
169
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getApplauseStyleVars\", function() { return getApplauseStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBlockCssClasses\", function() { return getBlockCssClasses; });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\nvar getApplauseStyleVars = function getApplauseStyleVars(attributes, fallbackStyles) {\n var textColor = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(attributes.textColor) ? fallbackStyles.textColor : attributes.textColor;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"mapKeys\"])({\n bgColor: attributes.backgroundColor || fallbackStyles.backgroundColor,\n textColor: textColor,\n hoverColor: fallbackStyles.accentColor,\n borderRadius: \"\".concat(attributes.borderRadius || 0, \"px\"),\n borderWidth: \"\".concat(attributes.borderWidth || 0, \"px\"),\n borderColor: attributes.borderColor\n }, function (_, key) {\n return \"--crowdsignal-forms-applause-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"kebabCase\"])(key));\n });\n};\n/**\n * Returns a css 'class' string of overridden styles given a collection of attributes.\n *\n * @param {*} attributes The block's attributes\n * @param {...any} extraClasses A list of additional classes to add to the class string\n */\n\nvar getBlockCssClasses = function getBlockCssClasses(attributes) {\n for (var _len = arguments.length, extraClasses = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n extraClasses[_key - 1] = arguments[_key];\n }\n\n return classnames__WEBPACK_IMPORTED_MODULE_0___default()({\n 'has-bg-color': attributes.backgroundColor,\n 'has-text-color': attributes.textColor,\n 'has-border-color': attributes.borderColor\n }, extraClasses);\n};\n\n//# sourceURL=webpack:///./client/blocks/applause/util.js?");
170
+
171
+ /***/ }),
172
+
173
+ /***/ "./client/blocks/feedback/attributes.js":
174
+ /*!**********************************************!*\
175
+ !*** ./client/blocks/feedback/attributes.js ***!
176
+ \**********************************************/
177
+ /*! exports provided: default */
178
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
179
+
180
+ "use strict";
181
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./client/blocks/feedback/constants.js\");\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Note: Any changes made to the attributes definition need to be duplicated in\n * Crowdsignal_Forms\\Frontend\\Blocks\\Crowdsignal_Forms_Feedback_Block::attributes()\n * inside includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php.\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n backgroundColor: {\n type: 'string'\n },\n buttonColor: {\n type: 'string'\n },\n buttonTextColor: {\n type: 'string'\n },\n emailPlaceholder: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Your Email', 'crowdsignal-forms')\n },\n emailRequired: {\n type: 'boolean',\n default: false\n },\n feedbackPlaceholder: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Please let us know how we can do better…', 'crowdsignal-forms')\n },\n header: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('👋 Hey there!', 'crowdsignal-forms')\n },\n hideBranding: {\n type: 'boolean',\n default: false\n },\n hideTriggerShadow: {\n type: 'boolean',\n default: false\n },\n submitButtonLabel: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Submit', 'crowdsignal-forms')\n },\n submitText: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Thanks for letting us know!', 'crowdsignal-forms')\n },\n surveyId: {\n type: 'number',\n default: null\n },\n textColor: {\n type: 'string'\n },\n toggleOn: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"FeedbackToggleMode\"].CLICK\n },\n triggerLabel: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Feedback', 'crowdsignal-forms')\n },\n triggerBackgroundColor: {\n type: 'string'\n },\n triggerTextColor: {\n type: 'string'\n },\n title: {\n type: 'string',\n default: ''\n },\n x: {\n type: 'string',\n default: 'left'\n },\n y: {\n type: 'string',\n default: 'bottom'\n },\n status: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"FeedbackStatus\"].OPEN\n },\n closedAfterDateTime: {\n type: 'string',\n default: null\n },\n emailResponses: {\n type: 'boolean',\n default: true\n },\n isExample: {\n type: 'boolean',\n default: false\n },\n isWidget: {\n type: 'boolean',\n default: false\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/feedback/attributes.js?");
182
+
183
+ /***/ }),
184
+
185
+ /***/ "./client/blocks/feedback/constants.js":
186
+ /*!*********************************************!*\
187
+ !*** ./client/blocks/feedback/constants.js ***!
188
+ \*********************************************/
189
+ /*! exports provided: views, FeedbackStatus, FeedbackToggleMode */
190
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
191
+
192
+ "use strict";
193
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"views\", function() { return views; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FeedbackStatus\", function() { return FeedbackStatus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FeedbackToggleMode\", function() { return FeedbackToggleMode; });\nvar views = {\n QUESTION: 'question',\n SUBMIT: 'submit'\n};\nvar FeedbackStatus = Object.freeze({\n OPEN: 'open',\n CLOSED: 'closed',\n CLOSED_AFTER: 'closed-after'\n});\nvar FeedbackToggleMode = Object.freeze({\n CLICK: 'click',\n HOVER: 'hover',\n PAGE_LOAD: 'load'\n});\n\n//# sourceURL=webpack:///./client/blocks/feedback/constants.js?");
194
+
195
+ /***/ }),
196
+
197
+ /***/ "./client/blocks/feedback/edit.js":
198
+ /*!****************************************!*\
199
+ !*** ./client/blocks/feedback/edit.js ***!
200
+ \****************************************/
201
+ /*! exports provided: default */
202
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
203
+
204
+ "use strict";
205
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! components/connect-to-crowdsignal */ \"./client/components/connect-to-crowdsignal/index.js\");\n/* harmony import */ var components_editor_notice__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! components/editor-notice */ \"./client/components/editor-notice/index.js\");\n/* harmony import */ var components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! components/with-fallback-styles */ \"./client/components/with-fallback-styles/index.js\");\n/* harmony import */ var components_feedback_util__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! components/feedback/util */ \"./client/components/feedback/util.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./sidebar */ \"./client/blocks/feedback/sidebar.js\");\n/* harmony import */ var _toolbar__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./toolbar */ \"./client/blocks/feedback/toolbar.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./util */ \"./client/blocks/feedback/util.js\");\n/* harmony import */ var components_use_autosave__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! components/use-autosave */ \"./client/components/use-autosave/index.js\");\n/* harmony import */ var data_feedback_edit__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! data/feedback/edit */ \"./client/data/feedback/edit.js\");\n/* harmony import */ var components_signal_warning__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! components/signal-warning */ \"./client/components/signal-warning/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./constants */ \"./client/blocks/feedback/constants.js\");\n/* harmony import */ var components_retry_notice__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! components/retry-notice */ \"./client/components/retry-notice/index.js\");\n/* harmony import */ var components_footer_branding__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! components/footer-branding */ \"./client/components/footer-branding/index.js\");\n/* harmony import */ var components_icon_feedback__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! components/icon/feedback */ \"./client/components/icon/feedback.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress depenencies\n */\n\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditFeedbackBlock = function EditFeedbackBlock(props) {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useState\"])(_constants__WEBPACK_IMPORTED_MODULE_25__[\"views\"].QUESTION),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState, 2),\n view = _useState2[0],\n setView = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useState\"])(null),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState3, 2),\n height = _useState4[0],\n setHeight = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useState\"])({}),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState5, 2),\n overlayPosition = _useState6[0],\n setOverlayPosition = _useState6[1];\n\n var attributes = props.attributes,\n isFullscreen = props.isFullscreen,\n isInserterActive = props.isInserterActive,\n isListViewActive = props.isListViewActive,\n isSidebarActive = props.isSidebarActive,\n fallbackStyles = props.fallbackStyles,\n isSelected = props.isSelected,\n setAttributes = props.setAttributes,\n clientId = props.clientId,\n sourceLink = props.sourceLink,\n setPosition = props.setPosition;\n var isExample = attributes.isExample,\n feedbackPlaceholder = attributes.feedbackPlaceholder,\n emailPlaceholder = attributes.emailPlaceholder,\n surveyId = attributes.surveyId,\n title = attributes.title,\n header = attributes.header,\n emailResponses = attributes.emailResponses,\n triggerLabel = attributes.triggerLabel;\n\n var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useState\"])({}),\n _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState7, 2),\n margin = _useState8[0],\n setMargin = _useState8[1];\n\n var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useState\"])(false),\n _useState10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState9, 2),\n sidebarChanged = _useState10[0],\n setSidebarChanged = _useState10[1];\n\n var widgetEditor = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useMemo\"])(_util__WEBPACK_IMPORTED_MODULE_21__[\"isWidgetEditor\"], []);\n var blockElement = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useRef\"])(null);\n var triggerButton = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useRef\"])(null);\n var popover = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useRef\"])(null);\n\n var _useAutosave = Object(components_use_autosave__WEBPACK_IMPORTED_MODULE_22__[\"useAutosave\"])( /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(data) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"dispatch\"])('core/editor').lockPostSaving(clientId);\n _context.prev = 1;\n _context.next = 4;\n return Object(data_feedback_edit__WEBPACK_IMPORTED_MODULE_23__[\"updateFeedback\"])({\n feedbackPlaceholder: data.feedbackPlaceholder,\n emailPlaceholder: data.emailPlaceholder,\n sourceLink: data.sourceLink,\n surveyId: data.surveyId,\n title: data.title || data.header,\n emailResponses: data.emailResponses\n });\n\n case 4:\n response = _context.sent;\n\n if (!data.surveyId) {\n setAttributes({\n surveyId: response.surveyId\n });\n }\n\n case 6:\n _context.prev = 6;\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"dispatch\"])('core/editor').unlockPostSaving(clientId);\n return _context.finish(6);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1,, 6, 9]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }(), {\n feedbackPlaceholder: feedbackPlaceholder,\n emailPlaceholder: emailPlaceholder,\n sourceLink: sourceLink,\n surveyId: surveyId,\n title: title,\n header: header,\n emailResponses: emailResponses\n }),\n saveError = _useAutosave.error,\n saveBlock = _useAutosave.save; // Force a save to Crowdsignal.com as soon as a new block is created\n // Also make sure isWidget flag is set correctly\n\n\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useEffect\"])(function () {\n if (isExample || attributes.surveyId) {\n return;\n }\n\n saveBlock();\n setAttributes({\n isWidget: widgetEditor\n });\n }, []);\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useEffect\"])(function () {\n if (isSelected) {\n return;\n }\n\n setView(_constants__WEBPACK_IMPORTED_MODULE_25__[\"views\"].QUESTION);\n }, [isSelected]);\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useEffect\"])(function () {\n // The sidebar itself is rendered off the same setting\n // hence the need to wait until it's re-rendered\n // so we can measure it properly.\n window.requestAnimationFrame(function () {\n return setSidebarChanged(!sidebarChanged);\n });\n }, [isInserterActive, isListViewActive, isSidebarActive]);\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useLayoutEffect\"])(function () {\n if (isExample || !triggerButton.current || widgetEditor) {\n return;\n }\n\n setPosition(Object(components_feedback_util__WEBPACK_IMPORTED_MODULE_17__[\"getFeedbackButtonPosition\"])(attributes.x, attributes.y, blockElement.current.offsetWidth, blockElement.current.offsetHeight, {\n left: attributes.y === 'center' ? 10 : 20,\n right: attributes.y === 'center' ? 10 : 20,\n top: isSelected ? 80 : 20,\n bottom: 20\n }, document.getElementsByClassName('interface-interface-skeleton__content')[0]), triggerButton.current.offsetWidth, triggerButton.current.offsetHeight);\n var verticalTogglePadding = (Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"max\"])([triggerButton.current.offsetWidth, blockElement.current.offsetHeight]) - triggerButton.current.offsetWidth) / 2;\n setMargin({\n '--crowdsignal-forms-feedback__toggle-padding': \"\".concat(verticalTogglePadding, \"px\"),\n minHeight: attributes.y === 'center' ? triggerButton.current.offsetWidth : 0,\n marginLeft: attributes.y === 'center' && attributes.x === 'left' ? triggerButton.current.offsetHeight - triggerButton.current.offsetWidth - 10 : 0,\n marginRight: attributes.y === 'center' && attributes.x === 'right' ? triggerButton.current.offsetHeight - triggerButton.current.offsetWidth - 10 : 0\n });\n }, [sidebarChanged, isFullscreen, isSelected, setPosition, attributes.x, attributes.y, triggerButton.current, blockElement.current, triggerLabel, widgetEditor]);\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useLayoutEffect\"])(function () {\n if (!popover.current) {\n return;\n }\n\n setHeight(popover.current.offsetHeight);\n }, [attributes.header, popover.current, isSelected]);\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useLayoutEffect\"])(function () {\n if (_util__WEBPACK_IMPORTED_MODULE_21__[\"isWidgetEditor\"]) {\n return;\n }\n\n if (triggerButton.current && triggerButton.current.ownerDocument !== document) {\n setOverlayPosition({\n bottom: 0,\n left: 0,\n right: 0,\n top: 0\n });\n return;\n }\n\n var contentWrapper = document.getElementsByClassName('interface-interface-skeleton__content')[0];\n var contentBox = contentWrapper.getBoundingClientRect();\n setOverlayPosition({\n bottom: window.innerHeight - (contentBox.top + contentBox.height),\n left: contentBox.left,\n right: window.innerWidth - (contentBox.left + contentBox.width),\n top: contentBox.top\n });\n }, [sidebarChanged, isFullscreen, isSelected, triggerButton.current]);\n\n var toggleBlock = function toggleBlock() {\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"dispatch\"])('core/block-editor').clearSelectedBlock();\n triggerButton.current.parentElement.parentElement.parentElement.blur();\n };\n\n var handleChangeAttribute = function handleChangeAttribute(key) {\n return function (value) {\n return setAttributes(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, key, value));\n };\n };\n\n var _useAccountInfo = Object(data_hooks__WEBPACK_IMPORTED_MODULE_18__[\"useAccountInfo\"])(),\n accountInfo = _useAccountInfo.accountInfo;\n\n var shouldPromote = Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"get\"])(accountInfo, ['signalCount', 'shouldDisplay']);\n var signalWarning = shouldPromote && Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"get\"])(accountInfo, ['signalCount', 'count']) >= Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"get\"])(accountInfo, ['signalCount', 'userLimit']);\n var email = Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"get\"])(accountInfo, ['account', 'email']);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_7___default()('crowdsignal-forms-feedback', \"align-\".concat(attributes.x), \"vertical-align-\".concat(attributes.y), {\n 'no-shadow': attributes.hideTriggerShadow,\n 'is-active': isSelected,\n 'is-vertical': attributes.y === 'center',\n 'is-widget': widgetEditor\n }); // Widget editor uses CSS `display: none;` to hide sections making it impossible to measure any elements\n // until they're show. As such, we cannot detect when they actually become visible either.\n // Hence the need to just repeat this on every render until we get a value.\n\n var buttonHeight = widgetEditor && triggerButton.current && triggerButton.current.offsetHeight ? \"\".concat(triggerButton.current && triggerButton.current.offsetHeight, \"px\") : null;\n\n var styles = _objectSpread({}, Object(_util__WEBPACK_IMPORTED_MODULE_21__[\"getStyleVars\"])(attributes, fallbackStyles), {}, margin, {\n '--crowdsignal-forms-trigger-height': buttonHeight\n });\n\n var popoverStyles = {\n height: height\n };\n var isClosed = _constants__WEBPACK_IMPORTED_MODULE_25__[\"FeedbackStatus\"].CLOSED === attributes.status || _constants__WEBPACK_IMPORTED_MODULE_25__[\"FeedbackStatus\"].CLOSED_AFTER === attributes.status && null !== attributes.closedAfterDateTime && new Date().toISOString() > attributes.closedAfterDateTime;\n var hideBranding = Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"get\"])(accountInfo, 'capabilities', []).includes('hide-branding');\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n blockName: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__[\"__\"])('Feedback Button', 'crowdsignal-forms'),\n blockIcon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_icon_feedback__WEBPACK_IMPORTED_MODULE_28__[\"default\"], null)\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_toolbar__WEBPACK_IMPORTED_MODULE_20__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n currentView: view,\n onViewChange: setView\n }, props)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_sidebar__WEBPACK_IMPORTED_MODULE_19__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n shouldPromote: shouldPromote,\n signalWarning: signalWarning,\n email: email\n }, props)), widgetEditor && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"Fragment\"], null, !isExample && !widgetEditor && signalWarning && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_signal_warning__WEBPACK_IMPORTED_MODULE_24__[\"default\"], null), !isExample && !widgetEditor && saveError && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_retry_notice__WEBPACK_IMPORTED_MODULE_26__[\"default\"], {\n retryHandler: saveBlock\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_editor_notice__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n icon: \"warning\",\n status: \"warn\",\n isDismissible: false\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__[\"__\"])('This widget will appear in a fixed position as selected, in a corner or at an edge.', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n ref: blockElement,\n className: classes,\n style: styles\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-feedback__trigger-preview\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"wp-block-button crowdsignal-forms-feedback__trigger-wrapper\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__[\"RichText\"], {\n ref: triggerButton,\n className: \"wp-block-button__link crowdsignal-forms-feedback__trigger\",\n onChange: handleChangeAttribute('triggerLabel'),\n value: triggerLabel,\n allowedFormats: [],\n multiline: false,\n disableLineBreaks: true\n }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-feedback__popover-preview\"\n }, (isExample || isSelected || widgetEditor) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"Fragment\"], null, !widgetEditor && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"Fragment\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n \"aria-modal\": \"true\",\n role: \"dialog\",\n className: \"crowdsignal-forms-feedback__popover-overlay\",\n onClick: toggleBlock,\n style: overlayPosition\n })), !isExample && !widgetEditor && signalWarning && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_signal_warning__WEBPACK_IMPORTED_MODULE_24__[\"default\"], null), !isExample && !widgetEditor && saveError && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_retry_notice__WEBPACK_IMPORTED_MODULE_26__[\"default\"], {\n retryHandler: saveBlock\n }), view === _constants__WEBPACK_IMPORTED_MODULE_25__[\"views\"].QUESTION && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n ref: popover,\n className: \"crowdsignal-forms-feedback__popover\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__[\"RichText\"], {\n tagName: \"h3\",\n className: \"crowdsignal-forms-feedback__header\",\n onChange: handleChangeAttribute('header'),\n value: attributes.header,\n allowedFormats: []\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__[\"TextareaControl\"], {\n className: \"crowdsignal-forms-feedback__input\",\n rows: 6,\n onChange: handleChangeAttribute('feedbackPlaceholder'),\n value: attributes.feedbackPlaceholder\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__[\"TextControl\"], {\n className: \"crowdsignal-forms-feedback__input\",\n onChange: handleChangeAttribute('emailPlaceholder'),\n value: attributes.emailPlaceholder\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"wp-block-button crowdsignal-forms-feedback__button-wrapper\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__[\"RichText\"], {\n className: \"wp-block-button__link crowdsignal-forms-feedback__feedback-button\",\n onChange: handleChangeAttribute('submitButtonLabel'),\n value: attributes.submitButtonLabel,\n allowedFormats: [],\n multiline: false,\n disableLineBreaks: true\n })), !hideBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_footer_branding__WEBPACK_IMPORTED_MODULE_27__[\"default\"], {\n editing: true,\n trackRef: \"cs-forms-feedback\",\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__[\"__\"])('Collect your own feedback with Crowdsignal', 'crowdsignal-forms')\n })), view === _constants__WEBPACK_IMPORTED_MODULE_25__[\"views\"].SUBMIT && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-feedback__popover\",\n style: popoverStyles\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_9__[\"RichText\"], {\n tagName: \"h3\",\n className: \"crowdsignal-forms-feedback__header\",\n onChange: handleChangeAttribute('submitText'),\n value: attributes.submitText,\n allowedFormats: []\n }), !hideBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_footer_branding__WEBPACK_IMPORTED_MODULE_27__[\"default\"], {\n editing: true,\n trackRef: \"cs-forms-feedback\",\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__[\"__\"])('Collect your own feedback with Crowdsignal', 'crowdsignal-forms')\n })), isClosed && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-feedback__closed-notice\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__[\"__\"])('This Feedback Form is Closed', 'crowdsignal-forms'))))), props.renderStyleProbe());\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_11__[\"compose\"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"withSelect\"])(function (select) {\n var url = select('core/editor').getPermalink();\n\n if (!url) {\n url = select('core').getSite() && select('core').getSite().url;\n }\n\n var editPost = select('core/edit-post');\n var isFullscreen = 'isFeatureActive' in editPost ? editPost.isFeatureActive('fullscreenMode') : editPost.getPreference('fullscreenMode');\n return {\n isFullscreen: isFullscreen,\n isInserterActive: editPost.isInserterOpened(),\n isListViewActive: editPost.isListViewOpened(),\n isSidebarActive: editPost.isEditorSidebarOpened(),\n sourceLink: url\n };\n}), components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_16__[\"withFallbackStyles\"]])(EditFeedbackBlock));\n\n//# sourceURL=webpack:///./client/blocks/feedback/edit.js?");
206
+
207
+ /***/ }),
208
+
209
+ /***/ "./client/blocks/feedback/index.js":
210
+ /*!*****************************************!*\
211
+ !*** ./client/blocks/feedback/index.js ***!
212
+ \*****************************************/
213
+ /*! exports provided: default */
214
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
215
+
216
+ "use strict";
217
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_icon_feedback__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/icon/feedback */ \"./client/components/icon/feedback.js\");\n/* harmony import */ var _attributes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attributes */ \"./client/blocks/feedback/attributes.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./client/blocks/feedback/edit.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Feedback Button', 'crowdsignal-forms'),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Add an always visible button that allows your audience to share feedback anytime.', 'crowdsignal-forms'),\n category: 'crowdsignal-forms',\n keywords: ['crowdsignal', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('feedback', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('floating', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('contact', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('call to action', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('cta', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('button', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('subscribe', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('form', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('email', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('message', 'crowdsignal-forms')],\n icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_icon_feedback__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null),\n edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n supports: {\n multiple: false,\n html: false,\n reusable: false\n },\n attributes: _attributes__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n example: {\n attributes: {\n isExample: true\n }\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/feedback/index.js?");
218
+
219
+ /***/ }),
220
+
221
+ /***/ "./client/blocks/feedback/sidebar.js":
222
+ /*!*******************************************!*\
223
+ !*** ./client/blocks/feedback/sidebar.js ***!
224
+ \*******************************************/
225
+ /*! exports provided: default */
226
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
227
+
228
+ "use strict";
229
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/html-entities */ \"@wordpress/html-entities\");\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/sidebar-promote */ \"./client/components/sidebar-promote/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./client/blocks/feedback/constants.js\");\n\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar Sidebar = function Sidebar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes,\n shouldPromote = _ref.shouldPromote,\n signalWarning = _ref.signalWarning,\n email = _ref.email;\n\n var handleChangeTitle = function handleChangeTitle(title) {\n return setAttributes({\n title: title\n });\n };\n\n var resultsUrl = \"https://app.crowdsignal.com/surveys/\".concat(attributes.surveyId, \"/report/overview\");\n\n var handleChangeAttribute = function handleChangeAttribute(attribute) {\n return function (value) {\n return setAttributes(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, attribute, value));\n };\n };\n\n var handleChangeStatus = function handleChangeStatus(status) {\n return setAttributes({\n status: status\n });\n };\n\n var handleChangeCloseAfterDateTime = function handleChangeCloseAfterDateTime(closedAfterDateTime) {\n var dateTime = new Date(closedAfterDateTime);\n setAttributes({\n closedAfterDateTime: dateTime.toISOString()\n });\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__[\"InspectorControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Results', 'crowdsignal-forms'),\n initialOpen: true\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"p\", null, attributes.surveyId ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Manage results on ', 'crowdsignal-forms') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Save the block to track results on ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"ExternalLink\"], {\n href: \"https://www.crowdsignal.com\"\n }, \"crowdsignal.com\")), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"p\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Button\"], {\n isSecondary: true,\n disabled: !attributes.surveyId,\n href: resultsUrl,\n target: \"blank\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('View results', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Title (optional)', 'crowdsignal-forms'),\n onChange: handleChangeTitle,\n value: Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__[\"decodeEntities\"])(attributes.title)\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"ToggleControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Send me responses via email', 'crowdsignal-forms'),\n checked: attributes.emailResponses,\n onChange: handleChangeAttribute('emailResponses'),\n help: attributes.emailResponses && email && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])( // translators: %s: email address\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Responses will be sent to %s', 'crowdsignal-forms'), email)\n }), shouldPromote && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n signalWarning: signalWarning\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Feedback Button', 'crowdsignal-forms'),\n initialOpen: false,\n colorSettings: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Background color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('triggerBackgroundColor'),\n value: attributes.triggerBackgroundColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Text color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('triggerTextColor'),\n value: attributes.triggerTextColor\n }]\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"ToggleControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Hide Shadow', 'crowdsignal-forms'),\n checked: attributes.hideTriggerShadow,\n onChange: handleChangeAttribute('hideTriggerShadow')\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Block styling', 'crowdsignal-forms'),\n initialOpen: false,\n colorSettings: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Background color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('backgroundColor'),\n value: attributes.backgroundColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Text color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('textColor'),\n value: attributes.textColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Button color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('buttonColor'),\n value: attributes.buttonColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Button text color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('buttonTextColor'),\n value: attributes.buttonTextColor\n }]\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Settings', 'crowdsignal-forms'),\n initialOpen: false\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"SelectControl\"], {\n value: attributes.status,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Status', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Open', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackStatus\"].OPEN\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Closed after', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackStatus\"].CLOSED_AFTER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Closed', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackStatus\"].CLOSED\n }],\n onChange: handleChangeStatus,\n help: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackStatus\"].CLOSED_AFTER === attributes.status && null !== attributes.closedAfterDateTime && new Date().toISOString() > attributes.closedAfterDateTime ? 'Currently closed as date has passed' : ''\n }), _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackStatus\"].CLOSED_AFTER === attributes.status && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"DateTimePicker\"], {\n currentDate: attributes.closedAfterDateTime && new Date(attributes.closedAfterDateTime) || new Date(),\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Close on', 'crowdsignal-forms'),\n onChange: handleChangeCloseAfterDateTime,\n is12Hour: true\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"SelectControl\"], {\n value: attributes.toggleOn,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Show feedback form on:', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Click', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackToggleMode\"].CLICK\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Hover', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackToggleMode\"].HOVER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Page load', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"FeedbackToggleMode\"].PAGE_LOAD\n }],\n onChange: handleChangeAttribute('toggleOn')\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"ToggleControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Require email address', 'crowdsignal-forms'),\n checked: attributes.emailRequired,\n onChange: handleChangeAttribute('emailRequired')\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sidebar);\n\n//# sourceURL=webpack:///./client/blocks/feedback/sidebar.js?");
230
+
231
+ /***/ }),
232
+
233
+ /***/ "./client/blocks/feedback/toolbar.js":
234
+ /*!*******************************************!*\
235
+ !*** ./client/blocks/feedback/toolbar.js ***!
236
+ \*******************************************/
237
+ /*! exports provided: default */
238
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
239
+
240
+ "use strict";
241
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var components_block_alignment_control__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! components/block-alignment-control */ \"./client/components/block-alignment-control/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./client/blocks/feedback/constants.js\");\n\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar FeedbackToolbar = function FeedbackToolbar(_ref) {\n var attributes = _ref.attributes,\n currentView = _ref.currentView,\n onViewChange = _ref.onViewChange,\n setAttributes = _ref.setAttributes;\n\n var handleViewChange = function handleViewChange(view) {\n return function () {\n return onViewChange(view);\n };\n };\n\n var handleSetPosition = function handleSetPosition(row, column) {\n return setAttributes({\n x: column,\n y: row\n });\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"BlockControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarGroup\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Current view', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarButton\"], {\n className: \"crowdsignal-forms-feedback__toolbar-toggle\",\n isActive: currentView === _constants__WEBPACK_IMPORTED_MODULE_7__[\"views\"].QUESTION,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Question', 'crowdsignal-forms'),\n onClick: handleViewChange(_constants__WEBPACK_IMPORTED_MODULE_7__[\"views\"].QUESTION)\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Question', 'crowdsignal-forms')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarButton\"], {\n className: \"crowdsignal-forms-feedback__toolbar-toggle\",\n isActive: currentView === _constants__WEBPACK_IMPORTED_MODULE_7__[\"views\"].SUBMIT,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Submit', 'crowdsignal-forms'),\n onClick: handleViewChange(_constants__WEBPACK_IMPORTED_MODULE_7__[\"views\"].SUBMIT)\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Submit', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarGroup\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_block_alignment_control__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n closeOnSelectionChanged: true,\n onChange: handleSetPosition,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Change button position', 'crowdsignal-forms'),\n value: {\n row: attributes.y,\n column: attributes.x\n }\n }, components_block_alignment_control__WEBPACK_IMPORTED_MODULE_6__[\"GRID\"]['2x3']))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (FeedbackToolbar);\n\n//# sourceURL=webpack:///./client/blocks/feedback/toolbar.js?");
242
+
243
+ /***/ }),
244
+
245
+ /***/ "./client/blocks/feedback/util.js":
246
+ /*!****************************************!*\
247
+ !*** ./client/blocks/feedback/util.js ***!
248
+ \****************************************/
249
+ /*! exports provided: getStyleVars, isWidgetEditor */
250
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
251
+
252
+ "use strict";
253
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStyleVars\", function() { return getStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWidgetEditor\", function() { return isWidgetEditor; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\nvar getStyleVars = function getStyleVars(attributes, fallbackStyles) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"mapKeys\"])({\n backgroundColor: attributes.backgroundColor || '#ffffff',\n buttonColor: attributes.buttonColor || fallbackStyles.accentColor,\n buttonTextColor: attributes.buttonTextColor || fallbackStyles.textColorInverted,\n textColor: attributes.textColor || fallbackStyles.textColor,\n textSize: fallbackStyles.textSize,\n triggerBackgroundColor: attributes.triggerBackgroundColor || fallbackStyles.accentColor,\n triggerTextColor: attributes.triggerTextColor || fallbackStyles.textColorInverted\n }, function (_, key) {\n return \"--crowdsignal-forms-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"kebabCase\"])(key));\n });\n};\nvar isWidgetEditor = function isWidgetEditor() {\n return !!window.wp.widgets;\n};\n\n//# sourceURL=webpack:///./client/blocks/feedback/util.js?");
254
+
255
+ /***/ }),
256
+
257
+ /***/ "./client/blocks/nps/attributes.js":
258
+ /*!*****************************************!*\
259
+ !*** ./client/blocks/nps/attributes.js ***!
260
+ \*****************************************/
261
+ /*! exports provided: default */
262
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
263
+
264
+ "use strict";
265
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./client/blocks/nps/constants.js\");\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Note: Any changes made to the attributes definition need to be duplicated in\n * Crowdsignal_Forms\\Frontend\\Blocks\\Crowdsignal_Forms_Nps_Block::attributes()\n * inside includes/frontend/blocks/class-crowdsignal-forms-nps-block.php.\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n backgroundColor: {\n type: 'string'\n },\n buttonColor: {\n type: 'string'\n },\n buttonTextColor: {\n type: 'string'\n },\n feedbackPlaceholder: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Please help us understand your rating', 'crowdsignal-forms')\n },\n feedbackQuestion: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Thanks so much for your response! How could we do better?', 'crowdsignal-forms')\n },\n hideBranding: {\n type: 'boolean',\n default: false\n },\n highRatingLabel: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Extremely likely', 'crowdsignal-forms')\n },\n lowRatingLabel: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Not likely at all', 'crowdsignal-forms')\n },\n ratingQuestion: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('How likely is it that you would recommend this project to a friend or colleague?', 'crowdsignal-forms')\n },\n submitButtonLabel: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Submit', 'crowdsignal-forms')\n },\n surveyId: {\n type: 'number',\n default: null\n },\n textColor: {\n type: 'string'\n },\n title: {\n type: 'string',\n default: ''\n },\n viewThreshold: {\n type: 'string',\n default: 2\n },\n status: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"NpsStatus\"].OPEN\n },\n closedAfterDateTime: {\n type: 'string',\n default: null\n },\n isExample: {\n type: 'boolean',\n default: false\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/nps/attributes.js?");
266
+
267
+ /***/ }),
268
+
269
+ /***/ "./client/blocks/nps/constants.js":
270
+ /*!****************************************!*\
271
+ !*** ./client/blocks/nps/constants.js ***!
272
+ \****************************************/
273
+ /*! exports provided: views, NpsStatus */
274
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
275
+
276
+ "use strict";
277
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"views\", function() { return views; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"NpsStatus\", function() { return NpsStatus; });\nvar views = {\n RATING: 'rating',\n FEEDBACK: 'feedback',\n SUBMIT: 'submit'\n};\nvar NpsStatus = Object.freeze({\n OPEN: 'open',\n CLOSED: 'closed',\n CLOSED_AFTER: 'closed-after'\n});\n\n//# sourceURL=webpack:///./client/blocks/nps/constants.js?");
278
+
279
+ /***/ }),
280
+
281
+ /***/ "./client/blocks/nps/edit.js":
282
+ /*!***********************************!*\
283
+ !*** ./client/blocks/nps/edit.js ***!
284
+ \***********************************/
285
+ /*! exports provided: default */
286
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
287
+
288
+ "use strict";
289
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/editor */ \"@wordpress/editor\");\n/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! components/connect-to-crowdsignal */ \"./client/components/connect-to-crowdsignal/index.js\");\n/* harmony import */ var components_use_autosave__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! components/use-autosave */ \"./client/components/use-autosave/index.js\");\n/* harmony import */ var components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! components/with-fallback-styles */ \"./client/components/with-fallback-styles/index.js\");\n/* harmony import */ var data_nps_edit__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! data/nps/edit */ \"./client/data/nps/edit.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./constants */ \"./client/blocks/nps/constants.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./sidebar */ \"./client/blocks/nps/sidebar.js\");\n/* harmony import */ var _toolbar__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./toolbar */ \"./client/blocks/nps/toolbar.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./util */ \"./client/blocks/nps/util.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var components_editor_notice__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! components/editor-notice */ \"./client/components/editor-notice/index.js\");\n/* harmony import */ var components_footer_branding__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! components/footer-branding */ \"./client/components/footer-branding/index.js\");\n/* harmony import */ var components_signal_warning__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! components/signal-warning */ \"./client/components/signal-warning/index.js\");\n/* harmony import */ var components_retry_notice__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! components/retry-notice */ \"./client/components/retry-notice/index.js\");\n\n\n\n\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar EditNpsBlock = function EditNpsBlock(props) {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useState\"])(_constants__WEBPACK_IMPORTED_MODULE_19__[\"views\"].RATING),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_useState, 2),\n view = _useState2[0],\n setView = _useState2[1];\n\n var attributes = props.attributes,\n clientId = props.clientId,\n fallbackStyles = props.fallbackStyles,\n isSelected = props.isSelected,\n setAttributes = props.setAttributes,\n renderStyleProbe = props.renderStyleProbe,\n sourceLink = props.sourceLink;\n var feedbackQuestion = attributes.feedbackQuestion,\n ratingQuestion = attributes.ratingQuestion,\n surveyId = attributes.surveyId,\n title = attributes.title,\n isExample = attributes.isExample,\n viewThreshold = attributes.viewThreshold;\n\n var _useAutosave = Object(components_use_autosave__WEBPACK_IMPORTED_MODULE_16__[\"useAutosave\"])( /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(data) {\n var response;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"dispatch\"])('core/editor').lockPostSaving(clientId);\n _context.prev = 1;\n _context.next = 4;\n return Object(data_nps_edit__WEBPACK_IMPORTED_MODULE_18__[\"updateNps\"])({\n feedbackQuestion: data.feedbackQuestion,\n ratingQuestion: data.ratingQuestion,\n sourceLink: data.sourceLink,\n surveyId: data.surveyId,\n title: data.title || data.ratingQuestion\n });\n\n case 4:\n response = _context.sent;\n\n if (!data.surveyId) {\n setAttributes({\n surveyId: response.surveyId\n });\n }\n\n case 6:\n _context.prev = 6;\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"dispatch\"])('core/editor').unlockPostSaving(clientId);\n return _context.finish(6);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1,, 6, 9]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }(), {\n feedbackQuestion: feedbackQuestion,\n ratingQuestion: ratingQuestion,\n sourceLink: sourceLink,\n surveyId: surveyId,\n title: title\n }),\n saveError = _useAutosave.error,\n saveBlock = _useAutosave.save; // Force a save to Crowdsignal.com as soon as a new block is created\n\n\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useEffect\"])(function () {\n if (isExample || attributes.surveyId) {\n return;\n }\n\n saveBlock();\n }, []);\n Object(react__WEBPACK_IMPORTED_MODULE_6__[\"useEffect\"])(function () {\n if (isSelected) {\n return;\n }\n\n setView(_constants__WEBPACK_IMPORTED_MODULE_19__[\"views\"].RATING);\n }, [isSelected]);\n\n var handleChangeAttribute = function handleChangeAttribute(attribute) {\n return function (value) {\n return setAttributes(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, attribute, value));\n };\n };\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_8___default()('crowdsignal-forms-nps', {\n 'is-inactive': !isExample && !isSelected\n });\n\n var _useAccountInfo = Object(data_hooks__WEBPACK_IMPORTED_MODULE_23__[\"useAccountInfo\"])(),\n accountInfo = _useAccountInfo.accountInfo;\n\n var hideBranding = Object(lodash__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(accountInfo, 'capabilities', []).includes('hide-branding');\n var shouldPromote = Object(lodash__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(accountInfo, ['signalCount', 'shouldDisplay']);\n var signalWarning = shouldPromote && Object(lodash__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(accountInfo, ['signalCount', 'count']) >= Object(lodash__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(accountInfo, ['signalCount', 'userLimit']);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n blockIcon: null,\n blockName: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Crowdsignal NPS', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_toolbar__WEBPACK_IMPORTED_MODULE_21__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n currentView: view,\n onViewChange: setView\n }, props)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_sidebar__WEBPACK_IMPORTED_MODULE_20__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n shouldPromote: shouldPromote,\n signalWarning: signalWarning\n }, props)), !isExample && signalWarning && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_signal_warning__WEBPACK_IMPORTED_MODULE_26__[\"default\"], null), !isExample && saveError && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_retry_notice__WEBPACK_IMPORTED_MODULE_27__[\"default\"], {\n retryHandler: saveBlock\n }), !isExample && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_editor_notice__WEBPACK_IMPORTED_MODULE_24__[\"default\"], {\n isDismissible: false,\n icon: \"visibility\",\n componentActions: [Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__[\"PostPreviewButton\"], {\n key: 1,\n className: ['is-secondary', 'components-notice__action', 'crowdsignal-forms-nps__preview-button', attributes.surveyId ? '' : 'is-disabled'],\n textContent: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Preview', 'crowdsignal-forms')\n })]\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"sprintf\"])(\n /* translators: %d: number of pageviews */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"_n\"])('This block will appear as a popup window to people who have visited this page at least %d time.', 'This block will appear as a popup window to people who have visited this page at least %d times.', viewThreshold, 'crowdsignal-forms'), viewThreshold)), (view === _constants__WEBPACK_IMPORTED_MODULE_19__[\"views\"].RATING || !isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: classes,\n style: Object(_util__WEBPACK_IMPORTED_MODULE_22__[\"getStyleVars\"])(attributes, fallbackStyles)\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__[\"RichText\"], {\n tagName: \"h3\",\n className: \"crowdsignal-forms-nps__question\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Enter your rating question', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('ratingQuestion'),\n value: ratingQuestion,\n allowedFormats: []\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-nps__rating\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-nps__rating-labels\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__[\"RichText\"], {\n tagName: \"span\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Not likely', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('lowRatingLabel'),\n value: attributes.lowRatingLabel,\n allowedFormats: [],\n multiline: false,\n disableLineBreaks: true\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__[\"RichText\"], {\n tagName: \"span\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Very likely', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('highRatingLabel'),\n value: attributes.highRatingLabel,\n allowedFormats: [],\n multiline: false,\n disableLineBreaks: true\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-nps__rating-scale\"\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_7__[\"times\"])(11, function (n) {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n key: \"rating-\".concat(n),\n className: \"crowdsignal-forms-nps__rating-button\"\n }, n);\n })), !hideBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_footer_branding__WEBPACK_IMPORTED_MODULE_25__[\"default\"], {\n trackRef: \"cs-forms-nps\",\n editing: true,\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Collect your own feedback with Crowdsignal', 'crowdsignal-forms')\n }))), view === _constants__WEBPACK_IMPORTED_MODULE_19__[\"views\"].FEEDBACK && isSelected && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: classes,\n style: Object(_util__WEBPACK_IMPORTED_MODULE_22__[\"getStyleVars\"])(attributes, fallbackStyles)\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-nps__feedback\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__[\"RichText\"], {\n tagName: \"h3\",\n className: \"crowdsignal-forms-nps__question\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Enter your feedback question', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('feedbackQuestion'),\n value: feedbackQuestion,\n allowedFormats: []\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__[\"TextareaControl\"], {\n className: \"crowdsignal-forms-nps__feedback-text\",\n rows: 6,\n onChange: handleChangeAttribute('feedbackPlaceholder'),\n value: attributes.feedbackPlaceholder\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(\"div\", {\n className: \"wp-block-button crowdsignal-forms-nps__feedback-button-wrapper\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_10__[\"RichText\"], {\n className: \"wp-block-button__link crowdsignal-forms-nps__feedback-button\",\n onChange: handleChangeAttribute('submitButtonLabel'),\n value: attributes.submitButtonLabel,\n allowedFormats: [],\n multiline: false,\n disableLineBreaks: true\n })), !hideBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__[\"createElement\"])(components_footer_branding__WEBPACK_IMPORTED_MODULE_25__[\"default\"], {\n trackRef: \"cs-forms-nps\",\n editing: true,\n message: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_14__[\"__\"])('Collect your own feedback with Crowdsignal', 'crowdsignal-forms')\n }))), renderStyleProbe());\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_13__[\"compose\"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_12__[\"withSelect\"])(function (select) {\n var url = select('core/editor').getPermalink();\n\n if (!url) {\n url = select('core').getSite() && select('core').getSite().url;\n }\n\n return {\n sourceLink: url\n };\n}), components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_17__[\"withFallbackStyles\"]])(EditNpsBlock));\n\n//# sourceURL=webpack:///./client/blocks/nps/edit.js?");
290
+
291
+ /***/ }),
292
+
293
+ /***/ "./client/blocks/nps/index.js":
294
+ /*!************************************!*\
295
+ !*** ./client/blocks/nps/index.js ***!
296
+ \************************************/
297
+ /*! exports provided: default */
298
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
299
+
300
+ "use strict";
301
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_icon_nps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/icon/nps */ \"./client/components/icon/nps.js\");\n/* harmony import */ var _attributes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attributes */ \"./client/blocks/nps/attributes.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./client/blocks/nps/edit.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Measure NPS', 'crowdsignal-forms'),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Calculate your Net Promoter Score! Collect feedback and track customer satisfaction over time. — powered by Crowdsignal.', 'crowdsignal-forms'),\n category: 'crowdsignal-forms',\n attributes: _attributes__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n supports: {\n multiple: false,\n html: false,\n reusable: false\n },\n icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_icon_nps__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null),\n edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('ask', 'crowdsignal-forms'), 'crowdsignal', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('CSAT', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('customer experience', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('customer satisfaction', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('feedback', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('form', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('loyalty', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('net promoter score', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('nps', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('opinion', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('poll', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('promoter', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('research', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('rating', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('review', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('score', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('survey', 'crowdsignal-forms')],\n example: {\n attributes: {\n isExample: true,\n ratingQuestion: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('How satisfied are you with the content of the site?', 'crowdsignal-forms'),\n feedbackQuestion: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Any advise on how we could improve your experience?', 'crowdsignal-forms'),\n lowRatingLabel: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Not satisfied', 'crowdsignal-forms'),\n highRatingLabel: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Very satisfied', 'crowdsignal-forms')\n }\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/nps/index.js?");
302
+
303
+ /***/ }),
304
+
305
+ /***/ "./client/blocks/nps/sidebar.js":
306
+ /*!**************************************!*\
307
+ !*** ./client/blocks/nps/sidebar.js ***!
308
+ \**************************************/
309
+ /*! exports provided: default */
310
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
311
+
312
+ "use strict";
313
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/html-entities */ \"@wordpress/html-entities\");\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/sidebar-promote */ \"./client/components/sidebar-promote/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./client/blocks/nps/constants.js\");\n\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar Sidebar = function Sidebar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes,\n shouldPromote = _ref.shouldPromote,\n signalWarning = _ref.signalWarning;\n\n var handleChangeTitle = function handleChangeTitle(title) {\n return setAttributes({\n title: title\n });\n };\n\n var resultsUrl = \"https://app.crowdsignal.com/surveys/\".concat(attributes.surveyId, \"/report/overview\");\n\n var handleChangeAttribute = function handleChangeAttribute(attribute) {\n return function (value) {\n return setAttributes(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, attribute, value));\n };\n };\n\n var handleChangeStatus = function handleChangeStatus(status) {\n return setAttributes({\n status: status\n });\n };\n\n var handleChangeCloseAfterDateTime = function handleChangeCloseAfterDateTime(closedAfterDateTime) {\n var dateTime = new Date(closedAfterDateTime);\n setAttributes({\n closedAfterDateTime: dateTime.toISOString()\n });\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__[\"InspectorControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Results', 'crowdsignal-forms'),\n initialOpen: true\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"p\", null, attributes.surveyId ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Manage results on ', 'crowdsignal-forms') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Save the block to track results on ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"ExternalLink\"], {\n href: \"https://www.crowdsignal.com\"\n }, \"crowdsignal.com\")), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"p\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Button\"], {\n isSecondary: true,\n disabled: !attributes.surveyId,\n href: resultsUrl,\n target: \"blank\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('View results', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Title (optional)', 'crowdsignal-forms'),\n onChange: handleChangeTitle,\n value: Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__[\"decodeEntities\"])(attributes.title)\n }), shouldPromote && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n signalWarning: signalWarning\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Block styling', 'crowdsignal-forms'),\n initialOpen: false,\n colorSettings: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Background color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('backgroundColor'),\n value: attributes.backgroundColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Text color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('textColor'),\n value: attributes.textColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Button color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('buttonColor'),\n value: attributes.buttonColor\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Button text color', 'crowdsignal-forms'),\n onChange: handleChangeAttribute('buttonTextColor'),\n value: attributes.buttonTextColor\n }]\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Settings', 'crowdsignal-forms'),\n initialOpen: false\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"SelectControl\"], {\n value: attributes.status,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Status', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Open', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"NpsStatus\"].OPEN\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Closed after', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"NpsStatus\"].CLOSED_AFTER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Closed', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_8__[\"NpsStatus\"].CLOSED\n }],\n onChange: handleChangeStatus,\n help: _constants__WEBPACK_IMPORTED_MODULE_8__[\"NpsStatus\"].CLOSED_AFTER === attributes.status && null !== attributes.closedAfterDateTime && new Date().toISOString() > attributes.closedAfterDateTime ? 'Currently closed as date has passed' : ''\n }), _constants__WEBPACK_IMPORTED_MODULE_8__[\"NpsStatus\"].CLOSED_AFTER === attributes.status && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"DateTimePicker\"], {\n currentDate: attributes.closedAfterDateTime && new Date(attributes.closedAfterDateTime) || new Date(),\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Close on', 'crowdsignal-forms'),\n onChange: handleChangeCloseAfterDateTime,\n is12Hour: true\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sidebar);\n\n//# sourceURL=webpack:///./client/blocks/nps/sidebar.js?");
314
+
315
+ /***/ }),
316
+
317
+ /***/ "./client/blocks/nps/toolbar.js":
318
+ /*!**************************************!*\
319
+ !*** ./client/blocks/nps/toolbar.js ***!
320
+ \**************************************/
321
+ /*! exports provided: default */
322
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
323
+
324
+ "use strict";
325
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./client/blocks/nps/constants.js\");\n\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar PollToolbar = function PollToolbar(_ref) {\n var attributes = _ref.attributes,\n currentView = _ref.currentView,\n onViewChange = _ref.onViewChange,\n setAttributes = _ref.setAttributes;\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n showThreshold = _useState2[0],\n setShowThreshold = _useState2[1];\n\n var handleViewChange = function handleViewChange(view) {\n return function () {\n return onViewChange(view);\n };\n };\n\n var showThresholdPopover = function showThresholdPopover() {\n return setShowThreshold(true);\n };\n\n var hideThresholdPopover = function hideThresholdPopover() {\n return setShowThreshold(false);\n };\n\n var handleChangeViewThreshold = function handleChangeViewThreshold(viewThreshold) {\n return setAttributes({\n viewThreshold: viewThreshold\n });\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"BlockControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarGroup\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Current view', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarButton\"], {\n className: \"crowdsignal-forms-nps__toolbar-toggle\",\n isActive: currentView === _constants__WEBPACK_IMPORTED_MODULE_6__[\"views\"].RATING,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Rating', 'crowdsignal-forms'),\n onClick: handleViewChange(_constants__WEBPACK_IMPORTED_MODULE_6__[\"views\"].RATING)\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Rating', 'crowdsignal-forms')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarButton\"], {\n className: \"crowdsignal-forms-nps__toolbar-toggle\",\n isActive: currentView === _constants__WEBPACK_IMPORTED_MODULE_6__[\"views\"].FEEDBACK,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Feedback', 'crowdsignal-forms'),\n onClick: handleViewChange(_constants__WEBPACK_IMPORTED_MODULE_6__[\"views\"].FEEDBACK)\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Feedback', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarGroup\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"ToolbarButton\"], {\n className: \"crowdsignal-forms-nps__toolbar-popover-button\",\n icon: \"visibility\",\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Set view threshold', 'crowdsignal-forms'),\n onClick: showThresholdPopover\n }, showThreshold && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"Popover\"], {\n onClose: hideThresholdPopover\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-nps__toolbar-popover\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Show this block after __ visits:', 'crowdsignal-forms'),\n value: attributes.viewThreshold,\n onChange: handleChangeViewThreshold,\n type: \"number\",\n min: \"1\"\n }))))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (PollToolbar);\n\n//# sourceURL=webpack:///./client/blocks/nps/toolbar.js?");
326
+
327
+ /***/ }),
328
+
329
+ /***/ "./client/blocks/nps/util.js":
330
+ /*!***********************************!*\
331
+ !*** ./client/blocks/nps/util.js ***!
332
+ \***********************************/
333
+ /*! exports provided: getStyleVars */
334
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
335
+
336
+ "use strict";
337
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStyleVars\", function() { return getStyleVars; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\nvar getStyleVars = function getStyleVars(attributes, fallbackStyles) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"mapKeys\"])({\n backgroundColor: attributes.backgroundColor || '#ffffff',\n buttonColor: attributes.buttonColor || fallbackStyles.accentColor,\n buttonTextColor: attributes.buttonTextColor || fallbackStyles.textColorInverted,\n textColor: attributes.textColor || fallbackStyles.textColor,\n textSize: fallbackStyles.textSize\n }, function (_, key) {\n return \"--crowdsignal-forms-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"kebabCase\"])(key));\n });\n};\n\n//# sourceURL=webpack:///./client/blocks/nps/util.js?");
338
+
339
+ /***/ }),
340
+
341
+ /***/ "./client/blocks/poll/attributes.js":
342
+ /*!******************************************!*\
343
+ !*** ./client/blocks/poll/attributes.js ***!
344
+ \******************************************/
345
+ /*! exports provided: default */
346
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
347
+
348
+ "use strict";
349
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n/*\n * Note: Any changes made to the attributes definition need to be duplicated in\n * Crowdsignal_Forms\\Frontend\\Blocks\\Crowdsignal_Forms_Poll_Block::attributes()\n * inside includes/frontend/blocks/class-crowdsignal-forms-poll-block.php.\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n pollId: {\n type: 'string',\n default: null\n },\n isMultipleChoice: {\n type: 'boolean',\n default: false\n },\n title: {\n type: 'string',\n default: null\n },\n question: {\n type: 'string',\n default: ''\n },\n note: {\n type: 'string',\n default: ''\n },\n answers: {\n type: 'array',\n default: [{}, {}, {}],\n items: {\n type: 'object',\n properties: {\n answerId: {\n type: 'string',\n default: null\n },\n text: {\n type: 'string',\n default: ''\n }\n }\n }\n },\n submitButtonLabel: {\n type: 'string',\n default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Submit', 'crowdsignal-forms')\n },\n submitButtonTextColor: {\n type: 'string'\n },\n submitButtonBackgroundColor: {\n type: 'string'\n },\n confirmMessageType: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"ConfirmMessageType\"].RESULTS\n },\n customConfirmMessage: {\n type: 'string'\n },\n redirectAddress: {\n type: 'string'\n },\n textColor: {\n type: 'string'\n },\n backgroundColor: {\n type: 'string'\n },\n borderColor: {\n type: 'string'\n },\n borderWidth: {\n type: 'number',\n default: 2\n },\n borderRadius: {\n type: 'number',\n default: 0\n },\n hasBoxShadow: {\n type: 'boolean',\n default: false\n },\n fontFamily: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"FontFamilyType\"].THEME_DEFAULT\n },\n hasOneResponsePerComputer: {\n type: 'boolean',\n default: false\n },\n randomizeAnswers: {\n type: 'boolean',\n default: false\n },\n align: {\n type: 'string'\n },\n width: {\n type: 'number',\n default: 100\n },\n pollStatus: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"PollStatus\"].OPEN\n },\n closedPollState: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"ClosedPollState\"].SHOW_RESULTS\n },\n closedAfterDateTime: {\n type: 'string',\n default: null\n },\n hideBranding: {\n type: 'boolean',\n default: false\n },\n buttonAlignment: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_1__[\"ButtonAlignment\"].LIST\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/poll/attributes.js?");
350
+
351
+ /***/ }),
352
+
353
+ /***/ "./client/blocks/poll/constants.js":
354
+ /*!*****************************************!*\
355
+ !*** ./client/blocks/poll/constants.js ***!
356
+ \*****************************************/
357
+ /*! exports provided: ConfirmMessageType, FontFamilyType, GoogleFonts, FontFamilyMap, PollStatus, ClosedPollState, AnswerStyle, ButtonAlignment */
358
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
359
+
360
+ "use strict";
361
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ConfirmMessageType\", function() { return ConfirmMessageType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontFamilyType\", function() { return FontFamilyType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GoogleFonts\", function() { return GoogleFonts; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontFamilyMap\", function() { return FontFamilyMap; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PollStatus\", function() { return PollStatus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ClosedPollState\", function() { return ClosedPollState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AnswerStyle\", function() { return AnswerStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ButtonAlignment\", function() { return ButtonAlignment; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n\n\nvar _Object$freeze;\n\nvar ConfirmMessageType = Object.freeze({\n THANK_YOU: 'thank-you',\n CUSTOM_TEXT: 'custom-text',\n REDIRECT: 'redirect',\n RESULTS: 'results'\n});\nvar FontFamilyType = Object.freeze({\n THEME_DEFAULT: 'theme-default',\n GEORGIA: 'georgia',\n PALATINO: 'palatino',\n TIMES_NEW_ROMAN: 'times-new-roman',\n ARIAL: 'arial',\n IMPACT: 'impact',\n LUCIDA: 'lucida',\n TAHOMA: 'tahoma',\n TREBUCHET: 'trebuchet',\n VERDANA: 'verdana',\n COURIER: 'courier',\n // Google fonts: enum value = google font url slug\n CABIN: 'Cabin',\n CHIVO: 'Chivo',\n OPEN_SANS: 'Open+Sans',\n FIRA_SANS: 'Fira+Sans',\n ROBOTO: 'Roboto',\n NUNITO: 'Nunito',\n OVERPASS: 'Overpass',\n LATO: 'Lato',\n LIBRE_FRANKLIN: 'Libre+Franklin',\n MONTSERRAT: 'Montserrat',\n POPPINS: 'Poppins',\n RUBIK: 'Rubik',\n RALEWAY: 'Raleway',\n JOSEFIN_SANS: 'Josefin+Sans',\n ALEGREYA_SANS: 'Alegreya+Sans',\n OSWALD: 'Oswald'\n});\nvar GoogleFonts = Object.freeze([FontFamilyType.CABIN, FontFamilyType.CHIVO, FontFamilyType.OPEN_SANS, FontFamilyType.FIRA_SANS, FontFamilyType.ROBOTO, FontFamilyType.NUNITO, FontFamilyType.OVERPASS, FontFamilyType.LATO, FontFamilyType.LIBRE_FRANKLIN, FontFamilyType.MONTSERRAT, FontFamilyType.POPPINS, FontFamilyType.RUBIK, FontFamilyType.RALEWAY, FontFamilyType.JOSEFIN_SANS, FontFamilyType.ALEGREYA_SANS, FontFamilyType.OSWALD]);\nvar FontFamilyMap = Object.freeze((_Object$freeze = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.THEME_DEFAULT, null), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.GEORGIA, 'Georgia, serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.PALATINO, '\"Palatino Linotype\", \"Book Antiqua\", Palatino, serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.TIMES_NEW_ROMAN, '\"Times New Roman\", Times, serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.ARIAL, 'Arial, Helvetica, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.IMPACT, 'Impact, Charcoal, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.LUCIDA, '\"Lucida Sans Unicode\", \"Lucida Grande\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.TAHOMA, 'Tahoma, Geneva, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.TREBUCHET, '\"Trebuchet MS\", Helvetica, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.VERDANA, 'Verdana, Geneva, sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.COURIER, '\"Courier New\", Courier, monospace'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.CABIN, '\"Cabin\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.CHIVO, '\"Chivo\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.OPEN_SANS, '\"Open Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.FIRA_SANS, '\"Fira Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.ROBOTO, '\"Roboto\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.NUNITO, '\"Nunito\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.OVERPASS, '\"Overpass\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.LATO, '\"Lato\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.LIBRE_FRANKLIN, '\"Libre Franklin\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.MONTSERRAT, '\"Montserrat\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.POPPINS, '\"Poppins\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.RUBIK, '\"Rubik\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.RALEWAY, '\"Raleway\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.JOSEFIN_SANS, '\"Josefin Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.ALEGREYA_SANS, '\"Alegreya Sans\", sans-serif'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_Object$freeze, FontFamilyType.OSWALD, '\"Oswald\", sans-serif'), _Object$freeze));\nvar PollStatus = Object.freeze({\n OPEN: 'open',\n CLOSED: 'closed',\n CLOSED_AFTER: 'closed-after'\n});\nvar ClosedPollState = Object.freeze({\n SHOW_RESULTS: 'show-results',\n SHOW_CLOSED_BANNER: 'show-closed-banner',\n HIDDEN: 'hidden'\n});\nvar AnswerStyle = Object.freeze({\n RADIO: 'radio',\n BUTTON: 'button'\n});\nvar ButtonAlignment = Object.freeze({\n LIST: 'list',\n INLINE: 'inline'\n});\n\n//# sourceURL=webpack:///./client/blocks/poll/constants.js?");
362
+
363
+ /***/ }),
364
+
365
+ /***/ "./client/blocks/poll/edit-answer.js":
366
+ /*!*******************************************!*\
367
+ !*** ./client/blocks/poll/edit-answer.js ***!
368
+ \*******************************************/
369
+ /*! exports provided: default */
370
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
371
+
372
+ "use strict";
373
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/html-entities */ \"@wordpress/html-entities\");\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar EditAnswer = function EditAnswer(_ref) {\n var answer = _ref.answer,\n answerStyle = _ref.answerStyle,\n index = _ref.index,\n isMultipleChoice = _ref.isMultipleChoice,\n onChange = _ref.onChange,\n onDelete = _ref.onDelete,\n onNewAnswer = _ref.onNewAnswer,\n disabled = _ref.disabled;\n\n var handleChangeText = function handleChangeText(text) {\n return onChange(index, _objectSpread({}, answer, {\n text: text\n }));\n };\n\n var handleDelete = function handleDelete() {\n return onDelete(index);\n };\n\n var handleSplit = function handleSplit() {\n return onNewAnswer(index + 1);\n };\n\n var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('crowdsignal-forms-poll__answer', {\n 'is-multiple-choice': isMultipleChoice,\n 'is-button': _constants__WEBPACK_IMPORTED_MODULE_8__[\"AnswerStyle\"].BUTTON === answerStyle\n });\n\n var renderRadioAnswers = function renderRadioAnswers() {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"Fragment\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__check\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__answer-label-wrapper\"\n }, !disabled ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__[\"RichText\"], {\n className: \"crowdsignal-forms-poll__answer-label\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[\"__\"])('Enter an answer', 'crowdsignal-forms'),\n multiline: false,\n preserveWhiteSpace: false,\n onChange: handleChangeText,\n onSplit: handleSplit,\n onReplace: lodash__WEBPACK_IMPORTED_MODULE_4__[\"noop\"],\n onRemove: handleDelete,\n value: answer.text,\n allowedFormats: [],\n withoutInteractiveFormatting: true\n }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__answer-label\"\n }, answer.text ? Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_6__[\"decodeEntities\"])(answer.text) : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[\"__\"])('Enter an answer', 'crowdsignal-forms'))));\n };\n\n var renderButtonAnswers = function renderButtonAnswers() {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"wp-block-button crowdsignal-forms-poll__block-button\"\n }, !disabled ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__[\"RichText\"], {\n className: \"wp-block-button__link crowdsignal-forms-poll__submit-button\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[\"__\"])('Enter an answer', 'crowdsignal-forms'),\n multiline: false,\n preserveWhiteSpace: false,\n onChange: handleChangeText,\n onSplit: handleSplit,\n onReplace: lodash__WEBPACK_IMPORTED_MODULE_4__[\"noop\"],\n onRemove: handleDelete,\n value: answer.text,\n allowedFormats: [],\n withoutInteractiveFormatting: true\n }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"wp-block-button__link crowdsignal-forms-poll__submit-button\"\n }, answer.text ? Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_6__[\"decodeEntities\"])(answer.text) : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[\"__\"])('Enter an answer', 'crowdsignal-forms')));\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: classes\n }, _constants__WEBPACK_IMPORTED_MODULE_8__[\"AnswerStyle\"].RADIO === answerStyle && renderRadioAnswers(), _constants__WEBPACK_IMPORTED_MODULE_8__[\"AnswerStyle\"].BUTTON === answerStyle && renderButtonAnswers());\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditAnswer);\n\n//# sourceURL=webpack:///./client/blocks/poll/edit-answer.js?");
374
+
375
+ /***/ }),
376
+
377
+ /***/ "./client/blocks/poll/edit-answers.js":
378
+ /*!********************************************!*\
379
+ !*** ./client/blocks/poll/edit-answers.js ***!
380
+ \********************************************/
381
+ /*! exports provided: default */
382
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
383
+
384
+ "use strict";
385
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _edit_answer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./edit-answer */ \"./client/blocks/poll/edit-answer.js\");\n/* harmony import */ var components_poll_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/poll/util */ \"./client/components/poll/util.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar shiftAnswerFocus = function shiftAnswerFocus(wrapper, index) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"tap\"])(wrapper.querySelectorAll('[role=textbox]')[index], function (answer) {\n return answer && answer.focus();\n });\n};\n\nvar EditAnswers = function EditAnswers(_ref) {\n var attributes = _ref.attributes,\n isSelected = _ref.isSelected,\n setAttributes = _ref.setAttributes,\n disabled = _ref.disabled,\n answerStyle = _ref.answerStyle,\n buttonAlignment = _ref.buttonAlignment;\n var answersContainer = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useRef\"])();\n\n var handleChangeSubmitButtonLabel = function handleChangeSubmitButtonLabel(submitButtonLabel) {\n return setAttributes({\n submitButtonLabel: submitButtonLabel\n });\n };\n\n var handleChangeAnswer = function handleChangeAnswer(index, answer) {\n return setAttributes({\n answers: Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"tap\"])(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(attributes.answers), function (answers) {\n answers[index] = answer;\n })\n });\n };\n\n var handleDeleteAnswer = function handleDeleteAnswer(index) {\n shiftAnswerFocus(answersContainer.current, Math.max(index - 1, 0));\n setAttributes({\n answers: Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"filter\"])(attributes.answers, function (answer) {\n return attributes.answers.length <= 2 || answer !== attributes.answers[index];\n })\n });\n };\n\n var handleNewAnswer = function handleNewAnswer(insertAt) {\n if (insertAt < attributes.answers.length) {\n setAttributes({\n answers: [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"slice\"])(attributes.answers, 0, insertAt)), [{}], _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"slice\"])(attributes.answers, insertAt, attributes.answers.length)))\n });\n }\n\n shiftAnswerFocus(answersContainer.current, Math.min(insertAt, attributes.answers.length));\n }; // Only show empty answers when the poll block is selected and not disabled\n\n\n var shouldShowAnswer = function shouldShowAnswer(answer) {\n return isSelected && !disabled || !Object(components_poll_util__WEBPACK_IMPORTED_MODULE_7__[\"isAnswerEmpty\"])(answer);\n }; // Rendering n + 1 answers vs a separate placeholder\n // prevents the text field from loosing focus when you start typing a new answer.\n\n\n var editableAnswers = isSelected && Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"last\"])(attributes.answers).text ? [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(attributes.answers), [{}]) : attributes.answers;\n var classes = classnames__WEBPACK_IMPORTED_MODULE_4___default()({\n 'is-button': _constants__WEBPACK_IMPORTED_MODULE_8__[\"AnswerStyle\"].BUTTON === answerStyle,\n 'is-inline-button-alignment': _constants__WEBPACK_IMPORTED_MODULE_8__[\"ButtonAlignment\"].INLINE === buttonAlignment\n }, 'crowdsignal-forms-poll__options');\n var showSubmitButton = _constants__WEBPACK_IMPORTED_MODULE_8__[\"AnswerStyle\"].RADIO === answerStyle;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"Fragment\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n ref: answersContainer,\n className: classes\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"map\"])(editableAnswers, function (answer, index) {\n return shouldShowAnswer(answer) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_edit_answer__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n key: \"poll-answer-\".concat(index),\n answer: answer,\n answerStyle: answerStyle,\n index: index,\n isMultipleChoice: attributes.isMultipleChoice,\n onChange: handleChangeAnswer,\n onDelete: handleDeleteAnswer,\n onNewAnswer: handleNewAnswer,\n disabled: disabled\n });\n })), showSubmitButton && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__actions\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"wp-block-button crowdsignal-forms-poll__block-button\"\n }, !disabled ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__[\"RichText\"], {\n className: \"wp-block-button__link crowdsignal-forms-poll__submit-button\",\n onChange: handleChangeSubmitButtonLabel,\n value: attributes.submitButtonLabel,\n allowedFormats: [],\n multiline: false,\n disableLineBreaks: true\n }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"wp-block-button__link crowdsignal-forms-poll__submit-button\"\n }, attributes.submitButtonLabel))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditAnswers);\n\n//# sourceURL=webpack:///./client/blocks/poll/edit-answers.js?");
386
+
387
+ /***/ }),
388
+
389
+ /***/ "./client/blocks/poll/edit-bar.js":
390
+ /*!****************************************!*\
391
+ !*** ./client/blocks/poll/edit-bar.js ***!
392
+ \****************************************/
393
+ /*! exports provided: default */
394
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
395
+
396
+ "use strict";
397
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\nvar EditBar = function EditBar(_ref) {\n var onEditClick = _ref.onEditClick;\n\n var handleEditClick = function handleEditClick() {\n onEditClick();\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__edit-bar\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__edit-bar-message\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Warning! This poll is published. Deleting or reordering answers may cause the loss of existing responses.', 'crowdsignal-forms')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"button\", {\n className: \"crowdsignal-forms-poll__edit-bar-button\",\n onClick: handleEditClick\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Edit', 'crowdsignal-forms')));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditBar);\n\n//# sourceURL=webpack:///./client/blocks/poll/edit-bar.js?");
398
+
399
+ /***/ }),
400
+
401
+ /***/ "./client/blocks/poll/edit.js":
402
+ /*!************************************!*\
403
+ !*** ./client/blocks/poll/edit.js ***!
404
+ \************************************/
405
+ /*! exports provided: default */
406
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
407
+
408
+ "use strict";
409
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/html-entities */ \"@wordpress/html-entities\");\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var components_poll_closed_banner__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! components/poll/closed-banner */ \"./client/components/poll/closed-banner.js\");\n/* harmony import */ var components_poll_results__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! components/poll/results */ \"./client/components/poll/results.js\");\n/* harmony import */ var components_poll_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! components/poll/util */ \"./client/components/poll/util.js\");\n/* harmony import */ var components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! components/with-fallback-styles */ \"./client/components/with-fallback-styles/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n/* harmony import */ var _edit_answers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./edit-answers */ \"./client/blocks/poll/edit-answers.js\");\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./sidebar */ \"./client/blocks/poll/sidebar.js\");\n/* harmony import */ var _toolbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./toolbar */ \"./client/blocks/poll/toolbar.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./util */ \"./client/blocks/poll/util.js\");\n/* harmony import */ var components_poll_error_banner__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! components/poll/error-banner */ \"./client/components/poll/error-banner.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/index.js\");\n/* harmony import */ var _edit_bar__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./edit-bar */ \"./client/blocks/poll/edit-bar.js\");\n/* harmony import */ var components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! components/connect-to-crowdsignal */ \"./client/components/connect-to-crowdsignal/index.js\");\n/* harmony import */ var components_icon_poll__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! components/icon/poll */ \"./client/components/icon/poll.js\");\n/* harmony import */ var components_with_poll_base__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! components/with-poll-base */ \"./client/components/with-poll-base/index.js\");\n/* harmony import */ var components_footer_branding__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! components/footer-branding */ \"./client/components/footer-branding/index.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var components_signal_warning__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! components/signal-warning */ \"./client/components/signal-warning/index.js\");\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar withPollAndAnswerIds = function withPollAndAnswerIds(Element) {\n return function (props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes;\n Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useEffect\"])(function () {\n if (!attributes.pollId) {\n var thePollId = Object(uuid__WEBPACK_IMPORTED_MODULE_21__[\"v4\"])();\n setAttributes({\n pollId: thePollId\n });\n }\n\n if (Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"some\"])(attributes.answers, function (a) {\n return !a.answerId && a.text;\n })) {\n var answers = Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"map\"])(attributes.answers, function (answer) {\n if (answer.answerId || !answer.text) {\n return answer;\n }\n\n var answerId = Object(uuid__WEBPACK_IMPORTED_MODULE_21__[\"v4\"])();\n return _objectSpread({}, answer, {\n answerId: answerId\n });\n });\n setAttributes({\n answers: answers\n });\n }\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(Element, props);\n };\n};\n\nvar PollBlock = function PollBlock(props) {\n var attributes = props.attributes,\n className = props.className,\n fallbackStyles = props.fallbackStyles,\n isSelected = props.isSelected,\n setAttributes = props.setAttributes,\n renderStyleProbe = props.renderStyleProbe,\n pollDataFromApi = props.pollDataFromApi;\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useState\"])(true),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),\n isPollEditable = _useState2[0],\n setIsPollEditable = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useState\"])(''),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState3, 2),\n errorMessage = _useState4[0],\n setErrorMessage = _useState4[1];\n\n var pollIsPublished = !Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"isEmpty\"])(pollDataFromApi);\n var viewResultsUrl = pollDataFromApi ? pollDataFromApi.viewResultsUrl : '';\n var pollIdFromApi = pollDataFromApi ? pollDataFromApi.id : null;\n var answerIdMap = {};\n\n if (pollDataFromApi) {\n Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"map\"])(pollDataFromApi.answers, function (answer) {\n answerIdMap[answer.client_id] = answer.id;\n });\n }\n\n var handleChangeQuestion = function handleChangeQuestion(question) {\n return setAttributes({\n question: question\n });\n };\n\n var handleChangeNote = function handleChangeNote(note) {\n return setAttributes({\n note: note\n });\n };\n\n var handleResize = function handleResize(event, handle, element) {\n if (handle !== 'right' && handle !== 'left') {\n return;\n }\n\n setAttributes({\n width: Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"round\"])(element.offsetWidth / element.parentNode.offsetWidth * 100)\n });\n };\n\n var isResizable = isSelected && attributes.align !== 'full';\n var blockWidth = attributes.align !== 'full' ? \"\".concat(attributes.width, \"%\") : 'auto';\n var isClosed = Object(_util__WEBPACK_IMPORTED_MODULE_19__[\"isPollClosed\"])(attributes.pollStatus, attributes.closedAfterDateTime);\n var showNote = attributes.note || isSelected && isPollEditable;\n var showResults = isClosed && _constants__WEBPACK_IMPORTED_MODULE_15__[\"ClosedPollState\"].SHOW_RESULTS === attributes.closedPollState;\n var isHidden = isClosed && _constants__WEBPACK_IMPORTED_MODULE_15__[\"ClosedPollState\"].HIDDEN === attributes.closedPollState;\n\n var _useAccountInfo = Object(data_hooks__WEBPACK_IMPORTED_MODULE_27__[\"useAccountInfo\"])(),\n accountInfo = _useAccountInfo.accountInfo;\n\n var hideBranding = Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"get\"])(accountInfo, 'capabilities', []).includes('hide-branding');\n Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useEffect\"])(function () {\n return setIsPollEditable(!pollIsPublished);\n }, [isSelected]);\n Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useEffect\"])(function () {\n if (isSelected) {\n Object(_util__WEBPACK_IMPORTED_MODULE_19__[\"toggleButtonStyleAvailability\"])(!attributes.isMultipleChoice);\n }\n }, [attributes.isMultipleChoice, isSelected]);\n var showEditBar = isSelected && pollIsPublished && !isPollEditable;\n var answerStyle = Object(_util__WEBPACK_IMPORTED_MODULE_19__[\"getAnswerStyle\"])(attributes, className);\n\n if (attributes.fontFamily) {\n Object(components_poll_util__WEBPACK_IMPORTED_MODULE_13__[\"loadCustomFont\"])(attributes.fontFamily);\n }\n\n var shouldPromote = Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"get\"])(accountInfo, ['signalCount', 'shouldDisplay']);\n var signalWarning = shouldPromote && Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"get\"])(accountInfo, ['signalCount', 'count']) >= Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"get\"])(accountInfo, ['signalCount', 'userLimit']);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_23__[\"default\"], {\n blockIcon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_icon_poll__WEBPACK_IMPORTED_MODULE_24__[\"default\"], null),\n blockName: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Crowdsignal Poll', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_toolbar__WEBPACK_IMPORTED_MODULE_18__[\"default\"], props), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_sidebar__WEBPACK_IMPORTED_MODULE_17__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {\n viewResultsUrl: viewResultsUrl,\n shouldPromote: shouldPromote,\n signalWarning: signalWarning\n })), signalWarning && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_signal_warning__WEBPACK_IMPORTED_MODULE_28__[\"default\"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"ResizableBox\"], {\n className: \"crowdsignal-forms-poll__resize-wrapper\",\n size: {\n height: 'auto',\n width: blockWidth\n },\n minWidth: \"25%\",\n maxWidth: \"100%\",\n enable: {\n left: true,\n right: true\n },\n onResizeStop: handleResize,\n showHandle: isResizable,\n resizeRatio: 2\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(\"div\", {\n className: Object(_util__WEBPACK_IMPORTED_MODULE_19__[\"getBlockCssClasses\"])(attributes, className, {\n 'is-selected-in-editor': isSelected,\n 'is-closed': isClosed,\n 'is-hidden': isHidden\n }, 'crowdsignal-forms-poll'),\n style: Object(_util__WEBPACK_IMPORTED_MODULE_19__[\"getStyleVars\"])(attributes, fallbackStyles)\n }, showEditBar && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_edit_bar__WEBPACK_IMPORTED_MODULE_22__[\"default\"], {\n onEditClick: function onEditClick() {\n setIsPollEditable(true);\n }\n }), errorMessage && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_poll_error_banner__WEBPACK_IMPORTED_MODULE_20__[\"default\"], null, errorMessage), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__content\"\n }, isPollEditable ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__[\"RichText\"], {\n tagName: \"h3\",\n className: \"crowdsignal-forms-poll__question\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Enter your question', 'crowdsignal-forms'),\n onChange: handleChangeQuestion,\n value: attributes.question,\n allowedFormats: []\n }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__[\"RichText\"].Content, {\n tagName: \"h3\",\n className: \"crowdsignal-forms-poll__question\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Enter your question', 'crowdsignal-forms'),\n value: Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_8__[\"decodeEntities\"])(attributes.question)\n }), showNote && (isPollEditable ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__[\"RichText\"], {\n tagName: \"p\",\n className: \"crowdsignal-forms-poll__note\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Add a note (optional)', 'crowdsignal-forms'),\n onChange: handleChangeNote,\n value: attributes.note,\n allowedFormats: []\n }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__[\"RichText\"].Content, {\n tagName: \"div\",\n className: \"crowdsignal-forms-poll__note\",\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__[\"__\"])('Add a note (optional)', 'crowdsignal-forms'),\n value: Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_8__[\"decodeEntities\"])(attributes.note)\n })), !showResults && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(_edit_answers__WEBPACK_IMPORTED_MODULE_16__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {\n setAttributes: setAttributes,\n disabled: !isPollEditable,\n answerStyle: answerStyle,\n buttonAlignment: attributes.buttonAlignment\n })), showResults && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_poll_results__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n answers: Object(components_poll_util__WEBPACK_IMPORTED_MODULE_13__[\"addApiAnswerIds\"])(Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"filter\"])(attributes.answers, function (answer) {\n return !Object(components_poll_util__WEBPACK_IMPORTED_MODULE_13__[\"isAnswerEmpty\"])(answer);\n }), answerIdMap),\n pollIdFromApi: pollIdFromApi,\n hideBranding: hideBranding,\n setErrorMessage: setErrorMessage\n }), !hideBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_footer_branding__WEBPACK_IMPORTED_MODULE_26__[\"default\"], {\n editing: true\n })), isClosed && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(components_poll_closed_banner__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n isPollHidden: isHidden,\n isPollClosed: isClosed\n }), renderStyleProbe())));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__[\"compose\"])([components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_14__[\"withFallbackStyles\"], components_with_poll_base__WEBPACK_IMPORTED_MODULE_25__[\"default\"], withPollAndAnswerIds])(PollBlock));\n\n//# sourceURL=webpack:///./client/blocks/poll/edit.js?");
410
+
411
+ /***/ }),
412
+
413
+ /***/ "./client/blocks/poll/index.js":
414
+ /*!*************************************!*\
415
+ !*** ./client/blocks/poll/index.js ***!
416
+ \*************************************/
417
+ /*! exports provided: default */
418
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
419
+
420
+ "use strict";
421
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_icon_poll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/icon/poll */ \"./client/components/icon/poll.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./store */ \"./client/blocks/poll/store.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./client/blocks/poll/edit.js\");\n/* harmony import */ var _attributes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./attributes */ \"./client/blocks/poll/attributes.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Poll', 'crowdsignal-forms'),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Create polls and get your audience’s opinion — powered by Crowdsignal.', 'crowdsignal-forms'),\n category: 'crowdsignal-forms',\n keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('ask', 'crowdsignal-forms'), 'crowdsignal', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('feedback', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('form', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('opinion', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('poll', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('pop', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('question', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('quiz', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('research', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('survey', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('vote', 'crowdsignal-forms')],\n icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_icon_poll__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null),\n edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n attributes: _attributes__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n supports: {\n align: ['center', 'wide', 'full']\n },\n getEditWrapperProps: function getEditWrapperProps(_ref) {\n var align = _ref.align;\n return {\n 'data-align': align\n };\n },\n example: {\n attributes: {\n question: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('How did you hear about us?', 'crowdsignal-forms'),\n answers: [{\n text: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Search', 'crowdsignal-forms')\n }, {\n text: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Friend', 'crowdsignal-forms')\n }, {\n text: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Email', 'crowdsignal-forms')\n }]\n }\n },\n styles: [{\n name: 'default',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('List', 'crowdsignal-forms'),\n isDefault: true\n }, {\n name: 'buttons',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Buttons', 'crowdsignal-forms')\n }],\n variations: [{\n isDefault: true,\n attributes: {\n // Force the correct className onto the block by default\n className: 'is-style-buttons'\n }\n }]\n});\n\n//# sourceURL=webpack:///./client/blocks/poll/index.js?");
422
+
423
+ /***/ }),
424
+
425
+ /***/ "./client/blocks/poll/sidebar.js":
426
+ /*!***************************************!*\
427
+ !*** ./client/blocks/poll/sidebar.js ***!
428
+ \***************************************/
429
+ /*! exports provided: default */
430
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
431
+
432
+ "use strict";
433
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/html-entities */ \"@wordpress/html-entities\");\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ \"./client/blocks/poll/util.js\");\n/* harmony import */ var components_sidebar_promote__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! components/sidebar-promote */ \"./client/components/sidebar-promote/index.js\");\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar SideBar = function SideBar(_ref) {\n var _attributes$title;\n\n var attributes = _ref.attributes,\n className = _ref.className,\n setAttributes = _ref.setAttributes,\n fallbackBackgroundColor = _ref.fallbackBackgroundColor,\n fallbackTextColor = _ref.fallbackTextColor,\n fallbackSubmitButtonBackgroundColor = _ref.fallbackSubmitButtonBackgroundColor,\n fallbackSubmitButtonTextColor = _ref.fallbackSubmitButtonTextColor,\n viewResultsUrl = _ref.viewResultsUrl,\n shouldPromote = _ref.shouldPromote,\n signalWarning = _ref.signalWarning;\n\n var handleChangeTitle = function handleChangeTitle(title) {\n return setAttributes({\n title: title\n });\n };\n\n var handleChangeConfirmMessageType = function handleChangeConfirmMessageType(type) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"], type) && setAttributes({\n confirmMessageType: type\n });\n };\n\n var handleChangeCustomConfirmMessage = function handleChangeCustomConfirmMessage(customConfirmMessage) {\n return setAttributes({\n customConfirmMessage: customConfirmMessage\n });\n };\n\n var handleChangeRedirectAddress = function handleChangeRedirectAddress(redirectAddress) {\n return setAttributes({\n redirectAddress: redirectAddress\n });\n };\n\n var handleChangeTextColor = function handleChangeTextColor(textColor) {\n return setAttributes({\n textColor: textColor\n });\n };\n\n var handleChangeBackgroundColor = function handleChangeBackgroundColor(backgroundColor) {\n return setAttributes({\n backgroundColor: backgroundColor\n });\n };\n\n var handleChangeBorderColor = function handleChangeBorderColor(borderColor) {\n return setAttributes({\n borderColor: borderColor\n });\n };\n\n var handleChangeBorderRadius = function handleChangeBorderRadius(borderRadius) {\n setAttributes({\n borderRadius: parseInt(borderRadius, 10) || 0\n });\n };\n\n var handleChangeBorderWidth = function handleChangeBorderWidth(borderWidth) {\n setAttributes({\n borderWidth: parseInt(borderWidth, 10) || 0\n });\n };\n\n var handleChangeFontFamily = function handleChangeFontFamily(font) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"], font) && setAttributes({\n fontFamily: font\n });\n };\n\n var handleChangeHasOneResponsePerComputer = function handleChangeHasOneResponsePerComputer(hasOneResponsePerComputer) {\n return setAttributes({\n hasOneResponsePerComputer: hasOneResponsePerComputer\n });\n };\n\n var handleChangeRandomizeAnswers = function handleChangeRandomizeAnswers(randomizeAnswers) {\n return setAttributes({\n randomizeAnswers: randomizeAnswers\n });\n };\n\n var handleChangeSubmitButtonTextColor = function handleChangeSubmitButtonTextColor(submitButtonTextColor) {\n return setAttributes({\n submitButtonTextColor: submitButtonTextColor\n });\n };\n\n var handleChangeSubmitButtonBackgroundColor = function handleChangeSubmitButtonBackgroundColor(submitButtonBackgroundColor) {\n return setAttributes({\n submitButtonBackgroundColor: submitButtonBackgroundColor\n });\n };\n\n var handleChangePollStatus = function handleChangePollStatus(pollStatus) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"], pollStatus)) {\n return;\n } // closedAfterDateTime MUST be set when pollStatus is set to CLOSED_AFTER\n\n\n setAttributes({\n closedAfterDateTime: pollStatus === _constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"].CLOSED_AFTER ? new Date(new Date().getTime() + 24 * 60 * 60 * 1000).toISOString() : null,\n pollStatus: pollStatus\n });\n };\n\n var handleChangeClosedPollState = function handleChangeClosedPollState(closedPollState) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_7__[\"ClosedPollState\"], closedPollState) && setAttributes({\n closedPollState: closedPollState\n });\n };\n\n var handleChangeCloseAfterDateTime = function handleChangeCloseAfterDateTime(closedAfterDateTime) {\n var dateTime = new Date(closedAfterDateTime);\n setAttributes({\n closedAfterDateTime: dateTime.toISOString()\n });\n };\n\n var handleChangeHasBoxShadow = function handleChangeHasBoxShadow(hasBoxShadow) {\n setAttributes({\n hasBoxShadow: hasBoxShadow\n });\n };\n\n var handleChangeButtonAlignment = function handleChangeButtonAlignment(buttonAlignment) {\n return setAttributes({\n buttonAlignment: buttonAlignment\n });\n };\n\n var handleChangeWidth = function handleChangeWidth(width) {\n return setAttributes({\n width: parseInt(width, 10)\n });\n };\n\n var handleResetWidth = function handleResetWidth() {\n return setAttributes({\n width: 100\n });\n };\n\n var resultsLinkEnabled = '' !== viewResultsUrl;\n var answerStyle = Object(_util__WEBPACK_IMPORTED_MODULE_8__[\"getAnswerStyle\"])(attributes, className); // https://github.com/Automattic/crowdsignal-forms/issues/14\n\n if (_constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].REDIRECT === attributes.confirmMessageType) {\n attributes.confirmMessageType = _constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].THANK_YOU;\n }\n\n return 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\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Results', 'crowdsignal-forms'),\n initialOpen: true\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"p\", null, resultsLinkEnabled ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Manage results on ', 'crowdsignal-forms') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Publish this post to enable results on ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"ExternalLink\"], {\n href: \"https://www.crowdsignal.com\"\n }, \"crowdsignal.com\")), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"p\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n href: viewResultsUrl,\n isSecondary: true,\n target: \"_blank\",\n disabled: !resultsLinkEnabled\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('View results', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextControl\"], {\n value: Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_5__[\"decodeEntities\"])((_attributes$title = attributes.title) !== null && _attributes$title !== void 0 ? _attributes$title : attributes.question),\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Title of the poll block', 'crowdsignal-forms'),\n onChange: handleChangeTitle\n }), shouldPromote && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_sidebar_promote__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n signalWarning: signalWarning\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Confirmation message', 'crowdsignal-forms'),\n initialOpen: false\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.confirmMessageType,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('On submission', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Show results', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].RESULTS\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Show \"Thank You\" message', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].THANK_YOU\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Show a custom text message', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].CUSTOM_TEXT\n } // https://github.com/Automattic/crowdsignal-forms/issues/14\n // {\n // \tlabel: __(\n // \t\t'Redirect to another webpage',\n // \t\t'crowdsignal-forms'\n // \t),\n // \tvalue: ConfirmMessageType.REDIRECT,\n // },\n ],\n onChange: handleChangeConfirmMessageType\n }), _constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].CUSTOM_TEXT === attributes.confirmMessageType && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextareaControl\"], {\n value: attributes.customConfirmMessage,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Message text', 'crowdsignal-forms'),\n placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Thanks for voting!', 'crowdsignal-forms'),\n onChange: handleChangeCustomConfirmMessage\n }), _constants__WEBPACK_IMPORTED_MODULE_7__[\"ConfirmMessageType\"].REDIRECT === attributes.confirmMessageType && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"URLInput\"], {\n className: \"crowdsignal-forms__redirect-url\",\n value: attributes.redirectAddress,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Redirect address', 'crowdsignal-forms'),\n onChange: handleChangeRedirectAddress\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Settings', 'crowdsignal-forms'),\n initialOpen: false\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.pollStatus,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Status', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Open', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"].OPEN\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Closed after', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"].CLOSED_AFTER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Closed', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"].CLOSED\n }],\n onChange: handleChangePollStatus\n }), _constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"].CLOSED_AFTER === attributes.pollStatus && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TimePicker\"], {\n currentTime: attributes.closedAfterDateTime,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Close poll on', 'crowdsignal-forms'),\n onChange: handleChangeCloseAfterDateTime,\n is12Hour: true\n }), _constants__WEBPACK_IMPORTED_MODULE_7__[\"PollStatus\"].OPEN !== attributes.pollStatus && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.closedPollState,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('When poll is closed', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Show results', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ClosedPollState\"].SHOW_RESULTS\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Show poll with \"Closed\" banner', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ClosedPollState\"].SHOW_CLOSED_BANNER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Hide poll', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ClosedPollState\"].HIDDEN\n }],\n onChange: handleChangeClosedPollState\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Block styling', 'crowdsignal-forms'),\n initialOpen: false,\n colorSettings: [{\n value: attributes.textColor,\n onChange: handleChangeTextColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Text color', 'crowdsignal-forms')\n }, {\n value: attributes.backgroundColor,\n onChange: handleChangeBackgroundColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Background color', 'crowdsignal-forms')\n }, {\n value: attributes.borderColor,\n onChange: handleChangeBorderColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Border color', 'crowdsignal-forms')\n }]\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"ContrastChecker\"], {\n textColor: attributes.textColor,\n backgroundColor: attributes.backgroundColor,\n fallbackBackgroundColor: fallbackBackgroundColor,\n fallbackTextColor: fallbackTextColor\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.fontFamily,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Choose font', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Default theme font', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].THEME_DEFAULT\n }, {\n label: 'Alegreya Sans',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].ALEGREYA_SANS\n }, {\n label: 'Arial',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].ARIAL\n }, {\n label: 'Cabin',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].CABIN\n }, {\n label: 'Chivo',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].CHIVO\n }, {\n label: 'Courier',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].COURIER\n }, {\n label: 'Fira Sans',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].FIRA_SANS\n }, {\n label: 'Georgia',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].GEORGIA\n }, {\n label: 'Impact',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].IMPACT\n }, {\n label: 'Josefin Sans',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].JOSEFIN_SANS\n }, {\n label: 'Lato',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].LATO\n }, {\n label: 'Libre Franklin',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].LIBRE_FRANKLIN\n }, {\n label: 'Lucida',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].LUCIDA\n }, {\n label: 'Montserrat',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].MONTSERRAT\n }, {\n label: 'Nunito',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].NUNITO\n }, {\n label: 'Open Sans',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].OPEN_SANS\n }, {\n label: 'Oswald',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].OSWALD\n }, {\n label: 'Overpass',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].OVERPASS\n }, {\n label: 'Palatino',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].PALATINO\n }, {\n label: 'Poppins',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].POPPINS\n }, {\n label: 'Raleway',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].RALEWAY\n }, {\n label: 'Roboto',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].ROBOTO\n }, {\n label: 'Rubik',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].RUBIK\n }, {\n label: 'Tahoma',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].TAHOMA\n }, {\n label: 'Times New Roman',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].TIMES_NEW_ROMAN\n }, {\n label: 'Trebuchet',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].TREBUCHET\n }, {\n label: 'Verdana',\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"FontFamilyType\"].VERDANA\n }],\n onChange: handleChangeFontFamily\n }), attributes.align !== 'full' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__row\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextControl\"], {\n type: \"number\",\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Width (%)', 'crowdsignal-forms'),\n value: attributes.width,\n onChange: handleChangeWidth\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n isSmall: true,\n className: \"crowdsignal-forms__reset-width-button\",\n onClick: handleResetWidth\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Reset', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__row\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Border thickness', 'crowdsignal-forms'),\n value: attributes.borderWidth,\n onChange: handleChangeBorderWidth,\n type: \"number\",\n className: \"crowdsignal-forms__small-text-input\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Corner radius', 'crowdsignal-forms'),\n value: attributes.borderRadius,\n onChange: handleChangeBorderRadius,\n type: \"number\",\n className: \"crowdsignal-forms__small-text-input\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"ToggleControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Drop shadow', 'crowdsignal-forms'),\n checked: attributes.hasBoxShadow,\n onChange: handleChangeHasBoxShadow\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Button styling', 'crowdsignal-forms'),\n initialOpen: false,\n colorSettings: [{\n value: attributes.submitButtonTextColor,\n onChange: handleChangeSubmitButtonTextColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Text color', 'crowdsignal-forms')\n }, {\n value: attributes.submitButtonBackgroundColor,\n onChange: handleChangeSubmitButtonBackgroundColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Background color', 'crowdsignal-forms')\n }]\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__[\"ContrastChecker\"], {\n textColor: attributes.submitButtonTextColor,\n backgroundColor: attributes.submitButtonBackgroundColor,\n fallbackBackgroundColor: fallbackSubmitButtonBackgroundColor,\n fallbackTextColor: fallbackSubmitButtonTextColor\n }), _constants__WEBPACK_IMPORTED_MODULE_7__[\"AnswerStyle\"].BUTTON === answerStyle && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.buttonAlignment,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Alignment', 'crowdsignal-forms'),\n options: [{\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ButtonAlignment\"].LIST,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('List', 'crowdsignal-forms')\n }, {\n value: _constants__WEBPACK_IMPORTED_MODULE_7__[\"ButtonAlignment\"].INLINE,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Inline', 'crowdsignal-forms')\n }],\n onChange: handleChangeButtonAlignment\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Answer settings', 'crowdsignal-forms'),\n initialOpen: true\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"CheckboxControl\"], {\n checked: attributes.hasOneResponsePerComputer,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('One response per computer', 'crowdsignal-forms'),\n onChange: handleChangeHasOneResponsePerComputer\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"CheckboxControl\"], {\n checked: attributes.randomizeAnswers,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Randomize answer order', 'crowdsignal-forms'),\n onChange: handleChangeRandomizeAnswers\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SideBar);\n\n//# sourceURL=webpack:///./client/blocks/poll/sidebar.js?");
434
+
435
+ /***/ }),
436
+
437
+ /***/ "./client/blocks/poll/store.js":
438
+ /*!*************************************!*\
439
+ !*** ./client/blocks/poll/store.js ***!
440
+ \*************************************/
441
+ /*! exports provided: default */
442
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
443
+
444
+ "use strict";
445
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * wordpress dependencies\n */\n\n\n/**\n * Module Constants\n */\n\nvar MODULE_KEY = 'crowdsignal-forms/polls';\nvar SET_TRY_FETCH = 'SET_TRY_FETCH';\nvar IS_FETCHING = 'IS_FETCHING';\nvar SET_POLL = 'SET_POLL';\nvar ADD_POLL_CLIENT_ID = 'ADD_POLL_CLIENT_ID';\nvar REMOVE_POLL_CLIENT_ID = 'REMOVE_POLL_CLIENT_ID';\nvar DEFAULT_STATE = {\n tryFetch: false,\n isFetching: false,\n pollsByClientId: {},\n pollClientIds: []\n};\nvar actions = {\n setTryFetchPollData: function setTryFetchPollData(tryFetch) {\n return {\n type: SET_TRY_FETCH,\n tryFetch: tryFetch\n };\n },\n setIsFetchingPollData: function setIsFetchingPollData(isFetching) {\n return {\n type: IS_FETCHING,\n isFetching: isFetching\n };\n },\n setPollApiDataForClientId: function setPollApiDataForClientId(clientId, pollData) {\n return {\n type: SET_POLL,\n clientId: clientId,\n pollData: pollData\n };\n },\n addPollClientId: function addPollClientId(clientId) {\n return {\n type: ADD_POLL_CLIENT_ID,\n clientId: clientId\n };\n },\n removePollClientId: function removePollClientId(clientId) {\n return {\n type: REMOVE_POLL_CLIENT_ID,\n clientId: clientId\n };\n }\n};\nvar store = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__[\"registerStore\"])(MODULE_KEY, {\n reducer: function reducer() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATE;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case SET_TRY_FETCH:\n return _objectSpread({}, state, {\n tryFetch: !!action.tryFetch\n });\n\n case IS_FETCHING:\n return _objectSpread({}, state, {\n isFetching: !!action.isFetching\n });\n\n case SET_POLL:\n return _objectSpread({}, state, {\n pollsByClientId: _objectSpread({}, state.pollsByClientId, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, action.clientId, action.pollData))\n });\n\n case ADD_POLL_CLIENT_ID:\n return _objectSpread({}, state, {\n pollClientIds: state.pollClientIds.indexOf(action.clientId) < 0 ? [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(state.pollClientIds), [action.clientId]) : state.pollClientIds\n });\n\n case REMOVE_POLL_CLIENT_ID:\n return _objectSpread({}, state, {\n pollClientIds: Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"filter\"])(state.pollClientIds, function (clientId) {\n return clientId !== action.clientId;\n })\n });\n\n default:\n return state;\n }\n },\n actions: actions,\n selectors: {\n shouldTryFetchingPollData: function shouldTryFetchingPollData(state) {\n return !!state.tryFetch;\n },\n getPollDataByClientId: function getPollDataByClientId(state, clientId) {\n return state.pollsByClientId[clientId] || null;\n },\n getPollClientIds: function getPollClientIds(state) {\n return state.pollClientIds;\n },\n isFetchingPollData: function isFetchingPollData(state) {\n return !!state.isFetching;\n }\n },\n controls: {},\n resolvers: {}\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);\n\n//# sourceURL=webpack:///./client/blocks/poll/store.js?");
446
+
447
+ /***/ }),
448
+
449
+ /***/ "./client/blocks/poll/subscriptions.js":
450
+ /*!*********************************************!*\
451
+ !*** ./client/blocks/poll/subscriptions.js ***!
452
+ \*********************************************/
453
+ /*! exports provided: startPolling, startSubscriptions, withPollDataSelect, withPollDataDispatch */
454
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
455
+
456
+ "use strict";
457
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"startPolling\", function() { return startPolling; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"startSubscriptions\", function() { return startSubscriptions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withPollDataSelect\", function() { return withPollDataSelect; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withPollDataDispatch\", function() { return withPollDataDispatch; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/api-fetch */ \"@wordpress/api-fetch\");\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * WordPress dependencies\n */\n\n\n\n\nvar isPollBlock = function isPollBlock(block) {\n if (!block) {\n return false;\n }\n\n return block.name === 'crowdsignal-forms/poll' || block.name === 'crowdsignal-forms/applause' || block.name === 'crowdsignal-forms/vote';\n};\n\nvar subsStarted = false;\nvar pollingStarted = false;\nvar startPolling = function startPolling() {\n if (pollingStarted) {\n return;\n }\n\n pollingStarted = true;\n var lastInterval = null;\n\n var scheduleNextTick = function scheduleNextTick() {\n if (null !== lastInterval) {\n clearTimeout(lastInterval);\n }\n\n lastInterval = setTimeout(function () {\n return tick();\n }, 1000 + Math.random() * 1000);\n };\n\n var tick = function tick() {\n var _select = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"select\"])('crowdsignal-forms/polls'),\n getPollClientIds = _select.getPollClientIds,\n getPollDataByClientId = _select.getPollDataByClientId,\n shouldTryFetchingPollData = _select.shouldTryFetchingPollData,\n isFetchingPollData = _select.isFetchingPollData;\n\n var pollsWithNoApiData = Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"filter\"])(getPollClientIds(), function (clientId) {\n return null === getPollDataByClientId(clientId);\n });\n\n if (pollsWithNoApiData.length < 1) {\n return scheduleNextTick();\n }\n\n var _dispatch = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"dispatch\"])('crowdsignal-forms/polls'),\n setTryFetchPollData = _dispatch.setTryFetchPollData,\n setPollApiDataForClientId = _dispatch.setPollApiDataForClientId,\n setIsFetchingPollData = _dispatch.setIsFetchingPollData;\n\n if (!shouldTryFetchingPollData()) {\n setTryFetchPollData(true);\n } else if (!isFetchingPollData()) {\n setIsFetchingPollData(true);\n Promise.all(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"map\"])(pollsWithNoApiData, function (clientId) {\n return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_2___default()({\n path: \"/crowdsignal-forms/v1/polls/\".concat(clientId, \"?cached=1\"),\n method: 'GET'\n }).then(function (response) {\n return setPollApiDataForClientId(clientId, _objectSpread({}, response, {\n viewResultsUrl: \"https://app.crowdsignal.com/polls/\".concat(response.id, \"/results\")\n }));\n }, function () {\n return setPollApiDataForClientId(clientId, null);\n });\n })).finally(function () {\n return setIsFetchingPollData(false);\n });\n }\n\n return scheduleNextTick();\n };\n\n tick();\n};\nvar startSubscriptions = function startSubscriptions() {\n if (subsStarted) {\n return;\n }\n\n subsStarted = true;\n\n var _select2 = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"select\"])('core/editor'),\n isEditedPostDirty = _select2.isEditedPostDirty,\n isEditedPostNew = _select2.isEditedPostNew,\n isSavingPost = _select2.isSavingPost,\n isCleanNewPost = _select2.isCleanNewPost,\n getCurrentPostId = _select2.getCurrentPostId;\n\n var _dispatch2 = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"dispatch\"])('crowdsignal-forms/polls'),\n setTryFetchPollData = _dispatch2.setTryFetchPollData,\n setPollApiDataForClientId = _dispatch2.setPollApiDataForClientId,\n setIsFetchingPollData = _dispatch2.setIsFetchingPollData;\n\n var _select3 = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"select\"])('crowdsignal-forms/polls'),\n shouldTryFetchingPollData = _select3.shouldTryFetchingPollData,\n getPollDataByClientId = _select3.getPollDataByClientId,\n isFetchingPollData = _select3.isFetchingPollData;\n\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"subscribe\"])(function () {\n var pollBlocks = Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"filter\"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"select\"])('core/block-editor').getBlocks(), isPollBlock);\n\n if (pollBlocks.length < 1) {\n return;\n }\n\n if (isFetchingPollData()) {\n return;\n }\n\n if (isCleanNewPost() || isEditedPostNew() || isSavingPost() || isEditedPostDirty()) {\n return;\n }\n\n var postId = getCurrentPostId();\n\n if (!postId) {\n return;\n }\n\n var pollsThatAreNotFetched = Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"filter\"])(pollBlocks, function (_ref) {\n var attributes = _ref.attributes;\n return attributes.pollId && null === getPollDataByClientId(attributes.pollId);\n });\n\n if (pollsThatAreNotFetched.length < 1) {\n return;\n }\n\n if (!shouldTryFetchingPollData()) {\n setTryFetchPollData(true);\n } else if (!isFetchingPollData()) {\n setIsFetchingPollData(true);\n Promise.all(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"map\"])(pollsThatAreNotFetched, function (pollBlock) {\n var pollId = pollBlock.attributes.pollId;\n return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_2___default()({\n path: \"/crowdsignal-forms/v1/polls/\".concat(pollId, \"?cached=1\"),\n method: 'GET'\n }).then(function (response) {\n return setPollApiDataForClientId(pollId, _objectSpread({}, response, {\n viewResultsUrl: \"https://app.crowdsignal.com/polls/\".concat(response.id, \"/results\")\n }));\n }, function () {\n return setPollApiDataForClientId(pollId, null);\n });\n })).finally(function () {\n return setIsFetchingPollData(false);\n });\n }\n });\n};\nvar withPollDataSelect = function withPollDataSelect() {\n return (// eslint-disable-next-line no-shadow\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"withSelect\"])(function (select, ownProps) {\n var _select4 = select('crowdsignal-forms/polls'),\n getPollDataByClientId = _select4.getPollDataByClientId,\n shouldTryFetchingPollData = _select4.shouldTryFetchingPollData,\n isFetchingPollData = _select4.isFetchingPollData;\n\n var attributes = ownProps.attributes;\n var pollDataFromApi = attributes.pollId ? getPollDataByClientId(attributes.pollId) : null;\n return {\n pollDataFromApi: pollDataFromApi,\n getPollDataByClientId: getPollDataByClientId,\n shouldTryFetchingPollData: shouldTryFetchingPollData,\n isFetchingPollData: isFetchingPollData\n };\n })\n );\n};\nvar withPollDataDispatch = function withPollDataDispatch() {\n return (// eslint-disable-next-line no-shadow\n Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"withDispatch\"])(function (dispatch) {\n var _dispatch3 = dispatch('crowdsignal-forms/polls'),\n setTryFetchPollData = _dispatch3.setTryFetchPollData,\n setPollApiDataForClientId = _dispatch3.setPollApiDataForClientId,\n setIsFetchingPollData = _dispatch3.setIsFetchingPollData,\n addPollClientId = _dispatch3.addPollClientId,\n removePollClientId = _dispatch3.removePollClientId;\n\n return {\n setTryFetchPollData: setTryFetchPollData,\n setPollApiDataForClientId: setPollApiDataForClientId,\n setIsFetchingPollData: setIsFetchingPollData,\n addPollClientId: addPollClientId,\n removePollClientId: removePollClientId\n };\n })\n );\n};\n\n//# sourceURL=webpack:///./client/blocks/poll/subscriptions.js?");
458
+
459
+ /***/ }),
460
+
461
+ /***/ "./client/blocks/poll/toolbar.js":
462
+ /*!***************************************!*\
463
+ !*** ./client/blocks/poll/toolbar.js ***!
464
+ \***************************************/
465
+ /*! exports provided: default */
466
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
467
+
468
+ "use strict";
469
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var components_icon_checklist_multiple_choice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/icon/checklist-multiple-choice */ \"./client/components/icon/checklist-multiple-choice.js\");\n/* harmony import */ var components_icon_checklist_single_choice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! components/icon/checklist-single-choice */ \"./client/components/icon/checklist-single-choice.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ \"./client/blocks/poll/util.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar multipleChoiceControls = [{\n icon: components_icon_checklist_single_choice__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Choose one answer', 'crowdsignal-forms'),\n value: false\n}, {\n icon: components_icon_checklist_multiple_choice__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('Choose multiple answers', 'crowdsignal-forms'),\n value: true\n}];\n\nvar PollToolbar = function PollToolbar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes;\n var multipleChoiceToolbar = Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"map\"])(multipleChoiceControls, function (button) {\n return _objectSpread({}, button, {\n isActive: button.value === attributes.isMultipleChoice,\n onClick: function onClick() {\n setAttributes({\n isMultipleChoice: button.value\n });\n Object(_util__WEBPACK_IMPORTED_MODULE_9__[\"toggleButtonStyleAvailability\"])(button.value);\n }\n });\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__[\"BlockControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__[\"Toolbar\"], {\n controls: multipleChoiceToolbar\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (PollToolbar);\n\n//# sourceURL=webpack:///./client/blocks/poll/toolbar.js?");
470
+
471
+ /***/ }),
472
+
473
+ /***/ "./client/blocks/poll/util.js":
474
+ /*!************************************!*\
475
+ !*** ./client/blocks/poll/util.js ***!
476
+ \************************************/
477
+ /*! exports provided: addAnswer, getFontFamilyFromType, getStyleVars, extractRGBColorProperties, hexToRGB, getBlockCssClasses, isPollClosed, getAnswerStyle, toggleButtonStyleAvailability */
478
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
479
+
480
+ "use strict";
481
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addAnswer\", function() { return addAnswer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFontFamilyFromType\", function() { return getFontFamilyFromType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStyleVars\", function() { return getStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extractRGBColorProperties\", function() { return extractRGBColorProperties; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hexToRGB\", function() { return hexToRGB; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBlockCssClasses\", function() { return getBlockCssClasses; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isPollClosed\", function() { return isPollClosed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAnswerStyle\", function() { return getAnswerStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toggleButtonStyleAvailability\", function() { return toggleButtonStyleAvailability; });\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./client/blocks/poll/constants.js\");\n\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Creates a new Answer object then returns a copy of the passed in `answers` array with the new answer appended to it.\n *\n * @param {Array} answers The existing array of answers.\n * @param {string} text\tThe text for the new answer to add.\n * @return {Array}\t\t\tThe newly created answers array.\n */\n\nvar addAnswer = function addAnswer(answers, text) {\n return [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(answers), [{\n answerId: null,\n text: text\n }]);\n};\nvar getFontFamilyFromType = function getFontFamilyFromType(type) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_5__[\"FontFamilyType\"], type)) {\n return null;\n }\n\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"FontFamilyMap\"][type];\n};\nvar getStyleVars = function getStyleVars(attributes, fallbackStyles) {\n var _attributes$borderCol, _getFontFamilyFromTyp, _getFontFamilyFromTyp2, _extractRGBColorPrope;\n\n var textColor = Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isEmpty\"])(attributes.textColor) ? fallbackStyles.textColor : attributes.textColor;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"mapKeys\"])({\n borderColor: (_attributes$borderCol = attributes.borderColor) !== null && _attributes$borderCol !== void 0 ? _attributes$borderCol : fallbackStyles.accentColor,\n borderRadius: \"\".concat(attributes.borderRadius, \"px\"),\n borderWidth: \"\".concat(attributes.borderWidth, \"px\"),\n bgColor: attributes.backgroundColor,\n bodyFontFamily: (_getFontFamilyFromTyp = getFontFamilyFromType(attributes.fontFamily)) !== null && _getFontFamilyFromTyp !== void 0 ? _getFontFamilyFromTyp : fallbackStyles.textFont,\n questionFontFamily: (_getFontFamilyFromTyp2 = getFontFamilyFromType(attributes.fontFamily)) !== null && _getFontFamilyFromTyp2 !== void 0 ? _getFontFamilyFromTyp2 : fallbackStyles.headingFont,\n submitButtonBgColor: attributes.submitButtonBackgroundColor || fallbackStyles.accentColor,\n submitButtonTextColor: attributes.submitButtonTextColor || fallbackStyles.textColorInverted,\n textColor: textColor,\n textColorProperties: (_extractRGBColorPrope = extractRGBColorProperties(textColor)) !== null && _extractRGBColorPrope !== void 0 ? _extractRGBColorPrope : '0, 0, 0',\n contentWideWidth: fallbackStyles.contentWideWidth\n }, function (_, key) {\n return \"--crowdsignal-forms-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"kebabCase\"])(key));\n });\n};\n/**\n * Extracts the comma separated color properties from an rgb string.\n * rgba strings are not supported for now because it introduces too many complications.\n *\n * @param {string} color The color string.\n * @return {string} The 3 comma separated rgb color properties.\n */\n\nvar extractRGBColorProperties = function extractRGBColorProperties(color) {\n if (!color || 'string' !== typeof color || -1 === color.indexOf('rgb') && 0 !== color.indexOf('#') || -1 < color.indexOf('rgba')) {\n return null;\n }\n\n if (0 === color.indexOf('#')) {\n color = hexToRGB(color);\n }\n\n return color.match(/\\((.*?)\\)/)[1];\n};\n/**\n * converts css color hex to rgb\n *\n * @param {string} h The hex color string.\n * @return {string} The rgb value.\n */\n\nvar hexToRGB = function hexToRGB(h) {\n var r = 0,\n g = 0,\n b = 0;\n var hexCode = 4 === h.length ? \"#\".concat(h[1] + h[1] + h[2] + h[2] + h[3] + h[3]) : h;\n\n if (7 === hexCode.length) {\n r = parseInt(hexCode.substr(1, 2), 16) || 0;\n g = parseInt(hexCode.substr(3, 2), 16) || 0;\n b = parseInt(hexCode.substr(5, 2), 16) || 0;\n }\n\n return \"rgb(\".concat(r, \", \").concat(g, \", \").concat(b, \")\");\n};\n/**\n * Returns a css 'class' string of overridden styles given a collection of attributes.\n *\n * @param {*} attributes The block's attributes\n * @param {...any} extraClasses A list of additional classes to add to the class string\n */\n\nvar getBlockCssClasses = function getBlockCssClasses(attributes) {\n var _attributes$borderRad;\n\n for (var _len = arguments.length, extraClasses = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n extraClasses[_key - 1] = arguments[_key];\n }\n\n return classnames__WEBPACK_IMPORTED_MODULE_1___default()({\n 'has-bg-color': attributes.backgroundColor,\n 'has-text-color': attributes.textColor,\n 'has-submit-button-bg-color': attributes.submitButtonBackgroundColor,\n 'has-submit-button-text-color': attributes.submitButtonTextColor,\n 'has-border-radius': (_attributes$borderRad = attributes.borderRadius) !== null && _attributes$borderRad !== void 0 ? _attributes$borderRad : false,\n 'has-box-shadow': attributes.hasBoxShadow\n }, extraClasses);\n};\n/**\n * Determines if the poll is closed based on its editor settings.\n *\n * @param {string} pollStatus The poll's status, as set in the editor.\n * @param {string} closedAfterDateTimeUTC The UTC date time string to close the poll after if pollStatus is PollStatus.CLOSED_AFTER.\n * @param {Date} currentDateTime Optionally set the current date that will be used for current time comparisons.\n */\n\nvar isPollClosed = function isPollClosed(pollStatus, closedAfterDateTimeUTC) {\n var currentDateTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Date();\n\n if (_constants__WEBPACK_IMPORTED_MODULE_5__[\"PollStatus\"].CLOSED === pollStatus) {\n return true;\n }\n\n if (_constants__WEBPACK_IMPORTED_MODULE_5__[\"PollStatus\"].CLOSED_AFTER === pollStatus) {\n var closedAfterDateTime = new Date(closedAfterDateTimeUTC);\n return closedAfterDateTime < currentDateTime;\n }\n\n return false;\n};\n/**\n * Returns the type of answer controls that should be rendered given the current state of the block.\n *\n * @param {*} attributes the poll's attributes.\n * @param {string} className the css class string Gutenberg is passing into the block.\n */\n\nvar getAnswerStyle = function getAnswerStyle(attributes, className) {\n if (attributes.isMultipleChoice) {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"AnswerStyle\"].RADIO;\n }\n\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isEmpty\"])(className) && className.indexOf('is-style-buttons') > -1) {\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"AnswerStyle\"].BUTTON;\n }\n\n return _constants__WEBPACK_IMPORTED_MODULE_5__[\"AnswerStyle\"].RADIO;\n};\n/**\n * Registers or de-registers the `buttons` block style.\n *\n * @param {boolean} enable True if button style should be available, false if not.\n */\n\nvar toggleButtonStyleAvailability = function toggleButtonStyleAvailability(enable) {\n if (enable) {\n Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__[\"registerBlockStyle\"])('crowdsignal-forms/poll', {\n name: 'buttons',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Buttons', 'crowdsignal-forms')\n });\n } else {\n Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__[\"unregisterBlockStyle\"])('crowdsignal-forms/poll', 'buttons');\n }\n};\n\n//# sourceURL=webpack:///./client/blocks/poll/util.js?");
482
+
483
+ /***/ }),
484
+
485
+ /***/ "./client/blocks/vote-item/attributes.js":
486
+ /*!***********************************************!*\
487
+ !*** ./client/blocks/vote-item/attributes.js ***!
488
+ \***********************************************/
489
+ /*! exports provided: default */
490
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
491
+
492
+ "use strict";
493
+ eval("__webpack_require__.r(__webpack_exports__);\n/*\n * Note: Any changes made to the attributes definition need to be duplicated in\n * Crowdsignal_Forms\\Frontend\\Blocks\\Crowdsignal_Forms_Vote_Item_Block::attributes()\n * inside includes/frontend/blocks/class-crowdsignal-forms-vote-item-block.php.\n */\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n answerId: {\n type: 'string',\n default: null\n },\n type: {\n type: 'string'\n },\n textColor: {\n type: 'string'\n },\n backgroundColor: {\n type: 'string'\n },\n borderColor: {\n type: 'string'\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/vote-item/attributes.js?");
494
+
495
+ /***/ }),
496
+
497
+ /***/ "./client/blocks/vote-item/edit.js":
498
+ /*!*****************************************!*\
499
+ !*** ./client/blocks/vote-item/edit.js ***!
500
+ \*****************************************/
501
+ /*! exports provided: default */
502
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
503
+
504
+ "use strict";
505
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sidebar */ \"./client/blocks/vote-item/sidebar.js\");\n/* harmony import */ var components_with_client_id__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! components/with-client-id */ \"./client/components/with-client-id/index.js\");\n/* harmony import */ var components_vote_vote_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! components/vote/vote-item */ \"./client/components/vote/vote-item.js\");\n/* harmony import */ var components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! components/with-fallback-styles */ \"./client/components/with-fallback-styles/index.js\");\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nvar EditVoteItemBlock = function EditVoteItemBlock(props) {\n var attributes = props.attributes,\n className = props.className,\n fallbackStyles = props.fallbackStyles,\n renderStyleProbe = props.renderStyleProbe;\n 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\"])(_sidebar__WEBPACK_IMPORTED_MODULE_3__[\"default\"], props), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_vote_vote_item__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n attributes: attributes,\n fallbackStyles: fallbackStyles,\n className: className,\n voteCount: 0,\n isInEditor: true,\n type: attributes.type\n }), renderStyleProbe());\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__[\"compose\"])([components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_6__[\"withFallbackStyles\"], Object(components_with_client_id__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(['answerId'])])(EditVoteItemBlock));\n\n//# sourceURL=webpack:///./client/blocks/vote-item/edit.js?");
506
+
507
+ /***/ }),
508
+
509
+ /***/ "./client/blocks/vote-item/index.js":
510
+ /*!******************************************!*\
511
+ !*** ./client/blocks/vote-item/index.js ***!
512
+ \******************************************/
513
+ /*! exports provided: default */
514
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
515
+
516
+ "use strict";
517
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_icon_vote__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/icon/vote */ \"./client/components/icon/vote.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ \"./client/blocks/vote-item/edit.js\");\n/* harmony import */ var _attributes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./attributes */ \"./client/blocks/vote-item/attributes.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Vote Item', 'crowdsignal-forms'),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Allow your audience to rate your work or express their opinion — powered by Crowdsignal.', 'crowdsignal-forms'),\n category: 'crowdsignal-forms',\n parent: ['crowdsignal-forms/vote'],\n icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_icon_vote__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null),\n edit: _edit__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n attributes: _attributes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n});\n\n//# sourceURL=webpack:///./client/blocks/vote-item/index.js?");
518
+
519
+ /***/ }),
520
+
521
+ /***/ "./client/blocks/vote-item/sidebar.js":
522
+ /*!********************************************!*\
523
+ !*** ./client/blocks/vote-item/sidebar.js ***!
524
+ \********************************************/
525
+ /*! exports provided: default */
526
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
527
+
528
+ "use strict";
529
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\nvar SideBar = function SideBar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes;\n\n var handleChangeTextColor = function handleChangeTextColor(textColor) {\n return setAttributes({\n textColor: textColor\n });\n };\n\n var handleChangeBackgroundColor = function handleChangeBackgroundColor(backgroundColor) {\n return setAttributes({\n backgroundColor: backgroundColor\n });\n };\n\n var handleChangeBorderColor = function handleChangeBorderColor(borderColor) {\n return setAttributes({\n borderColor: borderColor\n });\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__[\"InspectorControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__[\"PanelColorSettings\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Styling', 'crowdsignal-forms'),\n initialOpen: true,\n colorSettings: [{\n value: attributes.textColor,\n onChange: handleChangeTextColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Text color', 'crowdsignal-forms')\n }, {\n value: attributes.backgroundColor,\n onChange: handleChangeBackgroundColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Background color', 'crowdsignal-forms')\n }, {\n value: attributes.borderColor,\n onChange: handleChangeBorderColor,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Border color', 'crowdsignal-forms')\n }]\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SideBar);\n\n//# sourceURL=webpack:///./client/blocks/vote-item/sidebar.js?");
530
+
531
+ /***/ }),
532
+
533
+ /***/ "./client/blocks/vote/attributes.js":
534
+ /*!******************************************!*\
535
+ !*** ./client/blocks/vote/attributes.js ***!
536
+ \******************************************/
537
+ /*! exports provided: default */
538
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
539
+
540
+ "use strict";
541
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./client/blocks/vote/constants.js\");\n/*\n * Note: Any changes made to the attributes definition need to be duplicated in\n * Crowdsignal_Forms\\Frontend\\Blocks\\Crowdsignal_Forms_Vote_Block::attributes()\n * inside includes/frontend/blocks/class-crowdsignal-forms-vote-block.php.\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n pollId: {\n type: 'string',\n default: null\n },\n hideBranding: {\n type: 'boolean',\n default: false\n },\n title: {\n type: 'string',\n default: null\n },\n pollStatus: {\n type: 'string',\n default: _constants__WEBPACK_IMPORTED_MODULE_0__[\"PollStatus\"].OPEN\n },\n closedAfterDateTime: {\n type: 'string',\n default: null\n },\n size: {\n type: 'string',\n default: 'medium'\n },\n borderWidth: {\n type: 'number',\n default: 1\n },\n borderRadius: {\n type: 'number',\n default: 5\n },\n hideResults: {\n type: 'boolean',\n default: false\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/vote/attributes.js?");
542
+
543
+ /***/ }),
544
+
545
+ /***/ "./client/blocks/vote/constants.js":
546
+ /*!*****************************************!*\
547
+ !*** ./client/blocks/vote/constants.js ***!
548
+ \*****************************************/
549
+ /*! exports provided: PollStatus, ConnectedAccountState, DEFAULT_SIZE_CONTROLS, POPOVER_PROPS */
550
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
551
+
552
+ "use strict";
553
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PollStatus\", function() { return PollStatus; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ConnectedAccountState\", function() { return ConnectedAccountState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DEFAULT_SIZE_CONTROLS\", function() { return DEFAULT_SIZE_CONTROLS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"POPOVER_PROPS\", function() { return POPOVER_PROPS; });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * WordPress dependencies\n */\n\nvar PollStatus = Object.freeze({\n OPEN: 'open',\n CLOSED: 'closed',\n CLOSED_AFTER: 'closed-after'\n});\nvar ConnectedAccountState = Object.freeze({\n CONNECTED: 'connected',\n NOT_CONNECTED: 'not-connected',\n NOT_VERIFIED: 'not-verified'\n});\nvar DEFAULT_SIZE_CONTROLS = [{\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Small', 'crowdsignal-forms'),\n size: 'small'\n}, {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Medium', 'crowdsignal-forms'),\n size: 'medium'\n}, {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Large', 'crowdsignal-forms'),\n size: 'large'\n}];\nvar POPOVER_PROPS = {\n position: 'bottom right',\n isAlternate: true,\n className: 'crowdsignal-forms-vote__size-dropdown'\n};\n\n//# sourceURL=webpack:///./client/blocks/vote/constants.js?");
554
+
555
+ /***/ }),
556
+
557
+ /***/ "./client/blocks/vote/edit.js":
558
+ /*!************************************!*\
559
+ !*** ./client/blocks/vote/edit.js ***!
560
+ \************************************/
561
+ /*! exports provided: default */
562
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
563
+
564
+ "use strict";
565
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _sidebar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sidebar */ \"./client/blocks/vote/sidebar.js\");\n/* harmony import */ var _toolbar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./toolbar */ \"./client/blocks/vote/toolbar.js\");\n/* harmony import */ var components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! components/connect-to-crowdsignal */ \"./client/components/connect-to-crowdsignal/index.js\");\n/* harmony import */ var components_with_client_id__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! components/with-client-id */ \"./client/components/with-client-id/index.js\");\n/* harmony import */ var blocks_vote_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! blocks/vote/util */ \"./client/blocks/vote/util.js\");\n/* harmony import */ var blocks_poll_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! blocks/poll/util */ \"./client/blocks/poll/util.js\");\n/* harmony import */ var components_use_numbered_title__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! components/use-numbered-title */ \"./client/components/use-numbered-title/index.js\");\n/* harmony import */ var components_with_poll_base__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! components/with-poll-base */ \"./client/components/with-poll-base/index.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n\nvar EditVoteBlock = function EditVoteBlock(props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes,\n className = props.className,\n pollDataFromApi = props.pollDataFromApi;\n Object(components_use_numbered_title__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(props.name, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[\"__\"])('Untitled Vote', 'crowdsignal-forms'), attributes, setAttributes);\n var viewResultsUrl = pollDataFromApi ? pollDataFromApi.viewResultsUrl : '';\n var isClosed = Object(blocks_poll_util__WEBPACK_IMPORTED_MODULE_13__[\"isPollClosed\"])(attributes.pollStatus, attributes.closedAfterDateTime);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, 'crowdsignal-forms-vote', \"size-\".concat(attributes.size), {\n 'no-results': attributes.hideResults,\n 'is-closed': isClosed\n });\n var voteItemStyleVars = Object(blocks_vote_util__WEBPACK_IMPORTED_MODULE_12__[\"getVoteStyleVars\"])(attributes);\n\n var _useAccountInfo = Object(data_hooks__WEBPACK_IMPORTED_MODULE_16__[\"useAccountInfo\"])(),\n accountInfo = _useAccountInfo.accountInfo;\n\n var shouldPromote = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(accountInfo, ['signalCount', 'shouldDisplay']);\n var signalWarning = shouldPromote && Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(accountInfo, ['signalCount', 'count']) >= Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(accountInfo, ['signalCount', 'userLimit']);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_connect_to_crowdsignal__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n blockIcon: null,\n blockName: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[\"__\"])('Crowdsignal Vote', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_sidebar__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {\n shouldPromote: shouldPromote,\n signalWarning: signalWarning,\n viewResultsUrl: viewResultsUrl\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_toolbar__WEBPACK_IMPORTED_MODULE_9__[\"default\"], props), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: classes,\n style: voteItemStyleVars\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-vote__items\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__[\"InnerBlocks\"], {\n template: [['crowdsignal-forms/vote-item', {\n type: 'up'\n }], ['crowdsignal-forms/vote-item', {\n type: 'down'\n }]],\n templateInsertUpdatesSelection: false,\n templateLock: \"insert\",\n allowedBlocks: ['crowdsignal-forms/vote-item'],\n orientation: \"horizontal\",\n __experimentalMoverDirection: \"horizontal\" // required for pre WP 5.5, post 5.5 only requires `orientation` to be set\n\n }))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__[\"compose\"])([components_with_poll_base__WEBPACK_IMPORTED_MODULE_15__[\"default\"], Object(components_with_client_id__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(['pollId'])])(EditVoteBlock));\n\n//# sourceURL=webpack:///./client/blocks/vote/edit.js?");
566
+
567
+ /***/ }),
568
+
569
+ /***/ "./client/blocks/vote/index.js":
570
+ /*!*************************************!*\
571
+ !*** ./client/blocks/vote/index.js ***!
572
+ \*************************************/
573
+ /*! exports provided: default */
574
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
575
+
576
+ "use strict";
577
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var components_icon_vote__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! components/icon/vote */ \"./client/components/icon/vote.js\");\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ \"./client/blocks/vote/edit.js\");\n/* harmony import */ var _attributes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./attributes */ \"./client/blocks/vote/attributes.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n // import './store';\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Vote', 'crowdsignal-forms'),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Allow your audience to rate your work or express their opinion — powered by Crowdsignal.', 'crowdsignal-forms'),\n category: 'crowdsignal-forms',\n keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('ballot', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('button', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('count', 'crowdsignal-forms'), 'crowdsignal', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('deciding', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('decision', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('elect', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('election', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('feedback', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('form', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('like', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('nero', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('opinion', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('poll', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('polling', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('rate', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('rating', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('research', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('survey', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('thumb down', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('thumb up', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('thumbs', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('vote', 'crowdsignal-forms'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('voting', 'crowdsignal-forms')],\n icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_icon_vote__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null),\n edit: _edit__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n save: function save() {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__[\"InnerBlocks\"].Content, null);\n },\n attributes: _attributes__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n example: {\n attributes: {\n className: 'crowdsignal-forms-vote__example',\n size: 'large'\n }\n }\n});\n\n//# sourceURL=webpack:///./client/blocks/vote/index.js?");
578
+
579
+ /***/ }),
580
+
581
+ /***/ "./client/blocks/vote/sidebar.js":
582
+ /*!***************************************!*\
583
+ !*** ./client/blocks/vote/sidebar.js ***!
584
+ \***************************************/
585
+ /*! exports provided: default */
586
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
587
+
588
+ "use strict";
589
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./client/blocks/vote/constants.js\");\n/* harmony import */ var components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/sidebar-promote */ \"./client/components/sidebar-promote/index.js\");\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar SideBar = function SideBar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes,\n viewResultsUrl = _ref.viewResultsUrl,\n signalWarning = _ref.signalWarning,\n shouldPromote = _ref.shouldPromote;\n\n var handleChangeTitle = function handleChangeTitle(title) {\n return setAttributes({\n title: title\n });\n };\n\n var resultsLinkEnabled = '' !== viewResultsUrl;\n\n var handleChangePollStatus = function handleChangePollStatus(pollStatus) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"includes\"])(_constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"], pollStatus)) {\n return;\n } // closedAfterDateTime MUST be set when pollStatus is set to CLOSED_AFTER\n\n\n setAttributes({\n closedAfterDateTime: pollStatus === _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED_AFTER ? new Date(new Date().getTime() + 24 * 60 * 60 * 1000).toISOString() : null,\n pollStatus: pollStatus\n });\n };\n\n var handleChangeCloseAfterDateTime = function handleChangeCloseAfterDateTime(closedAfterDateTime) {\n var dateTime = new Date(closedAfterDateTime);\n setAttributes({\n closedAfterDateTime: dateTime.toISOString()\n });\n };\n\n return 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\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Results', 'crowdsignal-forms'),\n initialOpen: true\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"p\", null, resultsLinkEnabled ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Manage results on ', 'crowdsignal-forms') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Publish this post to enable results on ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"ExternalLink\"], {\n href: \"https://www.crowdsignal.com\"\n }, \"crowdsignal.com\")), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"p\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n href: viewResultsUrl,\n isSecondary: true,\n target: \"_blank\",\n disabled: !resultsLinkEnabled\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('View results', 'crowdsignal-forms'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TextControl\"], {\n value: attributes.title,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Title of the vote block', 'crowdsignal-forms'),\n onChange: handleChangeTitle\n }), shouldPromote && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_sidebar_promote__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n signalWarning: signalWarning\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"PanelBody\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Settings', 'crowdsignal-forms')\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"SelectControl\"], {\n value: attributes.pollStatus,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Status', 'crowdsignal-forms'),\n options: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Open', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].OPEN\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Closed after', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED_AFTER\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Closed', 'crowdsignal-forms'),\n value: _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED\n }],\n onChange: handleChangePollStatus\n }), _constants__WEBPACK_IMPORTED_MODULE_6__[\"PollStatus\"].CLOSED_AFTER === attributes.pollStatus && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"TimePicker\"], {\n currentTime: attributes.closedAfterDateTime,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Close vote block on', 'crowdsignal-forms'),\n onChange: handleChangeCloseAfterDateTime,\n is12Hour: true\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SideBar);\n\n//# sourceURL=webpack:///./client/blocks/vote/sidebar.js?");
590
+
591
+ /***/ }),
592
+
593
+ /***/ "./client/blocks/vote/toolbar.js":
594
+ /*!***************************************!*\
595
+ !*** ./client/blocks/vote/toolbar.js ***!
596
+ \***************************************/
597
+ /*! exports provided: default */
598
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
599
+
600
+ "use strict";
601
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var blocks_vote_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! blocks/vote/constants */ \"./client/blocks/vote/constants.js\");\n/* harmony import */ var components_icon_size__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! components/icon/size */ \"./client/components/icon/size.js\");\n/* harmony import */ var components_icon_border__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! components/icon/border */ \"./client/components/icon/border.js\");\n/* harmony import */ var components_icon_counter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! components/icon/counter */ \"./client/components/icon/counter.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nvar ToolBar = function ToolBar(_ref) {\n var attributes = _ref.attributes,\n setAttributes = _ref.setAttributes;\n var size = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(attributes, 'size', 'medium');\n var sizeControls = blocks_vote_constants__WEBPACK_IMPORTED_MODULE_8__[\"DEFAULT_SIZE_CONTROLS\"];\n\n var handleChangeBorderRadius = function handleChangeBorderRadius(borderRadius) {\n setAttributes({\n borderRadius: parseInt(borderRadius, 10) || 0\n });\n };\n\n var handleChangeBorderWidth = function handleChangeBorderWidth(borderWidth) {\n setAttributes({\n borderWidth: parseInt(borderWidth, 10) || 0\n });\n };\n\n var handleToggleResults = function handleToggleResults() {\n return setAttributes({\n hideResults: !attributes.hideResults\n });\n };\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),\n isPopoverVisible = _useState2[0],\n setPopoverVisible = _useState2[1];\n\n var handlePopoverVisible = function handlePopoverVisible() {\n return setPopoverVisible(!isPopoverVisible);\n };\n\n var toggleResultsLabel = attributes.hideResults ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Show vote counters', 'crowdsignal-forms') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Hide vote counters', 'crowdsignal-forms');\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__[\"BlockControls\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"ToolbarGroup\"], {\n isCollapsed: true,\n icon: components_icon_size__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Change block size', 'crowdsignal-forms'),\n popoverProps: blocks_vote_constants__WEBPACK_IMPORTED_MODULE_8__[\"POPOVER_PROPS\"],\n controls: sizeControls.map(function (control) {\n var controlSize = control.size;\n var isActive = size === controlSize;\n return _objectSpread({}, control, {\n isActive: isActive,\n role: 'menuitemradio',\n onClick: function onClick() {\n return setAttributes({\n size: controlSize\n });\n }\n });\n })\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"Toolbar\"], {\n controls: [{\n icon: components_icon_border__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n onClick: handlePopoverVisible\n }, {\n icon: components_icon_counter__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n label: toggleResultsLabel,\n onClick: handleToggleResults,\n isActive: !attributes.hideResults,\n // Pre gutenberg 8\n isPressed: !attributes.hideResults\n }]\n }), isPopoverVisible && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"Popover\"], {\n className: \"crowdsignal-forms__border-popover\",\n onFocusOutside: handlePopoverVisible\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__row\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Border thickness', 'crowdsignal-forms'),\n type: \"number\",\n className: \"crowdsignal-forms__small-text-input\",\n onChange: handleChangeBorderWidth,\n value: attributes.borderWidth || 0\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__[\"TextControl\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])('Corner radius', 'crowdsignal-forms'),\n type: \"number\",\n className: \"crowdsignal-forms__small-text-input\",\n onChange: handleChangeBorderRadius,\n value: attributes.borderRadius || 0\n }))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ToolBar);\n\n//# sourceURL=webpack:///./client/blocks/vote/toolbar.js?");
602
+
603
+ /***/ }),
604
+
605
+ /***/ "./client/blocks/vote/util.js":
606
+ /*!************************************!*\
607
+ !*** ./client/blocks/vote/util.js ***!
608
+ \************************************/
609
+ /*! exports provided: getVoteStyleVars, getVoteItemStyleVars, getBlockCssClasses */
610
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
611
+
612
+ "use strict";
613
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getVoteStyleVars\", function() { return getVoteStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getVoteItemStyleVars\", function() { return getVoteItemStyleVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBlockCssClasses\", function() { return getBlockCssClasses; });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\nvar getVoteStyleVars = function getVoteStyleVars(attributes) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"mapKeys\"])({\n borderRadius: \"\".concat(attributes.borderRadius, \"px\"),\n borderWidth: \"\".concat(attributes.borderWidth, \"px\")\n }, function (_, key) {\n return \"--crowdsignal-forms-vote-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"kebabCase\"])(key));\n });\n};\nvar getVoteItemStyleVars = function getVoteItemStyleVars(attributes, fallbackStyles) {\n var textColor = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(attributes.textColor) ? fallbackStyles.textColor : attributes.textColor;\n var backgroundColor = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(attributes.backgroundColor) ? fallbackStyles.backgroundColor : attributes.backgroundColor;\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"mapKeys\"])({\n borderColor: attributes.borderColor,\n bgColor: backgroundColor,\n textColor: textColor,\n votedColor: fallbackStyles.accentColor\n }, function (_, key) {\n return \"--crowdsignal-forms-vote-\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"kebabCase\"])(key));\n });\n};\n/**\n * Returns a css 'class' string of overridden styles given a collection of attributes.\n *\n * @param {*} attributes The block's attributes\n * @param {...any} extraClasses A list of additional classes to add to the class string\n */\n\nvar getBlockCssClasses = function getBlockCssClasses(attributes) {\n for (var _len = arguments.length, extraClasses = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n extraClasses[_key - 1] = arguments[_key];\n }\n\n return classnames__WEBPACK_IMPORTED_MODULE_0___default()({\n 'has-bg-color': attributes.backgroundColor,\n 'has-text-color': attributes.textColor,\n 'has-border-color': attributes.borderColor\n }, extraClasses);\n};\n\n//# sourceURL=webpack:///./client/blocks/vote/util.js?");
614
+
615
+ /***/ }),
616
+
617
+ /***/ "./client/components/applause/animation.js":
618
+ /*!*************************************************!*\
619
+ !*** ./client/components/applause/animation.js ***!
620
+ \*************************************************/
621
+ /*! exports provided: default */
622
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
623
+
624
+ "use strict";
625
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\n\n\n/**\n * External dependencies\n */\n\n\n\nvar ApplauseAnimation = function ApplauseAnimation(_ref) {\n var active = _ref.active,\n className = _ref.className;\n var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('crowdsignal-forms-applause__animation', className, {\n 'is-active': active\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n className: classes,\n width: \"32\",\n height: \"32\",\n viewBox: \"0 0 32 32\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-right\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n className: \"crowdsignal-forms-applause__animation-inner-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813ZM23.6104 16.605L22.538 10.5434L22.0547 10.6502L21.4234 15.0093L13.8574 9.48855C13.8574 9.48855 13.4691 9.4034 13.349 9.56801C13.2288 9.73262 13.2638 9.95632 13.4284 10.0764L17.667 13.1693L16.8091 14.345L11.2301 10.2742C11.0655 10.1541 10.8418 10.189 10.7217 10.3536C10.6016 10.5182 10.6365 10.7419 10.8012 10.862L16.3802 14.9329L15.5222 16.1087L10.4782 12.4282C10.3136 12.3081 10.0899 12.343 9.96978 12.5076C9.84967 12.6722 9.88463 12.8959 10.0492 13.0161L15.0933 16.6966L14.2353 17.8723L10.7962 15.3629C10.6316 15.2428 10.4079 15.2777 10.2878 15.4423C10.1677 15.607 10.2027 15.8307 10.3673 15.9508L18.5094 21.8919C19.1561 22.3638 20.0713 22.2207 20.5431 21.5741L23.3571 17.7175C23.5888 17.4001 23.6766 16.9957 23.6104 16.605Z\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-left\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n className: \"crowdsignal-forms-applause__animation-inner-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813ZM20.3108 16.805L19.2384 10.7434L18.7551 10.8502L18.1239 15.2093L10.5578 9.68854C10.5578 9.68854 10.1695 9.6034 10.0494 9.76801C9.92928 9.93261 9.96425 10.1563 10.1289 10.2764L14.3675 13.3692L13.5096 14.545L7.93056 10.4742C7.76595 10.354 7.54224 10.389 7.42213 10.5536C7.30202 10.7182 7.33699 10.9419 7.50159 11.062L13.0806 15.1329L12.2227 16.3087L7.17864 12.6282C7.01403 12.5081 6.79033 12.543 6.67022 12.7076C6.55011 12.8722 6.58507 13.0959 6.74968 13.216L11.7937 16.8965L10.9358 18.0723L7.49667 15.5629C7.33206 15.4428 7.10836 15.4777 6.98825 15.6423C6.86814 15.8069 6.9031 16.0307 7.06771 16.1508L15.2099 22.0919C15.8566 22.5638 16.7717 22.4207 17.2436 21.7741L20.0576 17.9175C20.2892 17.6001 20.3771 17.1957 20.3108 16.805Z\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-wave-small\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"15.4854\",\n y: \"4.42176\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(8 15.4854 4.42176)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"19.9369\",\n y: \"5.15548\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(43 19.9369 5.15548)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"11.1523\",\n y: \"4.78963\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(-27 11.1523 4.78963)\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n className: \"crowdsignal-forms-applause__animation-wave-large\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"23.453\",\n y: \"2.41095\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(38 23.453 2.41095)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"26.9413\",\n y: \"5.27211\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(73 26.9413 5.27211)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"19.5165\",\n y: \"0.562988\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(3 19.5165 0.562988)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"1.5\",\n height: \"3\",\n transform: \"matrix(-0.788011 0.615662 0.615662 0.788011 8.52597 2.41095)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"1.5\",\n height: \"3\",\n transform: \"matrix(-0.292372 0.956305 0.956305 0.292372 5.03775 5.27211)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"1.5\",\n height: \"3\",\n transform: \"matrix(-0.99863 0.052336 0.052336 0.99863 12.4625 0.562988)\"\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ApplauseAnimation);\n\n//# sourceURL=webpack:///./client/components/applause/animation.js?");
626
+
627
+ /***/ }),
628
+
629
+ /***/ "./client/components/applause/index.js":
630
+ /*!*********************************************!*\
631
+ !*** ./client/components/applause/index.js ***!
632
+ \*********************************************/
633
+ /*! exports provided: default */
634
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
635
+
636
+ "use strict";
637
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var blocks_poll_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! blocks/poll/util */ \"./client/blocks/poll/util.js\");\n/* harmony import */ var blocks_applause_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! blocks/applause/util */ \"./client/blocks/applause/util.js\");\n/* harmony import */ var components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! components/with-fallback-styles */ \"./client/components/with-fallback-styles/index.js\");\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var components_vote_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! components/vote/util */ \"./client/components/vote/util.js\");\n/* harmony import */ var components_brand_link__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! components/brand-link */ \"./client/components/brand-link/index.js\");\n/* harmony import */ var _animation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./animation */ \"./client/components/applause/animation.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\nvar Applause = function Applause(props) {\n var attributes = props.attributes,\n fallbackStyles = props.fallbackStyles,\n renderStyleProbe = props.renderStyleProbe;\n var apiPollId = attributes.apiPollData ? attributes.apiPollData.id : null;\n\n var _usePollVote = Object(data_hooks__WEBPACK_IMPORTED_MODULE_8__[\"usePollVote\"])(apiPollId, true),\n hasVoted = _usePollVote.hasVoted,\n vote = _usePollVote.vote;\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(0),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n currentVote = _useState2[0],\n setCurrentVote = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(0),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3, 2),\n queuedVotes = _useState4[0],\n setQueuedVotes = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(null),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState5, 2),\n timeoutHandle = _useState6[0],\n setTimeoutHandle = _useState6[1];\n\n var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(false),\n _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState7, 2),\n animationActiveState = _useState8[0],\n setAnimationActiveState = _useState8[1];\n\n var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(null),\n _useState10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState9, 2),\n animationTimeoutHandle = _useState10[0],\n setAnimationTimeoutHandle = _useState10[1];\n\n var _usePollResults = Object(data_hooks__WEBPACK_IMPORTED_MODULE_8__[\"usePollResults\"])(apiPollId),\n results = _usePollResults.results;\n\n var isClosed = Object(blocks_poll_util__WEBPACK_IMPORTED_MODULE_5__[\"isPollClosed\"])(attributes.pollStatus, attributes.closedAfterDateTime);\n\n var handleVote = function handleVote() {\n if (apiPollId === null || isClosed) {\n return;\n }\n\n if (animationTimeoutHandle) {\n clearTimeout(animationTimeoutHandle);\n }\n\n setAnimationActiveState(true);\n setAnimationTimeoutHandle(setTimeout(function () {\n setAnimationActiveState(false);\n }, 200));\n var newQueuedVoteCount = queuedVotes + 1;\n setQueuedVotes(newQueuedVoteCount);\n setCurrentVote(currentVote + 1);\n var answerId = attributes.apiPollData.answers[0].id;\n\n if (null !== timeoutHandle) {\n clearTimeout(timeoutHandle);\n }\n\n var handle = setTimeout(function () {\n vote([answerId], newQueuedVoteCount);\n setTimeoutHandle(null);\n setQueuedVotes(0);\n }, 1000);\n setTimeoutHandle(handle);\n };\n\n var classes = Object(blocks_applause_util__WEBPACK_IMPORTED_MODULE_6__[\"getBlockCssClasses\"])(attributes, 'crowdsignal-forms-applause', attributes.className, \"size-\".concat(attributes.size), {\n 'is-closed': isClosed\n });\n var styleVars = Object(blocks_applause_util__WEBPACK_IMPORTED_MODULE_6__[\"getApplauseStyleVars\"])(attributes, fallbackStyles);\n var apiVoteCount = null !== results ? Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"values\"])(results)[0] : 0;\n var displayedVoteCount = apiVoteCount + currentVote;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"Fragment\"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: classes,\n style: styleVars,\n onClick: handleVote,\n onKeyPress: handleVote,\n role: \"button\",\n tabIndex: 0\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_animation__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n active: animationActiveState\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"p\", {\n className: \"crowdsignal-forms-applause__count\"\n }, Object(components_vote_util__WEBPACK_IMPORTED_MODULE_9__[\"formatVoteCount\"])(displayedVoteCount), \" Claps\"), renderStyleProbe()), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(components_brand_link__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n showBranding: hasVoted && !attributes.hideBranding,\n referralCode: \"cs-forms-applause\"\n }));\n};\n\nApplause.propTypes = {\n className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(components_with_fallback_styles__WEBPACK_IMPORTED_MODULE_7__[\"withFallbackStyles\"])(Applause));\n\n//# sourceURL=webpack:///./client/components/applause/index.js?");
638
+
639
+ /***/ }),
640
+
641
+ /***/ "./client/components/block-alignment-control/constants.js":
642
+ /*!****************************************************************!*\
643
+ !*** ./client/components/block-alignment-control/constants.js ***!
644
+ \****************************************************************/
645
+ /*! exports provided: GRID */
646
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
647
+
648
+ "use strict";
649
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GRID\", function() { return GRID; });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * WordPress dependencies\n */\n\nvar GRID = {\n '2x2': {\n rows: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Top\", 'crowdsignal-forms'),\n value: 'top'\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Bottom\", 'crowdsignal-forms'),\n value: 'bottom'\n }],\n columns: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Left\", 'crowdsignal-forms'),\n value: 'left'\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Right\", 'crowdsignal-forms'),\n value: 'right'\n }]\n },\n '2x3': {\n rows: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Top\", 'crowdsignal-forms'),\n value: 'top'\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Center\", 'crowdsignal-forms'),\n value: 'center'\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Bottom\", 'crowdsignal-forms'),\n value: 'bottom'\n }],\n columns: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Left\", 'crowdsignal-forms'),\n value: 'left'\n }, {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])(\"Right\", 'crowdsignal-forms'),\n value: 'right'\n }]\n }\n};\n\n//# sourceURL=webpack:///./client/components/block-alignment-control/constants.js?");
650
+
651
+ /***/ }),
652
+
653
+ /***/ "./client/components/block-alignment-control/grid-button.js":
654
+ /*!******************************************************************!*\
655
+ !*** ./client/components/block-alignment-control/grid-button.js ***!
656
+ \******************************************************************/
657
+ /*! exports provided: default */
658
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
659
+
660
+ "use strict";
661
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var reakit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! reakit */ \"./node_modules/reakit/es/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n\nvar BlockAlignmentControlGridButton = function BlockAlignmentControlGridButton(_ref) {\n var isActive = _ref.isActive,\n column = _ref.column,\n onSelect = _ref.onSelect,\n row = _ref.row,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"isActive\", \"column\", \"onSelect\", \"row\"]);\n\n var label = \"\".concat(row.label, \" \").concat(column.label);\n var handleSelect = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useCallback\"])(function () {\n onSelect(row.value, column.value);\n }, [onSelect, row.value, column.value]);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_5___default()('crowdsignal-forms__block-alignment-control-button', {\n 'is-active': isActive\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__[\"Tooltip\"], {\n text: label\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(reakit__WEBPACK_IMPORTED_MODULE_4__[\"CompositeItem\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n className: classes,\n role: \"gridcell\",\n onFocus: handleSelect\n }, props), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__[\"VisuallyHidden\"], null, label)));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockAlignmentControlGridButton);\n\n//# sourceURL=webpack:///./client/components/block-alignment-control/grid-button.js?");
662
+
663
+ /***/ }),
664
+
665
+ /***/ "./client/components/block-alignment-control/grid.js":
666
+ /*!***********************************************************!*\
667
+ !*** ./client/components/block-alignment-control/grid.js ***!
668
+ \***********************************************************/
669
+ /*! exports provided: default */
670
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
671
+
672
+ "use strict";
673
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var reakit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! reakit */ \"./node_modules/reakit/es/index.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _grid_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./grid-button */ \"./client/components/block-alignment-control/grid-button.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar getButtonId = function getButtonId(prefix, row, column) {\n return \"\".concat(prefix, \"-\").concat(row, \"-\").concat(column);\n};\n\nfunction BlockAlignmentControlGrid(_ref) {\n var columns = _ref.columns,\n onChange = _ref.onChange,\n rows = _ref.rows,\n value = _ref.value;\n var baseId = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__[\"useInstanceId\"])(BlockAlignmentControlGrid, 'block-alignment-control-grid');\n var composite = Object(reakit__WEBPACK_IMPORTED_MODULE_3__[\"useCompositeState\"])({\n baseId: baseId,\n currentId: getButtonId(baseId, value.row, value.column),\n rtl: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"isRTL\"])()\n });\n Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useEffect\"])(function () {\n composite.setCurrentId(getButtonId(baseId, value.row, value.column));\n }, [value, composite.setCurrentId]);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(reakit__WEBPACK_IMPORTED_MODULE_3__[\"Composite\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, composite, {\n className: \"crowdsignal-forms__block-alignment-control-grid\"\n }), Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"map\"])(rows, function (row) {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(reakit__WEBPACK_IMPORTED_MODULE_3__[\"CompositeGroup\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, composite, {\n key: \"\".concat(baseId, \"-\").concat(row.value),\n role: \"row\",\n className: \"crowdsignal-forms__block-alignment-control-row\"\n }), Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"map\"])(columns, function (column) {\n var id = getButtonId(baseId, row.value, column.value);\n var isActive = composite.currentId === getButtonId(baseId, row.value, column.value);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(_grid_button__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, composite, {\n id: id,\n key: id,\n isActive: isActive,\n row: row,\n column: column,\n onSelect: onChange,\n tabIndex: isActive ? 0 : -1\n }));\n }));\n }));\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockAlignmentControlGrid);\n\n//# sourceURL=webpack:///./client/components/block-alignment-control/grid.js?");
674
+
675
+ /***/ }),
676
+
677
+ /***/ "./client/components/block-alignment-control/icon.js":
678
+ /*!***********************************************************!*\
679
+ !*** ./client/components/block-alignment-control/icon.js ***!
680
+ \***********************************************************/
681
+ /*! exports provided: default */
682
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
683
+
684
+ "use strict";
685
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n\n\n/**\n * External dependencies\n */\n\n\n\n\nvar BlockAlignmentControlIcon = function BlockAlignmentControlIcon(_ref) {\n var rows = _ref.rows,\n columns = _ref.columns,\n value = _ref.value;\n var spanKeyNum = 0;\n var divKeyNum = 0;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__block-alignment-control-icon\"\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"map\"])(rows, function (row) {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n key: divKeyNum++,\n className: \"crowdsignal-forms__block-alignment-control-icon-row\"\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"map\"])(columns, function (column) {\n var isActive = row.value === value.row && column.value === value.column;\n var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('crowdsignal-forms__block-alignment-control-icon-dot', {\n 'is-active': isActive\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n key: spanKeyNum++,\n className: classes\n });\n }));\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockAlignmentControlIcon);\n\n//# sourceURL=webpack:///./client/components/block-alignment-control/icon.js?");
686
+
687
+ /***/ }),
688
+
689
+ /***/ "./client/components/block-alignment-control/index.js":
690
+ /*!************************************************************!*\
691
+ !*** ./client/components/block-alignment-control/index.js ***!
692
+ \************************************************************/
693
+ /*! exports provided: default, GRID */
694
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
695
+
696
+ "use strict";
697
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/keycodes */ \"@wordpress/keycodes\");\n/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./grid */ \"./client/components/block-alignment-control/grid.js\");\n/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./icon */ \"./client/components/block-alignment-control/icon.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./client/components/block-alignment-control/constants.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GRID\", function() { return _constants__WEBPACK_IMPORTED_MODULE_8__[\"GRID\"]; });\n\n\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar BlockAlignmentControl = function BlockAlignmentControl(_ref) {\n var closeOnSelectionChanged = _ref.closeOnSelectionChanged,\n disabled = _ref.disabled,\n label = _ref.label,\n onChange = _ref.onChange,\n rows = _ref.rows,\n columns = _ref.columns,\n value = _ref.value;\n var toolbarIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_icon__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n rows: rows,\n columns: columns,\n value: value\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Dropdown\"], {\n className: \"crowdsignal-forms__block-alignment-control\",\n popoverProps: {\n className: 'crowdsignal-forms__block-alignment-control-popover'\n },\n renderToggle: function renderToggle(_ref2) {\n var onToggle = _ref2.onToggle,\n isOpen = _ref2.isOpen;\n\n var openOnArrowDown = function openOnArrowDown(event) {\n if (isOpen || event.keyCode !== _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__[\"DOWN\"]) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n onToggle();\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Tooltip\"], {\n text: label\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"ToolbarButton\"], {\n showTooltip: true,\n \"aria-haspopup\": \"true\",\n \"aria-expanded\": isOpen,\n disabled: disabled,\n icon: toolbarIcon,\n onClick: onToggle,\n onKeyDown: openOnArrowDown\n }));\n },\n renderContent: function renderContent(_ref3) {\n var onClose = _ref3.onClose;\n\n var handleChange = function handleChange(row, column) {\n onChange(row, column);\n\n if (closeOnSelectionChanged && (value.row !== row || value.column !== column)) {\n onClose();\n }\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_grid__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n onChange: handleChange,\n rows: rows,\n columns: columns,\n value: value\n });\n }\n });\n};\n\nBlockAlignmentControl.defaultProps = {\n closeOnSelectionChanged: false,\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Change block position', 'crowdsignal-forms'),\n onChange: lodash__WEBPACK_IMPORTED_MODULE_2__[\"noop\"]\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlockAlignmentControl);\n\n\n//# sourceURL=webpack:///./client/components/block-alignment-control/index.js?");
698
+
699
+ /***/ }),
700
+
701
+ /***/ "./client/components/brand-link/index.js":
702
+ /*!***********************************************!*\
703
+ !*** ./client/components/brand-link/index.js ***!
704
+ \***********************************************/
705
+ /*! exports provided: default */
706
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
707
+
708
+ "use strict";
709
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n\n\n/**\n * External dependencies\n */\n\n\n\n\nvar BrandLink = function BrandLink(_ref) {\n var showBranding = _ref.showBranding,\n referralCode = _ref.referralCode;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__branding\"\n }, showBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"a\", {\n className: \"crowdsignal-forms__branding-link with-external-icon\",\n href: \"https://crowdsignal.com?ref=\".concat(referralCode),\n target: \"blank\",\n rel: \"noopener noreferrer\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Powered by Crowdsignal', 'crowdsignal-forms')), !showBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n className: \"crowdsignal-forms__branding-link\"\n }, \"\\xA0\"));\n};\n\nBrandLink.propTypes = {\n showBranding: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n referralCode: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (BrandLink);\n\n//# sourceURL=webpack:///./client/components/brand-link/index.js?");
710
+
711
+ /***/ }),
712
+
713
+ /***/ "./client/components/connect-to-crowdsignal/index.js":
714
+ /*!***********************************************************!*\
715
+ !*** ./client/components/connect-to-crowdsignal/index.js ***!
716
+ \***********************************************************/
717
+ /*! exports provided: default */
718
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
719
+
720
+ "use strict";
721
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var lib_tracks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lib/tracks */ \"./client/lib/tracks.js\");\n\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar ConnectToCrowdsignal = function ConnectToCrowdsignal(props) {\n var blockIcon = props.blockIcon,\n blockName = props.blockName,\n children = props.children;\n\n var _useAccountInfo = Object(data_hooks__WEBPACK_IMPORTED_MODULE_6__[\"useAccountInfo\"])(),\n accountInfo = _useAccountInfo.accountInfo,\n reloadAccountInfo = _useAccountInfo.reloadAccountInfo;\n\n var isConnected = accountInfo && accountInfo.id !== 0;\n var isAccountVerified = !!accountInfo.is_verified;\n var currentUser = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__[\"useSelect\"])(function (select) {\n return select('core').getCurrentUser();\n });\n\n var handleConnectClick = /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {\n var initialConnectedState, newAccountInfo, isNowConnected, isNowVerified;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n initialConnectedState = isConnected;\n _context.next = 3;\n return reloadAccountInfo();\n\n case 3:\n newAccountInfo = _context.sent;\n isNowConnected = newAccountInfo.id !== 0;\n isNowVerified = !!newAccountInfo.is_verified;\n\n if (!isNowConnected) {\n window.open('/wp-admin/options-general.php?page=crowdsignal-forms-settings');\n } // Don't pop open the email window if the connection state just changed.\n // Allow the new placeholder to be displayed first.\n\n\n if (initialConnectedState && !isNowVerified) {\n window.open('https://wordpress.com/me/account');\n }\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function handleConnectClick() {\n return _ref.apply(this, arguments);\n };\n }();\n\n if (isConnected && isAccountVerified) {\n return children;\n }\n\n var showConnectionMessage = !isConnected;\n var showVerificationMessage = isConnected && !isAccountVerified;\n Object(lib_tracks__WEBPACK_IMPORTED_MODULE_7__[\"trackFailedConnection\"])(currentUser && currentUser.id ? currentUser.id : 0, blockName);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__connect-to-crowdsignal\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__connect-to-crowdsignal-header\"\n }, blockIcon, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__connect-to-crowdsignal-title\"\n }, blockName)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__connect-to-crowdsignal-body\"\n }, showConnectionMessage && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('You need to connect to a Crowdsignal account to collect and manage your results.', 'crowdsignal-forms'), showVerificationMessage && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Please verify your WordPress.com email address in order to publish your poll.', 'crowdsignal-forms')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Button\"], {\n isPrimary: true,\n onClick: handleConnectClick\n }, showConnectionMessage && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Connect to Crowdsignal', 'crowdsignal-forms'), showVerificationMessage && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Verify or Change your Email Address', 'crowdsignal-forms')));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ConnectToCrowdsignal);\n\n//# sourceURL=webpack:///./client/components/connect-to-crowdsignal/index.js?");
722
+
723
+ /***/ }),
724
+
725
+ /***/ "./client/components/editor-notice/index.js":
726
+ /*!**************************************************!*\
727
+ !*** ./client/components/editor-notice/index.js ***!
728
+ \**************************************************/
729
+ /*! exports provided: default */
730
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
731
+
732
+ "use strict";
733
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n/**\n * WordPress dependencies\n */\n\n\nvar EditorNotice = function EditorNotice(_ref) {\n var icon = _ref.icon,\n children = _ref.children,\n _ref$componentActions = _ref.componentActions,\n componentActions = _ref$componentActions === void 0 ? [] : _ref$componentActions,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"icon\", \"children\", \"componentActions\"]);\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Notice\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n className: \"crowdsignal-forms__editor-notice\"\n }, props), icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__editor-notice-icon\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__[\"Icon\"], {\n icon: icon\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__editor-notice-text\"\n }, children), componentActions.map(function (component) {\n return component;\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditorNotice);\n\n//# sourceURL=webpack:///./client/components/editor-notice/index.js?");
734
+
735
+ /***/ }),
736
+
737
+ /***/ "./client/components/feedback/util.js":
738
+ /*!********************************************!*\
739
+ !*** ./client/components/feedback/util.js ***!
740
+ \********************************************/
741
+ /*! exports provided: getFeedbackButtonPosition */
742
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
743
+
744
+ "use strict";
745
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFeedbackButtonPosition\", function() { return getFeedbackButtonPosition; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\nvar addFrameOffsets = function addFrameOffsets(offset, frame) {\n return {\n left: offset.left + frame.x + window.scrollX,\n right: offset.right + (window.innerWidth > frame.left + frame.width ? window.innerWidth - frame.left - frame.width : 0),\n top: offset.top + frame.y + window.scrollY,\n bottom: offset.bottom + (window.innerHeight > frame.top + frame.height ? window.innerHeight - frame.top - frame.height : 0)\n };\n};\n\nvar getFeedbackButtonHorizontalPosition = function getFeedbackButtonHorizontalPosition(align, width, offset) {\n return {\n left: align === 'left' ? offset.left : null,\n right: align === 'right' ? offset.right : null\n };\n};\n\nvar getFeedbackButtonVerticalPosition = function getFeedbackButtonVerticalPosition(verticalAlign, height, offset) {\n if (verticalAlign === 'center') {\n return {\n top: (window.innerHeight - height) / 2,\n bottom: null\n };\n }\n\n return {\n top: verticalAlign === 'top' ? offset.top : null,\n bottom: verticalAlign === 'bottom' ? offset.bottom : null\n };\n};\n\nvar getFeedbackButtonPosition = function getFeedbackButtonPosition(align, verticalAlign, width, height, padding) {\n var frameElement = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;\n var offset = {\n left: Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isObject\"])(padding) ? padding.left : padding,\n right: Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isObject\"])(padding) ? padding.right : padding,\n top: Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isObject\"])(padding) ? padding.top : padding,\n bottom: Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isObject\"])(padding) ? padding.bottom : padding\n };\n\n if (frameElement) {\n offset = addFrameOffsets(offset, frameElement.getBoundingClientRect());\n }\n\n return _objectSpread({}, getFeedbackButtonHorizontalPosition(align, width, offset), {}, getFeedbackButtonVerticalPosition(verticalAlign, height, offset));\n};\n\n//# sourceURL=webpack:///./client/components/feedback/util.js?");
746
+
747
+ /***/ }),
748
+
749
+ /***/ "./client/components/footer-branding/index.js":
750
+ /*!****************************************************!*\
751
+ !*** ./client/components/footer-branding/index.js ***!
752
+ \****************************************************/
753
+ /*! exports provided: default */
754
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
755
+
756
+ "use strict";
757
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n\n\n/**\n * WordPress dependencies\n */\n\n\nvar promoteLink = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", null, \"Hide Crowdsignal ads\", Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"br\", null), \"and get unlimited\", Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"br\", null), \"signals -\", ' ', Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"a\", {\n href: \"https://crowdsignal.com/pricing\",\n target: \"_blank\",\n rel: \"noopener noreferrer\"\n}, \"Upgrade\"));\n\nvar FooterBranding = function FooterBranding(_ref) {\n var showLogo = _ref.showLogo,\n editing = _ref.editing,\n message = _ref.message,\n _ref$trackRef = _ref.trackRef,\n trackRef = _ref$trackRef === void 0 ? 'cs-forms-poll' : _ref$trackRef;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__footer-branding\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"a\", {\n className: \"crowdsignal-forms__footer-cs-link\",\n href: 'https://crowdsignal.com?ref=' + trackRef,\n target: \"_blank\",\n rel: \"noopener noreferrer\"\n }, message || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Create your own poll with Crowdsignal', 'crowdsignal-forms')), editing && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"Tooltip\"], {\n text: promoteLink,\n position: \"top center\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"a\", {\n href: \"https://crowdsignal.com/pricing\",\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n className: \"crowdsignal-forms__branding-promote\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Hide', 'crowdsignal-forms'))), showLogo && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"a\", {\n href: 'https://crowdsignal.com?ref=' + trackRef,\n target: \"_blank\",\n rel: \"noopener noreferrer\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"img\", {\n className: \"crowdsignal-forms__footer-branding-logo\",\n src: \"https://app.crowdsignal.com/images/svg/cs-logo-dots.svg\",\n alt: \"Crowdsignal sticker\"\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (FooterBranding);\n\n//# sourceURL=webpack:///./client/components/footer-branding/index.js?");
758
+
759
+ /***/ }),
760
+
761
+ /***/ "./client/components/icon/applause.js":
762
+ /*!********************************************!*\
763
+ !*** ./client/components/icon/applause.js ***!
764
+ \********************************************/
765
+ /*! exports provided: default */
766
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
767
+
768
+ "use strict";
769
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/**\n * External dependencies\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n clipPath: \"url(#clip0)\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"24\",\n height: \"24\",\n fill: \"white\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M21.5284 16.5813L18.7187 20.432C17.7707 21.7312 15.9506 22.0157 14.6513 21.0676L6.50915 15.1265C5.69788 14.5345 5.51988 13.3957 6.11185 12.5844C6.18478 12.4845 6.26946 12.3931 6.35573 12.3119L6.19112 12.1918C5.37984 11.5998 5.20185 10.461 5.79382 9.64968C5.93538 9.45568 6.10792 9.29329 6.30287 9.17428C6.1079 8.62662 6.17683 8.00125 6.54574 7.49567C7.11197 6.71967 8.18077 6.52659 8.98362 7.03133C9.03891 6.91852 9.10007 6.81 9.173 6.71006C9.76497 5.89878 10.9038 5.72079 11.7151 6.31276L17.3294 10.4094L17.6107 8.44349C17.6946 7.84704 18.1496 7.35925 18.7389 7.23069L20.7027 6.79878L22.045 14.3547C22.1819 15.1302 21.9917 15.9464 21.5284 16.5813ZM20.61 14.605L19.5377 8.54337L19.0543 8.65016L18.4231 13.0093L10.857 7.48855C10.857 7.48855 10.4687 7.4034 10.3486 7.56801C10.2285 7.73262 10.2635 7.95632 10.4281 8.07643L14.6667 11.1693L13.8088 12.345L8.22979 8.27416C8.06518 8.15405 7.84147 8.18902 7.72136 8.35362C7.60126 8.51823 7.63622 8.74194 7.80082 8.86204L13.3798 12.9329L12.5219 14.1087L7.47787 10.4282C7.31327 10.3081 7.08956 10.343 6.96945 10.5076C6.84934 10.6722 6.8843 10.8959 7.04891 11.0161L12.0929 14.6966L11.235 15.8723L7.7959 13.3629C7.6313 13.2428 7.40759 13.2777 7.28748 13.4423C7.16737 13.607 7.20233 13.8307 7.36694 13.9508L15.5091 19.8919C16.1558 20.3638 17.0709 20.2207 17.5428 19.5741L20.3568 15.7175C20.5884 15.4001 20.6763 14.9957 20.61 14.605Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813Z\",\n fill: \"white\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813ZM17.3105 14.805L16.2381 8.74337L15.7548 8.85016L15.1235 13.2093L7.55749 7.68854C7.55749 7.68854 7.16918 7.6034 7.04907 7.76801C6.92896 7.93261 6.96392 8.15632 7.12853 8.27643L11.3672 11.3692L10.5092 12.545L4.93023 8.47416C4.76562 8.35405 4.54191 8.38901 4.4218 8.55362C4.3017 8.71823 4.33666 8.94193 4.50126 9.06204L10.0803 13.1329L9.22235 14.3087L4.17831 10.6282C4.0137 10.5081 3.79 10.543 3.66989 10.7076C3.54978 10.8722 3.58474 11.0959 3.74935 11.216L8.79338 14.8965L7.93546 16.0723L4.49634 13.5629C4.33173 13.4428 4.10803 13.4777 3.98792 13.6423C3.86781 13.8069 3.90277 14.0307 4.06738 14.1508L12.2096 20.0919C12.8562 20.5638 13.7714 20.4207 14.2432 19.7741L17.0572 15.9175C17.2889 15.6001 17.3767 15.1957 17.3105 14.805Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"12.4851\",\n y: \"1.42175\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(8 12.4851 1.42175)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"16.9365\",\n y: \"2.15547\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(43 16.9365 2.15547)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"8.15195\",\n y: \"1.78963\",\n width: \"1.5\",\n height: \"3\",\n transform: \"rotate(-27 8.15195 1.78963)\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"defs\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"clipPath\", {\n id: \"clip0\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"24\",\n height: \"24\",\n fill: \"white\"\n }))));\n});\n\n//# sourceURL=webpack:///./client/components/icon/applause.js?");
770
+
771
+ /***/ }),
772
+
773
+ /***/ "./client/components/icon/border.js":
774
+ /*!******************************************!*\
775
+ !*** ./client/components/icon/border.js ***!
776
+ \******************************************/
777
+ /*! exports provided: default */
778
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
779
+
780
+ "use strict";
781
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"32\",\n height: \"32\",\n viewBox: \"0 0 32 32\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"line\", {\n x1: \"8\",\n y1: \"8.5\",\n x2: \"24\",\n y2: \"8.5\",\n stroke: \"currentColor\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"line\", {\n x1: \"8\",\n y1: \"15\",\n x2: \"24\",\n y2: \"15\",\n stroke: \"currentColor\",\n strokeWidth: \"2\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"line\", {\n x1: \"8\",\n y1: \"22.5\",\n x2: \"24\",\n y2: \"22.5\",\n stroke: \"currentColor\",\n strokeWidth: \"3\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/border.js?");
782
+
783
+ /***/ }),
784
+
785
+ /***/ "./client/components/icon/checklist-multiple-choice.js":
786
+ /*!*************************************************************!*\
787
+ !*** ./client/components/icon/checklist-multiple-choice.js ***!
788
+ \*************************************************************/
789
+ /*! exports provided: default */
790
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
791
+
792
+ "use strict";
793
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M7 10.75H5V12.75H7V10.75ZM4 9.75V13.75H8V9.75H4Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M4 4H8V8H4V4Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M4 16H8V20H4V16Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M20 6.75H12V5.25H20V6.75Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M20 12.5H12V11H20V12.5Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M20 18.75H12V17.25H20V18.75Z\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/checklist-multiple-choice.js?");
794
+
795
+ /***/ }),
796
+
797
+ /***/ "./client/components/icon/checklist-single-choice.js":
798
+ /*!***********************************************************!*\
799
+ !*** ./client/components/icon/checklist-single-choice.js ***!
800
+ \***********************************************************/
801
+ /*! exports provided: default */
802
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
803
+
804
+ "use strict";
805
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M20 6.75H12V5.25H20V6.75Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M20 12.5H12V11H20V12.5Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M20 18.75H12V17.25H20V18.75Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M6 7C6.55228 7 7 6.55228 7 6C7 5.44772 6.55228 5 6 5C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7ZM6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M6 12.75C6.55228 12.75 7 12.3023 7 11.75C7 11.1977 6.55228 10.75 6 10.75C5.44772 10.75 5 11.1977 5 11.75C5 12.3023 5.44772 12.75 6 12.75ZM6 13.75C7.10457 13.75 8 12.8546 8 11.75C8 10.6454 7.10457 9.75 6 9.75C4.89543 9.75 4 10.6454 4 11.75C4 12.8546 4.89543 13.75 6 13.75Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M6 19C6.55228 19 7 18.5523 7 18C7 17.4477 6.55228 17 6 17C5.44772 17 5 17.4477 5 18C5 18.5523 5.44772 19 6 19ZM6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/checklist-single-choice.js?");
806
+
807
+ /***/ }),
808
+
809
+ /***/ "./client/components/icon/counter.js":
810
+ /*!*******************************************!*\
811
+ !*** ./client/components/icon/counter.js ***!
812
+ \*******************************************/
813
+ /*! exports provided: default */
814
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
815
+
816
+ "use strict";
817
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M12.0078 18.2266C14.7656 18.2266 16.4062 15.9531 16.4062 12.3438C16.4062 8.73438 14.75 6.5 12.0078 6.5C9.25781 6.5 7.59375 8.75 7.59375 12.3516C7.59375 15.9688 9.24219 18.2266 12.0078 18.2266ZM12.0078 16.5781C10.5078 16.5781 9.625 15 9.625 12.3438C9.625 9.73438 10.5234 8.14844 12.0078 8.14844C13.4844 8.14844 14.3672 9.71875 14.3672 12.3516C14.3672 15.0078 13.5 16.5781 12.0078 16.5781Z\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/counter.js?");
818
+
819
+ /***/ }),
820
+
821
+ /***/ "./client/components/icon/feedback.js":
822
+ /*!********************************************!*\
823
+ !*** ./client/components/icon/feedback.js ***!
824
+ \********************************************/
825
+ /*! exports provided: default */
826
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
827
+
828
+ "use strict";
829
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/**\n * External dependencies\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5 5.25V17.6893L6.42678 16.2626C6.75497 15.9344 7.20008 15.75 7.66421 15.75H18.75C18.8881 15.75 19 15.6381 19 15.5V5.5C19 5.36193 18.8881 5.25 18.75 5.25H5ZM3.5 5C3.5 4.30965 4.05964 3.75 4.75 3.75H18.75C19.7165 3.75 20.5 4.5335 20.5 5.5V15.5C20.5 16.4665 19.7165 17.25 18.75 17.25H7.66421C7.59791 17.25 7.53432 17.2763 7.48744 17.3232L3.5 21.3107V5Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"7\",\n y: \"9.75\",\n width: \"1.5\",\n height: \"1.5\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"11.25\",\n y: \"9.75\",\n width: \"1.5\",\n height: \"1.5\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"15.5\",\n y: \"9.75\",\n width: \"1.5\",\n height: \"1.5\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/feedback.js?");
830
+
831
+ /***/ }),
832
+
833
+ /***/ "./client/components/icon/nps.js":
834
+ /*!***************************************!*\
835
+ !*** ./client/components/icon/nps.js ***!
836
+ \***************************************/
837
+ /*! exports provided: default */
838
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
839
+
840
+ "use strict";
841
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n d: \"M4.49707 15V10.3857H4.54102L7.83691 15H9.05762V7.9541H7.64648V12.5439H7.60742L4.31641 7.9541H3.08594V15H4.49707ZM9.73438 7.9541V15H11.209V12.7783H12.5273C14.0117 12.7783 15.042 11.8115 15.042 10.3662C15.042 8.91602 14.0459 7.9541 12.6006 7.9541H9.73438ZM11.209 9.12109H12.21C13.0547 9.12109 13.543 9.57031 13.543 10.3711C13.543 11.1768 13.0498 11.626 12.2051 11.626H11.209V9.12109ZM15.1523 12.9932C15.1963 14.3164 16.2754 15.1221 17.9697 15.1221C19.7178 15.1221 20.8262 14.2578 20.8262 12.8906C20.8262 11.8164 20.2109 11.2109 18.7998 10.9082L17.9453 10.7275C17.1348 10.542 16.793 10.2979 16.793 9.86328C16.793 9.34082 17.2812 8.99414 18.0088 8.99414C18.7461 8.99414 19.2686 9.35547 19.3174 9.95117H20.6992C20.6748 8.67676 19.6445 7.83203 18.0039 7.83203C16.4316 7.83203 15.3086 8.69141 15.3086 9.99023C15.3086 11.0205 15.9482 11.6797 17.2471 11.958L18.165 12.1582C19.0146 12.3486 19.3516 12.6025 19.3516 13.0615C19.3516 13.5791 18.8145 13.9551 18.0283 13.9551C17.2471 13.9551 16.6416 13.5742 16.5732 12.9932H15.1523Z\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/nps.js?");
842
+
843
+ /***/ }),
844
+
845
+ /***/ "./client/components/icon/poll.js":
846
+ /*!****************************************!*\
847
+ !*** ./client/components/icon/poll.js ***!
848
+ \****************************************/
849
+ /*! exports provided: default */
850
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
851
+
852
+ "use strict";
853
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5.5 6L5.5 18C5.5 18.2761 5.72386 18.5 6 18.5L18 18.5C18.2761 18.5 18.5 18.2761 18.5 18L18.5 6C18.5 5.72386 18.2761 5.5 18 5.5L6 5.5C5.72386 5.5 5.5 5.72386 5.5 6ZM4 18L4 6C4 4.89543 4.89543 4 6 4L18 4C19.1046 4 20 4.89543 20 6L20 18C20 19.1046 19.1046 20 18 20L6 20C4.89543 20 4 19.1046 4 18Z\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"15\",\n y: \"17\",\n width: \"6\",\n height: \"1.5\",\n transform: \"rotate(-90 15 17)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"11.5\",\n y: \"17\",\n width: \"9\",\n height: \"1.5\",\n transform: \"rotate(-90 11.5 17)\"\n }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"8\",\n y: \"17\",\n width: \"5\",\n height: \"1.5\",\n transform: \"rotate(-90 8 17)\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/poll.js?");
854
+
855
+ /***/ }),
856
+
857
+ /***/ "./client/components/icon/size.js":
858
+ /*!****************************************!*\
859
+ !*** ./client/components/icon/size.js ***!
860
+ \****************************************/
861
+ /*! exports provided: default */
862
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
863
+
864
+ "use strict";
865
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M17.1894 5.75L13.6668 5.75L13.6668 4.25H19.0002H19.7502L19.7502 5V10.3333H18.2502V6.81054L6.81072 18.25L10.3333 18.25V19.75L5 19.75H4.25V19V13.6666L5.75 13.6666L5.75 17.1894L17.1894 5.75Z\"\n }));\n});\n\n//# sourceURL=webpack:///./client/components/icon/size.js?");
866
+
867
+ /***/ }),
868
+
869
+ /***/ "./client/components/icon/thumbs-down.js":
870
+ /*!***********************************************!*\
871
+ !*** ./client/components/icon/thumbs-down.js ***!
872
+ \***********************************************/
873
+ /*! exports provided: default */
874
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
875
+
876
+ "use strict";
877
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (_ref) {\n var className = _ref.className,\n _ref$fillColor = _ref.fillColor,\n fillColor = _ref$fillColor === void 0 ? 'black' : _ref$fillColor;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n className: className,\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n clipPath: \"url(#clipThumbsDown)\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"mask\", {\n id: \"maskThumbsDown\",\n \"mask-type\": \"alpha\",\n maskUnits: \"userSpaceOnUse\",\n x: \"2\",\n y: \"5\",\n width: \"20\",\n height: \"20\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M4.65002 17.75H10.4342L9.56336 21.9392L9.53586 22.2325C9.53586 22.6083 9.69169 22.9567 9.93919 23.2042L10.9109 24.1667L16.9425 18.1258C17.2817 17.7958 17.4834 17.3375 17.4834 16.8333L21.15 16.8333L21.15 7.57499H17.4834V7.66666C17.4834 6.65832 16.6584 5.83332 15.65 5.83332H7.40003C6.63919 5.83332 5.98836 6.29165 5.71336 6.95166L2.94503 13.4142C2.86253 13.625 2.81669 13.845 2.81669 14.0833V15.9167C2.81669 16.925 3.64169 17.75 4.65002 17.75ZM4.65002 14.0833L7.40002 7.66666H15.65L15.65 16.8333L11.6717 20.8117L12.6892 15.9167H4.65002V14.0833Z\",\n fill: \"white\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n mask: \"url(#maskThumbsDown)\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"23.0001\",\n y: \"24\",\n width: \"22\",\n height: \"22\",\n transform: \"rotate(-180 23.0001 24)\",\n fill: fillColor\n }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"defs\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"clipPath\", {\n id: \"clipThumbsDown\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"24\",\n height: \"24\",\n fill: \"white\"\n }))));\n});\n\n//# sourceURL=webpack:///./client/components/icon/thumbs-down.js?");
878
+
879
+ /***/ }),
880
+
881
+ /***/ "./client/components/icon/thumbs-up.js":
882
+ /*!*********************************************!*\
883
+ !*** ./client/components/icon/thumbs-up.js ***!
884
+ \*********************************************/
885
+ /*! exports provided: default */
886
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
887
+
888
+ "use strict";
889
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (_ref) {\n var className = _ref.className,\n _ref$fillColor = _ref.fillColor,\n fillColor = _ref$fillColor === void 0 ? 'black' : _ref$fillColor;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n className: className,\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n clipPath: \"url(#clipThumbsUp)\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"mask\", {\n id: \"maskThumbsUp\",\n \"mask-type\": \"alpha\",\n maskUnits: \"userSpaceOnUse\",\n x: \"2\",\n y: \"-1\",\n width: \"20\",\n height: \"20\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M19.35 6.24998H13.5658L14.4366 2.06081L14.4641 1.76748C14.4641 1.39165 14.3083 1.04331 14.0608 0.795813L13.0891 -0.166687L7.05748 5.87415C6.71831 6.20415 6.51664 6.66248 6.51664 7.16665L2.84998 7.16665V16.425H6.51664V16.3333C6.51664 17.3416 7.34164 18.1666 8.34998 18.1666H16.6C17.3608 18.1666 18.0116 17.7083 18.2866 17.0483L21.055 10.5858C21.1375 10.375 21.1833 10.155 21.1833 9.91665V8.08331C21.1833 7.07498 20.3583 6.24998 19.35 6.24998ZM19.35 9.91665L16.6 16.3333H8.34998V7.16665L12.3283 3.18831L11.3108 8.08331H19.35V9.91665Z\",\n fill: \"white\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n mask: \"url(#maskThumbsUp)\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"0.999878\",\n y: \"-3.05176e-05\",\n width: \"22\",\n height: \"22\",\n fill: fillColor\n }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"defs\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"clipPath\", {\n id: \"clipThumbsUp\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n width: \"24\",\n height: \"24\",\n fill: \"white\"\n }))));\n});\n\n//# sourceURL=webpack:///./client/components/icon/thumbs-up.js?");
890
+
891
+ /***/ }),
892
+
893
+ /***/ "./client/components/icon/vote.js":
894
+ /*!****************************************!*\
895
+ !*** ./client/components/icon/vote.js ***!
896
+ \****************************************/
897
+ /*! exports provided: default */
898
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
899
+
900
+ "use strict";
901
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"svg\", {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"mask\", {\n id: \"maskVote\",\n \"mask-type\": \"alpha\",\n maskUnits: \"userSpaceOnUse\",\n x: \"3\",\n y: \"3\",\n width: \"18\",\n height: \"18\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M18.5999 9.525H13.3942L14.1779 5.75475L14.2027 5.49075C14.2027 5.1525 14.0624 4.839 13.8397 4.61625L12.9652 3.75L7.53666 9.18675C7.23142 9.48374 7.04992 9.89621 7.04991 10.3499H3.75V18.6824H7.05V18.6178C7.05963 19.5172 7.79834 20.25 8.69991 20.25H16.1249C16.8097 20.25 17.3954 19.8375 17.6429 19.2435L20.1344 13.4273C20.2087 13.2375 20.2499 13.0395 20.2499 12.825V11.175C20.2499 10.2675 19.5074 9.525 18.5999 9.525ZM7.05 18.6178V10.3499H7.04991C7.04991 10.35 7.04991 10.35 7.04991 10.35V18.6C7.04991 18.6059 7.04994 18.6119 7.05 18.6178ZM18.5999 12.825L16.1249 18.6H8.69986V10.35L12.2804 6.76952L11.3646 11.175H18.5999V12.825Z\",\n fill: \"white\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"g\", {\n mask: \"url(#maskVote)\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"rect\", {\n x: \"1.00024\",\n y: \"1.25\",\n width: \"22\",\n height: \"22\"\n })));\n});\n\n//# sourceURL=webpack:///./client/components/icon/vote.js?");
902
+
903
+ /***/ }),
904
+
905
+ /***/ "./client/components/poll/answer-results.js":
906
+ /*!**************************************************!*\
907
+ !*** ./client/components/poll/answer-results.js ***!
908
+ \**************************************************/
909
+ /*! exports provided: default */
910
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
911
+
912
+ "use strict";
913
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/html-entities */ \"@wordpress/html-entities\");\n/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n\n\nvar PollAnswerResults = function PollAnswerResults(_ref) {\n var error = _ref.error,\n loading = _ref.loading,\n text = _ref.text,\n totalVotes = _ref.totalVotes,\n votes = _ref.votes;\n var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('crowdsignal-forms-poll__answer-results', {\n 'is-error': error,\n 'is-loading': loading\n });\n var showResults = !loading && !error;\n var answerShare = 0 === totalVotes ? 0 : votes * 100 / totalVotes;\n var progressBarStyles = {\n width: \"\".concat(parseInt(answerShare, 10), \"%\")\n };\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: classes\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__answer-results-labels\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n className: \"crowdsignal-forms-poll__answer-results-answer\"\n }, Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_4__[\"decodeEntities\"])(text)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n className: \"crowdsignal-forms-poll__answer-results-votes\"\n }, showResults && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"sprintf\"])(\n /* translators: %s: Number of votes. */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"_n\"])('%s vote', '%s votes', votes, 'crowdsignal-forms'), votes.toLocaleString())), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n className: \"crowdsignal-forms-poll__answer-results-percent\"\n }, showResults && \"\".concat(answerShare.toFixed(2), \"%\"))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__answer-results-progress-track\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__answer-results-progress-bar\",\n style: progressBarStyles\n })));\n};\n\nPollAnswerResults.propTypes = {\n loading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,\n totalVotes: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n votes: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (PollAnswerResults);\n\n//# sourceURL=webpack:///./client/components/poll/answer-results.js?");
914
+
915
+ /***/ }),
916
+
917
+ /***/ "./client/components/poll/closed-banner.js":
918
+ /*!*************************************************!*\
919
+ !*** ./client/components/poll/closed-banner.js ***!
920
+ \*************************************************/
921
+ /*! exports provided: default */
922
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
923
+
924
+ "use strict";
925
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n\n\n/**\n * External dependencies\n */\n\n\n\n\nvar ClosedBanner = function ClosedBanner(_ref) {\n var hasVoted = _ref.hasVoted,\n isPollClosed = _ref.isPollClosed,\n isPollHidden = _ref.isPollHidden,\n showSubmitMessage = _ref.showSubmitMessage;\n var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({\n 'is-transparent': showSubmitMessage\n }, 'crowdsignal-forms-poll__closed-banner');\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: classes\n }, isPollHidden && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('This Poll is Hidden', 'crowdsignal-forms'), isPollClosed && !isPollHidden && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('This Poll is Closed', 'crowdsignal-forms'), hasVoted && Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Thanks For Voting!', 'crowdsignal-forms'));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ClosedBanner);\n\n//# sourceURL=webpack:///./client/components/poll/closed-banner.js?");
926
+
927
+ /***/ }),
928
+
929
+ /***/ "./client/components/poll/error-banner.js":
930
+ /*!************************************************!*\
931
+ !*** ./client/components/poll/error-banner.js ***!
932
+ \************************************************/
933
+ /*! exports provided: default */
934
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
935
+
936
+ "use strict";
937
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/**\n * External dependencies\n */\n\n\nvar ErrorBanner = function ErrorBanner(_ref) {\n var children = _ref.children;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__error-banner\"\n }, children);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ErrorBanner);\n\n//# sourceURL=webpack:///./client/components/poll/error-banner.js?");
938
+
939
+ /***/ }),
940
+
941
+ /***/ "./client/components/poll/results.js":
942
+ /*!*******************************************!*\
943
+ !*** ./client/components/poll/results.js ***!
944
+ \*******************************************/
945
+ /*! exports provided: default */
946
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
947
+
948
+ "use strict";
949
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var data_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! data/hooks */ \"./client/data/hooks/index.js\");\n/* harmony import */ var _answer_results__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./answer-results */ \"./client/components/poll/answer-results.js\");\n/* harmony import */ var components_footer_branding__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! components/footer-branding */ \"./client/components/footer-branding/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ \"./client/components/poll/util.js\");\n\n\n/**\n * External dependencies\n */\n\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nvar PollResults = function PollResults(_ref) {\n var answers = _ref.answers,\n pollIdFromApi = _ref.pollIdFromApi,\n setErrorMessage = _ref.setErrorMessage,\n hideBranding = _ref.hideBranding;\n\n var _usePollResults = Object(data_hooks__WEBPACK_IMPORTED_MODULE_6__[\"usePollResults\"])(pollIdFromApi),\n error = _usePollResults.error,\n loading = _usePollResults.loading,\n results = _usePollResults.results;\n\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n setErrorMessage(error ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"__\"])(\"Unfortunately, we're having some trouble retrieving \" + \"the results for this poll at this time.\", 'crowdsignal-forms') : '');\n }, [error]);\n var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('crowdsignal-forms-poll__results', {\n 'is-error': !!error,\n 'is-loading': loading\n });\n var total = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"sum\"])(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"values\"])(results));\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: classes\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__results-list\"\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"map\"])(answers, function (answer) {\n var _results$answer$answe;\n\n return !Object(_util__WEBPACK_IMPORTED_MODULE_9__[\"isAnswerEmpty\"])(answer) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_answer_results__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n key: answer.answerId,\n error: !!error,\n loading: loading,\n text: answer.text,\n totalVotes: total,\n votes: results ? (_results$answer$answe = results[answer.answerIdFromApi]) !== null && _results$answer$answe !== void 0 ? _results$answer$answe : 0 : 0\n });\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-poll__results-footer\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"span\", {\n className: \"crowdsignal-forms-poll__results-total\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"sprintf\"])(\n /* translators: %s: Number of votes */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__[\"_n\"])('%s total vote', '%s total votes', total, 'crowdsignal-forms'), total ? total.toLocaleString() : 0)), !hideBranding && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_footer_branding__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null)));\n};\n\nPollResults.propTypes = {\n pollIdFromApi: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n answers: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({\n answerId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,\n answerIdFromApi: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,\n text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string\n })).isRequired,\n setErrorMessage: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired,\n hideBranding: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (PollResults);\n\n//# sourceURL=webpack:///./client/components/poll/results.js?");
950
+
951
+ /***/ }),
952
+
953
+ /***/ "./client/components/poll/util.js":
954
+ /*!****************************************!*\
955
+ !*** ./client/components/poll/util.js ***!
956
+ \****************************************/
957
+ /*! exports provided: addApiAnswerIds, shuffleWithGenerator, isAnswerEmpty, loadCustomFont */
958
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
959
+
960
+ "use strict";
961
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addApiAnswerIds\", function() { return addApiAnswerIds; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shuffleWithGenerator\", function() { return shuffleWithGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isAnswerEmpty\", function() { return isAnswerEmpty; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadCustomFont\", function() { return loadCustomFont; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var blocks_poll_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! blocks/poll/constants */ \"./client/blocks/poll/constants.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Adds api answer ids to the answer objects (when they are available).\n *\n * @param {Array} answers Answers array\n * @param {Array} answerIdMap A json object with client answer ids as keys, and API answer ids as values.\n * @return {Array} Updated answers array\n */\n\nvar addApiAnswerIds = function addApiAnswerIds(answers, answerIdMap) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"map\"])(answers, function (answer) {\n if (typeof answer.answerIdFromApi !== 'undefined') {\n return answer;\n }\n\n return _objectSpread({}, answer, {\n answerIdFromApi: answerIdMap[answer.answerId]\n });\n });\n};\n/**\n * Fisher-Yates algorithm shuffle implementation.\n * Provides a predictable way of shuffling array items given a seed.\n *\n * @param {Array} toShuffle The array to shuffle.\n * @param {Function} randomNumberGenerator A function that generates a random number (like `seedrandom`).\n * @return {Array} The shuffled array.\n */\n\nvar shuffleWithGenerator = function shuffleWithGenerator(toShuffle, randomNumberGenerator) {\n var shuffled = toShuffle.slice();\n\n for (var i = shuffled.length - 1; i > 0; i--) {\n var j = Math.floor(randomNumberGenerator() * i);\n var tmp = shuffled[i];\n shuffled[i] = shuffled[j];\n shuffled[j] = tmp;\n }\n\n return shuffled;\n};\n/**\n * Determines if an answer is considered \"empty\", based on if text is set and blank or object has no values.\n *\n * @param {*} answer The answer object.\n */\n\nvar isAnswerEmpty = function isAnswerEmpty(answer) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(answer) || 'undefined' === typeof answer.text || null === answer.text || '' === answer.text;\n};\n/**\n * Loads a custom google font, by name, only once per page if called more than once for the same font.\n *\n * @param {*} font The name of the Google font\n */\n\nvar loadCustomFont = function loadCustomFont(font) {\n if (Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(font) || blocks_poll_constants__WEBPACK_IMPORTED_MODULE_2__[\"FontFamilyType\"].THEME_DEFAULT === font || -1 === blocks_poll_constants__WEBPACK_IMPORTED_MODULE_2__[\"GoogleFonts\"].indexOf(font)) {\n return;\n }\n\n var googleFontsLink = \"https://fonts.googleapis.com/css2?family=\".concat(font, \":wght@400;600;700&display=swap\");\n var crowdsignalFonts = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"filter\"])(Array.from(document.head.childNodes), function (node) {\n return node.nodeName.toLowerCase() === 'link' && node.href === googleFontsLink;\n });\n\n if (crowdsignalFonts.length === 0) {\n document.head.appendChild(Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"tap\"])(document.createElement('link'), function (link) {\n link.type = 'text/css';\n link.rel = 'stylesheet';\n link.href = googleFontsLink;\n }));\n }\n};\n\n//# sourceURL=webpack:///./client/components/poll/util.js?");
962
+
963
+ /***/ }),
964
+
965
+ /***/ "./client/components/retry-notice/index.js":
966
+ /*!*************************************************!*\
967
+ !*** ./client/components/retry-notice/index.js ***!
968
+ \*************************************************/
969
+ /*! exports provided: default */
970
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
971
+
972
+ "use strict";
973
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var components_editor_notice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! components/editor-notice */ \"./client/components/editor-notice/index.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n/**\n * Internal dependencies\n */\n\n\n\nvar RetryNotice = function RetryNotice(_ref) {\n var retryHandler = _ref.retryHandler;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_editor_notice__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n status: \"error\",\n icon: \"warning\",\n isDismissible: false,\n actions: [{\n className: 'is-destructive',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Retry', 'crowdsignal-forms'),\n onClick: retryHandler\n }]\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])(\"Unfortunately, the block couldn't be saved to Crowdsignal.com.\", 'crowdsignal-forms'));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (RetryNotice);\n\n//# sourceURL=webpack:///./client/components/retry-notice/index.js?");
974
+
975
+ /***/ }),
976
+
977
+ /***/ "./client/components/sidebar-promote/index.js":
978
+ /*!****************************************************!*\
979
+ !*** ./client/components/sidebar-promote/index.js ***!
980
+ \****************************************************/
981
+ /*! exports provided: default */
982
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
983
+
984
+ "use strict";
985
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);\n\n\n/**\n * WordPress dependencies\n */\n\n\n\nvar SidebarPromote = function SidebarPromote(_ref) {\n var signalWarning = _ref.signalWarning;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__row\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n href: \"https://crowdsignal.com/pricing\",\n isSecondary: true,\n target: \"_blank\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Upgrade', 'crowdsignal-forms')), signalWarning ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__sidebar-promote\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"em\", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Your free Crowdsignal account has ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"strong\", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"ExternalLink\"], {\n href: \"https://crowdsignal.com/support/what-is-a-signal/\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('reached the signals limit.', 'crowdsignal-forms'))))) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__sidebar-promote\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(\"em\", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Hide Crowdsignal branding and get ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__[\"ExternalLink\"], {\n href: \"https://crowdsignal.com/support/what-is-a-signal/\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('unlimited signals', 'crowdsignal-forms')))));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SidebarPromote);\n\n//# sourceURL=webpack:///./client/components/sidebar-promote/index.js?");
986
+
987
+ /***/ }),
988
+
989
+ /***/ "./client/components/signal-warning/index.js":
990
+ /*!***************************************************!*\
991
+ !*** ./client/components/signal-warning/index.js ***!
992
+ \***************************************************/
993
+ /*! exports provided: default */
994
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
995
+
996
+ "use strict";
997
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var components_editor_notice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! components/editor-notice */ \"./client/components/editor-notice/index.js\");\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar SignalWarning = function SignalWarning() {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(components_editor_notice__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n icon: \"warning\",\n status: \"warn\",\n isDismissible: false,\n actions: [{\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Please upgrade', 'crowdsignal-forms'),\n url: 'https://crowdsignal.com/pricing',\n className: 'is-secondary',\n noDefaultClasses: true\n }]\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Your free Crowdsignal account has ', 'crowdsignal-forms'), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__[\"ExternalLink\"], {\n href: \"https://crowdsignal.com/support/what-is-a-signal/\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('exceeded 2500 signals.', 'crowdsignal-forms')));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SignalWarning);\n\n//# sourceURL=webpack:///./client/components/signal-warning/index.js?");
998
+
999
+ /***/ }),
1000
+
1001
+ /***/ "./client/components/use-autosave/index.js":
1002
+ /*!*************************************************!*\
1003
+ !*** ./client/components/use-autosave/index.js ***!
1004
+ \*************************************************/
1005
+ /*! exports provided: useAutosave */
1006
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1007
+
1008
+ "use strict";
1009
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useAutosave\", function() { return useAutosave; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n\n\n/**\n * External dependencies\n */\n\n\nvar SAVE_DEBOUNCE = 1500;\nvar RETRY_THRESHOLD = 3;\nvar useAutosave = function useAutosave(onSave) {\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n error = _useState2[0],\n setError = _useState2[1];\n\n var revision = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])(0);\n var debouncedSave = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useCallback\"])(Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"debounce\"])(function (args, onFailure) {\n return onSave(args).catch(onFailure);\n }, SAVE_DEBOUNCE), []);\n var handleSave = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useCallback\"])(function (savedRevision) {\n var retryCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n setError(false);\n debouncedSave(data, function () {\n // Don't retry if there are new changes waiting to be saved\n if (savedRevision !== revision.current) {\n return;\n }\n\n if (retryCount < RETRY_THRESHOLD) {\n handleSave(savedRevision, retryCount + 1);\n return;\n }\n\n setError(true);\n });\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"values\"])(data));\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n // Don't autosave on initial render\n if (0 === revision.current++) {\n return;\n }\n\n handleSave(revision.current);\n }, Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"values\"])(data));\n return {\n error: error,\n save: function save() {\n return handleSave(revision.current);\n }\n };\n};\n\n//# sourceURL=webpack:///./client/components/use-autosave/index.js?");
1010
+
1011
+ /***/ }),
1012
+
1013
+ /***/ "./client/components/use-numbered-title/index.js":
1014
+ /*!*******************************************************!*\
1015
+ !*** ./client/components/use-numbered-title/index.js ***!
1016
+ \*******************************************************/
1017
+ /*! exports provided: default */
1018
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1019
+
1020
+ "use strict";
1021
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n\n\nvar useNumberedTitle = function useNumberedTitle(blockName, titlePrefix, attributes, setAttributes) {\n return Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(window.csBlockTypeCount)) {\n window.csBlockTypeCount = {};\n }\n\n if (Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isNil\"])(window.csBlockTypeCount[blockName])) {\n window.csBlockTypeCount[blockName] = 0;\n }\n\n window.csBlockTypeCount[blockName]++;\n\n if (null !== attributes.title) {\n // exit if title is set, but only after block count has been set, so newer blocks get the correct count.\n return;\n }\n\n if (1 === window.csBlockTypeCount[blockName]) {\n setAttributes({\n title: titlePrefix\n });\n } else {\n setAttributes({\n title: \"\".concat(titlePrefix, \" \").concat(window.csBlockTypeCount[blockName])\n });\n }\n }, []);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (useNumberedTitle);\n\n//# sourceURL=webpack:///./client/components/use-numbered-title/index.js?");
1022
+
1023
+ /***/ }),
1024
+
1025
+ /***/ "./client/components/use-poll-duplicate-cleaner/index.js":
1026
+ /*!***************************************************************!*\
1027
+ !*** ./client/components/use-poll-duplicate-cleaner/index.js ***!
1028
+ \***************************************************************/
1029
+ /*! exports provided: default */
1030
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1031
+
1032
+ "use strict";
1033
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (blockClientId, pollId, answers, setAttributes) {\n return Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"isEmpty\"])(pollId)) {\n return;\n }\n\n if (!window.csPolls) {\n window.csPolls = {};\n }\n\n if (!window.csPolls[pollId]) {\n window.csPolls[pollId] = [blockClientId];\n } else if (window.csPolls[pollId].indexOf(blockClientId) > -1) {// clientid already known, ignore.\n } else {\n var newAnswers = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"map\"])(answers, function (answer) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"omit\"])(answer, ['answerId']);\n });\n setAttributes({\n pollId: null,\n answers: newAnswers\n });\n }\n }, [pollId]);\n});\n\n//# sourceURL=webpack:///./client/components/use-poll-duplicate-cleaner/index.js?");
1034
+
1035
+ /***/ }),
1036
+
1037
+ /***/ "./client/components/vote/util.js":
1038
+ /*!****************************************!*\
1039
+ !*** ./client/components/vote/util.js ***!
1040
+ \****************************************/
1041
+ /*! exports provided: formatVoteCount */
1042
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1043
+
1044
+ "use strict";
1045
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formatVoteCount\", function() { return formatVoteCount; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\n/**\n * Formats the counter values on vote items:\n *\n * @param {number} count Vote count\n * @return {string} Formatted count\n */\n\nvar formatVoteCount = function formatVoteCount(count) {\n if (!count) {\n return '0';\n }\n\n if (count >= 10000000) {\n return \"\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"round\"])(count / 1000000), \"M\");\n }\n\n if (count >= 1000000) {\n return \"\".concat((count / 1000000).toFixed(1), \"M\");\n }\n\n if (count >= 10000) {\n return \"\".concat(Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"round\"])(count / 1000), \"K\");\n }\n\n if (count >= 1000) {\n return \"\".concat((count / 1000).toFixed(1), \"K\");\n }\n\n return count.toString();\n};\n\n//# sourceURL=webpack:///./client/components/vote/util.js?");
1046
+
1047
+ /***/ }),
1048
+
1049
+ /***/ "./client/components/vote/vote-item.js":
1050
+ /*!*********************************************!*\
1051
+ !*** ./client/components/vote/vote-item.js ***!
1052
+ \*********************************************/
1053
+ /*! exports provided: default */
1054
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1055
+
1056
+ "use strict";
1057
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-transition-group */ \"./node_modules/react-transition-group/esm/index.js\");\n/* harmony import */ var components_icon_thumbs_up__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! components/icon/thumbs-up */ \"./client/components/icon/thumbs-up.js\");\n/* harmony import */ var components_icon_thumbs_down__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! components/icon/thumbs-down */ \"./client/components/icon/thumbs-down.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ \"./client/components/vote/util.js\");\n/* harmony import */ var blocks_vote_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! blocks/vote/util */ \"./client/blocks/vote/util.js\");\n\n\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nvar VoteItem = function VoteItem(props) {\n var attributes = props.attributes,\n voteCount = props.voteCount,\n apiAnswerId = props.apiAnswerId,\n onVote = props.onVote,\n disabled = props.disabled,\n isVotedOn = props.isVotedOn,\n hideCount = props.hideCount,\n fallbackStyles = props.fallbackStyles,\n isInEditor = props.isInEditor;\n var className = attributes.className,\n type = attributes.type;\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useState\"])(0),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n currentVote = _useState2[0],\n setCurrentVote = _useState2[1];\n\n var handleVote = function handleVote() {\n if (disabled || !onVote) {\n return;\n }\n\n setCurrentVote(1);\n onVote(apiAnswerId);\n };\n\n var Icon = 'up' === type ? components_icon_thumbs_up__WEBPACK_IMPORTED_MODULE_5__[\"default\"] : components_icon_thumbs_down__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n var typeClass = \"is-type-\".concat(type);\n var classes = Object(blocks_vote_util__WEBPACK_IMPORTED_MODULE_8__[\"getBlockCssClasses\"])(attributes, 'crowdsignal-forms-vote-item', className, {\n 'is-voted-on': isVotedOn,\n 'is-disabled': disabled,\n 'is-in-editor': isInEditor\n }, typeClass);\n var blockStyle = Object(blocks_vote_util__WEBPACK_IMPORTED_MODULE_8__[\"getVoteItemStyleVars\"])(attributes, fallbackStyles);\n var displayedVoteCount = voteCount + currentVote;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: classes,\n onClick: handleVote,\n onKeyPress: handleVote,\n role: \"button\",\n style: blockStyle,\n tabIndex: 0\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(Icon, {\n className: \"crowdsignal-forms-vote-item__icon\",\n fillColor: \"currentColor\"\n }), !hideCount && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(react_transition_group__WEBPACK_IMPORTED_MODULE_4__[\"SwitchTransition\"], {\n mode: \"in-out\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(react_transition_group__WEBPACK_IMPORTED_MODULE_4__[\"CSSTransition\"], {\n key: currentVote,\n classNames: \"crowdsignal-forms-vote-item__count\",\n timeout: 300\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms-vote-item__count\"\n }, Object(_util__WEBPACK_IMPORTED_MODULE_7__[\"formatVoteCount\"])(displayedVoteCount)))));\n};\n\nVoteItem.propTypes = {\n apiAnswerId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number,\n className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,\n disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,\n isVotedOn: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,\n onVote: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,\n type: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string.isRequired,\n voteCount: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number.isRequired\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (VoteItem);\n\n//# sourceURL=webpack:///./client/components/vote/vote-item.js?");
1058
+
1059
+ /***/ }),
1060
+
1061
+ /***/ "./client/components/with-client-id/index.js":
1062
+ /*!***************************************************!*\
1063
+ !*** ./client/components/with-client-id/index.js ***!
1064
+ \***************************************************/
1065
+ /*! exports provided: default */
1066
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1067
+
1068
+ "use strict";
1069
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/index.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n/**\n * External dependencies\n */\n\n\n\n\nvar withClientId = function withClientId(clientIdAttributes) {\n return function (Element) {\n return function (props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes;\n Object(react__WEBPACK_IMPORTED_MODULE_2__[\"useEffect\"])(function () {\n Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"forEach\"])(clientIdAttributes, function (key) {\n if (attributes[key]) {\n return;\n }\n\n setAttributes(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, key, Object(uuid__WEBPACK_IMPORTED_MODULE_3__[\"v4\"])()));\n });\n }, []);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"createElement\"])(Element, props);\n };\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (withClientId);\n\n//# sourceURL=webpack:///./client/components/with-client-id/index.js?");
1070
+
1071
+ /***/ }),
1072
+
1073
+ /***/ "./client/components/with-fallback-styles/index.js":
1074
+ /*!*********************************************************!*\
1075
+ !*** ./client/components/with-fallback-styles/index.js ***!
1076
+ \*********************************************************/
1077
+ /*! exports provided: withFallbackStyles */
1078
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1079
+
1080
+ "use strict";
1081
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withFallbackStyles\", function() { return withFallbackStyles; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ \"./client/components/with-fallback-styles/util.js\");\n\n\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar StyleProbe = function StyleProbe() {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"crowdsignal-forms__style-probe\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"p\", null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"h3\", null, \"Text\"), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"wp-block-button\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"wp-block-button__link\"\n })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"entry-content\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(\"div\", {\n className: \"alignwide\"\n })));\n};\n\nvar getStyles = function getStyles(node) {\n if (null === node) {\n return {};\n }\n\n var buttonNode = node.querySelector('.wp-block-button__link');\n var textNode = node.querySelector('p');\n var h3Node = node.querySelector('h3');\n var wideContentNode = node.querySelector('.alignwide');\n var accentColor = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"getBackgroundColor\"])(buttonNode);\n var backgroundColor = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"getBackgroundColor\"])(textNode);\n var textColor = window.getComputedStyle(textNode).color; // Ensure that we don't end up with the same color for surface and accent.\n // Falls back to button border color, then text color.\n\n if (accentColor === backgroundColor) {\n var borderColor = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"getBorderColor\"])(buttonNode);\n accentColor = borderColor ? borderColor : textColor;\n }\n\n return {\n accentColor: accentColor,\n backgroundColor: backgroundColor,\n textColor: textColor,\n textColorInverted: window.getComputedStyle(buttonNode).color,\n textFont: window.getComputedStyle(textNode).fontFamily,\n textSize: window.getComputedStyle(textNode).fontSize,\n headingFont: window.getComputedStyle(h3Node).fontFamily,\n contentWideWidth: window.getComputedStyle(wideContentNode).maxWidth\n };\n};\n\nvar withFallbackStyles = function withFallbackStyles(WrappedComponent) {\n var getFallbackStyles = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__[\"withFallbackStyles\"])(function (node) {\n return {\n fallbackStyles: getStyles(node.querySelector('.crowdsignal-forms__style-probe'))\n };\n });\n return getFallbackStyles(function (_ref) {\n var fallbackStyles = _ref.fallbackStyles,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"fallbackStyles\"]);\n\n var renderProbe = function renderProbe() {\n if (fallbackStyles) {\n return null;\n }\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(StyleProbe, null);\n };\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"createElement\"])(WrappedComponent, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n fallbackStyles: fallbackStyles || {},\n renderStyleProbe: renderProbe\n }, props));\n });\n};\n\n//# sourceURL=webpack:///./client/components/with-fallback-styles/index.js?");
1082
+
1083
+ /***/ }),
1084
+
1085
+ /***/ "./client/components/with-fallback-styles/util.js":
1086
+ /*!********************************************************!*\
1087
+ !*** ./client/components/with-fallback-styles/util.js ***!
1088
+ \********************************************************/
1089
+ /*! exports provided: getBackgroundColor, getBorderColor */
1090
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1091
+
1092
+ "use strict";
1093
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBackgroundColor\", function() { return getBackgroundColor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBorderColor\", function() { return getBorderColor; });\n/**\n * Traverses the parent chain of the given node to get a 'best guess' of\n * what the background color is if the provided node has a transparent background.\n * Algorithm for traversing parent chain \"borrowed\" from\n * https://github.com/WordPress/gutenberg/blob/0c6e369/packages/block-editor/src/components/colors/use-colors.js#L201-L216\n *\n * @param {Element} backgroundColorNode The element to check for background color\n * @return {string} The background colour of the node\n */\nvar getBackgroundColor = function getBackgroundColor(backgroundColorNode) {\n var backgroundColor = window.getComputedStyle(backgroundColorNode).backgroundColor;\n\n while (backgroundColor === 'rgba(0, 0, 0, 0)' && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === window.Node.ELEMENT_NODE) {\n backgroundColorNode = backgroundColorNode.parentNode;\n backgroundColor = window.getComputedStyle(backgroundColorNode).backgroundColor;\n }\n\n return backgroundColor;\n};\n/**\n * Gets the border color for a node, if it appears valid.\n * If we get '0px' for the width, then we likely don't have a border and return null.\n * We use 'borderBlockStartWidth' because of FF: https://bugzilla.mozilla.org/show_bug.cgi?id=137688\n *\n * @param {Element} borderNode The element to check for a border color\n * @return {string|null} The border colour value of null if invalid\n */\n\nvar getBorderColor = function getBorderColor(borderNode) {\n var borderWidth = window.getComputedStyle(borderNode).borderBlockStartWidth;\n return borderWidth !== '0px' ? window.getComputedStyle(borderNode).borderBlockStartColor : null;\n};\n\n//# sourceURL=webpack:///./client/components/with-fallback-styles/util.js?");
1094
+
1095
+ /***/ }),
1096
+
1097
+ /***/ "./client/components/with-fixed-position/index.js":
1098
+ /*!********************************************************!*\
1099
+ !*** ./client/components/with-fixed-position/index.js ***!
1100
+ \********************************************************/
1101
+ /*! exports provided: withFixedPosition, withFixedPositionControl */
1102
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1103
+
1104
+ "use strict";
1105
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withFixedPosition\", function() { return withFixedPosition; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withFixedPositionControl\", function() { return withFixedPositionControl; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * External dependencies\n */\n\n\n/**\n * This is used as a registry to hold references to each blocks\n * internal setBlockOffset function.\n *\n * @type {Object}\n */\n\nvar setOffset = {};\n/**\n * The list of blocks for which the HoC will be enabled\n *\n * @type {Array}\n */\n\nvar enabledBlocks = ['crowdsignal-forms/feedback'];\n/**\n * Applies the fixed positions settings to the block list wrapper.\n * This is necessary as we need to reposition the wrapper if we\n * want to move the block controls/hitbox as well.\n *\n * @param {Function} BlockListBlock Block list wrapper componnet\n * @return {Function} Enhanced BlockListBlock\n */\n\nvar withFixedPosition = function withFixedPosition(BlockListBlock) {\n return function (props) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"includes\"])(enabledBlocks, props.name)) {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(BlockListBlock, props);\n }\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useState\"])({}),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),\n offset = _useState2[0],\n setBlockOffset = _useState2[1]; // Expose the setBlockOffset handler immediately...\n\n\n setOffset[props.clientId] = setBlockOffset; // ...but make sure to clean it up when the block is removed.\n\n Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useEffect\"])(function () {\n return function () {\n setOffset[props.clientId] = null;\n };\n }, [setOffset, props.clientId]);\n\n var style = _objectSpread({}, Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"get\"])(props, ['wrapperProps', 'style'], {}), {}, offset, {\n position: !Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"isEmpty\"])(offset) ? 'fixed' : null,\n margin: 0\n });\n\n var wrapperProps = _objectSpread({}, props.wrapperProps, {\n style: style\n });\n\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(BlockListBlock, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {\n wrapperProps: wrapperProps\n }));\n };\n};\n/**\n * Injects a setPosition prop into its child for controlling\n * the blocks position.\n * Unfortunately we can't inject things into BlockEdit directly\n * through BlockListBlock hence the necessary roundtrip.\n *\n * @param {Function} BlockEdit Block edit component\n * @return {Function} Enhanced BlockEdit\n */\n\nvar withFixedPositionControl = function withFixedPositionControl(BlockEdit) {\n return function (props) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"includes\"])(enabledBlocks, props.name)) {\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(BlockEdit, props);\n }\n\n var setPosition = Object(react__WEBPACK_IMPORTED_MODULE_4__[\"useCallback\"])(function (value) {\n setOffset[props.clientId](Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"pick\"])(value, ['top', 'left', 'right', 'bottom']));\n }, [props.clientId]);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createElement\"])(BlockEdit, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {\n setPosition: setPosition\n }));\n };\n};\n\n//# sourceURL=webpack:///./client/components/with-fixed-position/index.js?");
1106
+
1107
+ /***/ }),
1108
+
1109
+ /***/ "./client/components/with-poll-base/index.js":
1110
+ /*!***************************************************!*\
1111
+ !*** ./client/components/with-poll-base/index.js ***!
1112
+ \***************************************************/
1113
+ /*! exports provided: default */
1114
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1115
+
1116
+ "use strict";
1117
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"@wordpress/element\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ \"@wordpress/compose\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var blocks_poll_subscriptions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! blocks/poll/subscriptions */ \"./client/blocks/poll/subscriptions.js\");\n/* harmony import */ var components_use_poll_duplicate_cleaner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! components/use-poll-duplicate-cleaner */ \"./client/components/use-poll-duplicate-cleaner/index.js\");\n\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nObject(blocks_poll_subscriptions__WEBPACK_IMPORTED_MODULE_3__[\"startSubscriptions\"])();\n\nvar isP2tenberg = function isP2tenberg() {\n return 'p2tenberg' in window || 'p2editor' in window;\n};\n\nvar withPollBase = function withPollBase(Element) {\n return function (props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes,\n addPollClientId = props.addPollClientId,\n removePollClientId = props.removePollClientId;\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n if (isP2tenberg()) {\n Object(blocks_poll_subscriptions__WEBPACK_IMPORTED_MODULE_3__[\"startPolling\"])();\n }\n\n if (attributes.pollId) {\n addPollClientId(attributes.pollId);\n }\n\n return function () {\n if (attributes.pollId) {\n removePollClientId(attributes.pollId);\n }\n };\n }, []);\n Object(components_use_poll_duplicate_cleaner__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(props.clientId, attributes.pollId, attributes.answers, setAttributes);\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"])(Element, props);\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (Element) {\n return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__[\"compose\"])([Object(blocks_poll_subscriptions__WEBPACK_IMPORTED_MODULE_3__[\"withPollDataSelect\"])(), Object(blocks_poll_subscriptions__WEBPACK_IMPORTED_MODULE_3__[\"withPollDataDispatch\"])(), withPollBase])(Element);\n});\n\n//# sourceURL=webpack:///./client/components/with-poll-base/index.js?");
1118
+
1119
+ /***/ }),
1120
+
1121
+ /***/ "./client/data/feedback/edit.js":
1122
+ /*!**************************************!*\
1123
+ !*** ./client/data/feedback/edit.js ***!
1124
+ \**************************************/
1125
+ /*! exports provided: updateFeedback */
1126
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1127
+
1128
+ "use strict";
1129
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateFeedback\", function() { return updateFeedback; });\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/api-fetch */ \"@wordpress/api-fetch\");\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var data_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! data/util */ \"./client/data/util.js\");\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nvar updateFeedback = function updateFeedback(data) {\n return Object(data_util__WEBPACK_IMPORTED_MODULE_2__[\"withRequestTimeout\"])(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default()({\n path: Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"trimEnd\"])(\"/crowdsignal-forms/v1/feedback/\".concat(data.surveyId || ''), '/'),\n method: 'POST',\n data: data\n }));\n};\n\n//# sourceURL=webpack:///./client/data/feedback/edit.js?");
1130
+
1131
+ /***/ }),
1132
+
1133
+ /***/ "./client/data/hooks/index.js":
1134
+ /*!************************************!*\
1135
+ !*** ./client/data/hooks/index.js ***!
1136
+ \************************************/
1137
+ /*! exports provided: usePollResults, usePollVote, useAccountInfo */
1138
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1139
+
1140
+ "use strict";
1141
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"usePollResults\", function() { return usePollResults; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"usePollVote\", function() { return usePollVote; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useAccountInfo\", function() { return useAccountInfo; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! js-cookie */ \"./node_modules/js-cookie/src/js.cookie.js\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var data_poll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! data/poll */ \"./client/data/poll/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ \"./client/data/hooks/util.js\");\n\n\n\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar usePollResults = function usePollResults(pollId) {\n var doFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n var _useFetch = Object(_util__WEBPACK_IMPORTED_MODULE_6__[\"useFetch\"])(function () {\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestResults\"])(pollId, doFetch);\n }, [pollId]),\n data = _useFetch.data,\n error = _useFetch.error,\n loading = _useFetch.loading;\n\n return {\n error: error,\n loading: loading,\n results: data\n };\n};\n/**\n * React Hook that returns state variables for voting status and a function to perform a vote.\n *\n * @param {number} pollId ID of the poll being loaded.\n * @param {boolean} enableVoteTracking sets whether or not the vote cookie is read and set\n * @param {boolean} storeAnswerIdsInCookie sets whether or not the answer ids are stored in the vote restriction cookie\n */\n\nvar usePollVote = function usePollVote(pollId) {\n var enableVoteTracking = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var storeAnswerIdsInCookie = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var cookieName = \"cs-poll-\".concat(pollId);\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),\n isVoting = _useState2[0],\n setIsVoting = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),\n hasVoted = _useState4[0],\n setHasVoted = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(''),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2),\n storedCookieValue = _useState6[0],\n setStoredCookieValue = _useState6[1];\n\n Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useEffect\"])(function () {\n if (enableVoteTracking && undefined !== js_cookie__WEBPACK_IMPORTED_MODULE_4___default.a.get(cookieName)) {\n setHasVoted(true);\n setStoredCookieValue(js_cookie__WEBPACK_IMPORTED_MODULE_4___default.a.get(cookieName));\n }\n }, []);\n\n var vote = /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(selectedAnswerIds) {\n var voteCount,\n nonce,\n cookieValue,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n voteCount = _args.length > 1 && _args[1] !== undefined ? _args[1] : 1;\n _context.prev = 1;\n setIsVoting(true);\n _context.next = 5;\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestVoteNonce\"])(pollId);\n\n case 5:\n nonce = _context.sent;\n _context.next = 8;\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestVote\"])(nonce, pollId, selectedAnswerIds, voteCount);\n\n case 8:\n setHasVoted(true);\n\n if (enableVoteTracking) {\n cookieValue = storeAnswerIdsInCookie ? selectedAnswerIds.join(',') : new Date().getTime();\n js_cookie__WEBPACK_IMPORTED_MODULE_4___default.a.set(cookieName, cookieValue, {\n sameSite: 'Strict',\n expires: 365\n });\n setStoredCookieValue(cookieValue);\n }\n\n case 10:\n _context.prev = 10;\n setIsVoting(false);\n return _context.finish(10);\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1,, 10, 13]]);\n }));\n\n return function vote(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n\n return {\n hasVoted: hasVoted,\n isVoting: isVoting,\n vote: vote,\n storedCookieValue: storedCookieValue\n };\n};\nvar defaultAccountInfo = {\n is_verified: true,\n capabilities: ['hide-branding'],\n signal_count: {\n count: 0,\n userLimit: 2500,\n shouldDisplay: false\n }\n};\nvar useAccountInfo = function useAccountInfo() {\n // assume everything is fine with the user and\n // hide branding until request comes back\n var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(defaultAccountInfo),\n _useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState7, 2),\n accountInfo = _useState8[0],\n setAccountInfo = _useState8[1];\n\n var getAccountInfo = /*#__PURE__*/function () {\n var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() {\n var info;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return Object(data_poll__WEBPACK_IMPORTED_MODULE_5__[\"requestAccountInfo\"])();\n\n case 2:\n info = _context2.sent;\n setAccountInfo(info);\n return _context2.abrupt(\"return\", info);\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function getAccountInfo() {\n return _ref2.apply(this, arguments);\n };\n }();\n\n Object(react__WEBPACK_IMPORTED_MODULE_3__[\"useEffect\"])(function () {\n getAccountInfo();\n }, []);\n return {\n accountInfo: accountInfo,\n reloadAccountInfo: getAccountInfo\n };\n};\n\n//# sourceURL=webpack:///./client/data/hooks/index.js?");
1142
+
1143
+ /***/ }),
1144
+
1145
+ /***/ "./client/data/hooks/util.js":
1146
+ /*!***********************************!*\
1147
+ !*** ./client/data/hooks/util.js ***!
1148
+ \***********************************/
1149
+ /*! exports provided: useFetch */
1150
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1151
+
1152
+ "use strict";
1153
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useFetch\", function() { return useFetch; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/**\n * External dependencies\n */\n\nvar useFetch = function useFetch(fetchCallback, watchProps) {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n data = _useState2[0],\n setData = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null),\n _useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3, 2),\n error = _useState4[0],\n setError = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(true),\n _useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState5, 2),\n loading = _useState6[0],\n setLoading = _useState6[1];\n\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n setLoading(true);\n setError(null);\n setData(null);\n fetchCallback().then(setData).catch(setError).finally(function () {\n return setLoading(false);\n });\n }, watchProps);\n return {\n data: data,\n error: error,\n loading: loading\n };\n};\n\n//# sourceURL=webpack:///./client/data/hooks/util.js?");
1154
+
1155
+ /***/ }),
1156
+
1157
+ /***/ "./client/data/nps/edit.js":
1158
+ /*!*********************************!*\
1159
+ !*** ./client/data/nps/edit.js ***!
1160
+ \*********************************/
1161
+ /*! exports provided: updateNps */
1162
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1163
+
1164
+ "use strict";
1165
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateNps\", function() { return updateNps; });\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/api-fetch */ \"@wordpress/api-fetch\");\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var data_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! data/util */ \"./client/data/util.js\");\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nvar updateNps = function updateNps(data) {\n return Object(data_util__WEBPACK_IMPORTED_MODULE_2__[\"withRequestTimeout\"])(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default()({\n path: Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"trimEnd\"])(\"/crowdsignal-forms/v1/nps/\".concat(data.surveyId || ''), '/'),\n method: 'POST',\n data: data\n }));\n};\n\n//# sourceURL=webpack:///./client/data/nps/edit.js?");
1166
+
1167
+ /***/ }),
1168
+
1169
+ /***/ "./client/data/poll/index.js":
1170
+ /*!***********************************!*\
1171
+ !*** ./client/data/poll/index.js ***!
1172
+ \***********************************/
1173
+ /*! exports provided: requestResults, requestVoteNonce, requestVote, CrowdsignalFormsError, CrowdsignalFormsServerError, requestIsCsConnected, requestAccountInfo */
1174
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1175
+
1176
+ "use strict";
1177
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestResults\", function() { return requestResults; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestVoteNonce\", function() { return requestVoteNonce; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestVote\", function() { return requestVote; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CrowdsignalFormsError\", function() { return CrowdsignalFormsError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CrowdsignalFormsServerError\", function() { return CrowdsignalFormsServerError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestIsCsConnected\", function() { return requestIsCsConnected; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"requestAccountInfo\", function() { return requestAccountInfo; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ \"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js\");\n/* harmony import */ var _babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"@babel/runtime/regenerator\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/api-fetch */ \"@wordpress/api-fetch\");\n/* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { return function () { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * External dependencies\n */\n\n\n/**\n * Fetch the poll results for the given pollId\n *\n * @param {number} pollId Poll ID.\n * @param {boolean} doFetch Whether or not to actually perform the request.\n * @return {Promise} Promise that resolves to a key-value object with answer IDs and vote counts.\n */\n\nvar requestResults = /*#__PURE__*/function () {\n var _ref = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee(pollId) {\n var doFetch,\n baseUrl,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n doFetch = _args.length > 1 && _args[1] !== undefined ? _args[1] : true;\n baseUrl = 'https://api.crowdsignal.com/v3/polls';\n\n if (doFetch) {\n _context.next = 4;\n break;\n }\n\n return _context.abrupt(\"return\", null);\n\n case 4:\n return _context.abrupt(\"return\", window.fetch(\"\".concat(baseUrl, \"/\").concat(pollId, \"/results\"), {\n method: 'GET',\n headers: {\n 'content-type': 'application/json'\n }\n }).then(function (response) {\n if (response.status >= 200 && response.status < 300) {\n return response.json();\n }\n\n throw response;\n }).then(function (response) {\n if (404 === response.status) {\n // poll doesn't exist on the platform yet, return an empty result\n return {};\n } else if (response.error) {\n throw new Error(response.message);\n }\n\n return response.results.votes_by_answer;\n }));\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function requestResults(_x) {\n return _ref.apply(this, arguments);\n };\n}();\nvar requestVoteNonce = /*#__PURE__*/function () {\n var _ref2 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee2(pollId) {\n var hash, timestamp, respNonce, jsonNonce;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n hash = '5430eeac3911395001d731d9702fc38b'; // hash not used when format=json is passed\n\n timestamp = new Date().getTime();\n _context2.next = 4;\n return window.fetch(\"https://poll.fm/n/\".concat(hash, \"/\").concat(pollId, \"?\").concat(timestamp, \"&format=json\"));\n\n case 4:\n respNonce = _context2.sent;\n\n if (respNonce.ok) {\n _context2.next = 7;\n break;\n }\n\n throw new CrowdsignalFormsServerError();\n\n case 7:\n _context2.next = 9;\n return respNonce.json();\n\n case 9:\n jsonNonce = _context2.sent;\n\n if (jsonNonce.nonce) {\n _context2.next = 12;\n break;\n }\n\n throw new CrowdsignalFormsServerError();\n\n case 12:\n return _context2.abrupt(\"return\", jsonNonce.nonce);\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function requestVoteNonce(_x2) {\n return _ref2.apply(this, arguments);\n };\n}();\nvar requestVote = /*#__PURE__*/function () {\n var _ref3 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee3(nonce, pollId, selectedAnswerIds, voteCount) {\n var answerString, respVote, jsonVote;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n answerString = selectedAnswerIds.join(',');\n _context3.next = 3;\n return window.fetch(\"https://polls.polldaddy.com/vote-js.php?format=json&p=\".concat(pollId, \"&b=1&a=\").concat(answerString, \"&o=&va=16&cookie=0&n=\").concat(nonce, \"&url=\").concat(encodeURIComponent(window.location), \"&vi=\").concat(voteCount));\n\n case 3:\n respVote = _context3.sent;\n\n if (respVote.ok) {\n _context3.next = 6;\n break;\n }\n\n throw new CrowdsignalFormsServerError();\n\n case 6:\n _context3.next = 8;\n return respVote.json();\n\n case 8:\n jsonVote = _context3.sent;\n\n if (!('error' === jsonVote.status)) {\n _context3.next = 11;\n break;\n }\n\n throw new CrowdsignalFormsError(jsonVote.error);\n\n case 11:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function requestVote(_x3, _x4, _x5, _x6) {\n return _ref3.apply(this, arguments);\n };\n}();\nvar CrowdsignalFormsError = /*#__PURE__*/function (_Error) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default()(CrowdsignalFormsError, _Error);\n\n var _super = _createSuper(CrowdsignalFormsError);\n\n function CrowdsignalFormsError() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CrowdsignalFormsError);\n\n return _super.apply(this, arguments);\n }\n\n return CrowdsignalFormsError;\n}( /*#__PURE__*/_babel_runtime_helpers_wrapNativeSuper__WEBPACK_IMPORTED_MODULE_4___default()(Error));\nvar CrowdsignalFormsServerError = /*#__PURE__*/function (_CrowdsignalFormsErro) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1___default()(CrowdsignalFormsServerError, _CrowdsignalFormsErro);\n\n var _super2 = _createSuper(CrowdsignalFormsServerError);\n\n function CrowdsignalFormsServerError() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CrowdsignalFormsServerError);\n\n return _super2.call(this, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__[\"__\"])('Server error. Please try again.', 'crowdsignal-forms'));\n }\n\n return CrowdsignalFormsServerError;\n}(CrowdsignalFormsError);\n/**\n * Returns the connected state of the current user's account.\n *\n * @return {string} Enum value of the account's state.\n */\n\nvar requestIsCsConnected = /*#__PURE__*/function () {\n var _ref4 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee4() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7___default()({\n path: \"/crowdsignal-forms/v1/account/connected\",\n method: 'GET'\n });\n\n case 2:\n return _context4.abrupt(\"return\", _context4.sent);\n\n case 3:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n\n return function requestIsCsConnected() {\n return _ref4.apply(this, arguments);\n };\n}();\nvar requestAccountInfo = /*#__PURE__*/function () {\n var _ref5 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.mark(function _callee5() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_5___default.a.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_7___default()({\n path: '/crowdsignal-forms/v1/account/info',\n method: 'GET'\n });\n\n case 2:\n return _context5.abrupt(\"return\", _context5.sent);\n\n case 3:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }));\n\n return function requestAccountInfo() {\n return _ref5.apply(this, arguments);\n };\n}();\n\n//# sourceURL=webpack:///./client/data/poll/index.js?");
1178
+
1179
+ /***/ }),
1180
+
1181
+ /***/ "./client/data/util.js":
1182
+ /*!*****************************!*\
1183
+ !*** ./client/data/util.js ***!
1184
+ \*****************************/
1185
+ /*! exports provided: withRequestTimeout */
1186
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1187
+
1188
+ "use strict";
1189
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withRequestTimeout\", function() { return withRequestTimeout; });\nvar WP_API_REQUEST_TIMEOUT = 10000;\n/**\n * Wraps a promise in a timeout that will reject\n * when it fails to complite within given time.\n *\n * @param {Promise} promise Promise\n * @return {Promise} Promise wrapped in a request timeout\n */\n\nvar withRequestTimeout = function withRequestTimeout(promise) {\n return new Promise(function (resolve, reject) {\n var timer = setTimeout(function () {\n return reject(new Error('Request timed out'));\n }, WP_API_REQUEST_TIMEOUT);\n promise.then(resolve, reject).finally(function () {\n return clearTimeout(timer);\n });\n });\n};\n\n//# sourceURL=webpack:///./client/data/util.js?");
1190
+
1191
+ /***/ }),
1192
+
1193
+ /***/ "./client/editor.js":
1194
+ /*!**************************!*\
1195
+ !*** ./client/editor.js ***!
1196
+ \**************************/
1197
+ /*! no exports provided */
1198
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1199
+
1200
+ "use strict";
1201
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ \"@wordpress/hooks\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var blocks_poll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! blocks/poll */ \"./client/blocks/poll/index.js\");\n/* harmony import */ var blocks_vote__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! blocks/vote */ \"./client/blocks/vote/index.js\");\n/* harmony import */ var blocks_vote_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! blocks/vote-item */ \"./client/blocks/vote-item/index.js\");\n/* harmony import */ var blocks_applause__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! blocks/applause */ \"./client/blocks/applause/index.js\");\n/* harmony import */ var blocks_nps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! blocks/nps */ \"./client/blocks/nps/index.js\");\n/* harmony import */ var blocks_feedback__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! blocks/feedback */ \"./client/blocks/feedback/index.js\");\n/* harmony import */ var components_with_fixed_position__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! components/with-fixed-position */ \"./client/components/with-fixed-position/index.js\");\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\nObject(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__[\"registerBlockType\"])('crowdsignal-forms/poll', blocks_poll__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\nObject(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__[\"registerBlockType\"])('crowdsignal-forms/vote', blocks_vote__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\nObject(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__[\"registerBlockType\"])('crowdsignal-forms/vote-item', blocks_vote_item__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\nObject(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__[\"registerBlockType\"])('crowdsignal-forms/applause', blocks_applause__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\nObject(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__[\"registerBlockType\"])('crowdsignal-forms/nps', blocks_nps__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\nObject(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__[\"registerBlockType\"])('crowdsignal-forms/feedback', blocks_feedback__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__[\"addFilter\"])('editor.BlockListBlock', 'crowdsignal-forms/with-fixed-position', components_with_fixed_position__WEBPACK_IMPORTED_MODULE_8__[\"withFixedPosition\"], 1);\nObject(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__[\"addFilter\"])('editor.BlockEdit', 'crowdsignal-forms/with-fixed-position-control', components_with_fixed_position__WEBPACK_IMPORTED_MODULE_8__[\"withFixedPositionControl\"]);\n\n//# sourceURL=webpack:///./client/editor.js?");
1202
+
1203
+ /***/ }),
1204
+
1205
+ /***/ "./client/lib/tracks.js":
1206
+ /*!******************************!*\
1207
+ !*** ./client/lib/tracks.js ***!
1208
+ \******************************/
1209
+ /*! exports provided: trackFailedConnection */
1210
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1211
+
1212
+ "use strict";
1213
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trackFailedConnection\", function() { return trackFailedConnection; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"lodash\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\nvar trackFailedConnection = Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"debounce\"])(function (authorId, blockName) {\n window._tkq = window._tkq || [];\n\n window._tkq.push(['recordEvent', 'crowdsignal_connection_failed', {\n author_id: authorId,\n block_name: blockName\n }]);\n}, 5000);\n\n//# sourceURL=webpack:///./client/lib/tracks.js?");
1214
+
1215
+ /***/ }),
1216
+
1217
+ /***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1218
+ /*!*****************************************************************!*\
1219
+ !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1220
+ \*****************************************************************/
1221
+ /*! no static exports found */
1222
+ /***/ (function(module, exports) {
1223
+
1224
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js?");
1225
+
1226
+ /***/ }),
1227
+
1228
+ /***/ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1229
+ /*!***************************************************************!*\
1230
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1231
+ \***************************************************************/
1232
+ /*! no static exports found */
1233
+ /***/ (function(module, exports) {
1234
+
1235
+ eval("function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js?");
1236
+
1237
+ /***/ }),
1238
+
1239
+ /***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
1240
+ /*!******************************************************************!*\
1241
+ !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
1242
+ \******************************************************************/
1243
+ /*! no static exports found */
1244
+ /***/ (function(module, exports, __webpack_require__) {
1245
+
1246
+ eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js?");
1247
+
1248
+ /***/ }),
1249
+
1250
+ /***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js":
1251
+ /*!**********************************************************************!*\
1252
+ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
1253
+ \**********************************************************************/
1254
+ /*! no static exports found */
1255
+ /***/ (function(module, exports) {
1256
+
1257
+ eval("function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js?");
1258
+
1259
+ /***/ }),
1260
+
1261
+ /***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js":
1262
+ /*!*****************************************************************!*\
1263
+ !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
1264
+ \*****************************************************************/
1265
+ /*! no static exports found */
1266
+ /***/ (function(module, exports) {
1267
+
1268
+ eval("function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/asyncToGenerator.js?");
1269
+
1270
+ /***/ }),
1271
+
1272
+ /***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js":
1273
+ /*!***************************************************************!*\
1274
+ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1275
+ \***************************************************************/
1276
+ /*! no static exports found */
1277
+ /***/ (function(module, exports) {
1278
+
1279
+ eval("function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/classCallCheck.js?");
1280
+
1281
+ /***/ }),
1282
+
1283
+ /***/ "./node_modules/@babel/runtime/helpers/construct.js":
1284
+ /*!**********************************************************!*\
1285
+ !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
1286
+ \**********************************************************/
1287
+ /*! no static exports found */
1288
+ /***/ (function(module, exports, __webpack_require__) {
1289
+
1290
+ eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nvar isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct */ \"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js\");\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/construct.js?");
1291
+
1292
+ /***/ }),
1293
+
1294
+ /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
1295
+ /*!***************************************************************!*\
1296
+ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
1297
+ \***************************************************************/
1298
+ /*! no static exports found */
1299
+ /***/ (function(module, exports) {
1300
+
1301
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js?");
1302
+
1303
+ /***/ }),
1304
+
1305
+ /***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
1306
+ /*!**************************************************************************!*\
1307
+ !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
1308
+ \**************************************************************************/
1309
+ /*! exports provided: default */
1310
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1311
+
1312
+ "use strict";
1313
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _assertThisInitialized; });\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js?");
1314
+
1315
+ /***/ }),
1316
+
1317
+ /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
1318
+ /*!************************************************************!*\
1319
+ !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
1320
+ \************************************************************/
1321
+ /*! exports provided: default */
1322
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1323
+
1324
+ "use strict";
1325
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _extends; });\nfunction _extends() {\n _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\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js?");
1326
+
1327
+ /***/ }),
1328
+
1329
+ /***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
1330
+ /*!******************************************************************!*\
1331
+ !*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
1332
+ \******************************************************************/
1333
+ /*! exports provided: default */
1334
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1335
+
1336
+ "use strict";
1337
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _inheritsLoose; });\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js?");
1338
+
1339
+ /***/ }),
1340
+
1341
+ /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
1342
+ /*!*********************************************************************************!*\
1343
+ !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
1344
+ \*********************************************************************************/
1345
+ /*! exports provided: default */
1346
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1347
+
1348
+ "use strict";
1349
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _objectWithoutPropertiesLoose; });\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js?");
1350
+
1351
+ /***/ }),
1352
+
1353
+ /***/ "./node_modules/@babel/runtime/helpers/extends.js":
1354
+ /*!********************************************************!*\
1355
+ !*** ./node_modules/@babel/runtime/helpers/extends.js ***!
1356
+ \********************************************************/
1357
+ /*! no static exports found */
1358
+ /***/ (function(module, exports) {
1359
+
1360
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/extends.js?");
1361
+
1362
+ /***/ }),
1363
+
1364
+ /***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js":
1365
+ /*!***************************************************************!*\
1366
+ !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
1367
+ \***************************************************************/
1368
+ /*! no static exports found */
1369
+ /***/ (function(module, exports) {
1370
+
1371
+ eval("function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js?");
1372
+
1373
+ /***/ }),
1374
+
1375
+ /***/ "./node_modules/@babel/runtime/helpers/inherits.js":
1376
+ /*!*********************************************************!*\
1377
+ !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
1378
+ \*********************************************************/
1379
+ /*! no static exports found */
1380
+ /***/ (function(module, exports, __webpack_require__) {
1381
+
1382
+ eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/inherits.js?");
1383
+
1384
+ /***/ }),
1385
+
1386
+ /***/ "./node_modules/@babel/runtime/helpers/isNativeFunction.js":
1387
+ /*!*****************************************************************!*\
1388
+ !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
1389
+ \*****************************************************************/
1390
+ /*! no static exports found */
1391
+ /***/ (function(module, exports) {
1392
+
1393
+ eval("function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/isNativeFunction.js?");
1394
+
1395
+ /***/ }),
1396
+
1397
+ /***/ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
1398
+ /*!*************************************************************************!*\
1399
+ !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
1400
+ \*************************************************************************/
1401
+ /*! no static exports found */
1402
+ /***/ (function(module, exports) {
1403
+
1404
+ eval("function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nmodule.exports = _isNativeReflectConstruct;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js?");
1405
+
1406
+ /***/ }),
1407
+
1408
+ /***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js":
1409
+ /*!****************************************************************!*\
1410
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
1411
+ \****************************************************************/
1412
+ /*! no static exports found */
1413
+ /***/ (function(module, exports) {
1414
+
1415
+ eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js?");
1416
+
1417
+ /***/ }),
1418
+
1419
+ /***/ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1420
+ /*!*********************************************************************!*\
1421
+ !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1422
+ \*********************************************************************/
1423
+ /*! no static exports found */
1424
+ /***/ (function(module, exports) {
1425
+
1426
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js?");
1427
+
1428
+ /***/ }),
1429
+
1430
+ /***/ "./node_modules/@babel/runtime/helpers/nonIterableRest.js":
1431
+ /*!****************************************************************!*\
1432
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1433
+ \****************************************************************/
1434
+ /*! no static exports found */
1435
+ /***/ (function(module, exports) {
1436
+
1437
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/nonIterableRest.js?");
1438
+
1439
+ /***/ }),
1440
+
1441
+ /***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js":
1442
+ /*!******************************************************************!*\
1443
+ !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
1444
+ \******************************************************************/
1445
+ /*! no static exports found */
1446
+ /***/ (function(module, exports) {
1447
+
1448
+ eval("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;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js?");
1449
+
1450
+ /***/ }),
1451
+
1452
+ /***/ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":
1453
+ /*!************************************************************************!*\
1454
+ !*** ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
1455
+ \************************************************************************/
1456
+ /*! no static exports found */
1457
+ /***/ (function(module, exports, __webpack_require__) {
1458
+
1459
+ eval("var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/objectWithoutProperties.js?");
1460
+
1461
+ /***/ }),
1462
+
1463
+ /***/ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
1464
+ /*!*****************************************************************************!*\
1465
+ !*** ./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
1466
+ \*****************************************************************************/
1467
+ /*! no static exports found */
1468
+ /***/ (function(module, exports) {
1469
+
1470
+ eval("function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js?");
1471
+
1472
+ /***/ }),
1473
+
1474
+ /***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
1475
+ /*!**************************************************************************!*\
1476
+ !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
1477
+ \**************************************************************************/
1478
+ /*! no static exports found */
1479
+ /***/ (function(module, exports, __webpack_require__) {
1480
+
1481
+ eval("var _typeof = __webpack_require__(/*! ../helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n\nvar assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js?");
1482
+
1483
+ /***/ }),
1484
+
1485
+ /***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js":
1486
+ /*!***************************************************************!*\
1487
+ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
1488
+ \***************************************************************/
1489
+ /*! no static exports found */
1490
+ /***/ (function(module, exports) {
1491
+
1492
+ eval("function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js?");
1493
+
1494
+ /***/ }),
1495
+
1496
+ /***/ "./node_modules/@babel/runtime/helpers/slicedToArray.js":
1497
+ /*!**************************************************************!*\
1498
+ !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
1499
+ \**************************************************************/
1500
+ /*! no static exports found */
1501
+ /***/ (function(module, exports, __webpack_require__) {
1502
+
1503
+ eval("var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles */ \"./node_modules/@babel/runtime/helpers/arrayWithHoles.js\");\n\nvar iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit */ \"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableRest = __webpack_require__(/*! ./nonIterableRest */ \"./node_modules/@babel/runtime/helpers/nonIterableRest.js\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/slicedToArray.js?");
1504
+
1505
+ /***/ }),
1506
+
1507
+ /***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js":
1508
+ /*!******************************************************************!*\
1509
+ !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
1510
+ \******************************************************************/
1511
+ /*! no static exports found */
1512
+ /***/ (function(module, exports, __webpack_require__) {
1513
+
1514
+ eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles */ \"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray */ \"./node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread */ \"./node_modules/@babel/runtime/helpers/nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js?");
1515
+
1516
+ /***/ }),
1517
+
1518
+ /***/ "./node_modules/@babel/runtime/helpers/typeof.js":
1519
+ /*!*******************************************************!*\
1520
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
1521
+ \*******************************************************/
1522
+ /*! no static exports found */
1523
+ /***/ (function(module, exports) {
1524
+
1525
+ eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/typeof.js?");
1526
+
1527
+ /***/ }),
1528
+
1529
+ /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
1530
+ /*!***************************************************************************!*\
1531
+ !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
1532
+ \***************************************************************************/
1533
+ /*! no static exports found */
1534
+ /***/ (function(module, exports, __webpack_require__) {
1535
+
1536
+ eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\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(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js?");
1537
+
1538
+ /***/ }),
1539
+
1540
+ /***/ "./node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
1541
+ /*!****************************************************************!*\
1542
+ !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
1543
+ \****************************************************************/
1544
+ /*! no static exports found */
1545
+ /***/ (function(module, exports, __webpack_require__) {
1546
+
1547
+ eval("var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n\nvar setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nvar isNativeFunction = __webpack_require__(/*! ./isNativeFunction */ \"./node_modules/@babel/runtime/helpers/isNativeFunction.js\");\n\nvar construct = __webpack_require__(/*! ./construct */ \"./node_modules/@babel/runtime/helpers/construct.js\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/wrapNativeSuper.js?");
1548
+
1549
+ /***/ }),
1550
+
1551
+ /***/ "./node_modules/@popperjs/core/lib/createPopper.js":
1552
+ /*!*********************************************************!*\
1553
+ !*** ./node_modules/@popperjs/core/lib/createPopper.js ***!
1554
+ \*********************************************************/
1555
+ /*! exports provided: popperGenerator, createPopper, detectOverflow */
1556
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1557
+
1558
+ "use strict";
1559
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"popperGenerator\", function() { return popperGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPopper\", function() { return createPopper; });\n/* harmony import */ var _dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom-utils/getCompositeRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js\");\n/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom-utils/getLayoutRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js\");\n/* harmony import */ var _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom-utils/listScrollParents.js */ \"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js\");\n/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dom-utils/getOffsetParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\");\n/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dom-utils/getComputedStyle.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\");\n/* harmony import */ var _utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/orderModifiers.js */ \"./node_modules/@popperjs/core/lib/utils/orderModifiers.js\");\n/* harmony import */ var _utils_debounce_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/debounce.js */ \"./node_modules/@popperjs/core/lib/utils/debounce.js\");\n/* harmony import */ var _utils_validateModifiers_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/validateModifiers.js */ \"./node_modules/@popperjs/core/lib/utils/validateModifiers.js\");\n/* harmony import */ var _utils_uniqueBy_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/uniqueBy.js */ \"./node_modules/@popperjs/core/lib/utils/uniqueBy.js\");\n/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/getBasePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js\");\n/* harmony import */ var _utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/mergeByName.js */ \"./node_modules/@popperjs/core/lib/utils/mergeByName.js\");\n/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/detectOverflow.js */ \"./node_modules/@popperjs/core/lib/utils/detectOverflow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"detectOverflow\", function() { return _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dom-utils/instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nfunction popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(options) {\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_12__[\"isElement\"])(reference) ? Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(reference) : reference.contextElement ? Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(reference.contextElement) : [],\n popper: Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = Object(_utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(Object(_utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"])([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (undefined !== \"production\") {\n var modifiers = Object(_utils_uniqueBy_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n Object(_utils_validateModifiers_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(modifiers);\n\n if (Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(state.options.placement) === _enums_js__WEBPACK_IMPORTED_MODULE_13__[\"auto\"]) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (undefined !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: Object(_dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(reference, Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(popper), state.options.strategy === 'fixed'),\n popper: Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (undefined !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: Object(_utils_debounce_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (undefined !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nvar createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\n\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/createPopper.js?");
1560
+
1561
+ /***/ }),
1562
+
1563
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/contains.js":
1564
+ /*!***************************************************************!*\
1565
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/contains.js ***!
1566
+ \***************************************************************/
1567
+ /*! exports provided: default */
1568
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1569
+
1570
+ "use strict";
1571
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return contains; });\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n\nfunction contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__[\"isShadowRoot\"])(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/contains.js?");
1572
+
1573
+ /***/ }),
1574
+
1575
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":
1576
+ /*!****************************************************************************!*\
1577
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js ***!
1578
+ \****************************************************************************/
1579
+ /*! exports provided: default */
1580
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1581
+
1582
+ "use strict";
1583
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getBoundingClientRect; });\nfunction getBoundingClientRect(element) {\n var rect = element.getBoundingClientRect();\n return {\n width: rect.width,\n height: rect.height,\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n x: rect.left,\n y: rect.top\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js?");
1584
+
1585
+ /***/ }),
1586
+
1587
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":
1588
+ /*!**********************************************************************!*\
1589
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js ***!
1590
+ \**********************************************************************/
1591
+ /*! exports provided: default */
1592
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1593
+
1594
+ "use strict";
1595
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getClippingRect; });\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony import */ var _getViewportRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getViewportRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js\");\n/* harmony import */ var _getDocumentRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js\");\n/* harmony import */ var _listScrollParents_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./listScrollParents.js */ \"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js\");\n/* harmony import */ var _getOffsetParent_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getOffsetParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\");\n/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getComputedStyle.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\");\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getBoundingClientRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js\");\n/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getParentNode.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js\");\n/* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./contains.js */ \"./node_modules/@popperjs/core/lib/dom-utils/contains.js\");\n/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n/* harmony import */ var _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/rectToClientRect.js */ \"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js\");\n/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/math.js */ \"./node_modules/@popperjs/core/lib/utils/math.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction getInnerBoundingClientRect(element) {\n var rect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(element);\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent) {\n return clippingParent === _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"viewport\"] ? Object(_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(Object(_getViewportRect_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(element)) : Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__[\"isHTMLElement\"])(clippingParent) ? getInnerBoundingClientRect(clippingParent) : Object(_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(Object(_getDocumentRect_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = Object(_listScrollParents_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(element).position) >= 0;\n var clipperElement = canEscapeClipping && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__[\"isHTMLElement\"])(element) ? Object(_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(element) : element;\n\n if (!Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__[\"isElement\"])(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__[\"isElement\"])(clippingParent) && Object(_contains_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(clippingParent, clipperElement) && Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nfunction getClippingRect(element, boundary, rootBoundary) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent);\n accRect.top = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__[\"max\"])(rect.top, accRect.top);\n accRect.right = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__[\"min\"])(rect.right, accRect.right);\n accRect.bottom = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__[\"min\"])(rect.bottom, accRect.bottom);\n accRect.left = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__[\"max\"])(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js?");
1596
+
1597
+ /***/ }),
1598
+
1599
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":
1600
+ /*!***********************************************************************!*\
1601
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js ***!
1602
+ \***********************************************************************/
1603
+ /*! exports provided: default */
1604
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1605
+
1606
+ "use strict";
1607
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getCompositeRect; });\n/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js\");\n/* harmony import */ var _getNodeScroll_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeScroll.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js\");\n/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js\");\n/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isScrollParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js\");\n\n\n\n\n\n\n // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\nfunction getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var documentElement = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(offsetParent);\n var rect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(elementOrVirtualElement);\n var isOffsetParentAnElement = Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(offsetParent);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n Object(_isScrollParent_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(documentElement)) {\n scroll = Object(_getNodeScroll_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(offsetParent);\n }\n\n if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(offsetParent)) {\n offsets = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(offsetParent);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js?");
1608
+
1609
+ /***/ }),
1610
+
1611
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":
1612
+ /*!***********************************************************************!*\
1613
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js ***!
1614
+ \***********************************************************************/
1615
+ /*! exports provided: default */
1616
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1617
+
1618
+ "use strict";
1619
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getComputedStyle; });\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n\nfunction getComputedStyle(element) {\n return Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element).getComputedStyle(element);\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js?");
1620
+
1621
+ /***/ }),
1622
+
1623
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":
1624
+ /*!*************************************************************************!*\
1625
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js ***!
1626
+ \*************************************************************************/
1627
+ /*! exports provided: default */
1628
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1629
+
1630
+ "use strict";
1631
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getDocumentElement; });\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n\nfunction getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__[\"isElement\"])(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js?");
1632
+
1633
+ /***/ }),
1634
+
1635
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":
1636
+ /*!**********************************************************************!*\
1637
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js ***!
1638
+ \**********************************************************************/
1639
+ /*! exports provided: default */
1640
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1641
+
1642
+ "use strict";
1643
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getDocumentRect; });\n/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getComputedStyle.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\");\n/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js\");\n/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindowScroll.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js\");\n/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/math.js */ \"./node_modules/@popperjs/core/lib/utils/math.js\");\n\n\n\n\n // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nfunction getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element);\n var winScroll = Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_4__[\"max\"])(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_4__[\"max\"])(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element);\n var y = -winScroll.scrollTop;\n\n if (Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(body || html).direction === 'rtl') {\n x += Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_4__[\"max\"])(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js?");
1644
+
1645
+ /***/ }),
1646
+
1647
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":
1648
+ /*!***************************************************************************!*\
1649
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js ***!
1650
+ \***************************************************************************/
1651
+ /*! exports provided: default */
1652
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1653
+
1654
+ "use strict";
1655
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getHTMLElementScroll; });\nfunction getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js?");
1656
+
1657
+ /***/ }),
1658
+
1659
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":
1660
+ /*!********************************************************************!*\
1661
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js ***!
1662
+ \********************************************************************/
1663
+ /*! exports provided: default */
1664
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1665
+
1666
+ "use strict";
1667
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getLayoutRect; });\n/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js\");\n // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nfunction getLayoutRect(element) {\n var clientRect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js?");
1668
+
1669
+ /***/ }),
1670
+
1671
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":
1672
+ /*!******************************************************************!*\
1673
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js ***!
1674
+ \******************************************************************/
1675
+ /*! exports provided: default */
1676
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1677
+
1678
+ "use strict";
1679
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getNodeName; });\nfunction getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js?");
1680
+
1681
+ /***/ }),
1682
+
1683
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":
1684
+ /*!********************************************************************!*\
1685
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js ***!
1686
+ \********************************************************************/
1687
+ /*! exports provided: default */
1688
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1689
+
1690
+ "use strict";
1691
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getNodeScroll; });\n/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindowScroll.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js\");\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n/* harmony import */ var _getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getHTMLElementScroll.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js\");\n\n\n\n\nfunction getNodeScroll(node) {\n if (node === Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(node) || !Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_2__[\"isHTMLElement\"])(node)) {\n return Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node);\n } else {\n return Object(_getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(node);\n }\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js?");
1692
+
1693
+ /***/ }),
1694
+
1695
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":
1696
+ /*!**********************************************************************!*\
1697
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js ***!
1698
+ \**********************************************************************/
1699
+ /*! exports provided: default */
1700
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1701
+
1702
+ "use strict";
1703
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getOffsetParent; });\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getComputedStyle.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\");\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n/* harmony import */ var _isTableElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isTableElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js\");\n/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getParentNode.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js\");\n\n\n\n\n\n\n\nfunction getTrueOffsetParent(element) {\n if (!Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(element) || // https://github.com/popperjs/popper-core/issues/837\n Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nfunction getOffsetParent(element) {\n var window = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && Object(_isTableElement_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(offsetParent) && Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(offsetParent) === 'html' || Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(offsetParent) === 'body' && Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js?");
1704
+
1705
+ /***/ }),
1706
+
1707
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":
1708
+ /*!********************************************************************!*\
1709
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js ***!
1710
+ \********************************************************************/
1711
+ /*! exports provided: default */
1712
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1713
+
1714
+ "use strict";
1715
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getParentNode; });\n/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n\n\n\nfunction getParentNode(element) {\n if (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_2__[\"isShadowRoot\"])(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(element) // fallback\n\n );\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js?");
1716
+
1717
+ /***/ }),
1718
+
1719
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":
1720
+ /*!**********************************************************************!*\
1721
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js ***!
1722
+ \**********************************************************************/
1723
+ /*! exports provided: default */
1724
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1725
+
1726
+ "use strict";
1727
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getScrollParent; });\n/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getParentNode.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js\");\n/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isScrollParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js\");\n/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n\n\n\n\nfunction getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(node) && Object(_isScrollParent_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(node)) {\n return node;\n }\n\n return getScrollParent(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node));\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js?");
1728
+
1729
+ /***/ }),
1730
+
1731
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":
1732
+ /*!**********************************************************************!*\
1733
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js ***!
1734
+ \**********************************************************************/
1735
+ /*! exports provided: default */
1736
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1737
+
1738
+ "use strict";
1739
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getViewportRect; });\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js\");\n\n\n\nfunction getViewportRect(element) {\n var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element);\n var html = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper\n // can be obscured underneath it.\n // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\n // if it isn't open, so if this isn't available, the popper will be detected\n // to overflow the bottom of the screen too early.\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n // errors due to floating point numbers, so we need to check precision.\n // Safari returns a number <= 0, usually < -1 when pinch-zoomed\n // Feature detection fails in mobile emulation mode in Chrome.\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <\n // 0.001\n // Fallback here: \"Not Safari\" userAgent\n\n if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element),\n y: y\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js?");
1740
+
1741
+ /***/ }),
1742
+
1743
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":
1744
+ /*!****************************************************************!*\
1745
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js ***!
1746
+ \****************************************************************/
1747
+ /*! exports provided: default */
1748
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1749
+
1750
+ "use strict";
1751
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getWindow; });\nfunction getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindow.js?");
1752
+
1753
+ /***/ }),
1754
+
1755
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":
1756
+ /*!**********************************************************************!*\
1757
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js ***!
1758
+ \**********************************************************************/
1759
+ /*! exports provided: default */
1760
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1761
+
1762
+ "use strict";
1763
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getWindowScroll; });\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n\nfunction getWindowScroll(node) {\n var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js?");
1764
+
1765
+ /***/ }),
1766
+
1767
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":
1768
+ /*!**************************************************************************!*\
1769
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js ***!
1770
+ \**************************************************************************/
1771
+ /*! exports provided: default */
1772
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1773
+
1774
+ "use strict";
1775
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getWindowScrollBarX; });\n/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js\");\n/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js\");\n\n\n\nfunction getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(element)).left + Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element).scrollLeft;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js?");
1776
+
1777
+ /***/ }),
1778
+
1779
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":
1780
+ /*!*****************************************************************!*\
1781
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js ***!
1782
+ \*****************************************************************/
1783
+ /*! exports provided: isElement, isHTMLElement, isShadowRoot */
1784
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1785
+
1786
+ "use strict";
1787
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isElement\", function() { return isElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isHTMLElement\", function() { return isHTMLElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isShadowRoot\", function() { return isShadowRoot; });\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n\n\nfunction isElement(node) {\n var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\n\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js?");
1788
+
1789
+ /***/ }),
1790
+
1791
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":
1792
+ /*!*********************************************************************!*\
1793
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js ***!
1794
+ \*********************************************************************/
1795
+ /*! exports provided: default */
1796
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1797
+
1798
+ "use strict";
1799
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isScrollParent; });\n/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getComputedStyle.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\");\n\nfunction isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js?");
1800
+
1801
+ /***/ }),
1802
+
1803
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":
1804
+ /*!*********************************************************************!*\
1805
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js ***!
1806
+ \*********************************************************************/
1807
+ /*! exports provided: default */
1808
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1809
+
1810
+ "use strict";
1811
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isTableElement; });\n/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element)) >= 0;\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js?");
1812
+
1813
+ /***/ }),
1814
+
1815
+ /***/ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":
1816
+ /*!************************************************************************!*\
1817
+ !*** ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js ***!
1818
+ \************************************************************************/
1819
+ /*! exports provided: default */
1820
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1821
+
1822
+ "use strict";
1823
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return listScrollParents; });\n/* harmony import */ var _getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js\");\n/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getParentNode.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js\");\n/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isScrollParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js\");\n\n\n\n\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nfunction listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = Object(_getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], Object(_isScrollParent_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(target)));\n}\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js?");
1824
+
1825
+ /***/ }),
1826
+
1827
+ /***/ "./node_modules/@popperjs/core/lib/enums.js":
1828
+ /*!**************************************************!*\
1829
+ !*** ./node_modules/@popperjs/core/lib/enums.js ***!
1830
+ \**************************************************/
1831
+ /*! exports provided: top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite, modifierPhases */
1832
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1833
+
1834
+ "use strict";
1835
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"top\", function() { return top; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"bottom\", function() { return bottom; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"right\", function() { return right; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"left\", function() { return left; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"auto\", function() { return auto; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"basePlacements\", function() { return basePlacements; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"start\", function() { return start; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"end\", function() { return end; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clippingParents\", function() { return clippingParents; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"viewport\", function() { return viewport; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"popper\", function() { return popper; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reference\", function() { return reference; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"variationPlacements\", function() { return variationPlacements; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"placements\", function() { return placements; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"beforeRead\", function() { return beforeRead; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"read\", function() { return read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"afterRead\", function() { return afterRead; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"beforeMain\", function() { return beforeMain; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"main\", function() { return main; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"afterMain\", function() { return afterMain; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"beforeWrite\", function() { return beforeWrite; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"write\", function() { return write; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"afterWrite\", function() { return afterWrite; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"modifierPhases\", function() { return modifierPhases; });\nvar top = 'top';\nvar bottom = 'bottom';\nvar right = 'right';\nvar left = 'left';\nvar auto = 'auto';\nvar basePlacements = [top, bottom, right, left];\nvar start = 'start';\nvar end = 'end';\nvar clippingParents = 'clippingParents';\nvar viewport = 'viewport';\nvar popper = 'popper';\nvar reference = 'reference';\nvar variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nvar placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nvar beforeRead = 'beforeRead';\nvar read = 'read';\nvar afterRead = 'afterRead'; // pure-logic modifiers\n\nvar beforeMain = 'beforeMain';\nvar main = 'main';\nvar afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nvar beforeWrite = 'beforeWrite';\nvar write = 'write';\nvar afterWrite = 'afterWrite';\nvar modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/enums.js?");
1836
+
1837
+ /***/ }),
1838
+
1839
+ /***/ "./node_modules/@popperjs/core/lib/index.js":
1840
+ /*!**************************************************!*\
1841
+ !*** ./node_modules/@popperjs/core/lib/index.js ***!
1842
+ \**************************************************/
1843
+ /*! exports provided: top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite, modifierPhases, applyStyles, arrow, computeStyles, eventListeners, flip, hide, offset, popperOffsets, preventOverflow, popperGenerator, detectOverflow, createPopperBase, createPopper, createPopperLite */
1844
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1845
+
1846
+ "use strict";
1847
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"top\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"top\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"bottom\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"bottom\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"right\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"right\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"left\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"left\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"auto\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"auto\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"basePlacements\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"basePlacements\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"start\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"start\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"end\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"end\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"clippingParents\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"clippingParents\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"viewport\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"viewport\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"popper\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"popper\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"reference\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"reference\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"variationPlacements\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"variationPlacements\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"placements\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"placements\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"beforeRead\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"beforeRead\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"read\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"read\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"afterRead\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"afterRead\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"beforeMain\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"beforeMain\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"main\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"main\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"afterMain\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"afterMain\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"beforeWrite\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"beforeWrite\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"write\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"write\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"afterWrite\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"afterWrite\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"modifierPhases\", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"modifierPhases\"]; });\n\n/* harmony import */ var _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/index.js */ \"./node_modules/@popperjs/core/lib/modifiers/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"applyStyles\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"applyStyles\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"arrow\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"arrow\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"computeStyles\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"computeStyles\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"eventListeners\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"eventListeners\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"flip\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"flip\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"hide\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"hide\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"offset\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"offset\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"popperOffsets\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"popperOffsets\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"preventOverflow\", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__[\"preventOverflow\"]; });\n\n/* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createPopper.js */ \"./node_modules/@popperjs/core/lib/createPopper.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"popperGenerator\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_2__[\"popperGenerator\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"detectOverflow\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_2__[\"detectOverflow\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createPopperBase\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_2__[\"createPopper\"]; });\n\n/* harmony import */ var _popper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./popper.js */ \"./node_modules/@popperjs/core/lib/popper.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createPopper\", function() { return _popper_js__WEBPACK_IMPORTED_MODULE_3__[\"createPopper\"]; });\n\n/* harmony import */ var _popper_lite_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./popper-lite.js */ \"./node_modules/@popperjs/core/lib/popper-lite.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createPopperLite\", function() { return _popper_lite_js__WEBPACK_IMPORTED_MODULE_4__[\"createPopper\"]; });\n\n\n // eslint-disable-next-line import/no-unused-modules\n\n // eslint-disable-next-line import/no-unused-modules\n\n // eslint-disable-next-line import/no-unused-modules\n\n\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/index.js?");
1848
+
1849
+ /***/ }),
1850
+
1851
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":
1852
+ /*!******************************************************************!*\
1853
+ !*** ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js ***!
1854
+ \******************************************************************/
1855
+ /*! exports provided: default */
1856
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1857
+
1858
+ "use strict";
1859
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getNodeName.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\");\n/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n\n // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__[\"isHTMLElement\"])(element) || !Object(_dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__[\"isHTMLElement\"])(element) || !Object(_dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/applyStyles.js?");
1860
+
1861
+ /***/ }),
1862
+
1863
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/arrow.js":
1864
+ /*!************************************************************!*\
1865
+ !*** ./node_modules/@popperjs/core/lib/modifiers/arrow.js ***!
1866
+ \************************************************************/
1867
+ /*! exports provided: default */
1868
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1869
+
1870
+ "use strict";
1871
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js\");\n/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js\");\n/* harmony import */ var _dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/contains.js */ \"./node_modules/@popperjs/core/lib/dom-utils/contains.js\");\n/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\");\n/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js\");\n/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/within.js */ \"./node_modules/@popperjs/core/lib/utils/within.js\");\n/* harmony import */ var _utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/mergePaddingObject.js */ \"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js\");\n/* harmony import */ var _utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/expandToHashMap.js */ \"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js\");\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ \"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\");\n\n\n\n\n\n\n\n\n\n // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return Object(_utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(typeof padding !== 'number' ? padding : Object(_utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(padding, _enums_js__WEBPACK_IMPORTED_MODULE_8__[\"basePlacements\"]));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(state.placement);\n var axis = Object(_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(basePlacement);\n var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_8__[\"left\"], _enums_js__WEBPACK_IMPORTED_MODULE_8__[\"right\"]].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(arrowElement);\n var minProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_8__[\"top\"] : _enums_js__WEBPACK_IMPORTED_MODULE_8__[\"left\"];\n var maxProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_8__[\"bottom\"] : _enums_js__WEBPACK_IMPORTED_MODULE_8__[\"right\"];\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (undefined !== \"production\") {\n if (!Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_9__[\"isHTMLElement\"])(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!Object(_dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(state.elements.popper, arrowElement)) {\n if (undefined !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/arrow.js?");
1872
+
1873
+ /***/ }),
1874
+
1875
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":
1876
+ /*!********************************************************************!*\
1877
+ !*** ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js ***!
1878
+ \********************************************************************/
1879
+ /*! exports provided: mapToStyles, default */
1880
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1881
+
1882
+ "use strict";
1883
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapToStyles\", function() { return mapToStyles; });\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\");\n/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n/* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getDocumentElement.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\");\n/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dom-utils/getComputedStyle.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\");\n/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js\");\n/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/math.js */ \"./node_modules/@popperjs/core/lib/utils/math.js\");\n\n\n\n\n\n\n // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n var x = _ref.x,\n y = _ref.y;\n var win = window;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_6__[\"round\"])(Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_6__[\"round\"])(x * dpr) / dpr) || 0,\n y: Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_6__[\"round\"])(Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_6__[\"round\"])(y * dpr) / dpr) || 0\n };\n}\n\nfunction mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets;\n\n var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,\n _ref3$x = _ref3.x,\n x = _ref3$x === void 0 ? 0 : _ref3$x,\n _ref3$y = _ref3.y,\n y = _ref3$y === void 0 ? 0 : _ref3$y;\n\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"left\"];\n var sideY = _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"top\"];\n var win = window;\n\n if (adaptive) {\n var offsetParent = Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === Object(_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(popper)) {\n offsetParent = Object(_dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(popper);\n\n if (Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(offsetParent).position !== 'static') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"top\"]) {\n sideY = _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"bottom\"]; // $FlowFixMe[prop-missing]\n\n y -= offsetParent[heightProp] - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"left\"]) {\n sideX = _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"right\"]; // $FlowFixMe[prop-missing]\n\n x -= offsetParent[widthProp] - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref4) {\n var state = _ref4.state,\n options = _ref4.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (undefined !== \"production\") {\n var transitionProperty = Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/computeStyles.js?");
1884
+
1885
+ /***/ }),
1886
+
1887
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":
1888
+ /*!*********************************************************************!*\
1889
+ !*** ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js ***!
1890
+ \*********************************************************************/
1891
+ /*! exports provided: default */
1892
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1893
+
1894
+ "use strict";
1895
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js\");\n // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = Object(_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/eventListeners.js?");
1896
+
1897
+ /***/ }),
1898
+
1899
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/flip.js":
1900
+ /*!***********************************************************!*\
1901
+ !*** ./node_modules/@popperjs/core/lib/modifiers/flip.js ***!
1902
+ \***********************************************************/
1903
+ /*! exports provided: default */
1904
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1905
+
1906
+ "use strict";
1907
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getOppositePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js\");\n/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js\");\n/* harmony import */ var _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getOppositeVariationPlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js\");\n/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/detectOverflow.js */ \"./node_modules/@popperjs/core/lib/utils/detectOverflow.js\");\n/* harmony import */ var _utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/computeAutoPlacement.js */ \"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js\");\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/getVariation.js */ \"./node_modules/@popperjs/core/lib/utils/getVariation.js\");\n\n\n\n\n\n\n // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"auto\"]) {\n return [];\n }\n\n var oppositePlacement = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(placement);\n return [Object(_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(placement), oppositePlacement, Object(_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"auto\"] ? Object(_utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(placement);\n\n var isStartVariation = Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"start\"];\n var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_5__[\"top\"], _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"bottom\"]].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"right\"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"left\"] : isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"bottom\"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__[\"top\"];\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(mainVariationSide);\n }\n\n var altVariationSide = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/flip.js?");
1908
+
1909
+ /***/ }),
1910
+
1911
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/hide.js":
1912
+ /*!***********************************************************!*\
1913
+ !*** ./node_modules/@popperjs/core/lib/modifiers/hide.js ***!
1914
+ \***********************************************************/
1915
+ /*! exports provided: default */
1916
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1917
+
1918
+ "use strict";
1919
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/detectOverflow.js */ \"./node_modules/@popperjs/core/lib/utils/detectOverflow.js\");\n\n\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [_enums_js__WEBPACK_IMPORTED_MODULE_0__[\"top\"], _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"right\"], _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"bottom\"], _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"left\"]].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/hide.js?");
1920
+
1921
+ /***/ }),
1922
+
1923
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/index.js":
1924
+ /*!************************************************************!*\
1925
+ !*** ./node_modules/@popperjs/core/lib/modifiers/index.js ***!
1926
+ \************************************************************/
1927
+ /*! exports provided: applyStyles, arrow, computeStyles, eventListeners, flip, hide, offset, popperOffsets, preventOverflow */
1928
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1929
+
1930
+ "use strict";
1931
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./applyStyles.js */ \"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"applyStyles\", function() { return _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _arrow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./arrow.js */ \"./node_modules/@popperjs/core/lib/modifiers/arrow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"arrow\", function() { return _arrow_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./computeStyles.js */ \"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"computeStyles\", function() { return _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./eventListeners.js */ \"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"eventListeners\", function() { return _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _flip_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./flip.js */ \"./node_modules/@popperjs/core/lib/modifiers/flip.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"flip\", function() { return _flip_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _hide_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hide.js */ \"./node_modules/@popperjs/core/lib/modifiers/hide.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"hide\", function() { return _hide_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _offset_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./offset.js */ \"./node_modules/@popperjs/core/lib/modifiers/offset.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"offset\", function() { return _offset_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./popperOffsets.js */ \"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"popperOffsets\", function() { return _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./preventOverflow.js */ \"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"preventOverflow\", function() { return _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/index.js?");
1932
+
1933
+ /***/ }),
1934
+
1935
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/offset.js":
1936
+ /*!*************************************************************!*\
1937
+ !*** ./node_modules/@popperjs/core/lib/modifiers/offset.js ***!
1938
+ \*************************************************************/
1939
+ /*! exports provided: distanceAndSkiddingToXY, default */
1940
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1941
+
1942
+ "use strict";
1943
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"distanceAndSkiddingToXY\", function() { return distanceAndSkiddingToXY; });\n/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js\");\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n\n\nfunction distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(placement);\n var invertDistance = [_enums_js__WEBPACK_IMPORTED_MODULE_1__[\"left\"], _enums_js__WEBPACK_IMPORTED_MODULE_1__[\"top\"]].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [_enums_js__WEBPACK_IMPORTED_MODULE_1__[\"left\"], _enums_js__WEBPACK_IMPORTED_MODULE_1__[\"right\"]].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = _enums_js__WEBPACK_IMPORTED_MODULE_1__[\"placements\"].reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/offset.js?");
1944
+
1945
+ /***/ }),
1946
+
1947
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":
1948
+ /*!********************************************************************!*\
1949
+ !*** ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js ***!
1950
+ \********************************************************************/
1951
+ /*! exports provided: default */
1952
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1953
+
1954
+ "use strict";
1955
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/computeOffsets.js */ \"./node_modules/@popperjs/core/lib/utils/computeOffsets.js\");\n\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = Object(_utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js?");
1956
+
1957
+ /***/ }),
1958
+
1959
+ /***/ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":
1960
+ /*!**********************************************************************!*\
1961
+ !*** ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js ***!
1962
+ \**********************************************************************/
1963
+ /*! exports provided: default */
1964
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1965
+
1966
+ "use strict";
1967
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ \"./node_modules/@popperjs/core/lib/enums.js\");\n/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js\");\n/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ \"./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js\");\n/* harmony import */ var _utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getAltAxis.js */ \"./node_modules/@popperjs/core/lib/utils/getAltAxis.js\");\n/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/within.js */ \"./node_modules/@popperjs/core/lib/utils/within.js\");\n/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js\");\n/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ \"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\");\n/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/detectOverflow.js */ \"./node_modules/@popperjs/core/lib/utils/detectOverflow.js\");\n/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/getVariation.js */ \"./node_modules/@popperjs/core/lib/utils/getVariation.js\");\n/* harmony import */ var _utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/getFreshSideObject.js */ \"./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js\");\n/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/math.js */ \"./node_modules/@popperjs/core/lib/utils/math.js\");\n\n\n\n\n\n\n\n\n\n\n\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(state.placement);\n var variation = Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = Object(_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(basePlacement);\n var altAxis = Object(_utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis || checkAltAxis) {\n var mainSide = mainAxis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"top\"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"left\"];\n var altSide = mainAxis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"bottom\"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"right\"];\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = popperOffsets[mainAxis] + overflow[mainSide];\n var max = popperOffsets[mainAxis] - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"start\"] ? referenceRect[len] : popperRect[len];\n var maxLen = variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"start\"] ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : Object(_utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"])();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;\n var arrowOffsetParent = state.elements.arrow && Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;\n var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;\n\n if (checkMainAxis) {\n var preventedOffset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tether ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_10__[\"min\"])(min, tetherMin) : min, offset, tether ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_10__[\"max\"])(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _mainSide = mainAxis === 'x' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"top\"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"left\"];\n\n var _altSide = mainAxis === 'x' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"bottom\"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__[\"right\"];\n\n var _offset = popperOffsets[altAxis];\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var _preventedOffset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tether ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_10__[\"min\"])(_min, tetherMin) : _min, _offset, tether ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_10__[\"max\"])(_max, tetherMax) : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n});\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js?");
1968
+
1969
+ /***/ }),
1970
+
1971
+ /***/ "./node_modules/@popperjs/core/lib/popper-lite.js":
1972
+ /*!********************************************************!*\
1973
+ !*** ./node_modules/@popperjs/core/lib/popper-lite.js ***!
1974
+ \********************************************************/
1975
+ /*! exports provided: createPopper, popperGenerator, defaultModifiers, detectOverflow */
1976
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1977
+
1978
+ "use strict";
1979
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPopper\", function() { return createPopper; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defaultModifiers\", function() { return defaultModifiers; });\n/* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createPopper.js */ \"./node_modules/@popperjs/core/lib/createPopper.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"popperGenerator\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__[\"popperGenerator\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"detectOverflow\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__[\"detectOverflow\"]; });\n\n/* harmony import */ var _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/eventListeners.js */ \"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js\");\n/* harmony import */ var _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modifiers/popperOffsets.js */ \"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js\");\n/* harmony import */ var _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modifiers/computeStyles.js */ \"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js\");\n/* harmony import */ var _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modifiers/applyStyles.js */ \"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js\");\n\n\n\n\n\nvar defaultModifiers = [_modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]];\nvar createPopper = /*#__PURE__*/Object(_createPopper_js__WEBPACK_IMPORTED_MODULE_0__[\"popperGenerator\"])({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\n\n\n//# sourceURL=webpack:///./node_modules/@popperjs/core/lib/popper-lite.js?");
1980
+
1981
+ /***/ }),
1982
+
1983
+ /***/ "./node_modules/@popperjs/core/lib/popper.js":
1984
+ /*!***************************************************!*\
1985
+ !*** ./node_modules/@popperjs/core/lib/popper.js ***!
1986
+ \***************************************************/
1987
+ /*! exports provided: createPopper, popperGenerator, defaultModifiers, detectOverflow, createPopperLite, applyStyles, arrow, computeStyles, eventListeners, flip, hide, offset, popperOffsets, preventOverflow */
1988
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1989
+
1990
+ "use strict";
1991
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPopper\", function() { return createPopper; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defaultModifiers\", function() { return defaultModifiers; });\n/* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createPopper.js */ \"./node_modules/@popperjs/core/lib/createPopper.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"popperGenerator\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__[\"popperGenerator\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"detectOverflow\", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__[\"detectOverflow\"]; });\n\n/* harmony import */ var _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/eventListeners.js */ \"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js\");\n/* harmony import */ var _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modifiers/popperOffsets.js */ \"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js\");\n/* harmony import */ var _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modifiers/computeStyles.js */ \"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js\");\n/* harmony import */ var _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modifiers/applyStyles.js */ \"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js\");\n/* harmony import */ var _modifiers_offset_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modifiers/offset.js */ \"./node_modules/@popperjs/core/lib/modifiers/offset.js\");\n/* harmony import */ var _modifiers_flip_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modifiers/flip.js */ \"./node_modules/@popperjs/core/lib/modifiers/flip.js\");\n/* harmony import */ var _modifiers_preventOverflow_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modifiers/preventOverflow.js */ \"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js\");\n/* harmony import */ var _modifiers_arrow_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modifiers/arrow.js */ \"./node_modules/@popperjs/core/lib/modifiers/arrow.js\");\n/* harmony import */ var _modifiers_hide_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./modifiers/hide.js */ \"./node_modules/@popperjs/core/lib/modifiers/hide.js\");\n/* harmony import */ var _popper_lite_js__WEBPACK_I