@lumx/core 3.15.1-alpha.2 → 3.15.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/constants/design-tokens.js +2293 -5484
- package/js/constants/design-tokens.min.js +1 -2
- package/js/constants/index.js +30 -199
- package/js/constants/index.min.js +1 -2
- package/js/constants/keycodes.js +21 -121
- package/js/constants/keycodes.min.js +1 -2
- package/js/custom-colors.js +21 -1088
- package/js/custom-colors.min.js +1 -2
- package/js/date-picker.js +32 -2835
- package/js/date-picker.min.js +1 -2
- package/js/utils.js +229 -4290
- package/js/utils.min.js +1 -2
- package/lumx.css +13051 -1
- package/lumx.min.css +1 -1
- package/package.json +10 -34
- package/js/constants/design-tokens.min.js.map +0 -1
- package/js/constants/index.min.js.map +0 -1
- package/js/constants/keycodes.min.js.map +0 -1
- package/js/custom-colors.min.js.map +0 -1
- package/js/date-picker.min.js.map +0 -1
- package/js/utils.min.js.map +0 -1
package/js/utils.min.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
!function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(n){return t[n]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=127)}([function(t,n,r){(function(n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||Function("return this")()}).call(this,r(33))},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(0),o=r(37),u=r(1),i=r(38),c=r(55),f=r(72),a=o("wks"),s=e.Symbol,p=f?s:s&&s.withoutSetter||i;t.exports=function(t){return u(a,t)||(c&&u(s,t)?a[t]=s[t]:a[t]=p("Symbol."+t)),a[t]}},function(t,n,r){var e=r(2);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(4),o=r(8),u=r(9);t.exports=e?function(t,n,r){return o.f(t,n,u(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(5);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,r){var e=r(4),o=r(27),u=r(7),i=r(15),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(u(t),n=i(n,!0),u(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(34),o=r(14);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(0),o=r(6);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},function(t,n,r){var e=r(0),o=r(23).f,u=r(6),i=r(16),c=r(11),f=r(46),a=r(53);t.exports=function(t,n){var r,s,p,l,v,y,d=t.target,x=t.global,h=t.stat;if(s=x?e:h?e[d]||c(d,{}):(e[d]||{}).prototype,s)for(p in n){if(v=n[p],t.noTargetGet?(y=o(s,p),l=y&&y.value):l=s[p],r=a(x?p:d+(h?".":"#")+p,t.forced),!r&&void 0!==l){if(typeof v==typeof l)continue;f(v,l)}(t.sham||l&&l.sham)&&u(v,"sham",!0),i(s,p,v,t)}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(5);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(0),o=r(6),u=r(1),i=r(11),c=r(28),f=r(36),a=f.get,s=f.enforce,p=String(String).split("String");(t.exports=function(t,n,r,c){var f=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||u(r,"name")||o(r,"name",n),s(r).source=p.join("string"==typeof n?n:"")),t!==e?(f?!l&&t[n]&&(a=!0):delete t[n],a?t[n]=r:o(t,n,r)):a?t[n]=r:i(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},function(t,n){t.exports=!1},function(t,n){t.exports={}},function(t,n,r){var e=r(20),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,r){var e=r(63),o="object"==typeof self&&self&&self.Object===Object&&self,u=e||o||Function("return this")();t.exports=u},function(t,n,r){var e=r(4),o=r(41),u=r(9),i=r(10),c=r(15),f=r(1),a=r(27),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=i(t),n=c(n,!0),a)try{return s(t,n)}catch(t){}if(f(t,n))return u(!o.f.call(t,n),t[n])}},function(t,n,r){var e=r(37),o=r(38),u=e("keys");t.exports=function(t){return u[t]||(u[t]=o(t))}},function(t,n){t.exports={}},function(t,n,r){var e=r(43),o=r(93),u=r(94),i=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):u(t)}},function(t,n,r){var e=r(4),o=r(2),u=r(35);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(29),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},function(t,n,r){var e=r(0),o=r(11),u=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=u},function(t,n,r){var e=r(48),o=r(0),u=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?u(e[t])||u(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},function(t,n,r){var e=r(1),o=r(10),u=r(50).indexOf,i=r(18);t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)!e(i,r)&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~u(a,r)||a.push(r));return a}},function(t,n,r){var e=r(14);t.exports=function(t){return Object(e(t))}},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(2),o=r(13),u="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?u.call(t,""):Object(t)}:Object},function(t,n,r){var e=r(0),o=r(5),u=e.document,i=o(u)&&o(u.createElement);t.exports=function(t){return i?u.createElement(t):{}}},function(t,n,r){var e,o,u,i=r(45),c=r(0),f=r(5),a=r(6),s=r(1),p=r(24),l=r(18),v=c.WeakMap;if(i){var y=new v,d=y.get,x=y.has,h=y.set;e=function(t,n){return h.call(y,t,n),n},o=function(t){return d.call(y,t)||{}},u=function(t){return x.call(y,t)}}else{var b=p("state");l[b]=!0,e=function(t,n){return a(t,b,n),n},o=function(t){return s(t,b)?t[b]:{}},u=function(t){return s(t,b)}}t.exports={set:e,get:o,has:u,enforce:function(t){return u(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!f(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,n,r){var e=r(17),o=r(29);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.4",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},function(t,n,r){var e=r(3),o=e("toStringTag"),u={};u[o]="z",t.exports="[object z]"===String(u)},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n,r){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,u=o&&!e.call({1:2},1);n.f=u?function(t){var n=o(this,t);return!!n&&n.enumerable}:e},function(t,n,r){var e=r(31),o=r(21);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){var e=r(22),o=e.Symbol;t.exports=o},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,r){var e=r(0),o=r(28),u=e.WeakMap;t.exports="function"==typeof u&&/native code/.test(o(u))},function(t,n,r){var e=r(1),o=r(47),u=r(23),i=r(8);t.exports=function(t,n){for(var r=o(n),c=i.f,f=u.f,a=0;a<r.length;a++){var s=r[a];e(t,s)||c(t,s,f(n,s))}}},function(t,n,r){var e=r(30),o=r(49),u=r(52),i=r(7);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(i(t)),r=u.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(0);t.exports=e},function(t,n,r){var e=r(31),o=r(21),u=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,u)}},function(t,n,r){var e=r(10),o=r(19),u=r(51),i=function(t){return function(n,r,i){var c,f=e(n),a=o(f.length),s=u(i,a);if(t&&r!=r){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},function(t,n,r){var e=r(20),o=Math.max,u=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):u(r,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(2),o=/#|\.prototype\./,u=function(t,n){var r=c[i(t)];return r==a||r!=f&&("function"==typeof n?e(n):!!n)},i=u.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=u.data={},f=u.NATIVE="N",a=u.POLYFILL="P";t.exports=u},function(t,n,r){var e=r(69);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 0:return function(){return t.call(n)};case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,r){var e=r(2);t.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},function(t,n,r){var e=r(39),o=r(13),u=r(3),i=u("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=e?o:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:c?o(n):"Object"==(e=o(n))&&"function"==typeof n.callee?"Arguments":e}},function(t,n,r){"use strict";var e,o,u,i=r(58),c=r(6),f=r(1),a=r(3),s=r(17),p=a("iterator"),l=!1;[].keys&&(u=[].keys(),"next"in u?(o=i(i(u)),o!==Object.prototype&&(e=o)):l=!0),null==e&&(e={}),s||f(e,p)||c(e,p,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:l}},function(t,n,r){var e=r(1),o=r(32),u=r(24),i=r(86),c=u("IE_PROTO"),f=Object.prototype;t.exports=i?Object.getPrototypeOf:function(t){return t=o(t),e(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?f:null}},function(t,n,r){var e=r(8).f,o=r(1),u=r(3),i=u("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(144),o=r(147);t.exports=function(t,n){var r=o(t,n);return e(r)?r:void 0}},,function(t,n,r){var e=r(26),o=r(44);t.exports=function(t){if(!o(t))return!1;var n=e(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,r){(function(n){var r="object"==typeof n&&n&&n.Object===Object&&n;t.exports=r}).call(this,r(33))},function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,n,r){var e=r(160),o=e((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()}));t.exports=o},function(t,n){t.exports=function(){}},function(t,n,r){var e=r(12),o=r(68),u=r(75),i=!u((function(t){Array.from(t)}));e({target:"Array",stat:!0,forced:i},{from:o})},function(t,n,r){"use strict";var e=r(54),o=r(32),u=r(70),i=r(71),c=r(19),f=r(73),a=r(74);t.exports=function(t){var n,r,s,p,l,v,y=o(t),d="function"==typeof this?this:Array,x=arguments.length,h=x>1?arguments[1]:void 0,b=void 0!==h,g=a(y),j=0;if(b&&(h=e(h,x>2?arguments[2]:void 0,2)),null==g||d==Array&&i(g))for(n=c(y.length),r=new d(n);n>j;j++)v=b?h(y[j],j):y[j],f(r,j,v);else for(p=g.call(y),l=p.next,r=new d;!(s=l.call(p)).done;j++)v=b?u(p,h,[s.value,j],!0):s.value,f(r,j,v);return r.length=j,r}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,n,r){var e=r(7);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var u=t.return;throw void 0!==u&&e(u.call(t)),n}}},function(t,n,r){var e=r(3),o=r(25),u=e("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[u]===t)}},function(t,n,r){var e=r(55);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,r){"use strict";var e=r(15),o=r(8),u=r(9);t.exports=function(t,n,r){var i=e(n);i in t?o.f(t,i,u(0,r)):t[i]=r}},function(t,n,r){var e=r(56),o=r(25),u=r(3),i=u("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){var e=r(3),o=e("iterator"),u=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){u=!0}};c[o]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!u)return!1;var r=!1;try{var e={};e[o]=function(){return{next:function(){return{done:r=!0}}}},t(e)}catch(t){}return r}},function(t,n,r){var e=r(54),o=r(34),u=r(32),i=r(19),c=r(77),f=[].push,a=function(t){var n=1==t,r=2==t,a=3==t,s=4==t,p=6==t,l=5==t||p;return function(v,y,d,x){for(var h,b,g=u(v),j=o(g),S=e(y,d,3),m=i(j.length),O=0,w=x||c,A=n?w(v,m):r?w(v,0):void 0;m>O;O++)if((l||O in j)&&(h=j[O],b=S(h,O,g),t))if(n)A[O]=b;else if(b)switch(t){case 3:return!0;case 5:return h;case 6:return O;case 2:f.call(A,h)}else if(s)return!1;return p?-1:a||s?s:A}};t.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6)}},function(t,n,r){var e=r(5),o=r(78),u=r(3),i=u("species");t.exports=function(t,n){var r;return o(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?e(r)&&(r=r[i],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===n?0:n)}},function(t,n,r){var e=r(13);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(4),o=r(2),u=r(1),i=Object.defineProperty,c={},f=function(t){throw t};t.exports=function(t,n){if(u(c,t))return c[t];n||(n={});var r=[][t],a=!!u(n,"ACCESSORS")&&n.ACCESSORS,s=u(n,0)?n[0]:f,p=u(n,1)?n[1]:void 0;return c[t]=!!r&&!o((function(){if(a&&!e)return!0;var t={length:-1};a?i(t,1,{enumerable:!0,get:f}):t[1]=1,r.call(t,s,p)}))}},function(t,n,r){var e=r(39),o=r(16),u=r(81);e||o(Object.prototype,"toString",u,{unsafe:!0})},function(t,n,r){"use strict";var e=r(39),o=r(56);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,n,r){"use strict";var e=r(83).charAt,o=r(36),u=r(84),i=o.set,c=o.getterFor("String Iterator");u(String,"String",(function(t){i(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,n=c(this),r=n.string,o=n.index;return o>=r.length?{value:void 0,done:!0}:(t=e(r,o),n.index+=t.length,{value:t,done:!1})}))},function(t,n,r){var e=r(20),o=r(14),u=function(t){return function(n,r){var u,i,c=String(o(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(u=c.charCodeAt(f),u<55296||u>56319||f+1===a||(i=c.charCodeAt(f+1))<56320||i>57343?t?c.charAt(f):u:t?c.slice(f,f+2):i-56320+(u-55296<<10)+65536)}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,n,r){"use strict";var e=r(12),o=r(85),u=r(58),i=r(90),c=r(59),f=r(6),a=r(16),s=r(3),p=r(17),l=r(25),v=r(57),y=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,x=s("iterator"),h=function(){return this};t.exports=function(t,n,r,s,v,b,g){o(r,n,s);var j,S,m,O=function(t){if(t===v&&P)return P;if(!d&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},w=n+" Iterator",A=!1,E=t.prototype,T=E[x]||E["@@iterator"]||v&&E[v],P=!d&&T||O(v),L="Array"==n&&E.entries||T;if(L&&(j=u(L.call(new t)),y!==Object.prototype&&j.next&&(p||u(j)===y||(i?i(j,y):"function"!=typeof j[x]&&f(j,x,h)),c(j,w,!0,!0),p&&(l[w]=h))),"values"==v&&T&&"values"!==T.name&&(A=!0,P=function(){return T.call(this)}),p&&!g||E[x]===P||f(E,x,P),l[n]=P,v)if(S={values:O("values"),keys:b?P:O("keys"),entries:O("entries")},g)for(m in S)(d||A||!(m in E))&&a(E,m,S[m]);else e({target:n,proto:!0,forced:d||A},S);return S}},function(t,n,r){"use strict";var e=r(57).IteratorPrototype,o=r(87),u=r(9),i=r(59),c=r(25),f=function(){return this};t.exports=function(t,n,r){var a=n+" Iterator";return t.prototype=o(e,{next:u(1,r)}),i(t,a,!1,!0),c[a]=f,t}},function(t,n,r){var e=r(2);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,n,r){var e,o=r(7),u=r(88),i=r(21),c=r(18),f=r(89),a=r(35),s=r(24),p=s("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(){try{e=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;y=e?function(t){t.write(v("")),t.close();var n=t.parentWindow.Object;return t=null,n}(e):(n=a("iframe"),n.style.display="none",f.appendChild(n),n.src=String("javascript:"),t=n.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F);for(var r=i.length;r--;)delete y.prototype[i[r]];return y()};c[p]=!0,t.exports=Object.create||function(t,n){var r;return null!==t?(l.prototype=o(t),r=new l,l.prototype=null,r[p]=t):r=y(),void 0===n?r:u(r,n)}},function(t,n,r){var e=r(4),o=r(8),u=r(7),i=r(42);t.exports=e?Object.defineProperties:function(t,n){u(t);for(var r,e=i(n),c=e.length,f=0;c>f;)o.f(t,r=e[f++],n[r]);return t}},function(t,n,r){var e=r(30);t.exports=e("document","documentElement")},function(t,n,r){var e=r(7),o=r(91);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),n=r instanceof Array}catch(t){}return function(r,u){return e(r),o(u),n?t.call(r,u):r.__proto__=u,r}}():void 0)},function(t,n,r){var e=r(5);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,n,r){var e=r(62),o=r(64);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},function(t,n,r){var e=r(43),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,c=e?e.toStringTag:void 0;t.exports=function(t){var n=u.call(t,c),r=t[c];try{t[c]=void 0;var e=!0}catch(t){}var o=i.call(t);return e&&(n?t[c]=r:delete t[c]),o}},function(t,n){var r=Object.prototype,e=r.toString;t.exports=function(t){return e.call(t)}},function(t,n,r){var e=r(26),o=r(40);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==e(t)}},function(t,n,r){var e=r(26),o=r(40);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==e(t)}},function(t,n,r){var e=r(139),o=r(142),u=r(152),i=r(100),c=r(92),f=r(154),a=r(98),s=r(156),p=Object.prototype,l=p.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||f(t)||s(t)||u(t)))return!t.length;var n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(a(t))return!e(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},function(t,n){var r=Object.prototype;t.exports=function(t){var n=t&&t.constructor,e="function"==typeof n&&n.prototype||r;return t===e}},function(t,n){var r=Function.prototype,e=r.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,n){var r=Array.isArray;t.exports=r},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,r){var e=r(165);t.exports=function(t){return null==t?"":e(t)}},,,,function(t,n,r){var e,o;!function(){"use strict";function r(){for(var t=[],n=0;n<arguments.length;n++){var e=arguments[n];if(e){var o=typeof e;if("string"===o||"number"===o)t.push(e);else if(Array.isArray(e)){if(e.length){var i=r.apply(null,e);i&&t.push(i)}}else if("object"===o){if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]")){t.push(e.toString());continue}for(var c in e)u.call(e,c)&&e[c]&&t.push(c)}}}return t.join(" ")}var u={}.hasOwnProperty;t.exports?(r.default=r,t.exports=r):(e=[],o=function(){return r}.apply(n,e),void 0===o||(t.exports=o))}()},,,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";function e(t){var n=t.prefix,r=t.type,e=t.value;if(v()(e)){if(!e)return"";return["has","is"].some((function(t){return r.toString().startsWith(t)}))?n+"--"+h()(r):n+"--is-"+h()(r)}return n+"--"+h()(r)+"-"+e}function o(t){var n=t.prefix,r=function(t,n){if(null==t)return{};var r={};for(var e in t)if({}.hasOwnProperty.call(t,e)){if(-1!==n.indexOf(e))continue;r[e]=t[e]}return r}(t,j),o={};return d()(r)||Object.keys(r).forEach((function(t){o[e({prefix:n,type:t,value:r[t]})]=v()(r[t])?r[t]:!function(t){if("number"==typeof t)return 0===t;return d()(t)}(r[t])})),p()(n,o)}function u(t,n){var r,e,o,u,i;void 0===n&&(n=g.a);var c,f,a=function(t){var n=Array.from(t.changedTouches),r=n[0];i="none",o=r.pageX,u=r.pageY,f=(new Date).getTime(),t.preventDefault()},s=function(t){t.preventDefault()},p=function(t){var a=Array.from(t.changedTouches),s=a[0];r=s.pageX-o,e=s.pageY-u,c=(new Date).getTime()-f,c<=300&&(Math.abs(r)>=150&&Math.abs(e)<=100?i=r<0?"left":"right":Math.abs(e)>=150&&Math.abs(r)<=100&&(i=e<0?"up":"down")),n(i),t.preventDefault()};return t.addEventListener("touchstart",a,!1),t.addEventListener("touchmove",s,!1),t.addEventListener("touchend",p,!1),function(){t.removeEventListener("touchstart",a,!1),t.removeEventListener("touchmove",s,!1),t.removeEventListener("touchend",p,!1)}}function i(t,n){var r,e,o,u,i,c=function(t){var n=Array.from(t.changedTouches),o=n[0];r=o.pageX,e=o.pageY,u=(new Date).getTime(),i=!1},f=function(t){if(!(i||(o=(new Date).getTime()-u,o>300))){var c=Array.from(t.changedTouches),f=c[0],a=f.pageX-r,s=f.pageY-e;if(Math.abs(a)>=150&&Math.abs(s)<=150){var p=a<0?"left":"right";n(p),i=!0}}},a=!!function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",g.a,n),window.removeEventListener("testPassiveEventSupport",g.a,n)}catch(t){}return t}()&&{passive:!0};return t.addEventListener("touchstart",c,a),t.addEventListener("touchmove",f,a),function(){t.removeEventListener("touchstart",c,a),t.removeEventListener("touchmove",f,a)}}function c(t){return function(n){"Enter"===n.key&&t(n)}}function f(t){return function(n){"Escape"===n.key&&t(n)}}function a(t){return function(n){"Enter"!==n.key&&" "!==n.key||t(n)}}r.r(n),r.d(n,"getBasicClass",(function(){return e})),r.d(n,"handleBasicClasses",(function(){return o})),r.d(n,"detectSwipe",(function(){return u})),r.d(n,"detectHorizontalSwipe",(function(){return i})),r.d(n,"onEnterPressed",(function(){return c})),r.d(n,"onEscapePressed",(function(){return f})),r.d(n,"onButtonPressed",(function(){return a}));r(67),r(128),r(80),r(129),r(82),r(131),r(135);var s=r(106),p=r.n(s),l=r(96),v=r.n(l),y=r(97),d=r.n(y),x=r(65),h=r.n(x),b=r(66),g=r.n(b),j=["prefix"]},function(t,n,r){var e=r(12),o=r(32),u=r(42),i=r(2),c=i((function(){u(1)}));e({target:"Object",stat:!0,forced:c},{keys:function(t){return u(o(t))}})},function(t,n,r){"use strict";var e=r(16),o=r(7),u=r(2),i=r(130),c=RegExp.prototype,f=c.toString,a=u((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),s="toString"!=f.name;(a||s)&&e(RegExp.prototype,"toString",(function(){var t=o(this),n=String(t.source),r=t.flags,e=String(void 0===r&&t instanceof RegExp&&!("flags"in c)?i.call(t):r);return"/"+n+"/"+e}),{unsafe:!0})},function(t,n,r){"use strict";var e=r(7);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e,o=r(12),u=r(23).f,i=r(19),c=r(132),f=r(14),a=r(134),s=r(17),p="".startsWith,l=Math.min,v=a("startsWith"),y=!(s||v||(e=u(String.prototype,"startsWith"),!e||e.writable));o({target:"String",proto:!0,forced:!y&&!v},{startsWith:function(t){var n=String(f(this));c(t);var r=i(l(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return p?p.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){var e=r(133);t.exports=function(t){if(e(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,n,r){var e=r(5),o=r(13),u=r(3),i=u("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,r){var e=r(3),o=e("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[o]=!1,"/./"[t](n)}catch(t){}}return!1}},function(t,n,r){var e=r(0),o=r(136),u=r(137),i=r(6);for(var c in o){var f=e[c],a=f&&f.prototype;if(a&&a.forEach!==u)try{i(a,"forEach",u)}catch(t){a.forEach=u}}},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,r){"use strict";var e=r(76).forEach,o=r(138),u=r(79),i=o("forEach"),c=u("forEach");t.exports=i&&c?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){throw 1},1)}))}},function(t,n,r){var e=r(98),o=r(140),u=Object.prototype,i=u.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var n=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&n.push(r);return n}},function(t,n,r){var e=r(141),o=e(Object.keys,Object);t.exports=o},function(t,n){t.exports=function(t,n){return function(r){return t(n(r))}}},function(t,n,r){var e=r(143),o=r(148),u=r(149),i=r(150),c=r(151),f=r(26),a=r(99),s=a(e),p=a(o),l=a(u),v=a(i),y=a(c),d=f;(e&&"[object DataView]"!=d(new e(new ArrayBuffer(1)))||o&&"[object Map]"!=d(new o)||u&&"[object Promise]"!=d(u.resolve())||i&&"[object Set]"!=d(new i)||c&&"[object WeakMap]"!=d(new c))&&(d=function(t){var n=f(t),r="[object Object]"==n?t.constructor:void 0,e=r?a(r):"";if(e)switch(e){case s:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case v:return"[object Set]";case y:return"[object WeakMap]"}return n}),t.exports=d},function(t,n,r){var e=r(60),o=r(22),u=e(o,"DataView");t.exports=u},function(t,n,r){var e=r(62),o=r(145),u=r(44),i=r(99),c=/^\[object .+?Constructor\]$/,f=Function.prototype,a=Object.prototype,s=f.toString,p=a.hasOwnProperty,l=RegExp("^"+s.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){if(!u(t)||o(t))return!1;var n=e(t)?l:c;return n.test(i(t))}},function(t,n,r){var e,o=r(146),u=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""),e?"Symbol(src)_1."+e:"");t.exports=function(t){return!!u&&u in t}},function(t,n,r){var e=r(22),o=e["__core-js_shared__"];t.exports=o},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,r){var e=r(60),o=r(22),u=e(o,"Map");t.exports=u},function(t,n,r){var e=r(60),o=r(22),u=e(o,"Promise");t.exports=u},function(t,n,r){var e=r(60),o=r(22),u=e(o,"Set");t.exports=u},function(t,n,r){var e=r(60),o=r(22),u=e(o,"WeakMap");t.exports=u},function(t,n,r){var e=r(153),o=r(40),u=Object.prototype,i=u.hasOwnProperty,c=u.propertyIsEnumerable,f=e(function(){return arguments}())?e:function(t){return o(t)&&i.call(t,"callee")&&!c.call(t,"callee")};t.exports=f},function(t,n,r){var e=r(26),o=r(40);t.exports=function(t){return o(t)&&"[object Arguments]"==e(t)}},function(t,n,r){(function(t){var e=r(22),o=r(155),u=n&&!n.nodeType&&n,i=u&&"object"==typeof t&&t&&!t.nodeType&&t,c=i&&i.exports===u,f=c?e.Buffer:void 0,a=f?f.isBuffer:void 0,s=a||o;t.exports=s}).call(this,r(101)(t))},function(t,n){t.exports=function(){return!1}},function(t,n,r){var e=r(157),o=r(158),u=r(159),i=u&&u.isTypedArray,c=i?o(i):e;t.exports=c},function(t,n,r){var e=r(26),o=r(64),u=r(40),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&o(t.length)&&!!i[e(t)]}},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,r){(function(t){var e=r(63),o=n&&!n.nodeType&&n,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,i=u&&u.exports===o,c=i&&e.process,f=function(){try{var t=u&&u.require&&u.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=f}).call(this,r(101)(t))},function(t,n,r){var e=r(161),o=r(162),u=r(167),i=RegExp("['’]","g");t.exports=function(t){return function(n){return e(u(o(n).replace(i,"")),t,"")}}},function(t,n){t.exports=function(t,n,r,e){var o=-1,u=null==t?0:t.length;for(e&&u&&(r=t[++o]);++o<u;)r=n(r,t[o],o,t);return r}},function(t,n,r){var e=r(163),o=r(102),u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return t=o(t),t&&t.replace(u,e).replace(i,"")}},function(t,n,r){var e=r(164),o=e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=o},function(t,n){t.exports=function(t){return function(n){return null==t?void 0:t[n]}}},function(t,n,r){var e=r(43),o=r(166),u=r(100),i=r(95),c=e?e.prototype:void 0,f=c?c.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(u(n))return o(n,t)+"";if(i(n))return f?f.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},function(t,n,r){var e=r(168),o=r(169),u=r(102),i=r(170);t.exports=function(t,n,r){return t=u(t),n=r?void 0:n,void 0===n?o(t)?i(t):e(t):t.match(n)||[]}},function(t,n){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(r)||[]}},function(t,n){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return r.test(t)}},function(t,n){var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e="["+r+"]",o="\\d+",u="[\\u2700-\\u27bf]",i="[a-z\\xdf-\\xf6\\xf8-\\xff]",c="[^\\ud800-\\udfff"+r+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",f="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",p="[A-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:"+i+"|"+c+")",v="(?:"+p+"|"+c+")",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",d="(?:\\u200d(?:"+[f,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+y+")*",x="[\\ufe0e\\ufe0f]?"+y+d,h="(?:"+[u,a,s].join("|")+")"+x,b=RegExp([p+"?"+i+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[e,p,"$"].join("|")+")",v+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[e,p+l,"$"].join("|")+")",p+"?"+l+"+(?:['’](?:d|ll|m|re|s|t|ve))?",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,h].join("|"),"g");t.exports=function(t){return t.match(b)||[]}}]);
|
|
2
|
-
//# sourceMappingURL=utils.min.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("classnames"),t=require("lodash/isBoolean"),r=require("lodash/isEmpty"),n=require("lodash/kebabCase"),a=require("lodash/noop");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(e),u=s(t),i=s(r),c=s(n),d=s(a);function f({prefix:e,type:t,value:r}){if(u.default(r)){if(!r)return"";return["has","is"].some(e=>t.toString().startsWith(e))?`${e}--${c.default(t)}`:`${e}--is-${c.default(t)}`}return`${e}--${c.default(t)}-${r}`}exports.detectHorizontalSwipe=function(e,t){let r,n,a,s,o;const u=e=>{const[t]=Array.from(e.changedTouches);r=t.pageX,n=t.pageY,s=(new Date).getTime(),o=!1},i=e=>{if(o)return;if(a=(new Date).getTime()-s,a>300)return;const[u]=Array.from(e.changedTouches),i=u.pageX-r,c=u.pageY-n;if(!(Math.abs(i)>=150&&Math.abs(c)<=150))return;t(i<0?"left":"right"),o=!0},c=!!function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("testPassiveEventSupport",d.default,t),window.removeEventListener("testPassiveEventSupport",d.default,t)}catch(e){}return e}()&&{passive:!0};return e.addEventListener("touchstart",u,c),e.addEventListener("touchmove",i,c),()=>{e.removeEventListener("touchstart",u,c),e.removeEventListener("touchmove",i,c)}},exports.detectSwipe=function(e,t=d.default){let r,n,a,s,o,u,i;const c=e=>{const[t]=Array.from(e.changedTouches);o="none",a=t.pageX,s=t.pageY,i=(new Date).getTime(),e.preventDefault()},f=e=>{e.preventDefault()},p=e=>{const[c]=Array.from(e.changedTouches);r=c.pageX-a,n=c.pageY-s,u=(new Date).getTime()-i,u<=300&&(Math.abs(r)>=150&&Math.abs(n)<=100?o=r<0?"left":"right":Math.abs(n)>=150&&Math.abs(r)<=100&&(o=n<0?"up":"down")),t(o),e.preventDefault()};return e.addEventListener("touchstart",c,!1),e.addEventListener("touchmove",f,!1),e.addEventListener("touchend",p,!1),()=>{e.removeEventListener("touchstart",c,!1),e.removeEventListener("touchmove",f,!1),e.removeEventListener("touchend",p,!1)}},exports.getBasicClass=f,exports.handleBasicClasses=function({prefix:e,...t}){const r={};return i.default(t)||Object.keys(t).forEach(n=>{var a;r[f({prefix:e,type:n,value:t[n]})]=u.default(t[n])?t[n]:!("number"==typeof(a=t[n])?0===a:i.default(a))}),o.default(e,r)},exports.onButtonPressed=function(e){return t=>{"Enter"!==t.key&&" "!==t.key||e(t)}},exports.onEnterPressed=function(e){return t=>{"Enter"===t.key&&e(t)}},exports.onEscapePressed=function(e){return t=>{"Escape"===t.key&&e(t)}};
|