ably-ui 5.0.0.dev.bf26560 → 5.0.0.dev.d3162ab

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ably_ui/core/code/component.css +0 -2
  3. data/lib/ably_ui/core/code/component.js +1 -7468
  4. data/lib/ably_ui/core/connect_state_wrapper/component.js +1 -22
  5. data/lib/ably_ui/core/contact_footer/component.css +0 -2
  6. data/lib/ably_ui/core/contact_footer/component.js +1 -211
  7. data/lib/ably_ui/core/cookie_message/component.css +0 -2
  8. data/lib/ably_ui/core/cookie_message/component.js +1 -82
  9. data/lib/ably_ui/core/feature_footer/component.css +0 -2
  10. data/lib/ably_ui/core/feature_footer/component.js +1 -211
  11. data/lib/ably_ui/core/featured_link/component.css +0 -2
  12. data/lib/ably_ui/core/featured_link/component.js +1 -82
  13. data/lib/ably_ui/core/flash/component.css +0 -2
  14. data/lib/ably_ui/core/flash/component.js +1 -82
  15. data/lib/ably_ui/core/footer/component.css +0 -2
  16. data/lib/ably_ui/core/footer/component.js +1 -82
  17. data/lib/ably_ui/core/icon/component.js +1 -22
  18. data/lib/ably_ui/core/logo/component.js +1 -22
  19. data/lib/ably_ui/core/meganav/component.css +0 -2
  20. data/lib/ably_ui/core/meganav/component.js +1 -1857
  21. data/lib/ably_ui/core/meganav_blog_posts_list/component.js +1 -1934
  22. data/lib/ably_ui/core/meganav_content_developers/component.js +1 -22
  23. data/lib/ably_ui/core/meganav_content_platform/component.js +1 -22
  24. data/lib/ably_ui/core/meganav_content_use_cases/component.js +1 -22
  25. data/lib/ably_ui/core/meganav_content_why_ably/component.js +1 -22
  26. data/lib/ably_ui/core/meganav_control/component.js +1 -208
  27. data/lib/ably_ui/core/meganav_control_mobile_dropdown/component.js +1 -975
  28. data/lib/ably_ui/core/meganav_control_mobile_panel_close/component.js +1 -142
  29. data/lib/ably_ui/core/meganav_control_mobile_panel_open/component.js +1 -170
  30. data/lib/ably_ui/core/meganav_items_desktop/component.js +1 -22
  31. data/lib/ably_ui/core/meganav_items_mobile/component.js +1 -22
  32. data/lib/ably_ui/core/meganav_items_signed_in/component.js +1 -22
  33. data/lib/ably_ui/core/notice/component.css +0 -2
  34. data/lib/ably_ui/core/notice/component.js +2 -4613
  35. data/lib/ably_ui/core/showcase/component.css +0 -2
  36. data/lib/ably_ui/core/showcase/component.js +1 -343
  37. data/lib/ably_ui/core/sign_out_link/component.js +1 -22
  38. data/lib/ably_ui/core/slider/component.css +0 -2
  39. data/lib/ably_ui/core/slider/component.js +1 -38
  40. data/lib/ably_ui/core/uptime/component.css +0 -2
  41. data/lib/ably_ui/core/uptime/component.js +1 -82
  42. data/lib/ably_ui/version.rb +1 -1
  43. metadata +1 -1
