ably-ui 8.7.0.dev.7021bee → 8.7.0.dev.7072b07

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +15 -4
  4. data/lib/ably_ui/core/code/component.css +2 -0
  5. data/lib/ably_ui/core/code/component.js +739 -1
  6. data/lib/ably_ui/core/company_autocomplete/component.css +2 -0
  7. data/lib/ably_ui/core/company_autocomplete/component.js +1161 -1
  8. data/lib/ably_ui/core/connect_state_wrapper/component.js +22 -1
  9. data/lib/ably_ui/core/contact_footer/component.css +2 -0
  10. data/lib/ably_ui/core/contact_footer/component.js +211 -1
  11. data/lib/ably_ui/core/cookie_message/component.css +2 -0
  12. data/lib/ably_ui/core/cookie_message/component.js +82 -1
  13. data/lib/ably_ui/core/core.rb +12 -4
  14. data/lib/ably_ui/core/customer_logos/component.js +22 -1
  15. data/lib/ably_ui/core/dropdown_menu/component.js +22 -1
  16. data/lib/ably_ui/core/feature_footer/component.css +2 -0
  17. data/lib/ably_ui/core/feature_footer/component.js +211 -1
  18. data/lib/ably_ui/core/featured_link/component.css +2 -0
  19. data/lib/ably_ui/core/featured_link/component.js +82 -1
  20. data/lib/ably_ui/core/flash/component.css +2 -0
  21. data/lib/ably_ui/core/flash/component.js +82 -1
  22. data/lib/ably_ui/core/footer/component.css +23 -1
  23. data/lib/ably_ui/core/footer/component.js +82 -1
  24. data/lib/ably_ui/core/footer/footer.html.erb +120 -63
  25. data/lib/ably_ui/core/icon/component.js +22 -1
  26. data/lib/ably_ui/core/images/best-support-2023.svg +1 -0
  27. data/lib/ably_ui/core/images/fastest-implementation-2023.svg +1 -0
  28. data/lib/ably_ui/core/images/high-performer-2022.png +0 -0
  29. data/lib/ably_ui/core/images/high-performer-2023.svg +1 -0
  30. data/lib/ably_ui/core/images/highest-user-adoption-2022.png +0 -0
  31. data/lib/ably_ui/core/images/highest-user-adoption-2023.svg +1 -0
  32. data/lib/ably_ui/core/images/users-love-us-2022.png +0 -0
  33. data/lib/ably_ui/core/loader/component.js +22 -1
  34. data/lib/ably_ui/core/logo/component.js +22 -1
  35. data/lib/ably_ui/core/meganav/component.css +3 -3
  36. data/lib/ably_ui/core/meganav/component.js +992 -1
  37. data/lib/ably_ui/core/meganav/component.json +2 -2
  38. data/lib/ably_ui/core/meganav/meganav.rb +6 -6
  39. data/lib/ably_ui/core/meganav_blog_posts_list/component.js +1159 -1
  40. data/lib/ably_ui/core/meganav_content_company/component.js +22 -1
  41. data/lib/ably_ui/core/meganav_content_company/meganav_content_company.html.erb +9 -0
  42. data/lib/ably_ui/core/meganav_content_developers/component.js +22 -1
  43. data/lib/ably_ui/core/meganav_content_developers/meganav_content_developers.html.erb +30 -14
  44. data/lib/ably_ui/core/meganav_content_products/component.js +22 -0
  45. data/lib/ably_ui/core/{meganav_content_platform/meganav_content_platform.html.erb → meganav_content_products/meganav_content_products.html.erb} +15 -33
  46. data/lib/ably_ui/core/{meganav_content_platform/meganav_content_platform.rb → meganav_content_products/meganav_content_products.rb} +1 -1
  47. data/lib/ably_ui/core/meganav_content_use_cases/component.js +22 -1
  48. data/lib/ably_ui/core/meganav_content_use_cases/meganav_content_use_cases.html.erb +42 -38
  49. data/lib/ably_ui/core/meganav_control/component.js +241 -1
  50. data/lib/ably_ui/core/meganav_control_mobile_dropdown/component.js +180 -1
  51. data/lib/ably_ui/core/meganav_control_mobile_panel_close/component.js +142 -1
  52. data/lib/ably_ui/core/meganav_control_mobile_panel_open/component.js +170 -1
  53. data/lib/ably_ui/core/meganav_items_desktop/component.js +22 -1
  54. data/lib/ably_ui/core/meganav_items_desktop/meganav_items_desktop.rb +1 -1
  55. data/lib/ably_ui/core/meganav_items_mobile/component.js +22 -1
  56. data/lib/ably_ui/core/meganav_items_signed_in/component.js +22 -1
  57. data/lib/ably_ui/core/meganav_search/component.js +22 -1
  58. data/lib/ably_ui/core/meganav_search_autocomplete/component.js +295 -1
  59. data/lib/ably_ui/core/meganav_search_panel/component.js +22 -1
  60. data/lib/ably_ui/core/meganav_search_suggestions/component.js +258 -1
  61. data/lib/ably_ui/core/notice/component.css +2 -0
  62. data/lib/ably_ui/core/notice/component.js +872 -1
  63. data/lib/ably_ui/core/scripts.js +1465 -1
  64. data/lib/ably_ui/core/showcase/component.css +2 -0
  65. data/lib/ably_ui/core/showcase/component.js +343 -1
  66. data/lib/ably_ui/core/sign_out_link/component.js +22 -1
  67. data/lib/ably_ui/core/slider/component.css +2 -0
  68. data/lib/ably_ui/core/slider/component.js +255 -1
  69. data/lib/ably_ui/core/sprites.svg +99 -0
  70. data/lib/ably_ui/core/styles.css +3 -7
  71. data/lib/ably_ui/core/uptime/component.css +2 -0
  72. data/lib/ably_ui/core/uptime/component.js +82 -1
  73. data/lib/ably_ui/reset/scripts.js +1 -1
  74. data/lib/ably_ui/reset/styles.css +1 -11
  75. data/lib/ably_ui/version.rb +1 -1
  76. metadata +12 -7
  77. data/lib/ably_ui/core/meganav_content_platform/component.js +0 -1
  78. data/lib/ably_ui/react/connect_state_wrapper/component.js +0 -1
  79. data/lib/ably_ui/react/scripts.js +0 -1
