@limetech/lime-elements 39.20.0 → 39.22.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/CHANGELOG.md +14 -0
- package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-form.cjs.entry.js +1111 -263
- package/dist/collection/components/chip-set/chip-set.js +3 -2
- package/dist/esm/{_baseEach-CL_-rBMy.js → _baseEach-C4UJIc96.js} +1 -1
- package/dist/esm/{_baseIsEqual-BfXMsuGh.js → _baseIsEqual-DCZXUzsZ.js} +1 -1
- package/dist/esm/{_baseIteratee-kS1-0_xD.js → _baseIteratee-CI-QZdpx.js} +1 -1
- package/dist/esm/{_getAllKeysIn-BKpeslPJ.js → _getAllKeysIn-v-KlW5r_.js} +1 -1
- package/dist/esm/{cloneDeep-BXAw5H-1.js → cloneDeep-V4fB8wfG.js} +2 -2
- package/dist/esm/{difference-DMAjHh-t.js → difference-CWrdq-hd.js} +1 -1
- package/dist/esm/{isEmpty-DrFXbHWO.js → isEmpty-BFxMjh_H.js} +1 -1
- package/dist/esm/{isEqual-CpaoJ_AF.js → isEqual-CsrptmTU.js} +1 -1
- package/dist/esm/limel-chip_2.entry.js +5 -5
- package/dist/esm/limel-dialog.entry.js +2 -2
- package/dist/esm/limel-file-dropzone_2.entry.js +3 -3
- package/dist/esm/limel-form.entry.js +1127 -279
- package/dist/esm/limel-prosemirror-adapter.entry.js +4 -4
- package/dist/esm/limel-tab-bar.entry.js +3 -3
- package/dist/esm/limel-table.entry.js +5 -5
- package/dist/esm/{pickBy-BEA90LIZ.js → pickBy-D8CUtxE4.js} +2 -2
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-29a59535.entry.js +13 -0
- package/dist/lime-elements/p-34d1d00a.entry.js +1 -0
- package/dist/lime-elements/{p-4ca67b17.entry.js → p-48db87d3.entry.js} +1 -1
- package/dist/lime-elements/{p-757896f5.entry.js → p-4e9baf08.entry.js} +1 -1
- package/dist/lime-elements/{p-BbU4FGNT.js → p-7uuv3HUP.js} +1 -1
- package/dist/lime-elements/{p-4ce682cf.entry.js → p-8139d26a.entry.js} +1 -1
- package/dist/lime-elements/{p-CMjGNANG.js → p-BTHqaZIi.js} +1 -1
- package/dist/lime-elements/p-Bj622DVt.js +1 -0
- package/dist/lime-elements/p-C3Myy3mA.js +1 -0
- package/dist/lime-elements/{p-xQsJdKrq.js → p-CXgJVvTe.js} +1 -1
- package/dist/lime-elements/p-CxfAgSVd.js +1 -0
- package/dist/lime-elements/{p-DFWcgJ_i.js → p-DNIqLXTL.js} +1 -1
- package/dist/lime-elements/p-DbC-smVQ.js +1 -0
- package/dist/lime-elements/p-SvuA3Boo.js +1 -0
- package/dist/lime-elements/{p-cffc137e.entry.js → p-e720f65c.entry.js} +3 -3
- package/dist/lime-elements/{p-8065425a.entry.js → p-fd4a4f87.entry.js} +1 -1
- package/dist/types/components/chip-set/chip-set.d.ts +1 -0
- package/dist/types/components/chip-set/chip.types.d.ts +4 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +4 -4
- package/dist/lime-elements/p-B3zCFNAw.js +0 -1
- package/dist/lime-elements/p-B6bNnxRu.js +0 -1
- package/dist/lime-elements/p-BCMRfUKp.js +0 -1
- package/dist/lime-elements/p-DTXIk0fN.js +0 -1
- package/dist/lime-elements/p-UGKt6Ywx.js +0 -1
- package/dist/lime-elements/p-cae35eb0.entry.js +0 -1
- package/dist/lime-elements/p-e60ffc0a.entry.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as r,a as t,b as i,h as a,j as n,l as o}from"./p-
|
|
1
|
+
import{i as r,a as t,b as i,h as a,j as n,l as o}from"./p-DNIqLXTL.js";import{i as e}from"./p-B8VKuhvH.js";import{i as f}from"./p-D_uMnX5g.js";var s=Object.prototype.hasOwnProperty;function u(u){if(null==u)return!0;if(f(u)&&(e(u)||"string"==typeof u||"function"==typeof u.splice||r(u)||t(u)||i(u)))return!u.length;var p=a(u);if("[object Map]"==p||"[object Set]"==p)return!u.size;if(n(u))return!o(u).length;for(var j in u)if(s.call(u,j))return!1;return!0}export{u as i}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,c as t,h as o,a as e}from"./p-DBTJNfo7.js";import{d as a}from"./p-z_E3sq3p.js";import{c as d}from"./p-JbKhhoXs.js";import{_ as n,a as c,M as r,b as l,c as s,d as m,m as g}from"./p-ChRGk668.js";import{M as h}from"./p-BN1-aIOw.js";import{i as u}from"./p-
|
|
1
|
+
import{r as i,c as t,h as o,a as e}from"./p-DBTJNfo7.js";import{d as a}from"./p-z_E3sq3p.js";import{c as d}from"./p-JbKhhoXs.js";import{_ as n,a as c,M as r,b as l,c as s,d as m,m as g}from"./p-ChRGk668.js";import{M as h}from"./p-BN1-aIOw.js";import{i as u}from"./p-SvuA3Boo.js";import"./p-DNIqLXTL.js";import"./p-DtS35Df5.js";import"./p-BJQylLSL.js";import"./p-efBXH4mj.js";import"./p-B8VKuhvH.js";import"./p-oiMYqRQ0.js";import"./p-D_uMnX5g.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2016 Google Inc.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as n,S as r,
|
|
1
|
+
import{M as n,S as r,g as t,k as u,b as i}from"./p-DNIqLXTL.js";import{S as o,i as f}from"./p-BJQylLSL.js";import{i as e}from"./p-B8VKuhvH.js";import{i as a}from"./p-BOEi1C7r.js";import{a as c,b as s}from"./p-D_uMnX5g.js";import{i as v}from"./p-CK4jS9_E.js";function l(n,r){for(var t=-1,u=null==n?0:n.length,i=Array(u);++t<u;)i[t]=r(n[t],t,n);return i}var p=o?o.prototype:void 0,d=p?p.toString:void 0;function m(n){if("string"==typeof n)return n;if(e(n))return l(n,m)+"";if(a(n))return d?d.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}var b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;function y(n,r){if(e(n))return!1;var t=typeof n;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=n&&!a(n))||j.test(n)||!b.test(n)||null!=r&&n in Object(r)}function g(r,t){if("function"!=typeof r||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var u=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=u.cache;if(o.has(i))return o.get(i);var f=r.apply(this,n);return u.cache=o.set(i,f)||o,f};return u.cache=new(g.Cache||n),u}g.Cache=n;var h,w,O,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,S=(h=function(n){var r=[];return 46===n.charCodeAt(0)&&r.push(""),n.replace(E,(function(n,t,u,i){r.push(u?i.replace(L,"$1"):t||n)})),r},w=g(h,(function(n){return 500===O.size&&O.clear(),n})),O=w.cache,w);function B(n){return null==n?"":m(n)}function $(n,r){return e(n)?n:y(n,r)?[n]:S(B(n))}function k(n){if("string"==typeof n||a(n))return n;var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function x(n,r){for(var t=0,u=(r=$(r,n)).length;null!=n&&t<u;)n=n[k(r[t++])];return t&&t==u?n:void 0}function C(n,r,t){var u=null==n?void 0:x(n,r);return void 0===u?t:u}function D(n){return n==n&&!f(n)}function K(n,r){return function(t){return null!=t&&t[n]===r&&(void 0!==r||n in Object(t))}}function M(n,r){return null!=n&&r in Object(n)}function T(n,r,t){for(var u=-1,o=(r=$(r,n)).length,f=!1;++u<o;){var a=k(r[u]);if(!(f=null!=n&&t(n,a)))break;n=n[a]}return f||++u!=o?f:!!(o=null==n?0:n.length)&&c(o)&&s(a,o)&&(e(n)||i(n))}function X(n,r){return null!=n&&T(n,r,M)}function _(n){return"function"==typeof n?n:null==n?v:"object"==typeof n?e(n)?(a=n[1],y(f=n[0])&&D(a)?K(k(f),a):function(n){var r=C(n,f);return void 0===r&&r===a?X(n,f):t(a,r,3)}):(o=function(n){for(var r=u(n),t=r.length;t--;){var i=r[t],o=n[i];r[t]=[i,o,D(o)]}return r}(i=n),1==o.length&&o[0][2]?K(o[0][0],o[0][1]):function(n){return n===i||function(n,u,i){var o=i.length,f=o;if(null==n)return!f;for(n=Object(n);o--;){var e=i[o];if(e[2]?e[1]!==n[e[0]]:!(e[0]in n))return!1}for(;++o<f;){var a=(e=i[o])[0],c=n[a],s=e[1];if(e[2]){if(void 0===c&&!(a in n))return!1}else{var v=new r;if(!t(s,c,3,void 0,v))return!1}}return!0}(n,0,o)}):function(n){return y(n)?(r=k(n),function(n){return null==n?void 0:n[r]}):function(n){return function(r){return x(r,n)}}(n);var r}(n);var i,o,f,a}export{l as a,x as b,_ as c,$ as d,k as e,T as f,C as g,X as h,S as s,B as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r,r as t,t as a,u as n,q as o,m as s,v as u}from"./p-DNIqLXTL.js";import{i}from"./p-BJQylLSL.js";import{i as f}from"./p-D_uMnX5g.js";var c=Object.prototype.hasOwnProperty;function e(a){return f(a)?t(a,!0):function(t){if(!i(t))return function(r){var t=[];if(null!=r)for(var a in Object(r))t.push(a);return t}(t);var a=r(t),n=[];for(var o in t)("constructor"!=o||!a&&c.call(t,o))&&n.push(o);return n}(a)}var j=a(Object.getPrototypeOf,Object),v=Object.getOwnPropertySymbols?function(r){for(var t=[];r;)o(t,s(r)),r=j(r);return t}:n;function m(r){return u(r,e,v)}export{m as a,v as b,j as g,e as k}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as r}from"./p-DNIqLXTL.js";import{i as n}from"./p-D_uMnX5g.js";var t=function(r,n,t){for(var a=-1,f=Object(r),o=t(r),u=o.length;u--;){var e=o[++a];if(!1===n(f[e],e,f))break}return r};function a(n,a){return n&&t(n,a,r)}var f,o=(f=a,function(r,t){if(null==r)return r;if(!n(r))return f(r,t);for(var a=r.length,o=-1,u=Object(r);++o<a&&!1!==t(u[o],o,u););return r});export{o as a,t as b,a as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r,q as n,c as t,d as u}from"./p-
|
|
1
|
+
import{b as r,q as n,c as t,d as u}from"./p-DNIqLXTL.js";import{S as i}from"./p-BJQylLSL.js";import{i as o}from"./p-B8VKuhvH.js";import{i as a}from"./p-CK4jS9_E.js";import{d as e}from"./p-f_1nwOC8.js";import{i as f}from"./p-D_uMnX5g.js";import{i as s}from"./p-oiMYqRQ0.js";var c,v,m,p=Date.now,l=e?function(r,n){return e(r,"toString",{configurable:!0,enumerable:!1,value:(t=n,function(){return t}),writable:!0});var t}:a,d=(c=l,v=0,m=0,function(){var r=p(),n=16-(r-m);if(m=r,n>0){if(++v>=800)return arguments[0]}else v=0;return c.apply(void 0,arguments)});function j(r){return r!=r}function b(r,n,t){return n==n?function(r,n,t){for(var u=t-1,i=r.length;++u<i;)if(r[u]===n)return u;return-1}(r,n,t):function(r,n,t){for(var u=r.length,i=t+-1;++i<u;)if(n(r[i],i,r))return i;return-1}(r,j,t)}function h(r,n){return!(null==r||!r.length)&&b(r,n,0)>-1}var w=Math.max;function L(r,n,t){return n=w(void 0===n?r.length-1:n,0),function(){for(var u=arguments,i=-1,o=w(u.length-n,0),a=Array(o);++i<o;)a[i]=u[n+i];i=-1;for(var e=Array(n+1);++i<n;)e[i]=u[i];return e[n]=t(a),function(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}(r,this,e)}}function S(r,n){return d(L(r,n,a),r+"")}var g=i?i.isConcatSpreadable:void 0;function q(n){return o(n)||r(n)||!!(g&&n&&n[g])}function y(r,t,u,i,o){var a=-1,e=r.length;for(u||(u=q),o||(o=[]);++a<e;){var f=r[a];t>0&&u(f)?t>1?y(f,t-1,u,i,o):n(o,f):i||(o[o.length]=f)}return o}function D(r){return s(r)&&f(r)}var M=S((function(r,n){return D(r)?function(r,n){var i=-1,o=h,a=!0,e=r.length,f=[],s=n.length;if(!e)return f;n.length>=200&&(o=u,a=!1,n=new t(n));r:for(;++i<e;){var c=r[i],v=c;if(c=0!==c?c:0,a&&v==v){for(var m=s;m--;)if(n[m]===v)continue r;f.push(c)}else o(n,v,undefined)||f.push(c)}return f}(r,y(n,1,D,!0)):[]}));export{y as a,S as b,b as c,h as d,M as e,D as i,L as o,d as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as r,d as t,e as n,b as o,a,c as u}from"./p-BTHqaZIi.js";import{a as i}from"./p-v6b303K5.js";import{b as s}from"./p-D_uMnX5g.js";import{i as e}from"./p-BJQylLSL.js";import{a as f}from"./p-Bj622DVt.js";var c=Object.prototype.hasOwnProperty;function p(r,t){return null!=r&&c.call(r,t)}function v(t,n){return null!=t&&r(t,n,p)}function m(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}function l(r,o,a,u){if(!e(r))return r;for(var f=-1,c=(o=t(o,r)).length,p=c-1,v=r;null!=v&&++f<c;){var m=n(o[f]),l=a;if("__proto__"===m||"constructor"===m||"prototype"===m)return r;if(f!=p){var h=v[m];void 0===(l=u?u(h,m,v):void 0)&&(l=e(h)?h:s(o[f+1])?[]:{})}i(v,m,l),v=v[m]}return r}function h(r,n,a){for(var u=-1,i=n.length,s={};++u<i;){var e=n[u],f=o(r,e);a(f,e)&&l(s,t(e,r),f)}return s}function j(r,t){if(null==r)return{};var n=a(f(r),(function(r){return[r]}));return t=u(t),h(r,n,(function(r,n){return t(r,n[0])}))}export{l as a,h as b,v as h,m as n,j as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r}from"./p-DtS35Df5.js";import{g as t,t as n}from"./p-efBXH4mj.js";import{r as e,b as i,f as o,S as u}from"./p-BJQylLSL.js";import{i as a}from"./p-B8VKuhvH.js";import{i as s}from"./p-oiMYqRQ0.js";import{a as f,b as c,i as v}from"./p-D_uMnX5g.js";var h=t(e,"WeakMap"),b=Object.prototype;function j(r){var t=r&&r.constructor;return r===("function"==typeof t&&t.prototype||b)}function l(r,t){for(var n=-1,e=Array(r);++n<r;)e[n]=t(n);return e}function p(r){return s(r)&&"[object Arguments]"==i(r)}var d=Object.prototype,m=d.hasOwnProperty,_=d.propertyIsEnumerable,w=p(function(){return arguments}())?p:function(r){return s(r)&&m.call(r,"callee")&&!_.call(r,"callee")},y="object"==typeof exports&&exports&&!exports.nodeType&&exports,O=y&&"object"==typeof module&&module&&!module.nodeType&&module,g=O&&O.exports===y?e.Buffer:void 0,x=(g?g.isBuffer:void 0)||function(){return!1},S={};function A(r){return function(t){return r(t)}}S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object Boolean]"]=S["[object DataView]"]=S["[object Date]"]=S["[object Error]"]=S["[object Function]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object WeakMap]"]=!1;var M="object"==typeof exports&&exports&&!exports.nodeType&&exports,k=M&&"object"==typeof module&&module&&!module.nodeType&&module,D=k&&k.exports===M&&o.process,B=function(){try{return k&&k.require&&k.require("util").types||D&&D.binding&&D.binding("util")}catch(r){}}(),V=B&&B.isTypedArray,L=V?A(V):function(r){return s(r)&&f(r.length)&&!!S[i(r)]},q=Object.prototype.hasOwnProperty;function E(r,t){var n=a(r),e=!n&&w(r),i=!n&&!e&&x(r),o=!n&&!e&&!i&&L(r),u=n||e||i||o,s=u?l(r.length,String):[],f=s.length;for(var v in r)!t&&!q.call(r,v)||u&&("length"==v||i&&("offset"==v||"parent"==v)||o&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,f))||s.push(v);return s}function H(r,t){return function(n){return r(t(n))}}var P=H(Object.keys,Object),Q=Object.prototype.hasOwnProperty;function R(r){if(!j(r))return P(r);var t=[];for(var n in Object(r))Q.call(r,n)&&"constructor"!=n&&t.push(n);return t}function W(r){return v(r)?E(r):R(r)}var X=t(Object,"create"),J=Object.prototype.hasOwnProperty,K=Object.prototype.hasOwnProperty;function N(r){var t=-1,n=null==r?0:r.length;for(this.clear();++t<n;){var e=r[t];this.set(e[0],e[1])}}function U(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}N.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},N.prototype.delete=function(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t},N.prototype.get=function(r){var t=this.__data__;if(X){var n=t[r];return"__lodash_hash_undefined__"===n?void 0:n}return J.call(t,r)?t[r]:void 0},N.prototype.has=function(r){var t=this.__data__;return X?void 0!==t[r]:K.call(t,r)},N.prototype.set=function(r,t){var n=this.__data__;return this.size+=this.has(r)?0:1,n[r]=X&&void 0===t?"__lodash_hash_undefined__":t,this};var Y=Array.prototype.splice;function z(r){var t=-1,n=null==r?0:r.length;for(this.clear();++t<n;){var e=r[t];this.set(e[0],e[1])}}z.prototype.clear=function(){this.__data__=[],this.size=0},z.prototype.delete=function(r){var t=this.__data__,n=U(t,r);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},z.prototype.get=function(r){var t=this.__data__,n=U(t,r);return n<0?void 0:t[n][1]},z.prototype.has=function(r){return U(this.__data__,r)>-1},z.prototype.set=function(r,t){var n=this.__data__,e=U(n,r);return e<0?(++this.size,n.push([r,t])):n[e][1]=t,this};var C=t(e,"Map");function F(r,t){var n,e,i=r.__data__;return("string"==(e=typeof(n=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function G(r){var t=-1,n=null==r?0:r.length;for(this.clear();++t<n;){var e=r[t];this.set(e[0],e[1])}}function I(r,t){for(var n=-1,e=t.length,i=r.length;++n<e;)r[i+n]=t[n];return r}function T(r){var t=this.__data__=new z(r);this.size=t.size}function Z(){return[]}G.prototype.clear=function(){this.size=0,this.__data__={hash:new N,map:new(C||z),string:new N}},G.prototype.delete=function(r){var t=F(this,r).delete(r);return this.size-=t?1:0,t},G.prototype.get=function(r){return F(this,r).get(r)},G.prototype.has=function(r){return F(this,r).has(r)},G.prototype.set=function(r,t){var n=F(this,r),e=n.size;return n.set(r,t),this.size+=n.size==e?0:1,this},T.prototype.clear=function(){this.__data__=new z,this.size=0},T.prototype.delete=function(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n},T.prototype.get=function(r){return this.__data__.get(r)},T.prototype.has=function(r){return this.__data__.has(r)},T.prototype.set=function(r,t){var n=this.__data__;if(n instanceof z){var e=n.__data__;if(!C||e.length<199)return e.push([r,t]),this.size=++n.size,this;n=this.__data__=new G(e)}return n.set(r,t),this.size=n.size,this};var $=Object.prototype.propertyIsEnumerable,rr=Object.getOwnPropertySymbols,tr=rr?function(r){return null==r?[]:(r=Object(r),function(t){for(var n=-1,e=null==t?0:t.length,i=0,o=[];++n<e;){var u=t[n];$.call(r,u)&&(o[i++]=u)}return o}(rr(r)))}:Z;function nr(r,t,n){var e=t(r);return a(r)?e:I(e,n(r))}function er(r){return nr(r,W,tr)}var ir=t(e,"DataView"),or=t(e,"Promise"),ur=t(e,"Set"),ar="[object Map]",sr="[object Promise]",fr="[object Set]",cr="[object WeakMap]",vr="[object DataView]",hr=n(ir),br=n(C),jr=n(or),lr=n(ur),pr=n(h),dr=i;(ir&&dr(new ir(new ArrayBuffer(1)))!=vr||C&&dr(new C)!=ar||or&&dr(or.resolve())!=sr||ur&&dr(new ur)!=fr||h&&dr(new h)!=cr)&&(dr=function(r){var t=i(r),e="[object Object]"==t?r.constructor:void 0,o=e?n(e):"";if(o)switch(o){case hr:return vr;case br:return ar;case jr:return sr;case lr:return fr;case pr:return cr}return t});var mr=e.Uint8Array;function _r(r){var t=-1,n=null==r?0:r.length;for(this.__data__=new G;++t<n;)this.add(r[t])}function wr(r,t){for(var n=-1,e=null==r?0:r.length;++n<e;)if(t(r[n],n,r))return!0;return!1}function yr(r,t){return r.has(t)}function Or(r,t,n,e,i,o){var u=1&n,a=r.length,s=t.length;if(a!=s&&!(u&&s>a))return!1;var f=o.get(r),c=o.get(t);if(f&&c)return f==t&&c==r;var v=-1,h=!0,b=2&n?new _r:void 0;for(o.set(r,t),o.set(t,r);++v<a;){var j=r[v],l=t[v];if(e)var p=u?e(l,j,v,t,r,o):e(j,l,v,r,t,o);if(void 0!==p){if(p)continue;h=!1;break}if(b){if(!wr(t,(function(r,t){if(!yr(b,t)&&(j===r||i(j,r,n,e,o)))return b.push(t)}))){h=!1;break}}else if(j!==l&&!i(j,l,n,e,o)){h=!1;break}}return o.delete(r),o.delete(t),h}function gr(r){var t=-1,n=Array(r.size);return r.forEach((function(r,e){n[++t]=[e,r]})),n}function xr(r){var t=-1,n=Array(r.size);return r.forEach((function(r){n[++t]=r})),n}_r.prototype.add=_r.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},_r.prototype.has=function(r){return this.__data__.has(r)};var Sr=u?u.prototype:void 0,Ar=Sr?Sr.valueOf:void 0,Mr=Object.prototype.hasOwnProperty,kr="[object Arguments]",Dr="[object Array]",Br="[object Object]",Vr=Object.prototype.hasOwnProperty;function Lr(t,n,e,i,o){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:function(t,n,e,i,o,u){var s=a(t),f=a(n),c=s?Dr:dr(t),v=f?Dr:dr(n),h=(c=c==kr?Br:c)==Br,b=(v=v==kr?Br:v)==Br,j=c==v;if(j&&x(t)){if(!x(n))return!1;s=!0,h=!1}if(j&&!h)return u||(u=new T),s||L(t)?Or(t,n,e,i,o,u):function(t,n,e,i,o,u,a){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!u(new mr(t),new mr(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var s=gr;case"[object Set]":if(s||(s=xr),t.size!=n.size&&!(1&i))return!1;var f=a.get(t);if(f)return f==n;i|=2,a.set(t,n);var c=Or(s(t),s(n),i,o,u,a);return a.delete(t),c;case"[object Symbol]":if(Ar)return Ar.call(t)==Ar.call(n)}return!1}(t,n,c,e,i,o,u);if(!(1&e)){var l=h&&Vr.call(t,"__wrapped__"),p=b&&Vr.call(n,"__wrapped__");if(l||p){var d=l?t.value():t,m=p?n.value():n;return u||(u=new T),o(d,m,e,i,u)}}return!!j&&(u||(u=new T),function(r,t,n,e,i,o){var u=1&n,a=er(r),s=a.length;if(s!=er(t).length&&!u)return!1;for(var f=s;f--;){var c=a[f];if(!(u?c in t:Mr.call(t,c)))return!1}var v=o.get(r),h=o.get(t);if(v&&h)return v==t&&h==r;var b=!0;o.set(r,t),o.set(t,r);for(var j=u;++f<s;){var l=r[c=a[f]],p=t[c];if(e)var d=u?e(p,l,c,t,r,o):e(l,p,c,r,t,o);if(!(void 0===d?l===p||i(l,p,n,e,o):d)){b=!1;break}j||(j="constructor"==c)}if(b&&!j){var m=r.constructor,_=t.constructor;m==_||!("constructor"in r)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(b=!1)}return o.delete(r),o.delete(t),b}(t,n,e,i,o,u))}(t,n,e,i,Lr,o))}export{G as M,T as S,mr as U,L as a,w as b,_r as c,yr as d,
|
|
1
|
+
import{e as r}from"./p-DtS35Df5.js";import{g as t,t as n}from"./p-efBXH4mj.js";import{r as e,b as i,f as o,S as u}from"./p-BJQylLSL.js";import{i as a}from"./p-B8VKuhvH.js";import{i as s}from"./p-oiMYqRQ0.js";import{a as f,b as c,i as v}from"./p-D_uMnX5g.js";var h=t(e,"WeakMap"),b=Object.prototype;function j(r){var t=r&&r.constructor;return r===("function"==typeof t&&t.prototype||b)}function l(r,t){for(var n=-1,e=Array(r);++n<r;)e[n]=t(n);return e}function p(r){return s(r)&&"[object Arguments]"==i(r)}var d=Object.prototype,m=d.hasOwnProperty,_=d.propertyIsEnumerable,w=p(function(){return arguments}())?p:function(r){return s(r)&&m.call(r,"callee")&&!_.call(r,"callee")},y="object"==typeof exports&&exports&&!exports.nodeType&&exports,O=y&&"object"==typeof module&&module&&!module.nodeType&&module,g=O&&O.exports===y?e.Buffer:void 0,x=(g?g.isBuffer:void 0)||function(){return!1},S={};function A(r){return function(t){return r(t)}}S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object Boolean]"]=S["[object DataView]"]=S["[object Date]"]=S["[object Error]"]=S["[object Function]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object WeakMap]"]=!1;var M="object"==typeof exports&&exports&&!exports.nodeType&&exports,k=M&&"object"==typeof module&&module&&!module.nodeType&&module,D=k&&k.exports===M&&o.process,B=function(){try{return k&&k.require&&k.require("util").types||D&&D.binding&&D.binding("util")}catch(r){}}(),V=B&&B.isTypedArray,L=V?A(V):function(r){return s(r)&&f(r.length)&&!!S[i(r)]},q=Object.prototype.hasOwnProperty;function E(r,t){var n=a(r),e=!n&&w(r),i=!n&&!e&&x(r),o=!n&&!e&&!i&&L(r),u=n||e||i||o,s=u?l(r.length,String):[],f=s.length;for(var v in r)!t&&!q.call(r,v)||u&&("length"==v||i&&("offset"==v||"parent"==v)||o&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,f))||s.push(v);return s}function H(r,t){return function(n){return r(t(n))}}var P=H(Object.keys,Object),Q=Object.prototype.hasOwnProperty;function R(r){if(!j(r))return P(r);var t=[];for(var n in Object(r))Q.call(r,n)&&"constructor"!=n&&t.push(n);return t}function W(r){return v(r)?E(r):R(r)}var X=t(Object,"create"),J=Object.prototype.hasOwnProperty,K=Object.prototype.hasOwnProperty;function N(r){var t=-1,n=null==r?0:r.length;for(this.clear();++t<n;){var e=r[t];this.set(e[0],e[1])}}function U(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}N.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},N.prototype.delete=function(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t},N.prototype.get=function(r){var t=this.__data__;if(X){var n=t[r];return"__lodash_hash_undefined__"===n?void 0:n}return J.call(t,r)?t[r]:void 0},N.prototype.has=function(r){var t=this.__data__;return X?void 0!==t[r]:K.call(t,r)},N.prototype.set=function(r,t){var n=this.__data__;return this.size+=this.has(r)?0:1,n[r]=X&&void 0===t?"__lodash_hash_undefined__":t,this};var Y=Array.prototype.splice;function z(r){var t=-1,n=null==r?0:r.length;for(this.clear();++t<n;){var e=r[t];this.set(e[0],e[1])}}z.prototype.clear=function(){this.__data__=[],this.size=0},z.prototype.delete=function(r){var t=this.__data__,n=U(t,r);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},z.prototype.get=function(r){var t=this.__data__,n=U(t,r);return n<0?void 0:t[n][1]},z.prototype.has=function(r){return U(this.__data__,r)>-1},z.prototype.set=function(r,t){var n=this.__data__,e=U(n,r);return e<0?(++this.size,n.push([r,t])):n[e][1]=t,this};var C=t(e,"Map");function F(r,t){var n,e,i=r.__data__;return("string"==(e=typeof(n=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function G(r){var t=-1,n=null==r?0:r.length;for(this.clear();++t<n;){var e=r[t];this.set(e[0],e[1])}}function I(r,t){for(var n=-1,e=t.length,i=r.length;++n<e;)r[i+n]=t[n];return r}function T(r){var t=this.__data__=new z(r);this.size=t.size}function Z(){return[]}G.prototype.clear=function(){this.size=0,this.__data__={hash:new N,map:new(C||z),string:new N}},G.prototype.delete=function(r){var t=F(this,r).delete(r);return this.size-=t?1:0,t},G.prototype.get=function(r){return F(this,r).get(r)},G.prototype.has=function(r){return F(this,r).has(r)},G.prototype.set=function(r,t){var n=F(this,r),e=n.size;return n.set(r,t),this.size+=n.size==e?0:1,this},T.prototype.clear=function(){this.__data__=new z,this.size=0},T.prototype.delete=function(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n},T.prototype.get=function(r){return this.__data__.get(r)},T.prototype.has=function(r){return this.__data__.has(r)},T.prototype.set=function(r,t){var n=this.__data__;if(n instanceof z){var e=n.__data__;if(!C||e.length<199)return e.push([r,t]),this.size=++n.size,this;n=this.__data__=new G(e)}return n.set(r,t),this.size=n.size,this};var $=Object.prototype.propertyIsEnumerable,rr=Object.getOwnPropertySymbols,tr=rr?function(r){return null==r?[]:(r=Object(r),function(t){for(var n=-1,e=null==t?0:t.length,i=0,o=[];++n<e;){var u=t[n];$.call(r,u)&&(o[i++]=u)}return o}(rr(r)))}:Z;function nr(r,t,n){var e=t(r);return a(r)?e:I(e,n(r))}function er(r){return nr(r,W,tr)}var ir=t(e,"DataView"),or=t(e,"Promise"),ur=t(e,"Set"),ar="[object Map]",sr="[object Promise]",fr="[object Set]",cr="[object WeakMap]",vr="[object DataView]",hr=n(ir),br=n(C),jr=n(or),lr=n(ur),pr=n(h),dr=i;(ir&&dr(new ir(new ArrayBuffer(1)))!=vr||C&&dr(new C)!=ar||or&&dr(or.resolve())!=sr||ur&&dr(new ur)!=fr||h&&dr(new h)!=cr)&&(dr=function(r){var t=i(r),e="[object Object]"==t?r.constructor:void 0,o=e?n(e):"";if(o)switch(o){case hr:return vr;case br:return ar;case jr:return sr;case lr:return fr;case pr:return cr}return t});var mr=e.Uint8Array;function _r(r){var t=-1,n=null==r?0:r.length;for(this.__data__=new G;++t<n;)this.add(r[t])}function wr(r,t){for(var n=-1,e=null==r?0:r.length;++n<e;)if(t(r[n],n,r))return!0;return!1}function yr(r,t){return r.has(t)}function Or(r,t,n,e,i,o){var u=1&n,a=r.length,s=t.length;if(a!=s&&!(u&&s>a))return!1;var f=o.get(r),c=o.get(t);if(f&&c)return f==t&&c==r;var v=-1,h=!0,b=2&n?new _r:void 0;for(o.set(r,t),o.set(t,r);++v<a;){var j=r[v],l=t[v];if(e)var p=u?e(l,j,v,t,r,o):e(j,l,v,r,t,o);if(void 0!==p){if(p)continue;h=!1;break}if(b){if(!wr(t,(function(r,t){if(!yr(b,t)&&(j===r||i(j,r,n,e,o)))return b.push(t)}))){h=!1;break}}else if(j!==l&&!i(j,l,n,e,o)){h=!1;break}}return o.delete(r),o.delete(t),h}function gr(r){var t=-1,n=Array(r.size);return r.forEach((function(r,e){n[++t]=[e,r]})),n}function xr(r){var t=-1,n=Array(r.size);return r.forEach((function(r){n[++t]=r})),n}_r.prototype.add=_r.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},_r.prototype.has=function(r){return this.__data__.has(r)};var Sr=u?u.prototype:void 0,Ar=Sr?Sr.valueOf:void 0,Mr=Object.prototype.hasOwnProperty,kr="[object Arguments]",Dr="[object Array]",Br="[object Object]",Vr=Object.prototype.hasOwnProperty;function Lr(t,n,e,i,o){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:function(t,n,e,i,o,u){var s=a(t),f=a(n),c=s?Dr:dr(t),v=f?Dr:dr(n),h=(c=c==kr?Br:c)==Br,b=(v=v==kr?Br:v)==Br,j=c==v;if(j&&x(t)){if(!x(n))return!1;s=!0,h=!1}if(j&&!h)return u||(u=new T),s||L(t)?Or(t,n,e,i,o,u):function(t,n,e,i,o,u,a){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!u(new mr(t),new mr(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var s=gr;case"[object Set]":if(s||(s=xr),t.size!=n.size&&!(1&i))return!1;var f=a.get(t);if(f)return f==n;i|=2,a.set(t,n);var c=Or(s(t),s(n),i,o,u,a);return a.delete(t),c;case"[object Symbol]":if(Ar)return Ar.call(t)==Ar.call(n)}return!1}(t,n,c,e,i,o,u);if(!(1&e)){var l=h&&Vr.call(t,"__wrapped__"),p=b&&Vr.call(n,"__wrapped__");if(l||p){var d=l?t.value():t,m=p?n.value():n;return u||(u=new T),o(d,m,e,i,u)}}return!!j&&(u||(u=new T),function(r,t,n,e,i,o){var u=1&n,a=er(r),s=a.length;if(s!=er(t).length&&!u)return!1;for(var f=s;f--;){var c=a[f];if(!(u?c in t:Mr.call(t,c)))return!1}var v=o.get(r),h=o.get(t);if(v&&h)return v==t&&h==r;var b=!0;o.set(r,t),o.set(t,r);for(var j=u;++f<s;){var l=r[c=a[f]],p=t[c];if(e)var d=u?e(p,l,c,t,r,o):e(l,p,c,r,t,o);if(!(void 0===d?l===p||i(l,p,n,e,o):d)){b=!1;break}j||(j="constructor"==c)}if(b&&!j){var m=r.constructor,_=t.constructor;m==_||!("constructor"in r)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(b=!1)}return o.delete(r),o.delete(t),b}(t,n,e,i,o,u))}(t,n,e,i,Lr,o))}export{G as M,T as S,mr as U,L as a,w as b,_r as c,yr as d,l as e,ur as f,Lr as g,dr as h,x as i,j,W as k,R as l,tr as m,A as n,B as o,er as p,I as q,E as r,xr as s,H as t,Z as u,nr as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as r,m as e,U as t,j as n,h as o,n as a,o as c,i as u,S as i,p as s}from"./p-DNIqLXTL.js";import{b as f,a as j}from"./p-v6b303K5.js";import{k as b,b as v,g as p,a as m}from"./p-Bj622DVt.js";import{i as y,r as d,S as w}from"./p-BJQylLSL.js";import{i as l}from"./p-B8VKuhvH.js";import{i as A}from"./p-oiMYqRQ0.js";var x=Object.create,S=function(){function r(){}return function(e){if(!y(e))return{};if(x)return x(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function g(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}function B(r,e){for(var t=-1,n=null==r?0:r.length;++t<n&&!1!==e(r[t],t,r););return r}function U(r,e,t){var n=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var c=e[o],u=void 0;void 0===u&&(u=r[c]),n?f(t,c,u):j(t,c,u)}return t}var h="object"==typeof exports&&exports&&!exports.nodeType&&exports,D=h&&"object"==typeof module&&module&&!module.nodeType&&module,F=D&&D.exports===h?d.Buffer:void 0,I=F?F.allocUnsafe:void 0;function L(r,e){if(e)return r.slice();var t=r.length,n=I?I(t):new r.constructor(t);return r.copy(n),n}var O=Object.prototype.hasOwnProperty;function M(r){var e=new r.constructor(r.byteLength);return new t(e).set(new t(r)),e}var V=/\w*$/,k=w?w.prototype:void 0,q=k?k.valueOf:void 0;function K(r,e){var t=e?M(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}function N(r){return"function"!=typeof r.constructor||n(r)?{}:S(p(r))}var Q=c&&c.isMap,R=Q?a(Q):function(r){return A(r)&&"[object Map]"==o(r)},C=c&&c.isSet,E=C?a(C):function(r){return A(r)&&"[object Set]"==o(r)},G="[object Arguments]",H="[object Function]",J="[object Object]",T={};function X(t,n,a,c,f,p){var d,w=1&n,A=2&n,x=4&n;if(a&&(d=f?a(t,c,f,p):a(t)),void 0!==d)return d;if(!y(t))return t;var S=l(t);if(S){if(d=function(r){var e=r.length,t=new r.constructor(e);return e&&"string"==typeof r[0]&&O.call(r,"index")&&(t.index=r.index,t.input=r.input),t}(t),!w)return g(t,d)}else{var h=o(t),D=h==H||"[object GeneratorFunction]"==h;if(u(t))return L(t,w);if(h==J||h==G||D&&!f){if(d=A||D?{}:N(t),!w)return A?function(r,e){return U(r,v(r),e)}(t,function(r,e){return r&&U(e,b(e),r)}(d,t)):function(r,t){return U(r,e(r),t)}(t,function(e,t){return e&&U(t,r(t),e)}(d,t))}else{if(!T[h])return f?t:{};d=function(r,e,t){var n,o,a=r.constructor;switch(e){case"[object ArrayBuffer]":return M(r);case"[object Boolean]":case"[object Date]":return new a(+r);case"[object DataView]":return function(r,e){var t=e?M(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}(r,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return K(r,t);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(r);case"[object RegExp]":return(o=new(n=r).constructor(n.source,V.exec(n))).lastIndex=n.lastIndex,o;case"[object Symbol]":return q?Object(q.call(r)):{}}}(t,h,w)}}p||(p=new i);var F=p.get(t);if(F)return F;p.set(t,d),E(t)?t.forEach((function(r){d.add(X(r,n,a,r,t,p))})):R(t)&&t.forEach((function(r,e){d.set(e,X(r,n,a,e,t,p))}));var I=S?void 0:(x?A?m:s:A?b:r)(t);return B(I||t,(function(r,e){I&&(r=t[e=r]),j(d,e,X(r,n,a,e,t,p))})),d}function Y(r){return X(r,5)}T[G]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[J]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[H]=T["[object WeakMap]"]=!1;export{g as a,L as b,U as c,K as d,B as e,X as f,S as g,Y as h,N as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./p-DNIqLXTL.js";function o(o,t){return r(o,t)}export{o as i}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as e,h as r,a as n}from"./p-DBTJNfo7.js";import{g as i,b as o}from"./p-CgNJbSP4.js";import{i as a}from"./p-
|
|
1
|
+
import{r as t,c as e,h as r,a as n}from"./p-DBTJNfo7.js";import{g as i,b as o}from"./p-CgNJbSP4.js";import{i as a}from"./p-SvuA3Boo.js";import{_ as c,a as s,f as l,M as d,c as u,m as f,b as h}from"./p-ChRGk668.js";import{a as b,b as m,M as p}from"./p-BN1-aIOw.js";import{e as g}from"./p-CXgJVvTe.js";import"./p-DNIqLXTL.js";import"./p-DtS35Df5.js";import"./p-BJQylLSL.js";import"./p-efBXH4mj.js";import"./p-B8VKuhvH.js";import"./p-oiMYqRQ0.js";import"./p-D_uMnX5g.js";import"./p-CK4jS9_E.js";import"./p-f_1nwOC8.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2018 Google Inc.
|
|
@@ -42,7 +42,7 @@ import{r as t,c as e,h as r,a as n}from"./p-DBTJNfo7.js";import{g as i,b as o}fr
|
|
|
42
42
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
43
43
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
44
44
|
* THE SOFTWARE.
|
|
45
|
-
*/(document)}})},e.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},e.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},e.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},e.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},e}(u),S={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},A={CONTENT_SELECTOR:".mdc-tab-indicator__content"},O=function(t){function e(r){return t.call(this,s(s({},e.defaultAdapter),r))||this}return c(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return S},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return A},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},e}(d),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.activate=function(){this.adapter.addClass(O.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(O.cssClasses.ACTIVE)},e}(O),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),r=t.width/e.width,n=t.left-e.left;this.adapter.addClass(O.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+n+"px) scaleX("+r+")"),this.computeContentClientRect(),this.adapter.removeClass(O.cssClasses.NO_TRANSITION),this.adapter.addClass(O.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(O.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(O.cssClasses.ACTIVE)},e}(O),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(){this.content=this.root.querySelector(O.strings.CONTENT_SELECTOR)},e.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},e.prototype.getDefaultFoundation=function(){var t=this,e={addClass:function(e){return t.root.classList.add(e)},removeClass:function(e){return t.root.classList.remove(e)},computeContentClientRect:function(){return t.content.getBoundingClientRect()},setContentStyleProperty:function(e,r){t.content.style.setProperty(e,r)}};return this.root.classList.contains(O.cssClasses.FADE)?new R(e):new I(e)},e.prototype.activate=function(t){this.foundation.activate(t)},e.prototype.deactivate=function(){this.foundation.deactivate()},e}(u),L={ACTIVE:"mdc-tab--active"},z={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},D=function(t){function e(r){var n=t.call(this,s(s({},e.defaultAdapter),r))||this;return n.focusOnActivate=!0,n}return c(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return L},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return z},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.handleClick=function(){this.adapter.notifyInteracted()},e.prototype.isActive=function(){return this.adapter.hasClass(L.ACTIVE)},e.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},e.prototype.activate=function(t){this.adapter.addClass(L.ACTIVE),this.adapter.setAttr(z.ARIA_SELECTED,"true"),this.adapter.setAttr(z.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},e.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(L.ACTIVE),this.adapter.setAttr(z.ARIA_SELECTED,"false"),this.adapter.setAttr(z.TABINDEX,"-1"),this.adapter.deactivateIndicator())},e.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),e=this.adapter.getOffsetLeft(),r=this.adapter.getContentOffsetWidth(),n=this.adapter.getContentOffsetLeft();return{contentLeft:e+n,contentRight:e+n+r,rootLeft:e,rootRight:e+t}},e}(d),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(t,e){void 0===t&&(t=function(t,e){return new p(t,e)}),void 0===e&&(e=function(t){return new j(t)}),this.id=this.root.id;var r=new m(p.createAdapter(this));this.ripple=t(this.root,r);var n=this.root.querySelector(D.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=e(n),this.content=this.root.querySelector(D.strings.CONTENT_SELECTOR)},e.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},e.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),t.prototype.destroy.call(this)},e.prototype.getDefaultFoundation=function(){var t=this;return new D({setAttr:function(e,r){return t.root.setAttribute(e,r)},addClass:function(e){return t.root.classList.add(e)},removeClass:function(e){return t.root.classList.remove(e)},hasClass:function(e){return t.root.classList.contains(e)},activateIndicator:function(e){t.tabIndicator.activate(e)},deactivateIndicator:function(){t.tabIndicator.deactivate()},notifyInteracted:function(){return t.emit(D.strings.INTERACTED_EVENT,{tabId:t.id},!0)},getOffsetLeft:function(){return t.root.offsetLeft},getOffsetWidth:function(){return t.root.offsetWidth},getContentOffsetLeft:function(){return t.content.offsetLeft},getContentOffsetWidth:function(){return t.content.offsetWidth},focus:function(){return t.root.focus()}})},Object.defineProperty(e.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),e.prototype.activate=function(t){this.foundation.activate(t)},e.prototype.deactivate=function(){this.foundation.deactivate()},e.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},e.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},e.prototype.focus=function(){this.root.focus()},e}(u),N={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},P={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},W=new Set;W.add(N.ARROW_LEFT_KEY),W.add(N.ARROW_RIGHT_KEY),W.add(N.END_KEY),W.add(N.HOME_KEY),W.add(N.ENTER_KEY),W.add(N.SPACE_KEY);var B=new Map;B.set(P.ARROW_LEFT_KEYCODE,N.ARROW_LEFT_KEY),B.set(P.ARROW_RIGHT_KEYCODE,N.ARROW_RIGHT_KEY),B.set(P.END_KEYCODE,N.END_KEY),B.set(P.HOME_KEYCODE,N.HOME_KEY),B.set(P.ENTER_KEYCODE,N.ENTER_KEY),B.set(P.SPACE_KEYCODE,N.SPACE_KEY);var K=function(t){function e(r){var n=t.call(this,s(s({},e.defaultAdapter),r))||this;return n.useAutomaticActivation=!1,n}return c(e,t),Object.defineProperty(e,"strings",{get:function(){return N},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return P},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},e.prototype.activateTab=function(t){var e,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),e=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(t,e),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},e.prototype.handleKeyDown=function(t){var e=this.getKeyFromEvent(t);if(void 0!==e)if(this.isActivationKey(e)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(e))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),e);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var n=this.adapter.getFocusedTabIndex();this.isActivationKey(e)?this.adapter.setActiveTab(n):(r=this.determineTargetFromKey(n,e),this.adapter.focusTabAtIndex(r),this.scrollIntoView(r))}},e.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},e.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},e.prototype.determineTargetFromKey=function(t,e){var r=this.isRTL(),n=this.adapter.getTabListLength()-1,i=t;return e===N.END_KEY?i=n:e===N.ARROW_LEFT_KEY&&!r||e===N.ARROW_RIGHT_KEY&&r?i-=1:e===N.ARROW_RIGHT_KEY&&!r||e===N.ARROW_LEFT_KEY&&r?i+=1:i=0,i<0?i=n:i>n&&(i=0),i},e.prototype.calculateScrollIncrement=function(t,e,r,n){var i=this.adapter.getTabDimensionsAtIndex(e),o=i.contentLeft-r-n+P.EXTRA_SCROLL_AMOUNT;return e<t?Math.min(i.contentRight-r-P.EXTRA_SCROLL_AMOUNT,0):Math.max(o,0)},e.prototype.calculateScrollIncrementRTL=function(t,e,r,n,i){var o=this.adapter.getTabDimensionsAtIndex(e),a=i-o.contentLeft-r-P.EXTRA_SCROLL_AMOUNT;return e>t?Math.max(i-o.contentRight-r-n+P.EXTRA_SCROLL_AMOUNT,0):Math.min(a,0)},e.prototype.findAdjacentTabIndexClosestToEdge=function(t,e,r,n){var i=e.rootLeft-r,o=e.rootRight-r-n,a=i+o;return i<0||a<0?t-1:o>0||a>0?t+1:-1},e.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,e,r,n,i){var o=i-e.rootLeft-n-r,a=i-e.rootRight-r,c=o+a;return o>0||c>0?t+1:a<0||c<0?t-1:-1},e.prototype.getKeyFromEvent=function(t){return W.has(t.key)?t.key:B.get(t.keyCode)},e.prototype.isActivationKey=function(t){return t===N.SPACE_KEY||t===N.ENTER_KEY},e.prototype.indexIsInRange=function(t){return t>=0&&t<this.adapter.getTabListLength()},e.prototype.isRTL=function(){return this.adapter.isRTL()},e.prototype.scrollIntoViewImpl=function(t){var e=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),n=this.adapter.getTabDimensionsAtIndex(t),i=this.findAdjacentTabIndexClosestToEdge(t,n,e,r);if(this.indexIsInRange(i)){var o=this.calculateScrollIncrement(t,i,e,r);this.adapter.incrementScroll(o)}},e.prototype.scrollIntoViewImplRTL=function(t){var e=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),n=this.adapter.getTabDimensionsAtIndex(t),i=this.adapter.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL(t,n,e,r,i);if(this.indexIsInRange(o)){var a=this.calculateScrollIncrementRTL(t,o,e,r,i);this.adapter.incrementScroll(a)}},e}(d),Y=K.strings,H=0,V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.attachTo=function(t){return new e(t)},Object.defineProperty(e.prototype,"focusOnActivate",{set:function(t){var e,r;try{for(var n=h(this.tabList),i=n.next();!i.done;i=n.next())i.value.focusOnActivate=t}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),e.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new M(t)}),void 0===e&&(e=function(t){return new E(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(e)},e.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction=function(e){t.foundation.handleTabInteraction(e)},this.handleKeyDown=function(e){t.foundation.handleKeyDown(e)},this.listen(D.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var e=0;e<this.tabList.length;e++)if(this.tabList[e].active){this.scrollIntoView(e);break}},e.prototype.destroy=function(){var e,r;t.prototype.destroy.call(this),this.unlisten(D.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var n=h(this.tabList),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}this.tabScroller&&this.tabScroller.destroy()},e.prototype.getDefaultFoundation=function(){var t=this;return new K({scrollTo:function(e){t.tabScroller.scrollTo(e)},incrementScroll:function(e){t.tabScroller.incrementScroll(e)},getScrollPosition:function(){return t.tabScroller.getScrollPosition()},getScrollContentWidth:function(){return t.tabScroller.getScrollContentWidth()},getOffsetWidth:function(){return t.root.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(t.root).getPropertyValue("direction")},setActiveTab:function(e){t.foundation.activateTab(e)},activateTabAtIndex:function(e,r){t.tabList[e].activate(r)},deactivateTabAtIndex:function(e){t.tabList[e].deactivate()},focusTabAtIndex:function(e){t.tabList[e].focus()},getTabIndicatorClientRectAtIndex:function(e){return t.tabList[e].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(e){return t.tabList[e].computeDimensions()},getPreviousActiveTabIndex:function(){for(var e=0;e<t.tabList.length;e++)if(t.tabList[e].active)return e;return-1},getFocusedTabIndex:function(){var e=t.getTabElements(),r=document.activeElement;return e.indexOf(r)},getIndexOfTabById:function(e){for(var r=0;r<t.tabList.length;r++)if(t.tabList[r].id===e)return r;return-1},getTabListLength:function(){return t.tabList.length},notifyTabActivated:function(e){return t.emit(Y.TAB_ACTIVATED_EVENT,{index:e},!0)}})},e.prototype.activateTab=function(t){this.foundation.activateTab(t)},e.prototype.scrollIntoView=function(t){this.foundation.scrollIntoView(t)},e.prototype.getTabElements=function(){return[].slice.call(this.root.querySelectorAll(Y.TAB_SELECTOR))},e.prototype.instantiateTabs=function(t){return this.getTabElements().map((function(e){return e.id=e.id||"mdc-tab-"+ ++H,t(e)}))},e.prototype.instantiatetabScroller=function(t){var e=this.root.querySelector(Y.TAB_SCROLLER_SELECTOR);return e?t(e):null},e}(u);
|
|
45
|
+
*/(document)}})},e.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},e.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},e.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},e.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},e}(u),S={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},A={CONTENT_SELECTOR:".mdc-tab-indicator__content"},O=function(t){function e(r){return t.call(this,s(s({},e.defaultAdapter),r))||this}return c(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return S},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return A},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},e}(d),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.activate=function(){this.adapter.addClass(O.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(O.cssClasses.ACTIVE)},e}(O),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),r=t.width/e.width,n=t.left-e.left;this.adapter.addClass(O.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+n+"px) scaleX("+r+")"),this.computeContentClientRect(),this.adapter.removeClass(O.cssClasses.NO_TRANSITION),this.adapter.addClass(O.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(O.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(O.cssClasses.ACTIVE)},e}(O),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(){this.content=this.root.querySelector(O.strings.CONTENT_SELECTOR)},e.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},e.prototype.getDefaultFoundation=function(){var t=this,e={addClass:function(e){return t.root.classList.add(e)},removeClass:function(e){return t.root.classList.remove(e)},computeContentClientRect:function(){return t.content.getBoundingClientRect()},setContentStyleProperty:function(e,r){t.content.style.setProperty(e,r)}};return this.root.classList.contains(O.cssClasses.FADE)?new R(e):new I(e)},e.prototype.activate=function(t){this.foundation.activate(t)},e.prototype.deactivate=function(){this.foundation.deactivate()},e}(u),j={ACTIVE:"mdc-tab--active"},z={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},D=function(t){function e(r){var n=t.call(this,s(s({},e.defaultAdapter),r))||this;return n.focusOnActivate=!0,n}return c(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return j},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return z},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.handleClick=function(){this.adapter.notifyInteracted()},e.prototype.isActive=function(){return this.adapter.hasClass(j.ACTIVE)},e.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},e.prototype.activate=function(t){this.adapter.addClass(j.ACTIVE),this.adapter.setAttr(z.ARIA_SELECTED,"true"),this.adapter.setAttr(z.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},e.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(j.ACTIVE),this.adapter.setAttr(z.ARIA_SELECTED,"false"),this.adapter.setAttr(z.TABINDEX,"-1"),this.adapter.deactivateIndicator())},e.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),e=this.adapter.getOffsetLeft(),r=this.adapter.getContentOffsetWidth(),n=this.adapter.getContentOffsetLeft();return{contentLeft:e+n,contentRight:e+n+r,rootLeft:e,rootRight:e+t}},e}(d),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(t,e){void 0===t&&(t=function(t,e){return new p(t,e)}),void 0===e&&(e=function(t){return new L(t)}),this.id=this.root.id;var r=new m(p.createAdapter(this));this.ripple=t(this.root,r);var n=this.root.querySelector(D.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=e(n),this.content=this.root.querySelector(D.strings.CONTENT_SELECTOR)},e.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},e.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),t.prototype.destroy.call(this)},e.prototype.getDefaultFoundation=function(){var t=this;return new D({setAttr:function(e,r){return t.root.setAttribute(e,r)},addClass:function(e){return t.root.classList.add(e)},removeClass:function(e){return t.root.classList.remove(e)},hasClass:function(e){return t.root.classList.contains(e)},activateIndicator:function(e){t.tabIndicator.activate(e)},deactivateIndicator:function(){t.tabIndicator.deactivate()},notifyInteracted:function(){return t.emit(D.strings.INTERACTED_EVENT,{tabId:t.id},!0)},getOffsetLeft:function(){return t.root.offsetLeft},getOffsetWidth:function(){return t.root.offsetWidth},getContentOffsetLeft:function(){return t.content.offsetLeft},getContentOffsetWidth:function(){return t.content.offsetWidth},focus:function(){return t.root.focus()}})},Object.defineProperty(e.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),e.prototype.activate=function(t){this.foundation.activate(t)},e.prototype.deactivate=function(){this.foundation.deactivate()},e.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},e.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},e.prototype.focus=function(){this.root.focus()},e}(u),N={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},P={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},B=new Set;B.add(N.ARROW_LEFT_KEY),B.add(N.ARROW_RIGHT_KEY),B.add(N.END_KEY),B.add(N.HOME_KEY),B.add(N.ENTER_KEY),B.add(N.SPACE_KEY);var W=new Map;W.set(P.ARROW_LEFT_KEYCODE,N.ARROW_LEFT_KEY),W.set(P.ARROW_RIGHT_KEYCODE,N.ARROW_RIGHT_KEY),W.set(P.END_KEYCODE,N.END_KEY),W.set(P.HOME_KEYCODE,N.HOME_KEY),W.set(P.ENTER_KEYCODE,N.ENTER_KEY),W.set(P.SPACE_KEYCODE,N.SPACE_KEY);var K=function(t){function e(r){var n=t.call(this,s(s({},e.defaultAdapter),r))||this;return n.useAutomaticActivation=!1,n}return c(e,t),Object.defineProperty(e,"strings",{get:function(){return N},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return P},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},e.prototype.activateTab=function(t){var e,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),e=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(t,e),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},e.prototype.handleKeyDown=function(t){var e=this.getKeyFromEvent(t);if(void 0!==e)if(this.isActivationKey(e)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(e))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),e);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var n=this.adapter.getFocusedTabIndex();this.isActivationKey(e)?this.adapter.setActiveTab(n):(r=this.determineTargetFromKey(n,e),this.adapter.focusTabAtIndex(r),this.scrollIntoView(r))}},e.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},e.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},e.prototype.determineTargetFromKey=function(t,e){var r=this.isRTL(),n=this.adapter.getTabListLength()-1,i=t;return e===N.END_KEY?i=n:e===N.ARROW_LEFT_KEY&&!r||e===N.ARROW_RIGHT_KEY&&r?i-=1:e===N.ARROW_RIGHT_KEY&&!r||e===N.ARROW_LEFT_KEY&&r?i+=1:i=0,i<0?i=n:i>n&&(i=0),i},e.prototype.calculateScrollIncrement=function(t,e,r,n){var i=this.adapter.getTabDimensionsAtIndex(e),o=i.contentLeft-r-n+P.EXTRA_SCROLL_AMOUNT;return e<t?Math.min(i.contentRight-r-P.EXTRA_SCROLL_AMOUNT,0):Math.max(o,0)},e.prototype.calculateScrollIncrementRTL=function(t,e,r,n,i){var o=this.adapter.getTabDimensionsAtIndex(e),a=i-o.contentLeft-r-P.EXTRA_SCROLL_AMOUNT;return e>t?Math.max(i-o.contentRight-r-n+P.EXTRA_SCROLL_AMOUNT,0):Math.min(a,0)},e.prototype.findAdjacentTabIndexClosestToEdge=function(t,e,r,n){var i=e.rootLeft-r,o=e.rootRight-r-n,a=i+o;return i<0||a<0?t-1:o>0||a>0?t+1:-1},e.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,e,r,n,i){var o=i-e.rootLeft-n-r,a=i-e.rootRight-r,c=o+a;return o>0||c>0?t+1:a<0||c<0?t-1:-1},e.prototype.getKeyFromEvent=function(t){return B.has(t.key)?t.key:W.get(t.keyCode)},e.prototype.isActivationKey=function(t){return t===N.SPACE_KEY||t===N.ENTER_KEY},e.prototype.indexIsInRange=function(t){return t>=0&&t<this.adapter.getTabListLength()},e.prototype.isRTL=function(){return this.adapter.isRTL()},e.prototype.scrollIntoViewImpl=function(t){var e=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),n=this.adapter.getTabDimensionsAtIndex(t),i=this.findAdjacentTabIndexClosestToEdge(t,n,e,r);if(this.indexIsInRange(i)){var o=this.calculateScrollIncrement(t,i,e,r);this.adapter.incrementScroll(o)}},e.prototype.scrollIntoViewImplRTL=function(t){var e=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),n=this.adapter.getTabDimensionsAtIndex(t),i=this.adapter.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL(t,n,e,r,i);if(this.indexIsInRange(o)){var a=this.calculateScrollIncrementRTL(t,o,e,r,i);this.adapter.incrementScroll(a)}},e}(d),Y=K.strings,H=0,V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.attachTo=function(t){return new e(t)},Object.defineProperty(e.prototype,"focusOnActivate",{set:function(t){var e,r;try{for(var n=h(this.tabList),i=n.next();!i.done;i=n.next())i.value.focusOnActivate=t}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),e.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new M(t)}),void 0===e&&(e=function(t){return new E(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(e)},e.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction=function(e){t.foundation.handleTabInteraction(e)},this.handleKeyDown=function(e){t.foundation.handleKeyDown(e)},this.listen(D.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var e=0;e<this.tabList.length;e++)if(this.tabList[e].active){this.scrollIntoView(e);break}},e.prototype.destroy=function(){var e,r;t.prototype.destroy.call(this),this.unlisten(D.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var n=h(this.tabList),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}this.tabScroller&&this.tabScroller.destroy()},e.prototype.getDefaultFoundation=function(){var t=this;return new K({scrollTo:function(e){t.tabScroller.scrollTo(e)},incrementScroll:function(e){t.tabScroller.incrementScroll(e)},getScrollPosition:function(){return t.tabScroller.getScrollPosition()},getScrollContentWidth:function(){return t.tabScroller.getScrollContentWidth()},getOffsetWidth:function(){return t.root.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(t.root).getPropertyValue("direction")},setActiveTab:function(e){t.foundation.activateTab(e)},activateTabAtIndex:function(e,r){t.tabList[e].activate(r)},deactivateTabAtIndex:function(e){t.tabList[e].deactivate()},focusTabAtIndex:function(e){t.tabList[e].focus()},getTabIndicatorClientRectAtIndex:function(e){return t.tabList[e].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(e){return t.tabList[e].computeDimensions()},getPreviousActiveTabIndex:function(){for(var e=0;e<t.tabList.length;e++)if(t.tabList[e].active)return e;return-1},getFocusedTabIndex:function(){var e=t.getTabElements(),r=document.activeElement;return e.indexOf(r)},getIndexOfTabById:function(e){for(var r=0;r<t.tabList.length;r++)if(t.tabList[r].id===e)return r;return-1},getTabListLength:function(){return t.tabList.length},notifyTabActivated:function(e){return t.emit(Y.TAB_ACTIVATED_EVENT,{index:e},!0)}})},e.prototype.activateTab=function(t){this.foundation.activateTab(t)},e.prototype.scrollIntoView=function(t){this.foundation.scrollIntoView(t)},e.prototype.getTabElements=function(){return[].slice.call(this.root.querySelectorAll(Y.TAB_SELECTOR))},e.prototype.instantiateTabs=function(t){return this.getTabElements().map((function(e){return e.id=e.id||"mdc-tab-"+ ++H,t(e)}))},e.prototype.instantiatetabScroller=function(t){var e=this.root.querySelector(Y.TAB_SCROLLER_SELECTOR);return e?t(e):null},e}(u);
|
|
46
46
|
/**
|
|
47
47
|
* @license
|
|
48
48
|
* Copyright 2018 Google Inc.
|
|
@@ -64,4 +64,4 @@ import{r as t,c as e,h as r,a as n}from"./p-DBTJNfo7.js";import{g as i,b as o}fr
|
|
|
64
64
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
65
65
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
66
66
|
* THE SOFTWARE.
|
|
67
|
-
*/const{TAB_ACTIVATED_EVENT:F}=N,X=class{constructor(r){t(this,r),this.changeTab=e(this,"changeTab"),this.tabs=[],this.canScrollLeft=!1,this.canScrollRight=!1,this.setupMdc=!1,this.handleTabActivated=this.handleTabActivated.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleLeftScrollClick=this.handleLeftScrollClick.bind(this),this.handleRightScrollClick=this.handleRightScrollClick.bind(this),this.renderTab=this.renderTab.bind(this)}connectedCallback(){this.setup()}componentDidLoad(){this.setup(),this.triggerIconColorWarning()}componentDidUpdate(){this.setupMdc&&(this.setup(),this.setupMdc=!1)}disconnectedCallback(){this.tearDown()}render(){return r("div",{key:"5fcbc5f69907b3437a7c17d18d5356ac45f84ea4",class:"mdc-tab-bar",role:"tablist"},r("div",{key:"0ec7bac2105ac5a2620379a907fc660344387539",class:{"mdc-tab-scroller":!0,"can-scroll-left":this.canScrollLeft,"can-scroll-right":this.canScrollRight}},r("div",{key:"e4bd200335ff91ff6cb6476fef0c30ff90ee1c44",class:"mdc-tab-scroller__scroll-area lime-hide-scrollbars"},r("div",{key:"c3f774e3524131d4d42c34eb1884ac95a173422e",class:"mdc-tab-scroller__scroll-content"},this.tabs.map(this.renderTab))),r("div",{key:"babdaf65720c52c03cf4bfedee68993ead018e94",class:"scroll-fade left"}),r("div",{key:"fe06945559ccf14921f523776a15f68f62496804",class:"scroll-button left"},r("button",{key:"5a6098a7776d635f9aaa9a7f59b4e7024f270ee1",type:"button",tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollLeft,onClick:this.handleLeftScrollClick},r("limel-icon",{key:"89bdf714b634b0ec7d56d3b1b66961a74999e9e6",name:"angle_left"}))),r("div",{key:"e7c6d0adb6634015c3482a3787451ffcfa37ee90",class:"scroll-fade right"}),r("div",{key:"97d2229df3f45d495ec59f97ae92c53fa63a5cab",class:"scroll-button right"},r("button",{key:"1d4c1bf329e8739802faa4040d7438aa4c2056f0",type:"button",tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollRight,onClick:this.handleRightScrollClick},r("limel-icon",{key:"1bc8b53f7958170c51aac799e05d441e5d6666c7",name:"angle_right"})))))}tabsChanged(t=[],e=[]){const r=t.map((t=>t.id)),n=e.map((t=>t.id));a(r,n)||(this.setupMdc=!0,this.tearDown())}handleWindowResize(){this.scrollArea&&this.handleScroll()}setup(){const t=this.host.shadowRoot.querySelector(".mdc-tab-bar");t&&(this.mdcTabBar=new V(t),this.mdcTabBar.focusOnActivate=!0,this.mdcTabBar.useAutomaticActivation=!0,this.scrollArea=t.querySelector(".mdc-tab-scroller__scroll-area"),this.scrollContent=t.querySelector(".mdc-tab-scroller__scroll-content"),this.setupListeners(),setTimeout(this.handleScroll,0))}tearDown(){this.scrollArea&&this.scrollArea.removeEventListener("scroll",this.handleScroll),this.mdcTabBar&&(this.mdcTabBar.unlisten(F,this.handleTabActivated),this.mdcTabBar.destroy())}setupListeners(){this.mdcTabBar.listen(F,this.handleTabActivated),this.scrollArea.addEventListener("scroll",this.handleScroll,{passive:!0})}handleTabActivated(t){const e=function(t,e){const r=t.findIndex((t=>!0===t.active)),n=[...t];return-1!==r&&(n[r]=Object.assign(Object.assign({},t[r]),{active:!1})),n[e]=Object.assign(Object.assign({},t[e]),{active:!0}),n}(this.tabs,t.detail.index);g(e,this.tabs).sort(this.sortByInactive).forEach((t=>{this.changeTab.emit(t)})),this.tabs=e}sortByInactive(t,e){return Number(t.active)-Number(e.active)}handleScroll(){const t=this.scrollArea.scrollLeft,e=Math.floor(this.scrollContent.getBoundingClientRect().width-this.scrollArea.getBoundingClientRect().width-t);this.canScrollLeft=t>40,this.canScrollRight=e>40}handleLeftScrollClick(){const t=this.getScrollDistance();this.scrollArea.scroll({left:this.scrollArea.scrollLeft-t,behavior:"smooth"})}handleRightScrollClick(){const t=this.getScrollDistance();this.scrollArea.scroll({left:this.scrollArea.scrollLeft+t,behavior:"smooth"})}getScrollDistance(){if(!this.scrollArea)return 150;const t=this.scrollArea.getBoundingClientRect().width;return Math.max(.8*t,150)}renderIcon(t){if(!t.icon)return;const e=i(t.icon),n=o(t.icon,t.iconColor),a={color:""};return n&&(a.color=n),r("limel-icon",{class:"mdc-tab__icon",name:e,style:a,size:"small","aria-hidden":"true"})}renderTab(t){return r("button",{class:{"mdc-tab":!0,"mdc-tab--active":!!t.active},role:"tab","aria-selected":t.active?"true":"false",tabindex:t.active?0:-1},r("span",{class:"mdc-tab__content"},this.renderIcon(t),r("span",{class:"mdc-tab__text-label"},t.text),t.badge?r("limel-badge",{label:t.badge}):""),r("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":!!t.active}},r("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),r("span",{class:"mdc-tab__ripple"}))}triggerIconColorWarning(){this.tabs.some((t=>t.iconColor))&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return n(this)}static get watchers(){return{tabs:[{tabsChanged:0}]}}};X.style="@charset \"UTF-8\";.scroll-fade,.scroll-button{position:absolute;transition-property:transform;transition-duration:0.3s;transition-timing-function:ease-out}.scroll-fade{top:0;height:100%;width:4rem;pointer-events:none}.scroll-fade.left{transform:translate3d(-4rem, 0, 0);left:0;background:linear-gradient(270deg, rgba(var(--limel-tab-background-color), 0) 0%, rgba(var(--limel-tab-background-color), 0.8) 40%, rgba(var(--limel-tab-background-color), 0.8) 100%)}.scroll-fade.right{transform:translate3d(4rem, 0, 0);right:0;background:linear-gradient(90deg, rgba(var(--limel-tab-background-color), 0) 0%, rgba(var(--limel-tab-background-color), 0.8) 40%, rgba(var(--limel-tab-background-color), 0.8) 100%)}.scroll-button{display:flex;align-items:center;top:0;bottom:0}.scroll-button.left{transform:translate3d(-4rem, 0, 0);left:0.25rem}.scroll-button.right{transform:translate3d(4rem, 0, 0);right:0.25rem}.scroll-button:hover{transform:translate3d(0, 0, 0)}.scroll-button button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;display:flex;align-items:center;justify-content:center;width:1.25rem;height:calc(100% - 0.25rem * 2);border-radius:0.25rem}.scroll-button button:not(:disabled){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal)}.scroll-button button:not(:disabled):hover,.scroll-button button:not(:disabled):focus,.scroll-button button:not(:disabled):focus-visible{will-change:color, background-color, box-shadow, transform}.scroll-button button:not(:disabled):hover,.scroll-button button:not(:disabled):focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}.scroll-button button:not(:disabled):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.scroll-button button:not(:disabled):hover,.scroll-button button:not(:disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.scroll-button limel-icon{width:1rem}.mdc-tab-scroller{position:relative;overflow:hidden}.mdc-tab-scroller.can-scroll-left .scroll-fade.left,.mdc-tab-scroller.can-scroll-left .scroll-button.left,.mdc-tab-scroller.can-scroll-right .scroll-fade.right,.mdc-tab-scroller.can-scroll-right .scroll-button.right{transform:translate3d(0, 0, 0)}.mdc-tab-scroller.can-scroll-left:not(.can-scroll-right) .scroll-button.right,.mdc-tab-scroller.can-scroll-right:not(.can-scroll-left) .scroll-button.left{opacity:0.5;transition-delay:0.5s}.lime-hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.mdc-tab-scroller__scroll-content{padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0 var(--limel-tab-active-outer-edge-curve-size);background-color:rgb(var(--limel-tab-background-color))}.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab{position:relative}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab{font-family:inherit;font-weight:400;letter-spacing:normal;font-size:var(--limel-theme-default-font-size);text-transform:none}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:var(--limel-tab-border-radius);border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;padding-right:1rem;padding-left:1rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem}.mdc-tab:not(.mdc-tab--active):after{content:\"\";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab .mdc-tab__icon{color:rgb(var(--contrast-800));margin-left:-0.25rem}.mdc-tab limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.mdc-tab--active{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:\"\";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\")}.mdc-tab--active:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}.mdc-tab--active:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab--active .mdc-tab__icon{color:var(--mdc-theme-primary)}.mdc-tab__content{gap:0.375rem}.mdc-tab .mdc-tab__text-label{transition:color 0.2s ease;padding-left:0 !important;color:var(--limel-theme-on-surface-color)}.mdc-tab:hover .mdc-tab__text-label{color:var(--limel-theme-text-primary-on-background-color)}.mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--lime-primary-color, var(--limel-theme-primary-color))}";export{X as limel_tab_bar}
|
|
67
|
+
*/const{TAB_ACTIVATED_EVENT:X}=N,F=class{constructor(r){t(this,r),this.changeTab=e(this,"changeTab"),this.tabs=[],this.canScrollLeft=!1,this.canScrollRight=!1,this.setupMdc=!1,this.handleTabActivated=this.handleTabActivated.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleLeftScrollClick=this.handleLeftScrollClick.bind(this),this.handleRightScrollClick=this.handleRightScrollClick.bind(this),this.renderTab=this.renderTab.bind(this)}connectedCallback(){this.setup()}componentDidLoad(){this.setup(),this.triggerIconColorWarning()}componentDidUpdate(){this.setupMdc&&(this.setup(),this.setupMdc=!1)}disconnectedCallback(){this.tearDown()}render(){return r("div",{key:"5fcbc5f69907b3437a7c17d18d5356ac45f84ea4",class:"mdc-tab-bar",role:"tablist"},r("div",{key:"0ec7bac2105ac5a2620379a907fc660344387539",class:{"mdc-tab-scroller":!0,"can-scroll-left":this.canScrollLeft,"can-scroll-right":this.canScrollRight}},r("div",{key:"e4bd200335ff91ff6cb6476fef0c30ff90ee1c44",class:"mdc-tab-scroller__scroll-area lime-hide-scrollbars"},r("div",{key:"c3f774e3524131d4d42c34eb1884ac95a173422e",class:"mdc-tab-scroller__scroll-content"},this.tabs.map(this.renderTab))),r("div",{key:"babdaf65720c52c03cf4bfedee68993ead018e94",class:"scroll-fade left"}),r("div",{key:"fe06945559ccf14921f523776a15f68f62496804",class:"scroll-button left"},r("button",{key:"5a6098a7776d635f9aaa9a7f59b4e7024f270ee1",type:"button",tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollLeft,onClick:this.handleLeftScrollClick},r("limel-icon",{key:"89bdf714b634b0ec7d56d3b1b66961a74999e9e6",name:"angle_left"}))),r("div",{key:"e7c6d0adb6634015c3482a3787451ffcfa37ee90",class:"scroll-fade right"}),r("div",{key:"97d2229df3f45d495ec59f97ae92c53fa63a5cab",class:"scroll-button right"},r("button",{key:"1d4c1bf329e8739802faa4040d7438aa4c2056f0",type:"button",tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollRight,onClick:this.handleRightScrollClick},r("limel-icon",{key:"1bc8b53f7958170c51aac799e05d441e5d6666c7",name:"angle_right"})))))}tabsChanged(t=[],e=[]){const r=t.map((t=>t.id)),n=e.map((t=>t.id));a(r,n)||(this.setupMdc=!0,this.tearDown())}handleWindowResize(){this.scrollArea&&this.handleScroll()}setup(){const t=this.host.shadowRoot.querySelector(".mdc-tab-bar");t&&(this.mdcTabBar=new V(t),this.mdcTabBar.focusOnActivate=!0,this.mdcTabBar.useAutomaticActivation=!0,this.scrollArea=t.querySelector(".mdc-tab-scroller__scroll-area"),this.scrollContent=t.querySelector(".mdc-tab-scroller__scroll-content"),this.setupListeners(),setTimeout(this.handleScroll,0))}tearDown(){this.scrollArea&&this.scrollArea.removeEventListener("scroll",this.handleScroll),this.mdcTabBar&&(this.mdcTabBar.unlisten(X,this.handleTabActivated),this.mdcTabBar.destroy())}setupListeners(){this.mdcTabBar.listen(X,this.handleTabActivated),this.scrollArea.addEventListener("scroll",this.handleScroll,{passive:!0})}handleTabActivated(t){const e=function(t,e){const r=t.findIndex((t=>!0===t.active)),n=[...t];return-1!==r&&(n[r]=Object.assign(Object.assign({},t[r]),{active:!1})),n[e]=Object.assign(Object.assign({},t[e]),{active:!0}),n}(this.tabs,t.detail.index);g(e,this.tabs).sort(this.sortByInactive).forEach((t=>{this.changeTab.emit(t)})),this.tabs=e}sortByInactive(t,e){return Number(t.active)-Number(e.active)}handleScroll(){const t=this.scrollArea.scrollLeft,e=Math.floor(this.scrollContent.getBoundingClientRect().width-this.scrollArea.getBoundingClientRect().width-t);this.canScrollLeft=t>40,this.canScrollRight=e>40}handleLeftScrollClick(){const t=this.getScrollDistance();this.scrollArea.scroll({left:this.scrollArea.scrollLeft-t,behavior:"smooth"})}handleRightScrollClick(){const t=this.getScrollDistance();this.scrollArea.scroll({left:this.scrollArea.scrollLeft+t,behavior:"smooth"})}getScrollDistance(){if(!this.scrollArea)return 150;const t=this.scrollArea.getBoundingClientRect().width;return Math.max(.8*t,150)}renderIcon(t){if(!t.icon)return;const e=i(t.icon),n=o(t.icon,t.iconColor),a={color:""};return n&&(a.color=n),r("limel-icon",{class:"mdc-tab__icon",name:e,style:a,size:"small","aria-hidden":"true"})}renderTab(t){return r("button",{class:{"mdc-tab":!0,"mdc-tab--active":!!t.active},role:"tab","aria-selected":t.active?"true":"false",tabindex:t.active?0:-1},r("span",{class:"mdc-tab__content"},this.renderIcon(t),r("span",{class:"mdc-tab__text-label"},t.text),t.badge?r("limel-badge",{label:t.badge}):""),r("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":!!t.active}},r("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),r("span",{class:"mdc-tab__ripple"}))}triggerIconColorWarning(){this.tabs.some((t=>t.iconColor))&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return n(this)}static get watchers(){return{tabs:[{tabsChanged:0}]}}};F.style="@charset \"UTF-8\";.scroll-fade,.scroll-button{position:absolute;transition-property:transform;transition-duration:0.3s;transition-timing-function:ease-out}.scroll-fade{top:0;height:100%;width:4rem;pointer-events:none}.scroll-fade.left{transform:translate3d(-4rem, 0, 0);left:0;background:linear-gradient(270deg, rgba(var(--limel-tab-background-color), 0) 0%, rgba(var(--limel-tab-background-color), 0.8) 40%, rgba(var(--limel-tab-background-color), 0.8) 100%)}.scroll-fade.right{transform:translate3d(4rem, 0, 0);right:0;background:linear-gradient(90deg, rgba(var(--limel-tab-background-color), 0) 0%, rgba(var(--limel-tab-background-color), 0.8) 40%, rgba(var(--limel-tab-background-color), 0.8) 100%)}.scroll-button{display:flex;align-items:center;top:0;bottom:0}.scroll-button.left{transform:translate3d(-4rem, 0, 0);left:0.25rem}.scroll-button.right{transform:translate3d(4rem, 0, 0);right:0.25rem}.scroll-button:hover{transform:translate3d(0, 0, 0)}.scroll-button button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;display:flex;align-items:center;justify-content:center;width:1.25rem;height:calc(100% - 0.25rem * 2);border-radius:0.25rem}.scroll-button button:not(:disabled){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal)}.scroll-button button:not(:disabled):hover,.scroll-button button:not(:disabled):focus,.scroll-button button:not(:disabled):focus-visible{will-change:color, background-color, box-shadow, transform}.scroll-button button:not(:disabled):hover,.scroll-button button:not(:disabled):focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}.scroll-button button:not(:disabled):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.scroll-button button:not(:disabled):hover,.scroll-button button:not(:disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.scroll-button limel-icon{width:1rem}.mdc-tab-scroller{position:relative;overflow:hidden}.mdc-tab-scroller.can-scroll-left .scroll-fade.left,.mdc-tab-scroller.can-scroll-left .scroll-button.left,.mdc-tab-scroller.can-scroll-right .scroll-fade.right,.mdc-tab-scroller.can-scroll-right .scroll-button.right{transform:translate3d(0, 0, 0)}.mdc-tab-scroller.can-scroll-left:not(.can-scroll-right) .scroll-button.right,.mdc-tab-scroller.can-scroll-right:not(.can-scroll-left) .scroll-button.left{opacity:0.5;transition-delay:0.5s}.lime-hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.mdc-tab-scroller__scroll-content{padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0 var(--limel-tab-active-outer-edge-curve-size);background-color:rgb(var(--limel-tab-background-color))}.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab{position:relative}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab{font-family:inherit;font-weight:400;letter-spacing:normal;font-size:var(--limel-theme-default-font-size);text-transform:none}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:var(--limel-tab-border-radius);border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;padding-right:1rem;padding-left:1rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem}.mdc-tab:not(.mdc-tab--active):after{content:\"\";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab .mdc-tab__icon{color:rgb(var(--contrast-800));margin-left:-0.25rem}.mdc-tab limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.mdc-tab--active{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;background-color:var(--limel-active-tab-background-color);z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:\"\";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;bottom:0;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\")}.mdc-tab--active:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}.mdc-tab--active:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab--active .mdc-tab__icon{color:var(--mdc-theme-primary)}.mdc-tab__content{gap:0.375rem}.mdc-tab .mdc-tab__text-label{transition:color 0.2s ease;padding-left:0 !important;color:var(--limel-theme-on-surface-color)}.mdc-tab:hover .mdc-tab__text-label{color:var(--limel-theme-text-primary-on-background-color)}.mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--lime-primary-color, var(--limel-theme-primary-color))}";export{F as limel_tab_bar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,a as r}from"./p-DBTJNfo7.js";import{c as o,i as a}from"./p-CWuGCKo1.js";import{a as n}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,H as e,a as r}from"./p-DBTJNfo7.js";import{c as o,i as a}from"./p-CWuGCKo1.js";import{a as n}from"./p-C3Myy3mA.js";import{c as h}from"./p-BTHqaZIi.js";import{i as l}from"./p-B8VKuhvH.js";import{c}from"./p-JbKhhoXs.js";import"./p-DlJXKdhK.js";import"./p-CgNJbSP4.js";import"./p-DNIqLXTL.js";import"./p-DtS35Df5.js";import"./p-BJQylLSL.js";import"./p-efBXH4mj.js";import"./p-oiMYqRQ0.js";import"./p-D_uMnX5g.js";import"./p-BOEi1C7r.js";import"./p-CK4jS9_E.js";function p(t,i,s,e){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];i(e,a,s(a),t)}return e}function f(t,i,s,e){return n(t,(function(t,r,o){i(e,t,s(t),o)})),e}var d,m,b=(d=function(t,i,s){t[s?0:1].push(i)},m=function(){return[[],[]]},function(t,i){var s=l(t)?p:f,e=m?[[],[]]:{};return s(t,d,h(i),e)});const u=class{constructor(e){t(this,e),this.filesSelected=i(this,"filesSelected"),this.filesRejected=i(this,"filesRejected"),this.accept="*",this.disabled=!1,this.helperText="",this.hasFileToDrop=!1,this.renderOnDragLayout=()=>{if(!this.disabled&&this.hasFileToDrop)return s("div",{class:"has-file-to-drop"},s("limel-icon",{class:"icon",name:"upload_2"}),s("div",{class:"text-helpertext"},this.renderText(),this.renderHelperText()))},this.renderText=()=>{if(this.text)return s("span",{class:"text"},this.text)},this.renderHelperText=()=>{if(this.helperText)return s("span",{class:"helper-text"},this.helperText)},this.handleDrop=t=>{if(t.stopPropagation(),t.preventDefault(),this.hasFileToDrop=!1,this.disabled)return;const i=[...t.dataTransfer.files].map(o),[s,e]=b(i,(t=>a(t,this.accept)));s.length>0&&this.filesSelected.emit(s),e.length>0&&this.filesRejected.emit(e)},this.handleDragOver=t=>{this.hasFileToDrop=!0,t.preventDefault()},this.handleDragLeave=t=>{this.hasFileToDrop=!1,t.preventDefault()}}render(){return s(e,{key:"a66ef9c3d9a005567749b61967a63caa4496135a",onDrop:this.handleDrop,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave},s("slot",{key:"7a770aa9f98365da4b83038662f04c0e9e5c20c6"}),this.renderOnDragLayout())}};u.style=":host(limel-file-dropzone){display:block;position:relative}.has-file-to-drop{animation:display-drop-zone 0.6s ease forwards;box-sizing:border-box;isolation:isolate;z-index:1;position:absolute;inset:0.25rem;overflow:hidden;display:flex;justify-content:center;align-items:center;gap:0.5rem;color:rgb(var(--contrast-700));border:0.125rem dashed rgb(var(--color-cyan-light));border-radius:0.75rem}.text-helpertext{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.icon{width:clamp(2rem, 5vh, 7rem)}.text{font-size:clamp(1rem, 2vh, 1.75rem)}.helper-text{font-size:clamp(0.75rem, 1.5vh, 1rem)}@keyframes display-drop-zone{0%{background-color:rgb(var(--contrast-1100), 0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);scale:0.9;opacity:0}50%{scale:1;opacity:1}100%{background-color:rgb(var(--contrast-1100), 0.8);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem)}}";const y=class{constructor(s){t(this,s),this.filesSelected=i(this,"filesSelected"),this.accept="*",this.disabled=!1,this.multiple=!1,this.fileInputId=c(),this.handleClick=t=>{if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.triggerFileDialog(),t.stopPropagation()},this.handleKeyUp=t=>{t.stopPropagation(),t.preventDefault(),"Enter"===t.code&&this.triggerFileDialog()},this.handleFileChange=t=>{const i=[...this.fileInput.files];i.length>0&&(t.stopPropagation(),this.filesSelected.emit(i.map(o)),this.fileInput.value="")}}componentDidLoad(){this.fileInput=this.element.shadowRoot.getElementById(this.fileInputId)}render(){return s(e,{key:"62d72f49b1a71bef9c5b91c36f34f763a04d78e2",onClick:this.handleClick,onKeyUp:this.handleKeyUp,onKeyDown:this.handleKeyDown},s("input",{key:"72272f710f8ffb09eec2ace7409ab516ec4f80bd",hidden:!0,id:this.fileInputId,onChange:this.handleFileChange,type:"file",accept:this.accept,disabled:this.disabled,multiple:this.multiple}),s("slot",{key:"7ecff23ba41d76a23a2b8a542f56044615cb8b24"}))}handleKeyDown(t){"Tab"!==t.code&&"Backspace"!==t.code&&"Enter"!==t.code&&(t.preventDefault(),t.stopPropagation())}triggerFileDialog(){this.fileInput.click()}get element(){return r(this)}};export{u as limel_file_dropzone,y as limel_file_input}
|
|
@@ -37,6 +37,7 @@ import { IconName } from '../../global/shared-types/icon.types';
|
|
|
37
37
|
* @exampleComponent limel-example-chip-set-filter
|
|
38
38
|
* @exampleComponent limel-example-chip-set-filter-badge
|
|
39
39
|
* @exampleComponent limel-example-chip-set-input
|
|
40
|
+
* @exampleComponent limel-example-chip-set-invalid-chips
|
|
40
41
|
* @exampleComponent limel-example-chip-set-input-type-with-menu-items
|
|
41
42
|
* @exampleComponent limel-example-chip-set-input-type-text
|
|
42
43
|
* @exampleComponent limel-example-chip-set-input-type-search
|
|
@@ -94,6 +94,10 @@ export interface Chip<T = any> {
|
|
|
94
94
|
* indeterminate progress indicator inside the chip.
|
|
95
95
|
*/
|
|
96
96
|
loading?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Set to `true` to visualize the chip in an "invalid" or "error" state.
|
|
99
|
+
*/
|
|
100
|
+
invalid?: boolean;
|
|
97
101
|
}
|
|
98
102
|
/**
|
|
99
103
|
* This type is used to determine the visual style and behavior of a Chip component.
|
|
@@ -805,6 +805,7 @@ export namespace Components {
|
|
|
805
805
|
* @exampleComponent limel-example-chip-set-filter
|
|
806
806
|
* @exampleComponent limel-example-chip-set-filter-badge
|
|
807
807
|
* @exampleComponent limel-example-chip-set-input
|
|
808
|
+
* @exampleComponent limel-example-chip-set-invalid-chips
|
|
808
809
|
* @exampleComponent limel-example-chip-set-input-type-with-menu-items
|
|
809
810
|
* @exampleComponent limel-example-chip-set-input-type-text
|
|
810
811
|
* @exampleComponent limel-example-chip-set-input-type-search
|
|
@@ -4598,6 +4599,7 @@ declare global {
|
|
|
4598
4599
|
* @exampleComponent limel-example-chip-set-filter
|
|
4599
4600
|
* @exampleComponent limel-example-chip-set-filter-badge
|
|
4600
4601
|
* @exampleComponent limel-example-chip-set-input
|
|
4602
|
+
* @exampleComponent limel-example-chip-set-invalid-chips
|
|
4601
4603
|
* @exampleComponent limel-example-chip-set-input-type-with-menu-items
|
|
4602
4604
|
* @exampleComponent limel-example-chip-set-input-type-text
|
|
4603
4605
|
* @exampleComponent limel-example-chip-set-input-type-search
|
|
@@ -7239,6 +7241,7 @@ declare namespace LocalJSX {
|
|
|
7239
7241
|
* @exampleComponent limel-example-chip-set-filter
|
|
7240
7242
|
* @exampleComponent limel-example-chip-set-filter-badge
|
|
7241
7243
|
* @exampleComponent limel-example-chip-set-input
|
|
7244
|
+
* @exampleComponent limel-example-chip-set-invalid-chips
|
|
7242
7245
|
* @exampleComponent limel-example-chip-set-input-type-with-menu-items
|
|
7243
7246
|
* @exampleComponent limel-example-chip-set-input-type-text
|
|
7244
7247
|
* @exampleComponent limel-example-chip-set-input-type-search
|
|
@@ -11636,6 +11639,7 @@ declare module "@stencil/core" {
|
|
|
11636
11639
|
* @exampleComponent limel-example-chip-set-filter
|
|
11637
11640
|
* @exampleComponent limel-example-chip-set-filter-badge
|
|
11638
11641
|
* @exampleComponent limel-example-chip-set-input
|
|
11642
|
+
* @exampleComponent limel-example-chip-set-invalid-chips
|
|
11639
11643
|
* @exampleComponent limel-example-chip-set-input-type-with-menu-items
|
|
11640
11644
|
* @exampleComponent limel-example-chip-set-input-type-text
|
|
11641
11645
|
* @exampleComponent limel-example-chip-set-input-type-search
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.22.0",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@limetech/eslint-config": "^4.0.0",
|
|
44
44
|
"@microsoft/api-extractor": "^7.52.11",
|
|
45
45
|
"@popperjs/core": "^2.11.8",
|
|
46
|
-
"@rjsf/core": "^6.
|
|
47
|
-
"@rjsf/utils": "^6.
|
|
48
|
-
"@rjsf/validator-ajv8": "^6.
|
|
46
|
+
"@rjsf/core": "^6.5.2",
|
|
47
|
+
"@rjsf/utils": "^6.5.2",
|
|
48
|
+
"@rjsf/validator-ajv8": "^6.5.2",
|
|
49
49
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
50
50
|
"@stencil/core": "^4.43.1",
|
|
51
51
|
"@stencil/sass": "^3.2.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as r,m as e,U as t,j as n,h as o,n as a,o as c,i as u,S as i,p as s}from"./p-DFWcgJ_i.js";import{b as f,a as j}from"./p-v6b303K5.js";import{k as b,b as v,g as p,a as m}from"./p-UGKt6Ywx.js";import{i as w,r as y,S as d}from"./p-BJQylLSL.js";import{i as l}from"./p-B8VKuhvH.js";import{i as A}from"./p-oiMYqRQ0.js";var x=Object.create,g=function(){function r(){}return function(e){if(!w(e))return{};if(x)return x(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function S(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}function U(r,e){for(var t=-1,n=null==r?0:r.length;++t<n&&!1!==e(r[t],t,r););return r}function F(r,e,t){var n=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var c=e[o],u=void 0;void 0===u&&(u=r[c]),n?f(t,c,u):j(t,c,u)}return t}var h="object"==typeof exports&&exports&&!exports.nodeType&&exports,B=h&&"object"==typeof module&&module&&!module.nodeType&&module,O=B&&B.exports===h?y.Buffer:void 0,D=O?O.allocUnsafe:void 0;function I(r,e){if(e)return r.slice();var t=r.length,n=D?D(t):new r.constructor(t);return r.copy(n),n}var K=Object.prototype.hasOwnProperty;function M(r){var e=new r.constructor(r.byteLength);return new t(e).set(new t(r)),e}var k=/\w*$/,G=d?d.prototype:void 0,J=G?G.valueOf:void 0;function L(r,e){var t=e?M(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}function Q(r){return"function"!=typeof r.constructor||n(r)?{}:g(p(r))}var R=c&&c.isMap,V=R?a(R):function(r){return A(r)&&"[object Map]"==o(r)},Y=c&&c.isSet,q=Y?a(Y):function(r){return A(r)&&"[object Set]"==o(r)},C="[object Arguments]",E="[object Function]",H="[object Object]",N={};function W(t,n,a,c,f,p){var y,d=1&n,A=2&n,x=4&n;if(a&&(y=f?a(t,c,f,p):a(t)),void 0!==y)return y;if(!w(t))return t;var g=l(t);if(g){if(y=function(r){var e=r.length,t=new r.constructor(e);return e&&"string"==typeof r[0]&&K.call(r,"index")&&(t.index=r.index,t.input=r.input),t}(t),!d)return S(t,y)}else{var h=o(t),B=h==E||"[object GeneratorFunction]"==h;if(u(t))return I(t,d);if(h==H||h==C||B&&!f){if(y=A||B?{}:Q(t),!d)return A?function(r,e){return F(r,v(r),e)}(t,function(r,e){return r&&F(e,b(e),r)}(y,t)):function(r,t){return F(r,e(r),t)}(t,function(e,t){return e&&F(t,r(t),e)}(y,t))}else{if(!N[h])return f?t:{};y=function(r,e,t){var n,o,a=r.constructor;switch(e){case"[object ArrayBuffer]":return M(r);case"[object Boolean]":case"[object Date]":return new a(+r);case"[object DataView]":return function(r,e){var t=e?M(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}(r,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return L(r,t);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(r);case"[object RegExp]":return(o=new(n=r).constructor(n.source,k.exec(n))).lastIndex=n.lastIndex,o;case"[object Symbol]":return J?Object(J.call(r)):{}}}(t,h,d)}}p||(p=new i);var O=p.get(t);if(O)return O;p.set(t,y),q(t)?t.forEach((function(r){y.add(W(r,n,a,r,t,p))})):V(t)&&t.forEach((function(r,e){y.set(e,W(r,n,a,e,t,p))}));var D=g?void 0:(x?A?m:s:A?b:r)(t);return U(D||t,(function(r,e){D&&(r=t[e=r]),j(y,e,W(r,n,a,e,t,p))})),y}function $(r){return W(r,5)}N[C]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[H]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[E]=N["[object WeakMap]"]=!1;export{S as a,I as b,F as c,L as d,U as e,W as f,g,$ as h,Q as i}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as r}from"./p-DFWcgJ_i.js";import{i as n}from"./p-D_uMnX5g.js";var t=function(r,n,t){for(var a=-1,f=Object(r),i=t(r),o=i.length;o--;){var u=i[++a];if(!1===n(f[u],u,f))break}return r};function a(n,a){return n&&t(n,a,r)}var f,i=(f=a,function(r,t){if(null==r)return r;if(!n(r))return f(r,t);for(var a=r.length,i=-1,o=Object(r);++i<a&&!1!==t(o[i],i,o););return r});export{i as a,t as b,a as c}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as r,d as t,e as n,b as o,a as u,c as a}from"./p-CMjGNANG.js";import{a as s}from"./p-v6b303K5.js";import{b as i}from"./p-D_uMnX5g.js";import{i as e}from"./p-BJQylLSL.js";import{a as f}from"./p-UGKt6Ywx.js";var c=Object.prototype.hasOwnProperty;function p(r,t){return null!=r&&c.call(r,t)}function v(t,n){return null!=t&&r(t,n,p)}function m(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}function l(r,o,u,a){if(!e(r))return r;for(var f=-1,c=(o=t(o,r)).length,p=c-1,v=r;null!=v&&++f<c;){var m=n(o[f]),l=u;if("__proto__"===m||"constructor"===m||"prototype"===m)return r;if(f!=p){var h=v[m];void 0===(l=a?a(h,m,v):void 0)&&(l=e(h)?h:i(o[f+1])?[]:{})}s(v,m,l),v=v[m]}return r}function h(r,n,u){for(var a=-1,s=n.length,i={};++a<s;){var e=n[a],f=o(r,e);u(f,e)&&l(i,t(e,r),f)}return i}function j(r,t){if(null==r)return{};var n=u(f(r),(function(r){return[r]}));return t=a(t),h(r,n,(function(r,n){return t(r,n[0])}))}export{l as a,h as b,v as h,m as n,j as p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as r}from"./p-DFWcgJ_i.js";function i(i,o){return r(i,o)}export{i}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,r as t,t as a,u as n,q as o,m as s,v as i}from"./p-DFWcgJ_i.js";import{i as u}from"./p-BJQylLSL.js";import{i as c}from"./p-D_uMnX5g.js";var f=Object.prototype.hasOwnProperty;function e(a){return c(a)?t(a,!0):function(t){if(!u(t))return function(r){var t=[];if(null!=r)for(var a in Object(r))t.push(a);return t}(t);var a=r(t),n=[];for(var o in t)("constructor"!=o||!a&&f.call(t,o))&&n.push(o);return n}(a)}var j=a(Object.getPrototypeOf,Object),v=Object.getOwnPropertySymbols?function(r){for(var t=[];r;)o(t,s(r)),r=j(r);return t}:n;function m(r){return i(r,e,v)}export{m as a,v as b,j as g,e as k}
|