@@ -1,22 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["ConnectStateWrapper"] = factory();
10
- })(this, function() {
11
- return /******/ (() => { // webpackBootstrap
12
- var __webpack_exports__ = {};
13
- /*!***************************************************!*\
14
- !*** ./src/core/ConnectStateWrapper/component.js ***!
15
- \***************************************************/
16
-
17
- __webpack_exports__ = __webpack_exports__.default;
18
- /******/ return __webpack_exports__;
19
- /******/ })()
20
- ;
21
- });
22
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1Q0FBdUMsdURBQXVEO0FBQzlGLENBQUM7QUFDRCxPIiwiZmlsZSI6ImNvcmUvQ29ubmVjdFN0YXRlV3JhcHBlci9jb21wb25lbnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gd2VicGFja1VuaXZlcnNhbE1vZHVsZURlZmluaXRpb24ocm9vdCwgZmFjdG9yeSkge1xuXHRpZih0eXBlb2YgZXhwb3J0cyA9PT0gJ29iamVjdCcgJiYgdHlwZW9mIG1vZHVsZSA9PT0gJ29iamVjdCcpXG5cdFx0bW9kdWxlLmV4cG9ydHMgPSBmYWN0b3J5KCk7XG5cdGVsc2UgaWYodHlwZW9mIGRlZmluZSA9PT0gJ2Z1bmN0aW9uJyAmJiBkZWZpbmUuYW1kKVxuXHRcdGRlZmluZShbXSwgZmFjdG9yeSk7XG5cdGVsc2UgaWYodHlwZW9mIGV4cG9ydHMgPT09ICdvYmplY3QnKVxuXHRcdGV4cG9ydHNbXCJBYmx5VWlcIl0gPSBmYWN0b3J5KCk7XG5cdGVsc2Vcblx0XHRyb290W1wiQWJseVVpXCJdID0gcm9vdFtcIkFibHlVaVwiXSB8fCB7fSwgcm9vdFtcIkFibHlVaVwiXVtcIkNvcmVcIl0gPSByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXSB8fCB7fSwgcm9vdFtcIkFibHlVaVwiXVtcIkNvcmVcIl1bXCJDb25uZWN0U3RhdGVXcmFwcGVyXCJdID0gZmFjdG9yeSgpO1xufSkodGhpcywgZnVuY3Rpb24oKSB7XG5yZXR1cm4gIl0sInNvdXJjZVJvb3QiOiIifQ==
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.ConnectStateWrapper=o())}(this,(function(){return{}.default}));
@@ -10,5 +10,3 @@
10
10
  }
11
11
  }
12
12
 
