ably-ui 4.2.0.dev.04ce1ff → 5.0.0.dev.bf26560
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +13 -17
- data/lib/ably_ui/core/code/component.css +2 -0
- data/lib/ably_ui/core/code/component.js +7468 -1
- data/lib/ably_ui/core/connect_state_wrapper/component.js +22 -1
- data/lib/ably_ui/core/contact_footer/component.css +2 -0
- data/lib/ably_ui/core/contact_footer/component.js +211 -1
- data/lib/ably_ui/core/cookie_message/component.css +2 -0
- data/lib/ably_ui/core/cookie_message/component.js +82 -1
- data/lib/ably_ui/core/feature_footer/component.css +2 -0
- data/lib/ably_ui/core/feature_footer/component.js +211 -1
- data/lib/ably_ui/core/featured_link/component.css +2 -0
- data/lib/ably_ui/core/featured_link/component.js +82 -1
- data/lib/ably_ui/core/flash/component.css +2 -0
- data/lib/ably_ui/core/flash/component.js +82 -1
- data/lib/ably_ui/core/footer/component.css +2 -0
- data/lib/ably_ui/core/footer/component.js +82 -1
- data/lib/ably_ui/core/icon/component.js +22 -1
- data/lib/ably_ui/core/logo/component.js +22 -1
- data/lib/ably_ui/core/meganav/component.css +2 -0
- data/lib/ably_ui/core/meganav/component.js +1857 -1
- data/lib/ably_ui/core/meganav_blog_posts_list/component.js +1934 -1
- data/lib/ably_ui/core/meganav_content_developers/component.js +22 -1
- data/lib/ably_ui/core/meganav_content_platform/component.js +22 -1
- data/lib/ably_ui/core/meganav_content_use_cases/component.js +22 -1
- data/lib/ably_ui/core/meganav_content_why_ably/component.js +22 -1
- data/lib/ably_ui/core/meganav_control/component.js +208 -1
- data/lib/ably_ui/core/meganav_control_mobile_dropdown/component.js +975 -1
- data/lib/ably_ui/core/meganav_control_mobile_panel_close/component.js +142 -1
- data/lib/ably_ui/core/meganav_control_mobile_panel_open/component.js +170 -1
- data/lib/ably_ui/core/meganav_items_desktop/component.js +22 -1
- data/lib/ably_ui/core/meganav_items_mobile/component.js +22 -1
- data/lib/ably_ui/core/meganav_items_signed_in/component.js +22 -1
- data/lib/ably_ui/core/notice/component.css +2 -0
- data/lib/ably_ui/core/notice/component.js +4613 -2
- data/lib/ably_ui/core/scripts.js +1 -1
- data/lib/ably_ui/core/showcase/component.css +2 -0
- data/lib/ably_ui/core/showcase/component.js +343 -1
- data/lib/ably_ui/core/sign_out_link/component.js +22 -1
- data/lib/ably_ui/core/slider/component.css +2 -0
- data/lib/ably_ui/core/slider/component.js +38 -1
- data/lib/ably_ui/core/slider/slider.html.erb +1 -1
- data/lib/ably_ui/core/uptime/component.css +2 -0
- data/lib/ably_ui/core/uptime/component.js +82 -1
- data/lib/ably_ui/version.rb +1 -1
- metadata +2 -2
data/lib/ably_ui/core/scripts.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define([,],e):"object"==typeof exports?exports.AblyUi=e(require("react"),require("react-dom")):(t.AblyUi=t.AblyUi||{},t.AblyUi.Core=e(t[void 0],t[void 0]))}(this,(function(t,e){return(()=>{var r={757:(t,e,r)=>{t.exports=r(666)},666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=P(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?y:p,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",h="executing",y="completed",d={};function v(){}function b(){}function g(){}var w={};w[i]=function(){return this};var m=Object.getPrototypeOf,O=m&&m(m(N([])));O&&O!==r&&n.call(O,i)&&(w=O);var x=g.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return b.prototype=x.constructor=g,g.constructor=b,b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(x),u(x,c,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},281:e=>{"use strict";e.exports=t},645:t=>{"use strict";t.exports=e}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{attachStoreToWindow:()=>y,connectState:()=>v,createRemoteDataStore:()=>b,fetchBlogPosts:()=>P,fetchSessionData:()=>D,getRemoteDataStore:()=>d,loadSprites:()=>c,queryId:()=>C,queryIdAll:()=>q,reactRenderer:()=>a,reducerBlogPosts:()=>A,reducerSessionData:()=>T,selectRecentBlogPosts:()=>L,selectSessionData:()=>U}),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function t(){var e=isNaN(arguments[0])?1:Number(arguments[0]);return e?Array.prototype.reduce.call(this,(function(r,n){return Array.isArray(n)?r.push.apply(r,t.call(n,e-1)):r.push(n),r}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(t){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var t=o(281),e=o.n(t),r=o(645),n=o.n(r);function a(t){var r=document.querySelectorAll("[data-react]");Array.from(r).forEach((function(r){var o=r.getAttribute("data-react"),i=t[o];if(i){var a=r.getAttribute("data-react-props"),c=a&&JSON.parse(a||{});n().render(e().createElement(i,c),r),r.removeAttribute("data-react"),r.removeAttribute("data-react-props")}}))}const c=function(t){fetch(t).then((function(t){return t.text()})).then((function(t){var e=document.createElement("div");e.style.display="none",e.innerHTML=t,document.body.appendChild(e)})).catch((function(t){return console.error(t)}))};function u(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var f="function"==typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function p(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function h(t,e,r){var n;if("function"==typeof e&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof e&&void 0===r&&(r=e,e=void 0),void 0!==r){if("function"!=typeof r)throw new Error(u(1));return r(h)(t,e)}if("function"!=typeof t)throw new Error(u(2));var o=t,i=e,a=[],c=a,s=!1;function y(){c===a&&(c=a.slice())}function d(){if(s)throw new Error(u(3));return i}function v(t){if("function"!=typeof t)throw new Error(u(4));if(s)throw new Error(u(5));var e=!0;return y(),c.push(t),function(){if(e){if(s)throw new Error(u(6));e=!1,y();var r=c.indexOf(t);c.splice(r,1),a=null}}}function b(t){if(!p(t))throw new Error(u(7));if(void 0===t.type)throw new Error(u(8));if(s)throw new Error(u(9));try{s=!0,i=o(i,t)}finally{s=!1}for(var e=a=c,r=0;r<e.length;r++)(0,e[r])();return t}function g(t){if("function"!=typeof t)throw new Error(u(10));o=t,b({type:l.REPLACE})}function w(){var t,e=v;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(u(11));function r(){t.next&&t.next(d())}return r(),{unsubscribe:e(r)}}})[f]=function(){return this},t}return b({type:l.INIT}),(n={dispatch:b,subscribe:v,getState:d,replaceReducer:g})[f]=w,n}var y=function(t){window.AblyUi=window.AblyUi||{},window.AblyUi.RemoteDataStore=t},d=function(){if(!window.AblyUi.RemoteDataStore)throw new Error("Remote store was called before one was created");return window.AblyUi.RemoteDataStore},v=function(t,e){var r=d(),n=t(r);r.subscribe((function(){var o=t(r);o!==n&&(n=o,e(o))}))},b=function(t){return h(function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(r[o]=t[o])}var i,a=Object.keys(r);try{!function(t){Object.keys(t).forEach((function(e){var r=t[e];if(void 0===r(void 0,{type:l.INIT}))throw new Error(u(12));if(void 0===r(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(r)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var n=!1,o={},c=0;c<a.length;c++){var f=a[c],s=r[f],l=t[f],p=s(l,e);if(void 0===p)throw e&&e.type,new Error(u(14));o[f]=p,n=n||p!==l}return(n=n||a.length!==Object.keys(t).length)?o:t}}(t))},g=o(757),w=o.n(g),m=function(t){return t&&t.includes("application/json")};function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function E(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var P=function(){var t,e=(t=w().mark((function t(e,r){var n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=4;break}return console.warn('Skipping fetching blog posts, invalid blogUrl: "'.concat(r,'"')),t.abrupt("return");case 4:return t.next=6,fetch(r);case 6:if(n=t.sent,!m(n.headers.get("content-type"))){t.next=14;break}return t.next=10,n.json();case 10:o=t.sent,e.dispatch({type:"blog/loaded",payload:o}),t.next=15;break;case 14:throw new Error("Blog posts url is not serving json");case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),console.warn("Could not fetch blog posts due to error:",t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){E(i,n,o,a,c,"next",t)}function c(t){E(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),S={recent:null},A=j({},"blogPosts",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"blog/loaded":return x(x({},t),{},{recent:e.payload});default:return t}})),L=function(t){var e;return null===(e=t.getState().blogPosts)||void 0===e?void 0:e.recent};function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var D=function(){var t,e=(t=w().mark((function t(e,r){var n,o,i;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.dispatch({type:"session/loaded",payload:t})},t.prev=1,r){t.next=6;break}return console.warn('Skipping fetching session, invalid sessionUrl: "'.concat(r,'"')),n(),t.abrupt("return");case 6:return t.next=8,fetch(r,{cache:"no-cache"});case 8:if(o=t.sent,m(o.headers.get("content-type"))){t.next=12;break}throw new Error("Session endpoint is not serving json");case 12:return t.next=14,o.json();case 14:"not-found"===(i=t.sent).error?n():n(i),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(1),n(),console.warn("Could not fetch session data due to error:",t.t0);case 22:case"end":return t.stop()}}),t,null,[[1,18]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){R(i,n,o,a,c,"next",t)}function c(t){R(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),I={data:null},T=_({},"session",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"session/loaded":return k(k({},t),{},{data:e.payload});default:return t}})),U=function(t){var e;return null===(e=t.getState().session)||void 0===e?void 0:e.data},C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelector("[data-id=".concat(t,"]"))},q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelectorAll("[data-id=".concat(t,"]"))}})(),i})()}));
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define([,],e):"object"==typeof exports?exports.AblyUi=e(require("react"),require("react-dom")):(t.AblyUi=t.AblyUi||{},t.AblyUi.Core=e(t[void 0],t[void 0]))}(this,(function(t,e){return(()=>{var r={757:(t,e,r)=>{t.exports=r(666)},666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=P(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?y:p,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",h="executing",y="completed",d={};function v(){}function b(){}function g(){}var w={};w[i]=function(){return this};var m=Object.getPrototypeOf,O=m&&m(m(N([])));O&&O!==r&&n.call(O,i)&&(w=O);var x=g.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return b.prototype=x.constructor=g,g.constructor=b,b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(x),u(x,c,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},281:e=>{"use strict";e.exports=t},645:t=>{"use strict";t.exports=e}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{attachStoreToWindow:()=>d,connectState:()=>b,createRemoteDataStore:()=>g,fetchBlogPosts:()=>S,fetchSessionData:()=>I,getRemoteDataStore:()=>v,loadSprites:()=>u,queryId:()=>q,queryIdAll:()=>G,reactRenderer:()=>c,reducerBlogPosts:()=>L,reducerSessionData:()=>U,renderComponent:()=>a,selectRecentBlogPosts:()=>N,selectSessionData:()=>C}),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function t(){var e=isNaN(arguments[0])?1:Number(arguments[0]);return e?Array.prototype.reduce.call(this,(function(r,n){return Array.isArray(n)?r.push.apply(r,t.call(n,e-1)):r.push(n),r}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(t){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var t=o(281),e=o.n(t),r=o(645),n=o.n(r),a=function(t,r,o){return n().render(e().createElement(t,r),o)};function c(t){var r=document.querySelectorAll("[data-react]");Array.from(r).forEach((function(r){var o=r.getAttribute("data-react"),i=t[o];if(i){var a=r.getAttribute("data-react-props"),c=a&&JSON.parse(a||{});n().render(e().createElement(i,c),r),r.removeAttribute("data-react"),r.removeAttribute("data-react-props")}}))}const u=function(t){fetch(t).then((function(t){return t.text()})).then((function(t){var e=document.createElement("div");e.style.display="none",e.innerHTML=t,document.body.appendChild(e)})).catch((function(t){return console.error(t)}))};function f(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function h(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function y(t,e,r){var n;if("function"==typeof e&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof e&&void 0===r&&(r=e,e=void 0),void 0!==r){if("function"!=typeof r)throw new Error(f(1));return r(y)(t,e)}if("function"!=typeof t)throw new Error(f(2));var o=t,i=e,a=[],c=a,u=!1;function l(){c===a&&(c=a.slice())}function d(){if(u)throw new Error(f(3));return i}function v(t){if("function"!=typeof t)throw new Error(f(4));if(u)throw new Error(f(5));var e=!0;return l(),c.push(t),function(){if(e){if(u)throw new Error(f(6));e=!1,l();var r=c.indexOf(t);c.splice(r,1),a=null}}}function b(t){if(!h(t))throw new Error(f(7));if(void 0===t.type)throw new Error(f(8));if(u)throw new Error(f(9));try{u=!0,i=o(i,t)}finally{u=!1}for(var e=a=c,r=0;r<e.length;r++)(0,e[r])();return t}function g(t){if("function"!=typeof t)throw new Error(f(10));o=t,b({type:p.REPLACE})}function w(){var t,e=v;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(f(11));function r(){t.next&&t.next(d())}return r(),{unsubscribe:e(r)}}})[s]=function(){return this},t}return b({type:p.INIT}),(n={dispatch:b,subscribe:v,getState:d,replaceReducer:g})[s]=w,n}var d=function(t){window.AblyUi=window.AblyUi||{},window.AblyUi.RemoteDataStore=t},v=function(){if(!window.AblyUi.RemoteDataStore)throw new Error("Remote store was called before one was created");return window.AblyUi.RemoteDataStore},b=function(t,e){var r=v(),n=t(r);r.subscribe((function(){var o=t(r);o!==n&&(n=o,e(o))}))},g=function(t){return y(function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(r[o]=t[o])}var i,a=Object.keys(r);try{!function(t){Object.keys(t).forEach((function(e){var r=t[e];if(void 0===r(void 0,{type:p.INIT}))throw new Error(f(12));if(void 0===r(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(f(13))}))}(r)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var n=!1,o={},c=0;c<a.length;c++){var u=a[c],s=r[u],l=t[u],p=s(l,e);if(void 0===p)throw e&&e.type,new Error(f(14));o[u]=p,n=n||p!==l}return(n=n||a.length!==Object.keys(t).length)?o:t}}(t))},w=o(757),m=o.n(w),O=function(t){return t&&t.includes("application/json")};function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var S=function(){var t,e=(t=m().mark((function t(e,r){var n,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=4;break}return console.warn('Skipping fetching blog posts, invalid blogUrl: "'.concat(r,'"')),t.abrupt("return");case 4:return t.next=6,fetch(r);case 6:if(n=t.sent,!O(n.headers.get("content-type"))){t.next=14;break}return t.next=10,n.json();case 10:o=t.sent,e.dispatch({type:"blog/loaded",payload:o}),t.next=15;break;case 14:throw new Error("Blog posts url is not serving json");case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),console.warn("Could not fetch blog posts due to error:",t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){P(i,n,o,a,c,"next",t)}function c(t){P(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),A={recent:null},L=E({},"blogPosts",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"blog/loaded":return j(j({},t),{},{recent:e.payload});default:return t}})),N=function(t){var e;return null===(e=t.getState().blogPosts)||void 0===e?void 0:e.recent};function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){R(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function R(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var I=function(){var t,e=(t=m().mark((function t(e,r){var n,o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.dispatch({type:"session/loaded",payload:t})},t.prev=1,r){t.next=6;break}return console.warn('Skipping fetching session, invalid sessionUrl: "'.concat(r,'"')),n(),t.abrupt("return");case 6:return t.next=8,fetch(r,{cache:"no-cache"});case 8:if(o=t.sent,O(o.headers.get("content-type"))){t.next=12;break}throw new Error("Session endpoint is not serving json");case 12:return t.next=14,o.json();case 14:"not-found"===(i=t.sent).error?n():n(i),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(1),n(),console.warn("Could not fetch session data due to error:",t.t0);case 22:case"end":return t.stop()}}),t,null,[[1,18]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,c,"next",t)}function c(t){D(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),T={data:null},U=R({},"session",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"session/loaded":return _(_({},t),{},{data:e.payload});default:return t}})),C=function(t){var e;return null===(e=t.getState().session)||void 0===e?void 0:e.data},q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelector("[data-id=".concat(t,"]"))},G=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelectorAll("[data-id=".concat(t,"]"))}})(),i})()}));
|
@@ -29,3 +29,5 @@
|
|
29
29
|
}
|
30
30
|
}
|
31
31
|
|
32
|
+
|
33
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9TaG93Y2FzZS9jb21wb25lbnQuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0U7SU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Wktc2hvd2Nhc2UtbG9nby1pbWcge1xuICAgIG1heC13aWR0aDogdmFyKC0tdWktc2hvd2Nhc2UtY2xpZW50LWxvZ28tbWF4LXdpZHRoKTtcbiAgICBAYXBwbHkgdy1mdWxsO1xuICB9XG5cbiAgLnVpLXNob3djYXNlLWluZGV4LWJhciB7XG4gICAgQGFwcGx5IGJnLW1pZC1ncmV5O1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9*/
|
@@ -1 +1,343 @@
|
|
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"]["Showcase"] = factory();
|
10
|
+
})(this, function() {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
14
|
+
|
15
|
+
/***/ "./src/core/css.js":
|
16
|
+
/*!*************************!*\
|
17
|
+
!*** ./src/core/css.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 */ "remsToPixelValue": () => (/* binding */ remsToPixelValue)
|
24
|
+
/* harmony export */ });
|
25
|
+
var remsToPixelValue = function remsToPixelValue(remString) {
|
26
|
+
return parseFloat(remString) * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
27
|
+
};
|
28
|
+
|
29
|
+
/***/ }),
|
30
|
+
|
31
|
+
/***/ "./src/core/dom-query.js":
|
32
|
+
/*!*******************************!*\
|
33
|
+
!*** ./src/core/dom-query.js ***!
|
34
|
+
\*******************************/
|
35
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36
|
+
|
37
|
+
__webpack_require__.r(__webpack_exports__);
|
38
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39
|
+
/* harmony export */ "queryId": () => (/* binding */ queryId),
|
40
|
+
/* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
|
41
|
+
/* harmony export */ });
|
42
|
+
var queryId = function queryId(val) {
|
43
|
+
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
44
|
+
return root.querySelector("[data-id=".concat(val, "]"));
|
45
|
+
};
|
46
|
+
var queryIdAll = function queryIdAll(val) {
|
47
|
+
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
48
|
+
return root.querySelectorAll("[data-id=".concat(val, "]"));
|
49
|
+
};
|
50
|
+
|
51
|
+
/***/ }),
|
52
|
+
|
53
|
+
/***/ "./src/core/Showcase/component.css":
|
54
|
+
/*!*****************************************!*\
|
55
|
+
!*** ./src/core/Showcase/component.css ***!
|
56
|
+
\*****************************************/
|
57
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
58
|
+
|
59
|
+
__webpack_require__.r(__webpack_exports__);
|
60
|
+
// extracted by mini-css-extract-plugin
|
61
|
+
|
62
|
+
|
63
|
+
/***/ })
|
64
|
+
|
65
|
+
/******/ });
|
66
|
+
/************************************************************************/
|
67
|
+
/******/ // The module cache
|
68
|
+
/******/ var __webpack_module_cache__ = {};
|
69
|
+
/******/
|
70
|
+
/******/ // The require function
|
71
|
+
/******/ function __webpack_require__(moduleId) {
|
72
|
+
/******/ // Check if module is in cache
|
73
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
74
|
+
/******/ if (cachedModule !== undefined) {
|
75
|
+
/******/ return cachedModule.exports;
|
76
|
+
/******/ }
|
77
|
+
/******/ // Create a new module (and put it into the cache)
|
78
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
79
|
+
/******/ // no module.id needed
|
80
|
+
/******/ // no module.loaded needed
|
81
|
+
/******/ exports: {}
|
82
|
+
/******/ };
|
83
|
+
/******/
|
84
|
+
/******/ // Execute the module function
|
85
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
86
|
+
/******/
|
87
|
+
/******/ // Return the exports of the module
|
88
|
+
/******/ return module.exports;
|
89
|
+
/******/ }
|
90
|
+
/******/
|
91
|
+
/************************************************************************/
|
92
|
+
/******/ /* webpack/runtime/define property getters */
|
93
|
+
/******/ (() => {
|
94
|
+
/******/ // define getter functions for harmony exports
|
95
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
96
|
+
/******/ for(var key in definition) {
|
97
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
98
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
99
|
+
/******/ }
|
100
|
+
/******/ }
|
101
|
+
/******/ };
|
102
|
+
/******/ })();
|
103
|
+
/******/
|
104
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
105
|
+
/******/ (() => {
|
106
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
107
|
+
/******/ })();
|
108
|
+
/******/
|
109
|
+
/******/ /* webpack/runtime/make namespace object */
|
110
|
+
/******/ (() => {
|
111
|
+
/******/ // define __esModule on exports
|
112
|
+
/******/ __webpack_require__.r = (exports) => {
|
113
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
114
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
115
|
+
/******/ }
|
116
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
117
|
+
/******/ };
|
118
|
+
/******/ })();
|
119
|
+
/******/
|
120
|
+
/************************************************************************/
|
121
|
+
var __webpack_exports__ = {};
|
122
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
123
|
+
(() => {
|
124
|
+
/*!****************************************!*\
|
125
|
+
!*** ./src/core/Showcase/component.js ***!
|
126
|
+
\****************************************/
|
127
|
+
__webpack_require__.r(__webpack_exports__);
|
128
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
129
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
130
|
+
/* harmony export */ });
|
131
|
+
/* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-query */ "./src/core/dom-query.js");
|
132
|
+
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../css */ "./src/core/css.js");
|
133
|
+
/* harmony import */ var _component_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./component.css */ "./src/core/Showcase/component.css");
|
134
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
135
|
+
|
136
|
+
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."); }
|
137
|
+
|
138
|
+
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); }
|
139
|
+
|
140
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
141
|
+
|
142
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
143
|
+
|
144
|
+
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; }
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
var SLIDE_SHOW_INTERVAL = 5000;
|
150
|
+
|
151
|
+
var updateLogoOpacity = function updateLogoOpacity(logos, currentIndex) {
|
152
|
+
var visible = ["filter-grayscale", "filter-none"];
|
153
|
+
var opaque = [].concat(visible).reverse();
|
154
|
+
logos.forEach(function (logo, i) {
|
155
|
+
var _logo$classList;
|
156
|
+
|
157
|
+
(_logo$classList = logo.classList).replace.apply(_logo$classList, _toConsumableArray(i === currentIndex ? visible : opaque));
|
158
|
+
});
|
159
|
+
};
|
160
|
+
|
161
|
+
var translateX = function translateX(el, currentIndex) {
|
162
|
+
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
163
|
+
var percent = currentIndex * 100 * direction;
|
164
|
+
el.style.transform = "translateX(".concat(percent, "%)");
|
165
|
+
};
|
166
|
+
|
167
|
+
var moveControlsContainer = function moveControlsContainer(controlsContainer, currentIndex) {
|
168
|
+
var parentNode = controlsContainer.parentNode,
|
169
|
+
children = controlsContainer.children;
|
170
|
+
var parentCenter = parentNode.clientWidth / 2;
|
171
|
+
var countChildren = children.length;
|
172
|
+
var widthChildren = Array.from(children).map(function (el) {
|
173
|
+
return el.clientWidth;
|
174
|
+
}).reduce(function (a, c) {
|
175
|
+
return a + c;
|
176
|
+
});
|
177
|
+
var width = widthChildren / countChildren;
|
178
|
+
var firstOrLast = !currentIndex || !(countChildren - currentIndex - 1);
|
179
|
+
var offsetLeft = !firstOrLast ? parentCenter - width / 2 : 0;
|
180
|
+
var left = currentIndex * width - (offsetLeft >> 0);
|
181
|
+
parentNode.scrollTo({
|
182
|
+
left: left,
|
183
|
+
behavior: "smooth"
|
184
|
+
});
|
185
|
+
};
|
186
|
+
|
187
|
+
var propertyValue = function propertyValue(string) {
|
188
|
+
return window.getComputedStyle(document.documentElement).getPropertyValue(string);
|
189
|
+
};
|
190
|
+
|
191
|
+
var mobileBreakpoint = function mobileBreakpoint(pixelWidth) {
|
192
|
+
if (typeof window === "undefined") return false; // Margin for small breakpoint, but could be different in practice
|
193
|
+
|
194
|
+
var estimatedMargin = 64;
|
195
|
+
var breakpointEstimate = "".concat(pixelWidth + estimatedMargin, "px");
|
196
|
+
return !window.matchMedia("(min-width: ".concat(breakpointEstimate, ")")).matches;
|
197
|
+
};
|
198
|
+
|
199
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (node, enableSlideshow) {
|
200
|
+
var container = node || (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("showcase");
|
201
|
+
var controls = Array.from((0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryIdAll)("showcase-control", container));
|
202
|
+
var logos = controls.map(function (control) {
|
203
|
+
return control.querySelector("img");
|
204
|
+
});
|
205
|
+
var controlsContainer = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("showcase-controls", container);
|
206
|
+
var indexBar = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("showcase-index-bar", container);
|
207
|
+
var slides = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("showcase-slides", container);
|
208
|
+
var slideCount = slides.children.length;
|
209
|
+
var logoWidth = propertyValue("--ui-showcase-client-logo-min-width");
|
210
|
+
var pixelWidth = (0,_css__WEBPACK_IMPORTED_MODULE_1__.remsToPixelValue)(logoWidth) * slideCount; // dynamically adjust container width
|
211
|
+
|
212
|
+
[".ui-showcase-logo-wrapper", ".ui-showcase-index-bar"].forEach(function (s) {
|
213
|
+
var el = container.querySelector(s);
|
214
|
+
var minWidth = "".concat(pixelWidth, "px");
|
215
|
+
el.style.minWidth = minWidth;
|
216
|
+
});
|
217
|
+
var currentIndex = 0;
|
218
|
+
var mouseover = false;
|
219
|
+
var updateSlideTimeoutId;
|
220
|
+
|
221
|
+
var updateSlide = function updateSlide(index) {
|
222
|
+
translateX(slides, index, -1);
|
223
|
+
translateX(indexBar, index, 1);
|
224
|
+
updateLogoOpacity(logos, index);
|
225
|
+
|
226
|
+
if (mobileBreakpoint(pixelWidth)) {
|
227
|
+
moveControlsContainer(controlsContainer, index);
|
228
|
+
}
|
229
|
+
};
|
230
|
+
|
231
|
+
var scheduleSlideMove = function scheduleSlideMove() {
|
232
|
+
return updateSlideTimeoutId = setTimeout(function () {
|
233
|
+
if (mouseover) return;
|
234
|
+
if (mobileBreakpoint(pixelWidth)) return;
|
235
|
+
currentIndex = (currentIndex + 1) % controls.length;
|
236
|
+
updateSlide(currentIndex);
|
237
|
+
scheduleSlideMove();
|
238
|
+
}, SLIDE_SHOW_INTERVAL);
|
239
|
+
};
|
240
|
+
|
241
|
+
var logoClick = function logoClick() {
|
242
|
+
var clickHandler = function clickHandler(index) {
|
243
|
+
return function () {
|
244
|
+
currentIndex = index;
|
245
|
+
updateSlide(currentIndex);
|
246
|
+
};
|
247
|
+
};
|
248
|
+
|
249
|
+
var handlers = controls.map(function (control, index) {
|
250
|
+
var handler = clickHandler(index);
|
251
|
+
control.addEventListener("click", handler);
|
252
|
+
return handler;
|
253
|
+
});
|
254
|
+
return function () {
|
255
|
+
handlers.forEach(function (handler, i) {
|
256
|
+
return controls[i].removeEventListener("click", handler);
|
257
|
+
});
|
258
|
+
};
|
259
|
+
};
|
260
|
+
|
261
|
+
var pointerOverContainer = function pointerOverContainer() {
|
262
|
+
var handler = function handler() {
|
263
|
+
mouseover = true;
|
264
|
+
clearTimeout(updateSlideTimeoutId);
|
265
|
+
};
|
266
|
+
|
267
|
+
container.addEventListener("mouseover", handler);
|
268
|
+
return function () {
|
269
|
+
return container.removeEventListener("mouseover", handler);
|
270
|
+
};
|
271
|
+
};
|
272
|
+
|
273
|
+
var pointerLeftContainer = function pointerLeftContainer() {
|
274
|
+
var handler = function handler() {
|
275
|
+
mouseover = false;
|
276
|
+
scheduleSlideMove();
|
277
|
+
};
|
278
|
+
|
279
|
+
container.addEventListener("mouseleave", handler);
|
280
|
+
return function () {
|
281
|
+
return container.removeEventListener("mouseleave", handler);
|
282
|
+
};
|
283
|
+
};
|
284
|
+
|
285
|
+
var viewportResized = function viewportResized() {
|
286
|
+
var handler = function handler() {
|
287
|
+
clearTimeout(updateSlideTimeoutId);
|
288
|
+
scheduleSlideMove();
|
289
|
+
};
|
290
|
+
|
291
|
+
document.addEventListener("resize", handler);
|
292
|
+
return function () {
|
293
|
+
return document.removeEventListener("resize", handler);
|
294
|
+
};
|
295
|
+
};
|
296
|
+
|
297
|
+
var scrollOverContainer = function scrollOverContainer() {
|
298
|
+
var handler = function handler(event) {
|
299
|
+
return event.preventDefault();
|
300
|
+
};
|
301
|
+
|
302
|
+
controlsContainer.parentNode.addEventListener("wheel", handler);
|
303
|
+
return function () {
|
304
|
+
return controlsContainer.parentNode.removeEventListener("wheel", handler);
|
305
|
+
};
|
306
|
+
};
|
307
|
+
|
308
|
+
var logoClickTeardown = logoClick();
|
309
|
+
var scrollOverContainerTeardown = scrollOverContainer();
|
310
|
+
|
311
|
+
var slideshowInit = function slideshowInit() {
|
312
|
+
if (enableSlideshow) {
|
313
|
+
scheduleSlideMove();
|
314
|
+
container.setAttribute("aria-live", "polite");
|
315
|
+
var teardowns = [pointerOverContainer(), pointerLeftContainer(), viewportResized()];
|
316
|
+
return function () {
|
317
|
+
return teardowns.forEach(function (t) {
|
318
|
+
return t();
|
319
|
+
});
|
320
|
+
};
|
321
|
+
} else {
|
322
|
+
return function () {};
|
323
|
+
}
|
324
|
+
};
|
325
|
+
|
326
|
+
var slideshowTeardown = slideshowInit();
|
327
|
+
return function teardown() {
|
328
|
+
// Restore initial position
|
329
|
+
updateSlide(0);
|
330
|
+
clearTimeout(updateSlideTimeoutId);
|
331
|
+
logoClickTeardown();
|
332
|
+
slideshowTeardown();
|
333
|
+
scrollOverContainerTeardown();
|
334
|
+
};
|
335
|
+
});
|
336
|
+
})();
|
337
|
+
|
338
|
+
__webpack_exports__ = __webpack_exports__.default;
|
339
|
+
/******/ return __webpack_exports__;
|
340
|
+
/******/ })()
|
341
|
+
;
|
342
|
+
});
|
343
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL2Nzcy5qcyIsIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9kb20tcXVlcnkuanMiLCJ3ZWJwYWNrOi8vQWJseVVpLkNvcmUuW25hbWVdLy4vc3JjL2NvcmUvU2hvd2Nhc2UvY29tcG9uZW50LmNzcz8xNjljIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay9ydW50aW1lL2RlZmluZSBwcm9wZXJ0eSBnZXR0ZXJzIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL3J1bnRpbWUvaGFzT3duUHJvcGVydHkgc2hvcnRoYW5kIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL3J1bnRpbWUvbWFrZSBuYW1lc3BhY2Ugb2JqZWN0Iiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS8uL3NyYy9jb3JlL1Nob3djYXNlL2NvbXBvbmVudC5qcyJdLCJuYW1lcyI6WyJyZW1zVG9QaXhlbFZhbHVlIiwicmVtU3RyaW5nIiwicGFyc2VGbG9hdCIsImdldENvbXB1dGVkU3R5bGUiLCJkb2N1bWVudCIsImRvY3VtZW50RWxlbWVudCIsImZvbnR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AgICAgY29udGFpbmVyLnNldEF0dHJpYnV0ZShcImFyaWEtbGl2ZVwiLCBcInBvbGl0ZVwiKTtcblxuICAgICAgY29uc3QgdGVhcmRvd25zID0gW1xuICAgICAgICBwb2ludGVyT3ZlckNvbnRhaW5lcigpLFxuICAgICAgICBwb2ludGVyTGVmdENvbnRhaW5lcigpLFxuICAgICAgICB2aWV3cG9ydFJlc2l6ZWQoKSxcbiAgICAgIF07XG4gICAgICByZXR1cm4gKCkgPT4gdGVhcmRvd25zLmZvckVhY2goKHQpID0+IHQoKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiAoKSA9PiB7fTtcbiAgICB9XG4gIH07XG5cbiAgY29uc3Qgc2xpZGVzaG93VGVhcmRvd24gPSBzbGlkZXNob3dJbml0KCk7XG5cbiAgcmV0dXJuIGZ1bmN0aW9uIHRlYXJkb3duKCkge1xuICAgIC8vIFJlc3RvcmUgaW5pdGlhbCBwb3NpdGlvblxuICAgIHVwZGF0ZVNsaWRlKDApO1xuICAgIGNsZWFyVGltZW91dCh1cGRhdGVTbGlkZVRpbWVvdXRJZCk7XG5cbiAgICBsb2dvQ2xpY2tUZWFyZG93bigpO1xuICAgIHNsaWRlc2hvd1RlYXJkb3duKCk7XG4gICAgc2Nyb2xsT3ZlckNvbnRhaW5lclRlYXJkb3duKCk7XG4gIH07XG59O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==
|
@@ -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"]["SignOutLink"] = factory();
|
10
|
+
})(this, function() {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
var __webpack_exports__ = {};
|
13
|
+
/*!*******************************************!*\
|
14
|
+
!*** ./src/core/SignOutLink/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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1Q0FBdUMsdURBQXVEO0FBQzlGLENBQUM7QUFDRCxPIiwiZmlsZSI6ImNvcmUvU2lnbk91dExpbmsvY29tcG9uZW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsiKGZ1bmN0aW9uIHdlYnBhY2tVbml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uKHJvb3QsIGZhY3RvcnkpIHtcblx0aWYodHlwZW9mIGV4cG9ydHMgPT09ICdvYmplY3QnICYmIHR5cGVvZiBtb2R1bGUgPT09ICdvYmplY3QnKVxuXHRcdG1vZHVsZS5leHBvcnRzID0gZmFjdG9yeSgpO1xuXHRlbHNlIGlmKHR5cGVvZiBkZWZpbmUgPT09ICdmdW5jdGlvbicgJiYgZGVmaW5lLmFtZClcblx0XHRkZWZpbmUoW10sIGZhY3RvcnkpO1xuXHRlbHNlIGlmKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0Jylcblx0XHRleHBvcnRzW1wiQWJseVVpXCJdID0gZmFjdG9yeSgpO1xuXHRlbHNlXG5cdFx0cm9vdFtcIkFibHlVaVwiXSA9IHJvb3RbXCJBYmx5VWlcIl0gfHwge30sIHJvb3RbXCJBYmx5VWlcIl1bXCJDb3JlXCJdID0gcm9vdFtcIkFibHlVaVwiXVtcIkNvcmVcIl0gfHwge30sIHJvb3RbXCJBYmx5VWlcIl1bXCJDb3JlXCJdW1wiU2lnbk91dExpbmtcIl0gPSBmYWN0b3J5KCk7XG59KSh0aGlzLCBmdW5jdGlvbigpIHtcbnJldHVybiAiXSwic291cmNlUm9vdCI6IiJ9
|
@@ -7,3 +7,5 @@
|
|
7
7
|
}
|
8
8
|
}
|
9
9
|
|
10
|
+
|
11
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9TbGlkZXIvY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0lBQ0UsaUJBQWlCO0lBQ2pCLFNBQVM7O0lBRVQsaUNBQWlDO0VBQ25DO0FBQ0YiLCJmaWxlIjoiY29yZS9TbGlkZXIvY29tcG9uZW50LmNzcyIsInNvdXJjZXNDb250ZW50IjpbIkBsYXllciBjb21wb25lbnRzIHtcbiAgLnVpLXNsaWRlci1tYXJrZXIge1xuICAgIGZvbnQtc2l6ZTogMC41cmVtO1xuICAgIHRvcDogLTFweDtcblxuICAgIEBhcHBseSBsZWFkaW5nLW5vbmUgcHgtNCByZWxhdGl2ZTtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==*/
|
@@ -1 +1,38 @@
|
|
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"]["Slider"] = factory();
|
10
|
+
})(this, function() {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ var __webpack_modules__ = ({
|
13
|
+
|
14
|
+
/***/ "./src/core/Slider/component.js":
|
15
|
+
/*!**************************************!*\
|
16
|
+
!*** ./src/core/Slider/component.js ***!
|
17
|
+
\**************************************/
|
18
|
+
/***/ (() => {
|
19
|
+
|
20
|
+
throw new Error("Module build failed (from ./node_modules/babel-loader/lib/index.js):\nSyntaxError: /Users/piatek/Projects/ably-ui/src/core/Slider/component.js: Unexpected token (84:29)\n\n 82 | return () => {\n 83 | transformContainer.style.transform = null;\n> 84 | sliderControls.classList.(\"flex\", \"hidden\");\n | ^\n 85 | };\n 86 | };\n 87 |\n at Object._raise (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:810:17)\n at Object.raiseWithData (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:803:17)\n at Object.raise (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:764:17)\n at Object.unexpected (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:9980:16)\n at Object.parseIdentifierName (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:12191:18)\n at Object.parseIdentifier (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:12164:23)\n at Object.parseMember (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:11013:103)\n at Object.parseSubscript (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:11000:19)\n at Object.parseSubscripts (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:10971:19)\n at Object.parseExprSubscripts (/Users/piatek/Projects/ably-ui/node_modules/@babel/parser/lib/index.js:10960:17)");
|
21
|
+
|
22
|
+
/***/ })
|
23
|
+
|
24
|
+
/******/ });
|
25
|
+
/************************************************************************/
|
26
|
+
/******/
|
27
|
+
/******/ // startup
|
28
|
+
/******/ // Load entry module and return exports
|
29
|
+
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
|
30
|
+
/******/ var __webpack_exports__ = {};
|
31
|
+
/******/ __webpack_modules__["./src/core/Slider/component.js"]();
|
32
|
+
/******/ __webpack_exports__ = __webpack_exports__.default;
|
33
|
+
/******/
|
34
|
+
/******/ return __webpack_exports__;
|
35
|
+
/******/ })()
|
36
|
+
;
|
37
|
+
});
|
38
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL0FibHlVaS5Db3JlLltuYW1lXS93ZWJwYWNrL3N0YXJ0dXAiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHVDQUF1Qyx1REFBdUQ7QUFDOUYsQ0FBQztBQUNELE87Ozs7Ozs7Ozs7Ozs7Ozs7VUNWQTtVQUNBO1VBQ0E7VUFDQTtVQUNBIiwiZmlsZSI6ImNvcmUvU2xpZGVyL2NvbXBvbmVudC5qcyIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiB3ZWJwYWNrVW5pdmVyc2FsTW9kdWxlRGVmaW5pdGlvbihyb290LCBmYWN0b3J5KSB7XG5cdGlmKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0JyAmJiB0eXBlb2YgbW9kdWxlID09PSAnb2JqZWN0Jylcblx0XHRtb2R1bGUuZXhwb3J0cyA9IGZhY3RvcnkoKTtcblx0ZWxzZSBpZih0eXBlb2YgZGVmaW5lID09PSAnZnVuY3Rpb24nICYmIGRlZmluZS5hbWQpXG5cdFx0ZGVmaW5lKFtdLCBmYWN0b3J5KTtcblx0ZWxzZSBpZih0eXBlb2YgZXhwb3J0cyA9PT0gJ29iamVjdCcpXG5cdFx0ZXhwb3J0c1tcIkFibHlVaVwiXSA9IGZhY3RvcnkoKTtcblx0ZWxzZVxuXHRcdHJvb3RbXCJBYmx5VWlcIl0gPSByb290W1wiQWJseVVpXCJdIHx8IHt9LCByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXSA9IHJvb3RbXCJBYmx5VWlcIl1bXCJDb3JlXCJdIHx8IHt9LCByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXVtcIlNsaWRlclwiXSA9IGZhY3RvcnkoKTtcbn0pKHRoaXMsIGZ1bmN0aW9uKCkge1xucmV0dXJuICIsIi8vIHN0YXJ0dXBcbi8vIExvYWQgZW50cnkgbW9kdWxlIGFuZCByZXR1cm4gZXhwb3J0c1xuLy8gVGhpcyBlbnRyeSBtb2R1bGUgZG9lc24ndCB0ZWxsIGFib3V0IGl0J3MgdG9wLWxldmVsIGRlY2xhcmF0aW9ucyBzbyBpdCBjYW4ndCBiZSBpbmxpbmVkXG52YXIgX193ZWJwYWNrX2V4cG9ydHNfXyA9IHt9O1xuX193ZWJwYWNrX21vZHVsZXNfX1tcIi4vc3JjL2NvcmUvU2xpZGVyL2NvbXBvbmVudC5qc1wiXSgpO1xuIl0sInNvdXJjZVJvb3QiOiIifQ==
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% end %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<div class="
|
8
|
+
<div class="hidden justify-center items-center my-24" data-id="slider-controls">
|
9
9
|
<button type="button" class="p-0 group w-24 h-24 flex items-center focus:outline-gui-focus" data-id="slider-previous">
|
10
10
|
<%= render(AblyUi::Core::Icon.new(name: "icon-gui-disclosure-arrow", size: "1.5rem", color: "text-cool-black", additional_css: "transform rotate-180")) %>
|
11
11
|
</button>
|
@@ -127,3 +127,5 @@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