@@ -1 +1,872 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("js-cookie"),require("lodash.throttle"),require("prop-types"),require("react"),require("redux")):"function"==typeof define&&define.amd?define([,,,,,],t):"object"==typeof exports?exports.AblyUi=t(require("dompurify"),require("js-cookie"),require("lodash.throttle"),require("prop-types"),require("react"),require("redux")):(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Notice=t(e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0]))}(this,(function(e,t,r,n,o,i){return(()=>{"use strict";var c={6357:t=>{t.exports=e},9349:e=>{e.exports=t},2040:e=>{e.exports=r},3474:e=>{e.exports=n},9281:e=>{e.exports=o},5044:e=>{e.exports=i}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return c[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};return(()=>{u.d(l,{default:()=>M});var e=u(9349),t=u.n(e),r=u(2040),n=u.n(r),o=u(9281),i=u.n(o),c=u(6357),a=u.n(c),s=u(3474),f=u.n(s);let d=(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};u(5044);var p=["name","size","color","additionalCSS"];function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}var m=function(e){var t=e.name,r=e.size,n=void 0===r?"0.75rem":r,o=e.color,c=void 0===o?"":o,a=e.additionalCSS,u=void 0===a?"":a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,p);return i().createElement("svg",y({className:"".concat(c," ").concat(u),style:{width:n,height:n}},l),i().createElement("use",{xlinkHref:"#sprite-".concat(t)}))};m.propTypes={name:f().string.isRequired,size:f().string,color:f().string,additionalCSS:f().string};const b=m;function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],c=!0,a=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,t)||x(e,t)||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 w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||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 x(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E="ui-flashes",P={items:[]},A=(w({},"flashes",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0;if("flash/push"===t.type){var r=Array.isArray(t.payload)?t.payload:[t.payload];return{items:[].concat(j(e.items),j(r))}}return e})),{type:f().oneOf(["error","success","notice","info","alert"]),content:f().string}),k={error:"bg-gui-error",success:"bg-zingy-green",notice:"bg-electric-cyan",info:"bg-electric-cyan",alert:"bg-active-orange"},q={error:"text-white",success:"text-cool-black",notice:"text-cool-black",info:"text-cool-black",alert:"text-white"},T=["success","info","notice"],C=function(e){var t=e.id,r=e.type,n=e.content,c=e.removeFlash,u=(0,o.useRef)(null),l=O((0,o.useState)(!1),2),s=l[0],f=l[1],d=O((0,o.useState)(0),2),p=d[0],y=d[1],m=O((0,o.useState)(!1),2),v=m[0],h=m[1],g=function(){u.current&&y(u.current.getBoundingClientRect().height),f(!0),setTimeout((function(){c(t)}),100)};(0,o.useEffect)((function(){return h(!0)}),[]),function(e,t){var r=(0,o.useRef)(null);(0,o.useEffect)((function(){return T.includes(e)&&(r.current=setTimeout((function(){t()}),8e3)),function(){r.current&&clearTimeout(r.current)}}),[])}(r,g);var w,j=v&&!s;w=p&&!s?{height:"".concat(p,"px")}:s?{height:0,marginTop:0,zIndex:-1}:{};var x=a().sanitize(n,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","data-method","rel"]}),S={notice:"icon-gui-ably-badge",success:"icon-gui-tick",error:"icon-gui-warning",alert:"icon-gui-warning"},E={notice:"text-cool-black",success:"text-cool-black",error:"text-white",alert:"text-white"};return i().createElement("div",{className:"ui-flash-message ui-grid-px ".concat(j?"ui-flash-message-enter":""),style:w,ref:u,"data-id":"ui-flash"},i().createElement("div",{className:"".concat(k[r]," p-32 flex align-center rounded shadow-container-subtle")},S[r]&&i().createElement(b,{name:S[r],color:E[r],size:"1.5rem",additionalCSS:"mr-16 self-baseline"}),i().createElement("p",{className:"ui-flash-text ".concat(q[r]),dangerouslySetInnerHTML:{__html:x}}),i().createElement("button",{type:"button",className:"p-0 ml-auto self-start focus:outline-none",onClick:g},i().createElement(b,{name:"icon-gui-close",color:E[r],size:"1.5rem",additionalCSS:"transition-colors"}))))};C.propTypes=g({},A);var I=function(e){var t=e.flashes,r=O((0,o.useState)([]),2),n=r[0],c=r[1],a=function(e){return c((function(t){return t.filter((function(t){return t.id!==e}))}))};return(0,o.useEffect)((function(){c((function(e){return[].concat(j(e),j(((null==t?void 0:t.items)||[]).map((function(e){return g(g({},e),{},{id:d(),removed:!1})}))))}))}),[t]),console.log({flashesWithIds:n}),i().createElement("div",{className:"ui-flash","data-id":E},n.filter((function(e){return!e.removed})).map((function(e){return i().createElement(C,v({removeFlash:a,key:e.id},e))})))};I.propTypes={flashes:f().shape({items:f().arrayOf(f().shape(A))})};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}f().arrayOf(f().arrayOf(f().string));var D=function(e){var t=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("[data-id=".concat(e,"]"))}(E);t&&(t.style.marginTop=e?"4rem":null)},N=function(e){window.matchMedia("(min-width: 65rem)").matches?e.style.display=null:e.style.display="none"},U=function(e){e.style.maxHeight=0,e.style.overflow="hidden",D(!1)},_=function(e){e.style.maxHeight=null,e.style.overflow=null,D(!0)};const M=function(e){var r=e.bannerContainer,o=e.cookieId,i=e.noticeId,c=e.options;if("undefined"==typeof window)return function(){};if(!r)return console.warn("A Notice component was initited but no notice container was found."),function(){};if(function(e,r){return(t().get(e)||"").includes(r)}(o,i))return function(){};N(r),_(r);var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({collapse:!0},c),u=a.collapse?function(e){window.scrollY>5&&U(e);var t=n()((function(){window.scrollY>5?U(e):e.style.overflow&&_(e)}),100);return document.addEventListener("scroll",t),function(){return document.removeEventListener("scroll",t)}}(r):function(){},l=function(e,r,n,o){var i=e.querySelector("button");if(!i)return function(){};var c=function(){r&&n&&function(e,r){var n=t().get(e)||"";t().set(e,"".concat(n.replace("".concat(r,","),"")+r,","),{expires:90})}(r,n),U(e),o()};return i.addEventListener("click",c),function(){return document.removeEventListener("click",c)}}(r,o,i,u),s=function(e){var t=n()((function(){N(e)}),100);return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}(r);return function(){[l,u,s].forEach((function(e){return e()}))}}})(),l.default})()}));
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("dompurify"), require("js-cookie"), require("lodash.throttle"), require("prop-types"), require("react"), require("redux"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([, , , , , ], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["AblyUi"] = factory(require("dompurify"), require("js-cookie"), require("lodash.throttle"), require("prop-types"), require("react"), require("redux"));
8
+ else
9
+ root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["Notice"] = factory(root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined]);
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE_dompurify__, __WEBPACK_EXTERNAL_MODULE_js_cookie__, __WEBPACK_EXTERNAL_MODULE_lodash_throttle__, __WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_redux__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ "./src/core/ConnectStateWrapper/component.jsx":
16
+ /*!****************************************************!*\
17
+ !*** ./src/core/ConnectStateWrapper/component.jsx ***!
18
+ \****************************************************/
19
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
+
21
+ __webpack_require__.r(__webpack_exports__);
22
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
+ /* harmony export */ "ConnectStateWrapper": () => (/* binding */ ConnectStateWrapper),
24
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
25
+ /* harmony export */ });
26
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
27
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
28
+ /* harmony import */ var _remote_data_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../remote-data-store */ "./src/core/remote-data-store.js");
29
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
30
+
31
+ function 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; }
32
+
33
+ function _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) { _defineProperty(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; }
34
+
35
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
36
+
37
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
38
+
39
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
40
+
41
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
42
+
43
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
44
+
45
+ function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
46
+
47
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
48
+
49
+
50
+
51
+ /*
52
+ Connect a react component to a global store.
53
+ This is similar to what react-redux does but uses our global store so
54
+ can share state with other React mount points or anything that uses the
55
+ store.
56
+ - selectors is an object where keys are your prop names and values are your select
57
+ functions that work on the store to retrieve the state you are interested in
58
+ - initial state is set in useEffect so the wrapped component needs to handle it's props set to undefined initially
59
+ */
60
+
61
+ var ConnectStateWrapper = function ConnectStateWrapper(Component, selectors) {
62
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),
63
+ _useState2 = _slicedToArray(_useState, 2),
64
+ state = _useState2[0],
65
+ setState = _useState2[1];
66
+
67
+ var setStateForKey = function setStateForKey(key) {
68
+ return function (storeState) {
69
+ return setState(function () {
70
+ return _defineProperty({}, key, storeState);
71
+ });
72
+ };
73
+ };
74
+
75
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
76
+ var store = (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__.getRemoteDataStore)();
77
+ var resolvedState = Object.keys(selectors).reduce(function (acc, key) {
78
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, selectors[key](store)));
79
+ }, {}); // Set initial state
80
+
81
+ setState(resolvedState); // Create a store subscription for each selector. Depending on your use case, this can be inefficient.
82
+ // When optimising for renders, look for wins with selectors better for your use and using connectState directly.
83
+
84
+ Object.keys(selectors).forEach(function (key) {
85
+ (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__.connectState)(selectors[key], setStateForKey(key));
86
+ });
87
+ }, []);
88
+
89
+ var WrappedComponent = function WrappedComponent(props) {
90
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, _extends({}, props, state));
91
+ };
92
+
93
+ return WrappedComponent;
94
+ };
95
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ConnectStateWrapper);
96
+
97
+ /***/ }),
98
+
99
+ /***/ "./src/core/Flash/component.jsx":
100
+ /*!**************************************!*\
101
+ !*** ./src/core/Flash/component.jsx ***!
102
+ \**************************************/
103
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
104
+
105
+ __webpack_require__.r(__webpack_exports__);
106
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
107
+ /* harmony export */ "FLASH_DATA_ID": () => (/* binding */ FLASH_DATA_ID),
108
+ /* harmony export */ "Flashes": () => (/* binding */ Flashes),
109
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
110
+ /* harmony export */ "reducerFlashes": () => (/* binding */ reducerFlashes)
111
+ /* harmony export */ });
112
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
113
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
114
+ /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dompurify */ "dompurify");
115
+ /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_1__);
116
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "prop-types");
117
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
118
+ /* harmony import */ var nanoid_non_secure__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! nanoid/non-secure */ "./node_modules/nanoid/non-secure/index.js");
119
+ /* harmony import */ var _remote_data_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../remote-data-store */ "./src/core/remote-data-store.js");
120
+ /* harmony import */ var _ConnectStateWrapper_component_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ConnectStateWrapper/component.jsx */ "./src/core/ConnectStateWrapper/component.jsx");
121
+ /* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Icon/component.jsx */ "./src/core/Icon/component.jsx");
122
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
123
+
124
+ function 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; }
125
+
126
+ function _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) { _defineProperty(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; }
127
+
128
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
129
+
130
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
131
+
132
+ function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
133
+
134
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
135
+
136
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
137
+
138
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
139
+
140
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
141
+
142
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
143
+
144
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
145
+
146
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
147
+
148
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ var REDUCER_KEY = "flashes";
158
+ var FLASH_DATA_ID = "ui-flashes";
159
+ var initialState = {
160
+ items: []
161
+ };
162
+
163
+ var reducerFlashes = _defineProperty({}, REDUCER_KEY, function () {
164
+ var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
165
+ var action = arguments.length > 1 ? arguments[1] : undefined;
166
+
167
+ switch (action.type) {
168
+ case "flash/push":
169
+ {
170
+ var flashes = Array.isArray(action.payload) ? action.payload : [action.payload];
171
+ return {
172
+ items: [].concat(_toConsumableArray(state.items), _toConsumableArray(flashes))
173
+ };
174
+ }
175
+
176
+ default:
177
+ return state;
178
+ }
179
+ });
180
+
181
+ var selectFlashes = function selectFlashes(store) {
182
+ return store.getState()[REDUCER_KEY];
183
+ };
184
+
185
+ var FlashT = {
186
+ type: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["error", "success", "notice", "info", "alert"]),
187
+ content: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
188
+ };
189
+ var FLASH_BG_COLOR = {
190
+ error: "bg-gui-error",
191
+ success: "bg-zingy-green",
192
+ notice: "bg-electric-cyan",
193
+ info: "bg-electric-cyan",
194
+ alert: "bg-active-orange"
195
+ };
196
+ var FLASH_TEXT_COLOR = {
197
+ error: "text-white",
198
+ success: "text-cool-black",
199
+ notice: "text-cool-black",
200
+ info: "text-cool-black",
201
+ alert: "text-white"
202
+ };
203
+ var AUTO_HIDE = ["success", "info", "notice"];
204
+ var AUTO_HIDE_TIME = 8000;
205
+
206
+ var useAutoHide = function useAutoHide(type, closeFlash) {
207
+ var timeoutId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
208
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
209
+ if (AUTO_HIDE.includes(type)) {
210
+ timeoutId.current = setTimeout(function () {
211
+ closeFlash();
212
+ }, AUTO_HIDE_TIME);
213
+ }
214
+
215
+ return function () {
216
+ if (timeoutId.current) {
217
+ clearTimeout(timeoutId.current);
218
+ }
219
+ };
220
+ }, []);
221
+ };
222
+
223
+ var Flash = function Flash(_ref) {
224
+ var id = _ref.id,
225
+ type = _ref.type,
226
+ content = _ref.content,
227
+ removeFlash = _ref.removeFlash;
228
+ var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
229
+
230
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
231
+ _useState2 = _slicedToArray(_useState, 2),
232
+ closed = _useState2[0],
233
+ setClosed = _useState2[1];
234
+
235
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
236
+ _useState4 = _slicedToArray(_useState3, 2),
237
+ flashHeight = _useState4[0],
238
+ setFlashHeight = _useState4[1];
239
+
240
+ var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
241
+ _useState6 = _slicedToArray(_useState5, 2),
242
+ triggerEntryAnimation = _useState6[0],
243
+ setTriggerEntryAnimation = _useState6[1];
244
+
245
+ var closeFlash = function closeFlash() {
246
+ if (ref.current) {
247
+ setFlashHeight(ref.current.getBoundingClientRect().height);
248
+ }
249
+
250
+ setClosed(true);
251
+ setTimeout(function () {
252
+ removeFlash(id);
253
+ }, 100);
254
+ };
255
+
256
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
257
+ return setTriggerEntryAnimation(true);
258
+ }, []);
259
+ useAutoHide(type, closeFlash);
260
+ var animateEntry = triggerEntryAnimation && !closed;
261
+ var style;
262
+
263
+ if (flashHeight && !closed) {
264
+ style = {
265
+ height: "".concat(flashHeight, "px")
266
+ };
267
+ } else if (closed) {
268
+ style = {
269
+ height: 0,
270
+ marginTop: 0,
271
+ zIndex: -1
272
+ };
273
+ } else {
274
+ style = {};
275
+ }
276
+
277
+ var safeContent = dompurify__WEBPACK_IMPORTED_MODULE_1___default().sanitize(content, {
278
+ ALLOWED_TAGS: ["a"],
279
+ ALLOWED_ATTR: ["href", "data-method", "rel"]
280
+ });
281
+ var withIcons = {
282
+ notice: "icon-gui-ably-badge",
283
+ success: "icon-gui-tick",
284
+ error: "icon-gui-warning",
285
+ alert: "icon-gui-warning"
286
+ };
287
+ var iconColor = {
288
+ notice: "text-cool-black",
289
+ success: "text-cool-black",
290
+ error: "text-white",
291
+ alert: "text-white"
292
+ };
293
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
294
+ className: "ui-flash-message ui-grid-px ".concat(animateEntry ? "ui-flash-message-enter" : ""),
295
+ style: style,
296
+ ref: ref,
297
+ "data-id": "ui-flash"
298
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
299
+ className: "".concat(FLASH_BG_COLOR[type], " p-32 flex align-center rounded shadow-container-subtle")
300
+ }, withIcons[type] && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
301
+ name: withIcons[type],
302
+ color: iconColor[type],
303
+ size: "1.5rem",
304
+ additionalCSS: "mr-16 self-baseline"
305
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
306
+ className: "ui-flash-text ".concat(FLASH_TEXT_COLOR[type]),
307
+ dangerouslySetInnerHTML: {
308
+ __html: safeContent
309
+ }
310
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
311
+ type: "button",
312
+ className: "p-0 ml-auto self-start focus:outline-none",
313
+ onClick: closeFlash
314
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
315
+ name: "icon-gui-close",
316
+ color: iconColor[type],
317
+ size: "1.5rem",
318
+ additionalCSS: "transition-colors"
319
+ }))));
320
+ };
321
+
322
+ Flash.propTypes = _objectSpread({}, FlashT);
323
+
324
+ var Flashes = function Flashes(_ref2) {
325
+ var flashes = _ref2.flashes;
326
+
327
+ var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
328
+ _useState8 = _slicedToArray(_useState7, 2),
329
+ flashesWithIds = _useState8[0],
330
+ setFlashesWithIds = _useState8[1];
331
+
332
+ var removeFlash = function removeFlash(flashId) {
333
+ return setFlashesWithIds(function (items) {
334
+ return items.filter(function (item) {
335
+ return item.id !== flashId;
336
+ });
337
+ });
338
+ };
339
+
340
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
341
+ setFlashesWithIds(function (state) {
342
+ return [].concat(_toConsumableArray(state), _toConsumableArray(((flashes === null || flashes === void 0 ? void 0 : flashes.items) || []).map(function (flash) {
343
+ return _objectSpread(_objectSpread({}, flash), {}, {
344
+ id: (0,nanoid_non_secure__WEBPACK_IMPORTED_MODULE_6__.nanoid)(),
345
+ removed: false
346
+ });
347
+ })));
348
+ });
349
+ }, [flashes]);
350
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
351
+ className: "ui-flash",
352
+ "data-id": FLASH_DATA_ID
353
+ }, flashesWithIds.filter(function (item) {
354
+ return !item.removed;
355
+ }).map(function (flash) {
356
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Flash, _extends({
357
+ removeFlash: removeFlash,
358
+ key: flash.id
359
+ }, flash));
360
+ }));
361
+ };
362
+
363
+ Flashes.propTypes = {
364
+ flashes: prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
365
+ items: prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape(FlashT))
366
+ })
367
+ };
368
+
369
+ var BackendFlashes = function BackendFlashes(_ref3) {
370
+ var flashes = _ref3.flashes;
371
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
372
+ var transformedFlashes = flashes.map(function (flash) {
373
+ var _flash = _slicedToArray(flash, 2),
374
+ type = _flash[0],
375
+ content = _flash[1];
376
+
377
+ return {
378
+ type: type,
379
+ content: content
380
+ };
381
+ }) || [];
382
+
383
+ if (transformedFlashes.length > 0) {
384
+ var store = (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_3__.getRemoteDataStore)();
385
+ store.dispatch({
386
+ type: "flash/push",
387
+ payload: transformedFlashes
388
+ });
389
+ }
390
+ }, []);
391
+ var WrappedFlashes = (0,_ConnectStateWrapper_component_jsx__WEBPACK_IMPORTED_MODULE_4__["default"])(Flashes, {
392
+ flashes: selectFlashes
393
+ });
394
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(WrappedFlashes, null);
395
+ };
396
+
397
+ BackendFlashes.propTypes = {
398
+ flashes: prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)))
399
+ };
400
+
401
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BackendFlashes);
402
+
403
+ /***/ }),
404
+
405
+ /***/ "./src/core/Icon/component.jsx":
406
+ /*!*************************************!*\
407
+ !*** ./src/core/Icon/component.jsx ***!
408
+ \*************************************/
409
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
410
+
411
+ __webpack_require__.r(__webpack_exports__);
412
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
413
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
414
+ /* harmony export */ });
415
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
416
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
417
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
418
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
419
+ var _excluded = ["name", "size", "color", "additionalCSS"];
420
+
421
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
422
+
423
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
424
+
425
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
426
+
427
+
428
+
429
+
430
+ var Icon = function Icon(_ref) {
431
+ var name = _ref.name,
432
+ _ref$size = _ref.size,
433
+ size = _ref$size === void 0 ? "0.75rem" : _ref$size,
434
+ _ref$color = _ref.color,
435
+ color = _ref$color === void 0 ? "" : _ref$color,
436
+ _ref$additionalCSS = _ref.additionalCSS,
437
+ additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
438
+ additionalAttributes = _objectWithoutProperties(_ref, _excluded);
439
+
440
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
441
+ className: "".concat(color, " ").concat(additionalCSS),
442
+ style: {
443
+ width: size,
444
+ height: size
445
+ }
446
+ }, additionalAttributes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
447
+ xlinkHref: "#sprite-".concat(name)
448
+ }));
449
+ };
450
+
451
+ Icon.propTypes = {
452
+ name: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),
453
+ size: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
454
+ color: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
455
+ additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
456
+ };
457
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
458
+
459
+ /***/ }),
460
+
461
+ /***/ "./src/core/dom-query.js":
462
+ /*!*******************************!*\
463
+ !*** ./src/core/dom-query.js ***!
464
+ \*******************************/
465
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
466
+
467
+ __webpack_require__.r(__webpack_exports__);
468
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
469
+ /* harmony export */ "queryId": () => (/* binding */ queryId),
470
+ /* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
471
+ /* harmony export */ });
472
+ var queryId = function queryId(val) {
473
+ var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
474
+ return root.querySelector("[data-id=".concat(val, "]"));
475
+ };
476
+ var queryIdAll = function queryIdAll(val) {
477
+ var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
478
+ return root.querySelectorAll("[data-id=".concat(val, "]"));
479
+ };
480
+
481
+ /***/ }),
482
+
483
+ /***/ "./src/core/remote-data-store.js":
484
+ /*!***************************************!*\
485
+ !*** ./src/core/remote-data-store.js ***!
486
+ \***************************************/
487
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
488
+
489
+ __webpack_require__.r(__webpack_exports__);
490
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
491
+ /* harmony export */ "attachStoreToWindow": () => (/* binding */ attachStoreToWindow),
492
+ /* harmony export */ "connectState": () => (/* binding */ connectState),
493
+ /* harmony export */ "createRemoteDataStore": () => (/* binding */ createRemoteDataStore),
494
+ /* harmony export */ "getRemoteDataStore": () => (/* binding */ getRemoteDataStore)
495
+ /* harmony export */ });
496
+ /* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "redux");
497
+ /* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(redux__WEBPACK_IMPORTED_MODULE_0__);
498
+
499
+ var attachStoreToWindow = function attachStoreToWindow(store) {
500
+ window.AblyUi = window.AblyUi || {};
501
+ window.AblyUi.RemoteDataStore = store;
502
+ };
503
+ var getRemoteDataStore = function getRemoteDataStore() {
504
+ if (!window.AblyUi.RemoteDataStore) {
505
+ throw new Error("Remote store was called before one was created");
506
+ }
507
+
508
+ return window.AblyUi.RemoteDataStore;
509
+ };
510
+ var connectState = function connectState(selector, setState) {
511
+ var store = getRemoteDataStore();
512
+ var cachedOldState = selector(store);
513
+ store.subscribe(function () {
514
+ var newState = selector(store); // Do nothing, state is the same
515
+
516
+ if (newState === cachedOldState) {
517
+ return;
518
+ }
519
+
520
+ cachedOldState = newState;
521
+ setState(newState);
522
+ });
523
+ };
524
+ var createRemoteDataStore = function createRemoteDataStore(reducers) {
525
+ return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)((0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducers));
526
+ };
527
+
528
+ /***/ }),
529
+
530
+ /***/ "./src/core/Notice/component.css":
531
+ /*!***************************************!*\
532
+ !*** ./src/core/Notice/component.css ***!
533
+ \***************************************/
534
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
535
+
536
+ __webpack_require__.r(__webpack_exports__);
537
+ // extracted by mini-css-extract-plugin
538
+
539
+
540
+ /***/ }),
541
+
542
+ /***/ "dompurify":
543
+ /*!*****************************************************************!*\
544
+ !*** external {"commonjs":"dompurify","commonjs2":"dompurify"} ***!
545
+ \*****************************************************************/
546
+ /***/ ((module) => {
547
+
548
+ module.exports = __WEBPACK_EXTERNAL_MODULE_dompurify__;
549
+
550
+ /***/ }),
551
+
552
+ /***/ "js-cookie":
553
+ /*!*****************************************************************!*\
554
+ !*** external {"commonjs":"js-cookie","commonjs2":"js-cookie"} ***!
555
+ \*****************************************************************/
556
+ /***/ ((module) => {
557
+
558
+ module.exports = __WEBPACK_EXTERNAL_MODULE_js_cookie__;
559
+
560
+ /***/ }),
561
+
562
+ /***/ "lodash.throttle":
563
+ /*!*****************************************************************************!*\
564
+ !*** external {"commonjs":"lodash.throttle","commonjs2":"lodash.throttle"} ***!
565
+ \*****************************************************************************/
566
+ /***/ ((module) => {
567
+
568
+ module.exports = __WEBPACK_EXTERNAL_MODULE_lodash_throttle__;
569
+
570
+ /***/ }),
571
+
572
+ /***/ "prop-types":
573
+ /*!*******************************************************************!*\
574
+ !*** external {"commonjs":"prop-types","commonjs2":"prop-types"} ***!
575
+ \*******************************************************************/
576
+ /***/ ((module) => {
577
+
578
+ module.exports = __WEBPACK_EXTERNAL_MODULE_prop_types__;
579
+
580
+ /***/ }),
581
+
582
+ /***/ "react":
583
+ /*!*********************************************************!*\
584
+ !*** external {"commonjs":"react","commonjs2":"react"} ***!
585
+ \*********************************************************/
586
+ /***/ ((module) => {
587
+
588
+ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
589
+
590
+ /***/ }),
591
+
592
+ /***/ "redux":
593
+ /*!*********************************************************!*\
594
+ !*** external {"commonjs":"redux","commonjs2":"redux"} ***!
595
+ \*********************************************************/
596
+ /***/ ((module) => {
597
+
598
+ module.exports = __WEBPACK_EXTERNAL_MODULE_redux__;
599
+
600
+ /***/ }),
601
+
602
+ /***/ "./node_modules/nanoid/non-secure/index.js":
603
+ /*!*************************************************!*\
604
+ !*** ./node_modules/nanoid/non-secure/index.js ***!
605
+ \*************************************************/
606
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
607
+
608
+ __webpack_require__.r(__webpack_exports__);
609
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
610
+ /* harmony export */ "customAlphabet": () => (/* binding */ customAlphabet),
611
+ /* harmony export */ "nanoid": () => (/* binding */ nanoid)
612
+ /* harmony export */ });
613
+ let urlAlphabet =
614
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
615
+ let customAlphabet = (alphabet, defaultSize = 21) => {
616
+ return (size = defaultSize) => {
617
+ let id = ''
618
+ let i = size
619
+ while (i--) {
620
+ id += alphabet[(Math.random() * alphabet.length) | 0]
621
+ }
622
+ return id
623
+ }
624
+ }
625
+ let nanoid = (size = 21) => {
626
+ let id = ''
627
+ let i = size
628
+ while (i--) {
629
+ id += urlAlphabet[(Math.random() * 64) | 0]
630
+ }
631
+ return id
632
+ }
633
+
634
+
635
+ /***/ })
636
+
637
+ /******/ });
638
+ /************************************************************************/
639
+ /******/ // The module cache
640
+ /******/ var __webpack_module_cache__ = {};
641
+ /******/
642
+ /******/ // The require function
643
+ /******/ function __webpack_require__(moduleId) {
644
+ /******/ // Check if module is in cache
645
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
646
+ /******/ if (cachedModule !== undefined) {
647
+ /******/ return cachedModule.exports;
648
+ /******/ }
649
+ /******/ // Create a new module (and put it into the cache)
650
+ /******/ var module = __webpack_module_cache__[moduleId] = {
651
+ /******/ // no module.id needed
652
+ /******/ // no module.loaded needed
653
+ /******/ exports: {}
654
+ /******/ };
655
+ /******/
656
+ /******/ // Execute the module function
657
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
658
+ /******/
659
+ /******/ // Return the exports of the module
660
+ /******/ return module.exports;
661
+ /******/ }
662
+ /******/
663
+ /************************************************************************/
664
+ /******/ /* webpack/runtime/compat get default export */
665
+ /******/ (() => {
666
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
667
+ /******/ __webpack_require__.n = (module) => {
668
+ /******/ var getter = module && module.__esModule ?
669
+ /******/ () => (module['default']) :
670
+ /******/ () => (module);
671
+ /******/ __webpack_require__.d(getter, { a: getter });
672
+ /******/ return getter;
673
+ /******/ };
674
+ /******/ })();
675
+ /******/
676
+ /******/ /* webpack/runtime/define property getters */
677
+ /******/ (() => {
678
+ /******/ // define getter functions for harmony exports
679
+ /******/ __webpack_require__.d = (exports, definition) => {
680
+ /******/ for(var key in definition) {
681
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
682
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
683
+ /******/ }
684
+ /******/ }
685
+ /******/ };
686
+ /******/ })();
687
+ /******/
688
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
689
+ /******/ (() => {
690
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
691
+ /******/ })();
692
+ /******/
693
+ /******/ /* webpack/runtime/make namespace object */
694
+ /******/ (() => {
695
+ /******/ // define __esModule on exports
696
+ /******/ __webpack_require__.r = (exports) => {
697
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
698
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
699
+ /******/ }
700
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
701
+ /******/ };
702
+ /******/ })();
703
+ /******/
704
+ /************************************************************************/
705
+ var __webpack_exports__ = {};
706
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
707
+ (() => {
708
+ /*!**************************************!*\
709
+ !*** ./src/core/Notice/component.js ***!
710
+ \**************************************/
711
+ __webpack_require__.r(__webpack_exports__);
712
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
713
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
714
+ /* harmony export */ });
715
+ /* harmony import */ var _component_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./component.css */ "./src/core/Notice/component.css");
716
+ /* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! js-cookie */ "js-cookie");
717
+ /* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_1__);
718
+ /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.throttle */ "lodash.throttle");
719
+ /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_2__);
720
+ /* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-query */ "./src/core/dom-query.js");
721
+ /* harmony import */ var _Flash_component_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Flash/component.jsx */ "./src/core/Flash/component.jsx");
722
+ function 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; }
723
+
724
+ function _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) { _defineProperty(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; }
725
+
726
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
727
+
728
+
729
+
730
+
731
+
732
+
733
+ var COOKIE_EXPIRY = 90;
734
+ var COLLAPSE_TRIGGER_DISTANCE = 5;
735
+ var SCROLL_LISTENER_THROTTLE = 100;
736
+ var RESIZE_LISTENER_THROTTLE = 100;
737
+
738
+ var isMdViewport = function isMdViewport() {
739
+ return !window.matchMedia("(min-width: 65rem)").matches;
740
+ };
741
+
742
+ var adjustFlashMargin = function adjustFlashMargin(open) {
743
+ // HACK ALERT
744
+ // Add margin to flashes when opening the notice.
745
+ // Flashes are react components and this notice needs to work as a view-component and react component.
746
+ // We could do this with redux but then we potentially update state on every scroll event, which
747
+ // even with debounce will deplate our frame budget.
748
+ var flash = (0,_dom_query__WEBPACK_IMPORTED_MODULE_3__.queryId)(_Flash_component_jsx__WEBPACK_IMPORTED_MODULE_4__.FLASH_DATA_ID);
749
+
750
+ if (flash) {
751
+ flash.style.marginTop = open ? "4rem" : null;
752
+ }
753
+ };
754
+
755
+ var hideOnMobile = function hideOnMobile(bannerContainer) {
756
+ if (isMdViewport()) {
757
+ bannerContainer.style.display = "none";
758
+ } else {
759
+ bannerContainer.style.display = null;
760
+ }
761
+ };
762
+
763
+ var hideNotice = function hideNotice(bannerContainer) {
764
+ bannerContainer.style.maxHeight = 0;
765
+ bannerContainer.style.overflow = "hidden";
766
+ adjustFlashMargin(false);
767
+ };
768
+
769
+ var showNotice = function showNotice(bannerContainer) {
770
+ bannerContainer.style.maxHeight = null;
771
+ bannerContainer.style.overflow = null;
772
+ adjustFlashMargin(true);
773
+ };
774
+
775
+ var setupRememberClosed = function setupRememberClosed(cookieId, noticeId) {
776
+ var cookie = js_cookie__WEBPACK_IMPORTED_MODULE_1___default().get(cookieId) || "";
777
+ js_cookie__WEBPACK_IMPORTED_MODULE_1___default().set(cookieId, "".concat(cookie.replace("".concat(noticeId, ","), "") + noticeId, ","), {
778
+ expires: COOKIE_EXPIRY
779
+ });
780
+ };
781
+
782
+ var hasBeenClosedBefore = function hasBeenClosedBefore(cookieId, noticeId) {
783
+ return (js_cookie__WEBPACK_IMPORTED_MODULE_1___default().get(cookieId) || "").includes(noticeId);
784
+ };
785
+
786
+ var setupNoticeCollapse = function setupNoticeCollapse(bannerContainer) {
787
+ var scrollTop = window.scrollY;
788
+
789
+ if (scrollTop > COLLAPSE_TRIGGER_DISTANCE) {
790
+ hideNotice(bannerContainer);
791
+ }
792
+
793
+ var listener = lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(function () {
794
+ var scrollTop = window.scrollY;
795
+
796
+ if (scrollTop > COLLAPSE_TRIGGER_DISTANCE) {
797
+ hideNotice(bannerContainer);
798
+ } else if (bannerContainer.style.overflow) {
799
+ showNotice(bannerContainer);
800
+ }
801
+ }, SCROLL_LISTENER_THROTTLE);
802
+ document.addEventListener("scroll", listener);
803
+ return function () {
804
+ return document.removeEventListener("scroll", listener);
805
+ };
806
+ };
807
+
808
+ var setupCloseBtn = function setupCloseBtn(bannerContainer, cookieId, noticeId, collapseUnmountListeners) {
809
+ var closeBtn = bannerContainer.querySelector("button");
810
+ if (!closeBtn) return function () {};
811
+
812
+ var listener = function listener() {
813
+ if (cookieId && noticeId) setupRememberClosed(cookieId, noticeId);
814
+ hideNotice(bannerContainer);
815
+ collapseUnmountListeners();
816
+ };
817
+
818
+ closeBtn.addEventListener("click", listener);
819
+ return function () {
820
+ return document.removeEventListener("click", listener);
821
+ };
822
+ };
823
+
824
+ var resizeHandler = function resizeHandler(bannerContainer) {
825
+ var handler = lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(function () {
826
+ hideOnMobile(bannerContainer);
827
+ }, RESIZE_LISTENER_THROTTLE);
828
+ window.addEventListener("resize", handler);
829
+ return function () {
830
+ return window.removeEventListener("resize", handler);
831
+ };
832
+ };
833
+
834
+ var Notice = function Notice(_ref) {
835
+ var bannerContainer = _ref.bannerContainer,
836
+ cookieId = _ref.cookieId,
837
+ noticeId = _ref.noticeId,
838
+ options = _ref.options;
839
+ if (typeof window === "undefined") return function () {};
840
+
841
+ if (!bannerContainer) {
842
+ console.warn("A Notice component was initited but no notice container was found.");
843
+ return function () {};
844
+ }
845
+
846
+ if (hasBeenClosedBefore(cookieId, noticeId)) return function () {};
847
+ hideOnMobile(bannerContainer);
848
+ showNotice(bannerContainer);
849
+
850
+ var opts = _objectSpread({
851
+ collapse: true
852
+ }, options);
853
+
854
+ var collapseUnmountListeners = opts.collapse ? setupNoticeCollapse(bannerContainer) : function () {};
855
+ var closeBtnUnmountListeners = setupCloseBtn(bannerContainer, cookieId, noticeId, collapseUnmountListeners);
856
+ var resizeUnmountListener = resizeHandler(bannerContainer);
857
+ return function () {
858
+ [closeBtnUnmountListeners, collapseUnmountListeners, resizeUnmountListener].forEach(function (unmount) {
859
+ return unmount();
860
+ });
861
+ };
862
+ };
863
+
864
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Notice);
865
+ })();
866
+
867
+ __webpack_exports__ = __webpack_exports__["default"];
868
+ /******/ return __webpack_exports__;
869
+ /******/ })()
870
+ ;
871
+ });
872
+ //# sourceMappingURL=data:application/json;charset=utf-8;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