13
-
14
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9Db250YWN0Rm9vdGVyL2NvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTtJQUNFLDBCQUEwQjtJQUMxQixpQ0FBaUM7SUFDakMsdUNBQXVDO0VBQ3pDOztFQUVBO0lBQ0UsNkVBQTZFO0VBQy9FO0FBQ0YiLCJmaWxlIjoiY29yZS9Db250YWN0Rm9vdGVyL2NvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJAbGF5ZXIgY29tcG9uZW50cyB7XG4gIC51aS1jb250YWN0LWZvb3RlciB7XG4gICAgYmFja2dyb3VuZC1zaXplOiAxMDAlIDEwMCU7XG4gICAgYmFja2dyb3VuZC1wb3NpdGlvbjogcmlnaHQgY2VudGVyO1xuICAgIEBhcHBseSB3LWZ1bGwgYmctZ3JhZGllbnQtYWN0aXZlLW9yYW5nZTtcbiAgfVxuXG4gIC51aS1jb250YWN0LWZvb3Rlci1ib3gge1xuICAgIEBhcHBseSBwLTI0IHNtOnAtMzIgeGw6cC00MCBiZy13aGl0ZSBmbGV4IGZsZXgtY29sIGp1c3RpZnktYmV0d2VlbiByb3VuZGVkLXNtO1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9*/
@@ -1,211 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["ContactFooter"] = factory();
10
- })(this, function() {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "./src/core/dom-query.js":
16
- /*!*******************************!*\
17
- !*** ./src/core/dom-query.js ***!
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 */ "queryId": () => (/* binding */ queryId),
24
- /* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
25
- /* harmony export */ });
26
- var queryId = function queryId(val) {
27
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
28
- return root.querySelector("[data-id=".concat(val, "]"));
29
- };
30
- var queryIdAll = function queryIdAll(val) {
31
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
32
- return root.querySelectorAll("[data-id=".concat(val, "]"));
33
- };
34
-
35
- /***/ }),
36
-
37
- /***/ "./src/core/hubspot-chat-toggle.js":
38
- /*!*****************************************!*\
39
- !*** ./src/core/hubspot-chat-toggle.js ***!
40
- \*****************************************/
41
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
42
-
43
- __webpack_require__.r(__webpack_exports__);
44
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45
- /* harmony export */ "default": () => (/* binding */ toggleChatWidget)
46
- /* harmony export */ });
47
- /* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom-query */ "./src/core/dom-query.js");
48
-
49
- /*
50
- A method to enable/disable a CTA that
51
- is used to open the HubSpot chat widget
52
-
53
- If the Chat widget is unavailable this script
54
- will apply a disabled property and change
55
- the text on the button, to warn the user.
56
-
57
- Params:
58
- - dataId the parent container data-id
59
-
60
- */
61
-
62
- function enableBtn(el, text) {
63
- el.disabled = false;
64
- el.innerText = text;
65
- }
66
-
67
- function disableBtn(el, text) {
68
- el.disabled = true;
69
- el.innerText = text;
70
- }
71
-
72
- var WAIT_BETWEEN_RETRIES_MS = 100;
73
- var MAX_RETRY_COUNT = 30;
74
- function toggleChatWidget() {
75
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
76
- var dataId = params.dataId;
77
- var container = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)(dataId);
78
- var chatButton = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("open-chat-widget", container);
79
- var textEnabled = chatButton.dataset.enabledLabel;
80
- var textDisabled = chatButton.dataset.disabledLabel;
81
- if (!dataId || !container) return;
82
- var trigger = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("open-chat-widget", container);
83
- var clickHandler;
84
-
85
- var waitForScript = function waitForScript(delay) {
86
- var _window, _window$HubSpotConver;
87
-
88
- var widget = (_window = window) === null || _window === void 0 ? void 0 : (_window$HubSpotConver = _window.HubSpotConversations) === null || _window$HubSpotConver === void 0 ? void 0 : _window$HubSpotConver.widget; // If the chat is set to be hidden out of hours this will return null
89
-
90
- var iframe = document.querySelector("#hubspot-messages-iframe-container");
91
-
92
- clickHandler = function clickHandler(e) {
93
- e.preventDefault();
94
- widget.open();
95
- };
96
-
97
- if (widget && iframe) {
98
- trigger.addEventListener("click", clickHandler);
99
- enableBtn(trigger, textEnabled);
100
- } else if (--MAX_RETRY_COUNT) {
101
- setTimeout(function () {
102
- return waitForScript(WAIT_BETWEEN_RETRIES_MS);
103
- }, delay);
104
- }
105
- };
106
-
107
- disableBtn(trigger, textDisabled);
108
- waitForScript(0);
109
- return function () {
110
- disableBtn(trigger, textDisabled);
111
- trigger.removeEventListener("click", clickHandler);
112
- };
113
- }
114
-
115
- /***/ }),
116
-
117
- /***/ "./src/core/ContactFooter/component.css":
118
- /*!**********************************************!*\
119
- !*** ./src/core/ContactFooter/component.css ***!
120
- \**********************************************/
121
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
122
-
123
- __webpack_require__.r(__webpack_exports__);
124
- // extracted by mini-css-extract-plugin
125
-
126
-
127
- /***/ })
128
-
129
- /******/ });
130
- /************************************************************************/
131
- /******/ // The module cache
132
- /******/ var __webpack_module_cache__ = {};
133
- /******/
134
- /******/ // The require function
135
- /******/ function __webpack_require__(moduleId) {
136
- /******/ // Check if module is in cache
137
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
138
- /******/ if (cachedModule !== undefined) {
139
- /******/ return cachedModule.exports;
140
- /******/ }
141
- /******/ // Create a new module (and put it into the cache)
142
- /******/ var module = __webpack_module_cache__[moduleId] = {
143
- /******/ // no module.id needed
144
- /******/ // no module.loaded needed
145
- /******/ exports: {}
146
- /******/ };
147
- /******/
148
- /******/ // Execute the module function
149
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
150
- /******/
151
- /******/ // Return the exports of the module
152
- /******/ return module.exports;
153
- /******/ }
154
- /******/
155
- /************************************************************************/
156
- /******/ /* webpack/runtime/define property getters */
157
- /******/ (() => {
158
- /******/ // define getter functions for harmony exports
159
- /******/ __webpack_require__.d = (exports, definition) => {
160
- /******/ for(var key in definition) {
161
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
162
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
163
- /******/ }
164
- /******/ }
165
- /******/ };
166
- /******/ })();
167
- /******/
168
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
169
- /******/ (() => {
170
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
171
- /******/ })();
172
- /******/
173
- /******/ /* webpack/runtime/make namespace object */
174
- /******/ (() => {
175
- /******/ // define __esModule on exports
176
- /******/ __webpack_require__.r = (exports) => {
177
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
178
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
179
- /******/ }
180
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
181
- /******/ };
182
- /******/ })();
183
- /******/
184
- /************************************************************************/
185
- var __webpack_exports__ = {};
186
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
187
- (() => {
188
- /*!*********************************************!*\
189
- !*** ./src/core/ContactFooter/component.js ***!
190
- \*********************************************/
191
- __webpack_require__.r(__webpack_exports__);
192
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
193
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
194
- /* harmony export */ });
195
- /* harmony import */ var _component_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./component.css */ "./src/core/ContactFooter/component.css");
196
- /* harmony import */ var _hubspot_chat_toggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hubspot-chat-toggle */ "./src/core/hubspot-chat-toggle.js");
197
-
198
-
199
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function () {
200
- return (0,_hubspot_chat_toggle__WEBPACK_IMPORTED_MODULE_1__.default)({
201
- dataId: "contact-footer"
202
- });
203
- });
204
- })();
205
-
206
- __webpack_exports__ = __webpack_exports__.default;
207
- /******/ return __webpack_exports__;
208
- /******/ })()
209
- ;
210
- });
211
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL2RvbS1xdWVyeS5qcyIsIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9odWJzcG90LWNoYXQtdG9nZ2xlLmpzIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL0NvbnRhY3RGb290ZXIvY29tcG9uZW50LmNzcz81NTg1Iiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZW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HRvZ2dsZUNoYXRXaWRnZXQgZnJvbSBcIi4uL2h1YnNwb3QtY2hhdC10b2dnbGVcIjtcbmV4cG9ydCBkZWZhdWx0ICgpID0+IHRvZ2dsZUNoYXRXaWRnZXQoeyBkYXRhSWQ6IFwiY29udGFjdC1mb290ZXJcIiB9KTtcbiJdLCJzb3VyY2VSb290IjoiIn0=
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.ContactFooter=t())}(this,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>a});var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector("[data-id=".concat(e,"]"))};function o(e,t){e.disabled=!1,e.innerText=t}function r(e,t){e.disabled=!0,e.innerText=t}var i=30;const a=function(){return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).dataId,t=n(e),a=n("open-chat-widget",t),d=a.dataset.enabledLabel,c=a.dataset.disabledLabel;if(e&&t){var u,l=n("open-chat-widget",t),f=function e(t){var n,r,a=null===(n=window)||void 0===n||null===(r=n.HubSpotConversations)||void 0===r?void 0:r.widget,c=document.querySelector("#hubspot-messages-iframe-container");u=function(e){e.preventDefault(),a.open()},a&&c?(l.addEventListener("click",u),o(l,d)):--i&&setTimeout((function(){return e(100)}),t)};return r(l,c),f(0),function(){r(l,c),l.removeEventListener("click",u)}}}({dataId:"contact-footer"})};return t.default})()}));
@@ -12,5 +12,3 @@
12
12
  }
13
13
  }
14
14
 
15
-
16
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjp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{
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["CookieMessage"] = factory();
10
- })(this, function() {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "./src/core/CookieMessage/component.css":
16
- /*!**********************************************!*\
17
- !*** ./src/core/CookieMessage/component.css ***!
18
- \**********************************************/
19
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
-
21
- __webpack_require__.r(__webpack_exports__);
22
- // extracted by mini-css-extract-plugin
23
-
24
-
25
- /***/ })
26
-
27
- /******/ });
28
- /************************************************************************/
29
- /******/ // The module cache
30
- /******/ var __webpack_module_cache__ = {};
31
- /******/
32
- /******/ // The require function
33
- /******/ function __webpack_require__(moduleId) {
34
- /******/ // Check if module is in cache
35
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
36
- /******/ if (cachedModule !== undefined) {
37
- /******/ return cachedModule.exports;
38
- /******/ }
39
- /******/ // Create a new module (and put it into the cache)
40
- /******/ var module = __webpack_module_cache__[moduleId] = {
41
- /******/ // no module.id needed
42
- /******/ // no module.loaded needed
43
- /******/ exports: {}
44
- /******/ };
45
- /******/
46
- /******/ // Execute the module function
47
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
48
- /******/
49
- /******/ // Return the exports of the module
50
- /******/ return module.exports;
51
- /******/ }
52
- /******/
53
- /************************************************************************/
54
- /******/ /* webpack/runtime/make namespace object */
55
- /******/ (() => {
56
- /******/ // define __esModule on exports
57
- /******/ __webpack_require__.r = (exports) => {
58
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
59
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
60
- /******/ }
61
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
62
- /******/ };
63
- /******/ })();
64
- /******/
65
- /************************************************************************/
66
- var __webpack_exports__ = {};
67
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
68
- (() => {
69
- /*!*********************************************!*\
70
- !*** ./src/core/CookieMessage/component.js ***!
71
- \*********************************************/
72
- __webpack_require__.r(__webpack_exports__);
73
- /* harmony import */ var _component_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./component.css */ "./src/core/CookieMessage/component.css");
74
-
75
- })();
76
-
77
- __webpack_exports__ = __webpack_exports__.default;
78
- /******/ return __webpack_exports__;
79
- /******/ })()
80
- ;
81
- });
82
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL0Nvb2tpZU1lc3NhZ2UvY29tcG9uZW50LmNzcz9jNmE3Iiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay9ydW50aW1lL21ha2UgbmFtZXNwYWNlIG9iamVjdCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUNBQXVDLHVEQUF1RDtBQUM5RixDQUFDO0FBQ0QsTzs7Ozs7Ozs7Ozs7QUNWQTs7Ozs7OztVQ0FBO1VBQ0E7O1VBRUE7VUFDQTtVQUNBO1VBQ0E7VUFDQTtVQUNBO1VBQ0E7VUFDQTtVQUNBO1VBQ0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eW1ib2wudG9TdHJpbmdUYWcsIHsgdmFsdWU6ICdNb2R1bGUnIH0pO1xuXHR9XG5cdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAnX19lc01vZHVsZScsIHsgdmFsdWU6IHRydWUgfSk7XG59OyJdLCJzb3VyY2VSb290IjoiIn0=
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.CookieMessage=o())}(this,(function(){return(()=>{"use strict";var e={};return e.default})()}));
@@ -11,5 +11,3 @@
11
11
  }
12
12
  }
13
13
 
14
-
15
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9GZWF0dXJlRm9vdGVyL2NvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRTtJQUNFLHlDQUF5QztJQUN6QywwQkFBMEI7SUFDMUIsaUNBQWlDO0lBQ2pDLDZEQUE2RDtFQUMvRDs7RUFFQTtJQUNFLG9FQUFvRTtFQUN0RTtBQUNGIiwiZmlsZSI6ImNvcmUvRmVhdHVyZUZvb3Rlci9jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiQGxheWVyIGNvbXBvbmVudHMge1xuICAudWktZmVhdHVyZS1mb290ZXIge1xuICAgIGJhY2tncm91bmQ6IHZhcigtLWdyYWRpZW50LWFjdGl2ZS1vcmFuZ2UpO1xuICAgIGJhY2tncm91bmQtc2l6ZTogMTAwJSAxMDAlO1xuICAgIGJhY2tncm91bmQtcG9zaXRpb246IHJpZ2h0IGNlbnRlcjtcbiAgICBAYXBwbHkgdy1mdWxsIGZvbnQtc2FucyBhbnRpYWxpYXNlZCBiZy1ncmFkaWVudC1hY3RpdmUtb3JhbmdlO1xuICB9XG5cbiAgLnVpLWZlYXR1cmUtZm9vdGVyLWJveCB7XG4gICAgQGFwcGx5IHAtMjQgc206cC0zMiB4bDpwLTQwIGZsZXggZmxleC1jb2wganVzdGlmeS1iZXR3ZWVuIHJvdW5kZWQtc207XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=*/
@@ -1,211 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["FeatureFooter"] = factory();
10
- })(this, function() {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "./src/core/dom-query.js":
16
- /*!*******************************!*\
17
- !*** ./src/core/dom-query.js ***!
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 */ "queryId": () => (/* binding */ queryId),
24
- /* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
25
- /* harmony export */ });
26
- var queryId = function queryId(val) {
27
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
28
- return root.querySelector("[data-id=".concat(val, "]"));
29
- };
30
- var queryIdAll = function queryIdAll(val) {
31
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
32
- return root.querySelectorAll("[data-id=".concat(val, "]"));
33
- };
34
-
35
- /***/ }),
36
-
37
- /***/ "./src/core/hubspot-chat-toggle.js":
38
- /*!*****************************************!*\
39
- !*** ./src/core/hubspot-chat-toggle.js ***!
40
- \*****************************************/
41
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
42
-
43
- __webpack_require__.r(__webpack_exports__);
44
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45
- /* harmony export */ "default": () => (/* binding */ toggleChatWidget)
46
- /* harmony export */ });
47
- /* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom-query */ "./src/core/dom-query.js");
48
-
49
- /*
50
- A method to enable/disable a CTA that
51
- is used to open the HubSpot chat widget
52
-
53
- If the Chat widget is unavailable this script
54
- will apply a disabled property and change
55
- the text on the button, to warn the user.
56
-
57
- Params:
58
- - dataId the parent container data-id
59
-
60
- */
61
-
62
- function enableBtn(el, text) {
63
- el.disabled = false;
64
- el.innerText = text;
65
- }
66
-
67
- function disableBtn(el, text) {
68
- el.disabled = true;
69
- el.innerText = text;
70
- }
71
-
72
- var WAIT_BETWEEN_RETRIES_MS = 100;
73
- var MAX_RETRY_COUNT = 30;
74
- function toggleChatWidget() {
75
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
76
- var dataId = params.dataId;
77
- var container = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)(dataId);
78
- var chatButton = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("open-chat-widget", container);
79
- var textEnabled = chatButton.dataset.enabledLabel;
80
- var textDisabled = chatButton.dataset.disabledLabel;
81
- if (!dataId || !container) return;
82
- var trigger = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("open-chat-widget", container);
83
- var clickHandler;
84
-
85
- var waitForScript = function waitForScript(delay) {
86
- var _window, _window$HubSpotConver;
87
-
88
- var widget = (_window = window) === null || _window === void 0 ? void 0 : (_window$HubSpotConver = _window.HubSpotConversations) === null || _window$HubSpotConver === void 0 ? void 0 : _window$HubSpotConver.widget; // If the chat is set to be hidden out of hours this will return null
89
-
90
- var iframe = document.querySelector("#hubspot-messages-iframe-container");
91
-
92
- clickHandler = function clickHandler(e) {
93
- e.preventDefault();
94
- widget.open();
95
- };
96
-
97
- if (widget && iframe) {
98
- trigger.addEventListener("click", clickHandler);
99
- enableBtn(trigger, textEnabled);
100
- } else if (--MAX_RETRY_COUNT) {
101
- setTimeout(function () {
102
- return waitForScript(WAIT_BETWEEN_RETRIES_MS);
103
- }, delay);
104
- }
105
- };
106
-
107
- disableBtn(trigger, textDisabled);
108
- waitForScript(0);
109
- return function () {
110
- disableBtn(trigger, textDisabled);
111
- trigger.removeEventListener("click", clickHandler);
112
- };
113
- }
114
-
115
- /***/ }),
116
-
117
- /***/ "./src/core/FeatureFooter/component.css":
118
- /*!**********************************************!*\
119
- !*** ./src/core/FeatureFooter/component.css ***!
120
- \**********************************************/
121
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
122
-
123
- __webpack_require__.r(__webpack_exports__);
124
- // extracted by mini-css-extract-plugin
125
-
126
-
127
- /***/ })
128
-
129
- /******/ });
130
- /************************************************************************/
131
- /******/ // The module cache
132
- /******/ var __webpack_module_cache__ = {};
133
- /******/
134
- /******/ // The require function
135
- /******/ function __webpack_require__(moduleId) {
136
- /******/ // Check if module is in cache
137
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
138
- /******/ if (cachedModule !== undefined) {
139
- /******/ return cachedModule.exports;
140
- /******/ }
141
- /******/ // Create a new module (and put it into the cache)
142
- /******/ var module = __webpack_module_cache__[moduleId] = {
143
- /******/ // no module.id needed
144
- /******/ // no module.loaded needed
145
- /******/ exports: {}
146
- /******/ };
147
- /******/
148
- /******/ // Execute the module function
149
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
150
- /******/
151
- /******/ // Return the exports of the module
152
- /******/ return module.exports;
153
- /******/ }
154
- /******/
155
- /************************************************************************/
156
- /******/ /* webpack/runtime/define property getters */
157
- /******/ (() => {
158
- /******/ // define getter functions for harmony exports
159
- /******/ __webpack_require__.d = (exports, definition) => {
160
- /******/ for(var key in definition) {
161
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
162
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
163
- /******/ }
164
- /******/ }
165
- /******/ };
166
- /******/ })();
167
- /******/
168
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
169
- /******/ (() => {
170
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
171
- /******/ })();
172
- /******/
173
- /******/ /* webpack/runtime/make namespace object */
174
- /******/ (() => {
175
- /******/ // define __esModule on exports
176
- /******/ __webpack_require__.r = (exports) => {
177
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
178
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
179
- /******/ }
180
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
181
- /******/ };
182
- /******/ })();
183
- /******/
184
- /************************************************************************/
185
- var __webpack_exports__ = {};
186
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
187
- (() => {
188
- /*!*********************************************!*\
189
- !*** ./src/core/FeatureFooter/component.js ***!
190
- \*********************************************/
191
- __webpack_require__.r(__webpack_exports__);
192
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
193
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
194
- /* harmony export */ });
195
- /* harmony import */ var _hubspot_chat_toggle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../hubspot-chat-toggle */ "./src/core/hubspot-chat-toggle.js");
196
- /* harmony import */ var _component_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./component.css */ "./src/core/FeatureFooter/component.css");
197
-
198
-
199
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function () {
200
- return (0,_hubspot_chat_toggle__WEBPACK_IMPORTED_MODULE_0__.default)({
201
- dataId: "feature-footer"
202
- });
203
- });
204
- })();
205
-
206
- __webpack_exports__ = __webpack_exports__.default;
207
- /******/ return __webpack_exports__;
208
- /******/ })()
209
- ;
210
- });
211
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL2RvbS1xdWVyeS5qcyIsIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9odWJzcG90LWNoYXQtdG9nZ2xlLmpzIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL0ZlYXR1cmVGb290ZXIvY29tcG9uZW50LmNzcz9hMzlmIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay9ydW50aW1lL2RlZmluZSBwcm9wZXJ0eSBnZXR0ZXJzIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL3J1bnRpbWUvaGFzT3duUHJvcGVydHkgc2hvcnRoYW5kIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL3J1bnRpbWUvbWFrZSBuYW1lc3BhY2Ugb2JqZWN0Iiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL0ZlYXR1cmVGb290ZXIvY29tcG9uZW50LmpzIl0sIm5hbWVzIjpbInF1ZXJ5SWQiLCJ2YWwiLCJyb290IiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yIiwicXVlcnlJZEFsbCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJlbmFibGVCdG4iLCJlbCIsInRleHQiLCJkaXNhYmxl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cmVxdWlyZV9fLm8gPSAob2JqLCBwcm9wKSA9PiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKG9iaiwgcHJvcCkpIiwiLy8gZGVmaW5lIF9fZXNNb2R1bGUgb24gZXhwb3J0c1xuX193ZWJwYWNrX3JlcXVpcmVfXy5yID0gKGV4cG9ydHMpID0+IHtcblx0aWYodHlwZW9mIFN5bWJvbCAhPT0gJ3VuZGVmaW5lZCcgJiYgU3ltYm9sLnRvU3RyaW5nVGFnKSB7XG5cdFx0T2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFN5bWJvbC50b1N0cmluZ1RhZywgeyB2YWx1ZTogJ01vZHVsZScgfSk7XG5cdH1cblx0T2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICdfX2VzTW9kdWxlJywgeyB2YWx1ZTogdHJ1ZSB9KTtcbn07IiwiaW1wb3J0IHRvZ2dsZUNoYXRXaWRnZXQgZnJvbSBcIi4uL2h1YnNwb3QtY2hhdC10b2dnbGVcIjtcbmltcG9ydCBcIi4vY29tcG9uZW50LmNzc1wiO1xuXG5leHBvcnQgZGVmYXVsdCAoKSA9PlxuICB0b2dnbGVDaGF0V2lkZ2V0KHtcbiAgICBkYXRhSWQ6IFwiZmVhdHVyZS1mb290ZXJcIixcbiAgfSk7XG4iXSwic291cmNlUm9vdCI6IiJ9
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.FeatureFooter=t())}(this,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>a});var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector("[data-id=".concat(e,"]"))};function o(e,t){e.disabled=!1,e.innerText=t}function r(e,t){e.disabled=!0,e.innerText=t}var i=30;const a=function(){return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).dataId,t=n(e),a=n("open-chat-widget",t),d=a.dataset.enabledLabel,u=a.dataset.disabledLabel;if(e&&t){var c,l=n("open-chat-widget",t),f=function e(t){var n,r,a=null===(n=window)||void 0===n||null===(r=n.HubSpotConversations)||void 0===r?void 0:r.widget,u=document.querySelector("#hubspot-messages-iframe-container");c=function(e){e.preventDefault(),a.open()},a&&u?(l.addEventListener("click",c),o(l,d)):--i&&setTimeout((function(){return e(100)}),t)};return r(l,u),f(0),function(){r(l,u),l.removeEventListener("click",c)}}}({dataId:"feature-footer"})};return t.default})()}));
@@ -15,5 +15,3 @@
15
15
  }
16
16
  }
17
17
 
18
-
19
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9GZWF0dXJlZExpbmsvY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0lBQ0UsK0JBQStCO0lBQy9CLHdCQUF3QjtJQUN4Qix5RkFBeUY7RUFDM0Y7O0VBRUE7SUFDRSxhQUFhO0VBQ2Y7O0VBRUE7SUFDRSxrQ0FBa0M7SUFDbEMsZ0RBQWdEO0VBQ2xEO0FBQ0YiLCJmaWxlIjoiY29yZS9GZWF0dXJlZExpbmsvY29tcG9uZW50LmNzcyIsInNvdXJjZXNDb250ZW50IjpbIkBsYXllciBjb21wb25lbnRzIHtcbiAgLnVpLWZlYXR1cmVkLWxpbmsge1xuICAgIG1heC13aWR0aDogY2FsYygxMDAlIC0gMS4yNXJlbSk7XG4gICAgQGFwcGx5IGZvbnQtbWVkaXVt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