@fluid-topics/ft-tabs 1.0.51 → 1.0.53
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/build/ft-tabs.light.js +21 -24
- package/build/ft-tabs.min.js +12 -15
- package/package.json +7 -7
package/build/ft-tabs.light.js
CHANGED
|
@@ -112,13 +112,13 @@
|
|
|
112
112
|
<div class="ft-ripple--background"></div>
|
|
113
113
|
<div class="ft-ripple--effect"></div>
|
|
114
114
|
</div>
|
|
115
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([o.property({type:Boolean})],N.prototype,"primary",void 0),j([o.property({type:Boolean})],N.prototype,"secondary",void 0),j([o.property({type:Boolean})],N.prototype,"unbounded",void 0),j([o.property({type:Boolean})],N.prototype,"activated",void 0),j([o.property({type:Boolean})],N.prototype,"selected",void 0),j([o.property({type:Boolean})],N.prototype,"disabled",void 0),j([o.state()],N.prototype,"hovered",void 0),j([o.state()],N.prototype,"focused",void 0),j([o.state()],N.prototype,"pressed",void 0),j([o.state()],N.prototype,"rippling",void 0),j([o.state()],N.prototype,"rippleSize",void 0),j([o.state()],N.prototype,"originX",void 0),j([o.state()],N.prototype,"originY",void 0),j([o.query(".ft-ripple")],N.prototype,"ripple",void 0),j([o.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(N);const O=window,S=O.trustedTypes,I=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,E="?"+A,T=`<${E}>`,_=document,B=()=>_.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,R="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,W=/>/g,Z=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,K=/"/g,L=/^(?:script|style|textarea|title)$/i,H=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),q=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),V=new WeakMap,X=_.createTreeWalker(_,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=D;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===D?"!--"===a[1]?r=F:void 0!==a[1]?r=W:void 0!==a[2]?(L.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=Z):void 0!==a[3]&&(r=Z):r===Z?">"===a[0]?(r=null!=s?s:D,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?Z:'"'===a[3]?K:G):r===K||r===G?r=Z:r===F||r===W?r=D:(r=Z,s=void 0);const f=r===Z&&t[i+1].startsWith("/>")?" ":"";n+=r===D?e+T:p>=0?(o.push(l),e.slice(0,p)+C+e.slice(p)+A+f):e+A+(-2===p?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(l):l,o]};class J{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Y(t,i);if(this.el=J.createElement(a,e),X.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(C)||i.startsWith(A)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+C).split(A),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?ot:"?"===i[1]?nt:"@"===i[1]?rt:et})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(L.test(o.tagName)){const t=o.textContent.split(A),i=t.length-1;if(i>0){o.textContent=S?S.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],B()),X.nextNode(),l.push({type:2,index:++s});o.append(t[i],B())}}}else if(8===o.nodeType)if(o.data===E)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(A,t+1));)l.push({type:7,index:s}),t+=A.length-1}s++}}static createElement(t,i){const e=_.createElement("template");return e.innerHTML=t,e}}function Q(t,i,e=t,o){var s,n,r,l;if(i===q)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=M(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=Q(t,a._$AS(t,i.values),a,o)),i}class tt{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:_).importNode(e,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new it(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new lt(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class it{constructor(t,i,e,o){var s;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Q(this,t,i),M(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>U(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==P&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new tt(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new J(t)),i}T(t){U(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new it(this.k(B()),this.k(B()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class et{constructor(t,i,e,o,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,i,0),n=!M(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[e+r],i,r),l===q&&(l=this._$AH[r]),n||(n=!M(l)||l!==this._$AH[r]),l===P?t=P:t!==P&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const st=S?S.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends et{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Q(this,t,i,0))&&void 0!==e?e:P)===q)return;const o=this._$AH,s=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==P&&(o===P||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at=O.litHtmlPolyfillSupport;null==at||at(J,it),(null!==(z=O.litHtmlVersions)&&void 0!==z?z:O.litHtmlVersions=[]).push("2.7.3");
|
|
115
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([o.property({type:Boolean})],N.prototype,"primary",void 0),j([o.property({type:Boolean})],N.prototype,"secondary",void 0),j([o.property({type:Boolean})],N.prototype,"unbounded",void 0),j([o.property({type:Boolean})],N.prototype,"activated",void 0),j([o.property({type:Boolean})],N.prototype,"selected",void 0),j([o.property({type:Boolean})],N.prototype,"disabled",void 0),j([o.state()],N.prototype,"hovered",void 0),j([o.state()],N.prototype,"focused",void 0),j([o.state()],N.prototype,"pressed",void 0),j([o.state()],N.prototype,"rippling",void 0),j([o.state()],N.prototype,"rippleSize",void 0),j([o.state()],N.prototype,"originX",void 0),j([o.state()],N.prototype,"originY",void 0),j([o.query(".ft-ripple")],N.prototype,"ripple",void 0),j([o.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(N);const O=window,S=O.trustedTypes,I=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,A="?"+M,E=`<${A}>`,T=document,_=()=>T.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,R="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,W=/>/g,Z=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,K=/"/g,L=/^(?:script|style|textarea|title)$/i,H=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),P=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),V=new WeakMap,X=T.createTreeWalker(T,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=D;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===D?"!--"===a[1]?r=F:void 0!==a[1]?r=W:void 0!==a[2]?(L.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=Z):void 0!==a[3]&&(r=Z):r===Z?">"===a[0]?(r=null!=s?s:D,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?Z:'"'===a[3]?K:G):r===K||r===G?r=Z:r===F||r===W?r=D:(r=Z,s=void 0);const f=r===Z&&t[i+1].startsWith("/>")?" ":"";n+=r===D?e+E:p>=0?(o.push(l),e.slice(0,p)+C+e.slice(p)+M+f):e+M+(-2===p?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(l):l,o]};class J{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Y(t,i);if(this.el=J.createElement(a,e),X.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(C)||i.startsWith(M)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+C).split(M),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?ot:"?"===i[1]?nt:"@"===i[1]?rt:et})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(L.test(o.tagName)){const t=o.textContent.split(M),i=t.length-1;if(i>0){o.textContent=S?S.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],_()),X.nextNode(),l.push({type:2,index:++s});o.append(t[i],_())}}}else if(8===o.nodeType)if(o.data===A)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)l.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function Q(t,i,e=t,o){var s,n,r,l;if(i===P)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=B(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=Q(t,a._$AS(t,i.values),a,o)),i}class tt{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:T).importNode(e,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new it(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new lt(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class it{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Q(this,t,i),B(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==P&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>U(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new tt(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new J(t)),i}T(t){U(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new it(this.k(_()),this.k(_()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class et{constructor(t,i,e,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,i,0),n=!B(t)||t!==this._$AH&&t!==P,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[e+r],i,r),l===P&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=S?S.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends et{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Q(this,t,i,0))&&void 0!==e?e:q)===P)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at=O.litHtmlPolyfillSupport;null==at||at(J,it),(null!==(z=O.litHtmlVersions)&&void 0!==z?z:O.litHtmlVersions=[]).push("2.7.3");
|
|
116
116
|
/**
|
|
117
117
|
* @license
|
|
118
118
|
* Copyright 2020 Google LLC
|
|
119
119
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
120
|
*/
|
|
121
|
-
const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:pt}),ct=new Map,dt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(n=e[p],s=ht(n));)a+=s+i[++p],h=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=ct.get(t))&&(r.raw=r,ct.set(t,i=r)),e=l}return t(i,...e)})(H);var xt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(xt||(xt={}));const ut=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),yt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),bt={fontFamily:yt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ut),vt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",bt.fontSize,"20px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",bt.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",bt.letterSpacing,"0.15px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",bt.lineHeight,"1.2"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",bt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ut),jt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",bt.fontSize,"14px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",bt.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",bt.letterSpacing,"0.105px"),St=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",bt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",bt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),
|
|
121
|
+
const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:pt}),ct=new Map,dt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(n=e[p],s=ht(n));)a+=s+i[++p],h=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=ct.get(t))&&(r.raw=r,ct.set(t,i=r)),e=l}return t(i,...e)})(H);var xt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(xt||(xt={}));const ut=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),yt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),bt={fontFamily:yt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ut),vt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",bt.fontSize,"20px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",bt.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",bt.letterSpacing,"0.15px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",bt.lineHeight,"1.2"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",bt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ut),jt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",bt.fontSize,"14px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",bt.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",bt.letterSpacing,"0.105px"),St=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",bt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",bt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",bt.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",bt.fontWeight,"600"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",bt.letterSpacing,"0.144px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",bt.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",bt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",bt.fontSize,"14px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",bt.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",bt.letterSpacing,"0.098px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",bt.lineHeight,"1.7"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",bt.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",yt),Gt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",bt.fontSize,"16px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",bt.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",bt.letterSpacing,"0.496px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",bt.lineHeight,"1.5"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",bt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",yt),Vt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",bt.fontSize,"14px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",bt.fontWeight,"normal"),Yt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",bt.letterSpacing,"0.252px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",bt.lineHeight,"1.4"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",bt.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",yt),ii=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",bt.fontSize,"12px"),ei=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",bt.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",bt.letterSpacing,"0.396px"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",bt.lineHeight,"1.33"),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",bt.textTransform,"inherit"),ri=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",yt),li=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",bt.fontSize,"10px"),ai=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",bt.fontWeight,"normal"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",bt.letterSpacing,"0.33px"),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",bt.lineHeight,"1.6"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",bt.textTransform,"inherit"),ci=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",yt),di=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",bt.fontSize,"10px"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",bt.fontWeight,"normal"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",bt.letterSpacing,"1.5px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",bt.lineHeight,"1.6"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",bt.textTransform,"uppercase"),gi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",yt),vi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",bt.fontSize,"14px"),mi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",bt.fontWeight,"600"),$i=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",bt.letterSpacing,"1.246px"),wi=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",bt.lineHeight,"1.15"),ki=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",bt.textTransform,"uppercase"),zi=e.css`
|
|
122
122
|
.ft-typography--title {
|
|
123
123
|
font-family: ${gt};
|
|
124
124
|
font-size: ${vt};
|
|
@@ -139,15 +139,15 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
139
139
|
`,Ni=e.css`
|
|
140
140
|
.ft-typography--subtitle1 {
|
|
141
141
|
font-family: ${Ct};
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
142
|
+
font-size: ${Mt};
|
|
143
|
+
font-weight: ${At};
|
|
144
|
+
letter-spacing: ${Et};
|
|
145
|
+
line-height: ${Tt};
|
|
146
|
+
text-transform: ${_t};
|
|
147
147
|
}
|
|
148
148
|
`,Oi=e.css`
|
|
149
149
|
.ft-typography--subtitle2 {
|
|
150
|
-
font-family: ${
|
|
150
|
+
font-family: ${Bt};
|
|
151
151
|
font-size: ${Ut};
|
|
152
152
|
font-weight: ${Rt};
|
|
153
153
|
letter-spacing: ${Dt};
|
|
@@ -162,11 +162,11 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
162
162
|
font-weight: ${Kt};
|
|
163
163
|
letter-spacing: ${Lt};
|
|
164
164
|
line-height: ${Ht};
|
|
165
|
-
text-transform: ${
|
|
165
|
+
text-transform: ${Pt};
|
|
166
166
|
}
|
|
167
167
|
`,Ii=e.css`
|
|
168
168
|
.ft-typography--body2 {
|
|
169
|
-
font-family: ${
|
|
169
|
+
font-family: ${qt};
|
|
170
170
|
font-size: ${Vt};
|
|
171
171
|
font-weight: ${Xt};
|
|
172
172
|
letter-spacing: ${Yt};
|
|
@@ -182,7 +182,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
182
182
|
line-height: ${si};
|
|
183
183
|
text-transform: ${ni};
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,Mi=e.css`
|
|
186
186
|
.ft-typography--breadcrumb {
|
|
187
187
|
font-family: ${ri};
|
|
188
188
|
font-size: ${li};
|
|
@@ -191,7 +191,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
191
191
|
line-height: ${hi};
|
|
192
192
|
text-transform: ${fi};
|
|
193
193
|
}
|
|
194
|
-
`,
|
|
194
|
+
`,Ai=e.css`
|
|
195
195
|
.ft-typography--overline {
|
|
196
196
|
font-family: ${ci};
|
|
197
197
|
font-size: ${di};
|
|
@@ -200,7 +200,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
200
200
|
line-height: ${yi};
|
|
201
201
|
text-transform: ${bi};
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,Ei=e.css`
|
|
204
204
|
.ft-typography--button {
|
|
205
205
|
font-family: ${gi};
|
|
206
206
|
font-size: ${vi};
|
|
@@ -209,18 +209,18 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
209
209
|
line-height: ${wi};
|
|
210
210
|
text-transform: ${ki};
|
|
211
211
|
}
|
|
212
|
-
`,
|
|
212
|
+
`,Ti=e.css`
|
|
213
213
|
.ft-typography {
|
|
214
214
|
vertical-align: inherit;
|
|
215
215
|
}
|
|
216
|
-
`;var Bi,
|
|
216
|
+
`;var _i,Bi,Ui=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ri extends i.FtLitElement{constructor(){super(...arguments),this.variant=xt.body1}render(){return this.element?dt`
|
|
217
217
|
<${ft(this.element)}
|
|
218
218
|
class="ft-typography ft-typography--${this.variant}">
|
|
219
219
|
<slot></slot>
|
|
220
220
|
</${ft(this.element)}>
|
|
221
221
|
`:dt`
|
|
222
222
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
223
|
-
`}}Ri.styles=[zi,ji,Ni,Oi,Si,Ii,Ci,Ai,Ei,Ti
|
|
223
|
+
`}}Ri.styles=[zi,ji,Ni,Oi,Si,Ii,Ci,Mi,Ai,Ei,Ti],Ui([o.property()],Ri.prototype,"element",void 0),Ui([o.property()],Ri.prototype,"variant",void 0),i.customElement("ft-typography")(Ri),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(_i||(_i={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Bi||(Bi={})),new Map([...["abw"].map((t=>[t,Bi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Bi.AUDIO])),...["avi"].map((t=>[t,Bi.AVI])),...["chm","xhs"].map((t=>[t,Bi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Bi.CODE])),...["csv"].map((t=>[t,Bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Bi.DITA])),...["epub"].map((t=>[t,Bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Bi.EXCEL])),...["flac"].map((t=>[t,Bi.FLAC])),...["gif"].map((t=>[t,Bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Bi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Bi.JPEG])),...["json"].map((t=>[t,Bi.JSON])),...["m4a","m4p"].map((t=>[t,Bi.M4A])),...["mov","qt"].map((t=>[t,Bi.MOV])),...["mp3"].map((t=>[t,Bi.MP3])),...["mp4","m4v"].map((t=>[t,Bi.MP4])),...["ogg","oga"].map((t=>[t,Bi.OGG])),...["pdf","ps"].map((t=>[t,Bi.PDF])),...["png"].map((t=>[t,Bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Bi.POWERPOINT])),...["rar"].map((t=>[t,Bi.RAR])),...["stp"].map((t=>[t,Bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Bi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Bi.VIDEO])),...["wav"].map((t=>[t,Bi.WAV])),...["wma"].map((t=>[t,Bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Bi.YAML])),...["zip"].map((t=>[t,Bi.ZIP]))]);const Di=i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Fi=i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Wi=i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Zi=i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Gi=i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ki=e.css`
|
|
224
224
|
:host, i.ft-icon {
|
|
225
225
|
display: inline-flex;
|
|
226
226
|
align-items: center;
|
|
@@ -268,12 +268,12 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
268
268
|
.ft-icon--material {
|
|
269
269
|
font-family: ${Zi}, "Material Icons", sans-serif;
|
|
270
270
|
}
|
|
271
|
-
`;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Hi,
|
|
271
|
+
`;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Hi,Pi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class qi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Li).includes(this.variant)?this.variant:Li.fluid_topics,i=t!==Li.material||!!this.value;return e.html`
|
|
272
272
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
273
273
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
274
274
|
<slot ?hidden=${i}></slot>
|
|
275
275
|
</i>
|
|
276
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Li.file_format:this.resolvedIcon=null!==(t=
|
|
276
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Li.file_format:this.resolvedIcon=null!==(t=Bi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Li.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}qi.elementDefinitions={},qi.styles=Ki,Pi([o.property()],qi.prototype,"variant",void 0),Pi([o.property()],qi.prototype,"value",void 0),Pi([o.state()],qi.prototype,"resolvedIcon",void 0),Pi([o.query("slot")],qi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(qi),t.FtTabsAlignment=void 0,(Hi=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Hi.right="right",Hi.justify="justify";const Vi={colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Xi=e.css`
|
|
277
277
|
.ft-tabs {
|
|
278
278
|
display: flex;
|
|
279
279
|
flex-direction: column;
|
|
@@ -366,10 +366,9 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
366
366
|
flex-grow: 1;
|
|
367
367
|
overflow: auto;
|
|
368
368
|
}
|
|
369
|
-
`,Yi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ji=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Qi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),te=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","
|
|
369
|
+
`,Yi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ji=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Qi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),te=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),ie=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),ee=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),oe=e.css`
|
|
370
370
|
.ft-tooltip--container {
|
|
371
371
|
display: block;
|
|
372
|
-
position: relative;
|
|
373
372
|
}
|
|
374
373
|
|
|
375
374
|
.ft-tooltip--inline {
|
|
@@ -393,8 +392,6 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
393
392
|
border-radius: ${ie};
|
|
394
393
|
background-color: ${Qi};
|
|
395
394
|
color: ${Ji};
|
|
396
|
-
top: -500px;
|
|
397
|
-
left: -500px;
|
|
398
395
|
position: relative;
|
|
399
396
|
word-break: break-word;
|
|
400
397
|
}
|
|
@@ -416,7 +413,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
416
413
|
</div>
|
|
417
414
|
</div>
|
|
418
415
|
</div>
|
|
419
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=
|
|
416
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,c=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${ee})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}ne.elementDefinitions={"ft-typography":Ri},ne.styles=oe,se([o.property()],ne.prototype,"text",void 0),se([o.property({type:Boolean})],ne.prototype,"manual",void 0),se([o.property({type:Boolean})],ne.prototype,"inline",void 0),se([o.property({type:Number})],ne.prototype,"delay",void 0),se([o.property()],ne.prototype,"position",void 0),se([o.queryAssignedNodes("",!0)],ne.prototype,"slotNodes",void 0),se([o.query(".ft-tooltip--container")],ne.prototype,"container",void 0),se([o.query(".ft-tooltip")],ne.prototype,"tooltip",void 0),se([o.query(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0),se([o.state()],ne.prototype,"visible",void 0),i.customElement("ft-tooltip")(ne);var re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class le extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class ae extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new i.Debouncer(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new i.PostResizeEvent)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const i={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
|
|
420
417
|
<div class="${n.classMap(i)}" part="container">
|
|
421
418
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
422
419
|
${s.repeat(this.ftTabs,((t,i)=>this.addTooltipIfNecessary(t,e.html`
|
|
@@ -463,4 +460,4 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
|
|
|
463
460
|
position="${this.contentBefore?"top":"bottom"}">
|
|
464
461
|
${i}
|
|
465
462
|
</ft-tooltip>
|
|
466
|
-
`:i}}ae.elementDefinitions={"ft-tab":a,"ft-ripple":N,"ft-tooltip":ne,"ft-typography":Ri,"ft-icon":
|
|
463
|
+
`:i}}ae.elementDefinitions={"ft-tab":a,"ft-ripple":N,"ft-tooltip":ne,"ft-typography":Ri,"ft-icon":qi},ae.styles=Xi,re([o.property({type:Boolean})],ae.prototype,"dense",void 0),re([o.property({type:Boolean})],ae.prototype,"contentBefore",void 0),re([o.property()],ae.prototype,"alignTabs",void 0),re([o.state()],ae.prototype,"ftTabs",void 0),re([o.query("[role='tablist']")],ae.prototype,"tabsContainer",void 0),re([o.query("[aria-selected='true']")],ae.prototype,"activeTab",void 0),re([o.query(".ft-tabs--active-tab-indicator")],ae.prototype,"activeTabIndicator",void 0),re([o.property({type:Number,reflect:!0})],ae.prototype,"activeIndex",void 0);i.customElement("ft-tab")(a),i.customElement("ft-tabs")(ae),t.FtTab=a,t.FtTabCssVariables={},t.FtTabs=ae,t.FtTabsCssVariables=Vi,t.IndexChangeEvent=le,t.styles=Xi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
package/build/ft-tabs.min.js
CHANGED
|
@@ -56,13 +56,13 @@ const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var
|
|
59
|
+
var M;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const R=window,j=R.trustedTypes,U=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,A="?"+z,B=`<${A}>`,L=document,T=()=>L.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,_=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),I="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,K=/>/g,Z=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=L.createTreeWalker(L,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=W;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===W?"!--"===l[1]?n=H:void 0!==l[1]?n=K:void 0!==l[2]?(q.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=Z):void 0!==l[3]&&(n=Z):n===Z?">"===l[0]?(n=null!=s?s:W,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Z:'"'===l[3]?J:V):n===J||n===V?n=Z:n===H||n===K?n=W:(n=Z,s=void 0);const p=n===Z&&t[e+1].startsWith("/>")?" ":"";r+=n===W?i+B:h>=0?(o.push(a),i.slice(0,h)+F+i.slice(h)+z+p):i+z+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,h]=et(t,e);if(this.el=it.createElement(l,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(F)||e.startsWith(z)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+F).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?at:"?"===e[1]?ht:"@"===e[1]?ct:nt})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),tt.nextNode(),a.push({type:2,index:++s});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===A)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)a.push({type:7,index:s}),t+=z.length-1}s++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var s,r,n,a;if(e===Y)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=P(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ot(t,l._$AS(t,e.values),l,o)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);tt.currentNode=s;let r=tt.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new rt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new pt(r,this,t)),this._$AV.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=tt.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class rt{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),P(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new st(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}T(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new rt(this.k(T()),this.k(T()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=ot(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==Y,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=ot(this,o[i+n],e,n),a===Y&&(a=this._$AH[n]),r||(r=!P(a)||a!==this._$AH[n]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class at extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const lt=j?j.emptyScript:"";class ht extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ct extends nt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==G&&(o===G||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const ft={O:F,P:z,A,C:1,M:et,L:st,D:_,R:ot,I:rt,V:nt,H:ht,N:ct,U:at,F:pt},dt=R.litHtmlPolyfillSupport;null==dt||dt(it,rt),(null!==(M=R.litHtmlVersions)&&void 0!==M?M:R.litHtmlVersions=[]).push("2.7.3");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var ut,vt;let xt=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new rt(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};xt.finalized=!0,xt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:xt});const yt=globalThis.litElementPolyfillSupport;null==yt||yt({LitElement:xt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>x(null!=t?t:i),s=y`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),o=y`var(${x(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${x(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class wt extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}class $t extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return b(i,t.elementStyles),i}}var Ot,St=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const kt=Symbol("constructorPrototype"),Nt=Symbol("constructorName"),Ct=Symbol("exportpartsDebouncer");class Et extends $t{constructor(){super(),this[Ot]=new e(5),this[Nt]=this.constructor.name,this[kt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nt]&&Object.setPrototypeOf(this,this[kt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ct].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Rt,Mt;Ot=Ct,St([o()],Et.prototype,"exportpartsPrefix",void 0),St([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),St([o()],Et.prototype,"customStylesheet",void 0),y`
|
|
65
|
+
var ut,vt;let xt=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new rt(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};xt.finalized=!0,xt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:xt});const yt=globalThis.litElementPolyfillSupport;null==yt||yt({LitElement:xt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>x(null!=t?t:i),s=y`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),o=y`var(${x(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${x(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class wt extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}class $t extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return b(i,t.elementStyles),i}}var Ot,St=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const kt=Symbol("constructorPrototype"),Nt=Symbol("constructorName"),Ct=Symbol("exportpartsDebouncer");class Et extends $t{constructor(){super(),this[Ot]=new e(5),this[Nt]=this.constructor.name,this[kt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nt]&&Object.setPrototypeOf(this,this[kt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ct].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Mt,Rt;Ot=Ct,St([o()],Et.prototype,"exportpartsPrefix",void 0),St([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),St([o()],Et.prototype,"customStylesheet",void 0),y`
|
|
66
66
|
.ft-no-text-select {
|
|
67
67
|
-webkit-touch-callout: none;
|
|
68
68
|
-webkit-user-select: none;
|
|
@@ -94,7 +94,7 @@ var ut,vt;let xt=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
width: 0;
|
|
96
96
|
}
|
|
97
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
97
|
+
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Rt=null===(Mt=window.safari)||void 0===Mt?void 0:Mt.pushNotification)||void 0===Rt||Rt.toString());var jt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ut extends Et{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return X`
|
|
98
98
|
<style>
|
|
99
99
|
:host {
|
|
100
100
|
display: ${x(this.active?"block":"none")};
|
|
@@ -230,7 +230,7 @@ const Ft=1,zt=2,At=t=>(...e)=>({_$litDirective$:t,values:e});class Bt{constructo
|
|
|
230
230
|
* Copyright 2020 Google LLC
|
|
231
231
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
232
232
|
*/
|
|
233
|
-
const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void 0:t._$litStatic$},pe=t=>({_$litStatic$:t,r:he}),fe=new Map,de=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=ce(r));)l+=s+e[++h],c=!0;h!==o&&a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=fe.get(t))&&(n.raw=n,fe.set(t,e=n)),i=a}return t(e,...i)})(X);var ue;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ue||(ue={}));const ve=bt.extend("--ft-typography-font-family",gt.titleFont),xe=bt.extend("--ft-typography-font-family",gt.contentFont),ye={fontFamily:xe,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},be=bt.extend("--ft-typography-title-font-family",ve),ge=bt.extend("--ft-typography-title-font-size",ye.fontSize,"20px"),me=bt.extend("--ft-typography-title-font-weight",ye.fontWeight,"normal"),we=bt.extend("--ft-typography-title-letter-spacing",ye.letterSpacing,"0.15px"),$e=bt.extend("--ft-typography-title-line-height",ye.lineHeight,"1.2"),Oe=bt.extend("--ft-typography-title-text-transform",ye.textTransform,"inherit"),Se=bt.extend("--ft-typography-title-dense-font-family",ve),ke=bt.extend("--ft-typography-title-dense-font-size",ye.fontSize,"14px"),Ne=bt.extend("--ft-typography-title-dense-font-weight",ye.fontWeight,"normal"),Ce=bt.extend("--ft-typography-title-dense-letter-spacing",ye.letterSpacing,"0.105px"),Ee=bt.extend("--ft-typography-title-dense-line-height",ye.lineHeight,"1.7"),
|
|
233
|
+
const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void 0:t._$litStatic$},pe=t=>({_$litStatic$:t,r:he}),fe=new Map,de=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=ce(r));)l+=s+e[++h],c=!0;h!==o&&a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=fe.get(t))&&(n.raw=n,fe.set(t,e=n)),i=a}return t(e,...i)})(X);var ue;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ue||(ue={}));const ve=bt.extend("--ft-typography-font-family",gt.titleFont),xe=bt.extend("--ft-typography-font-family",gt.contentFont),ye={fontFamily:xe,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},be=bt.extend("--ft-typography-title-font-family",ve),ge=bt.extend("--ft-typography-title-font-size",ye.fontSize,"20px"),me=bt.extend("--ft-typography-title-font-weight",ye.fontWeight,"normal"),we=bt.extend("--ft-typography-title-letter-spacing",ye.letterSpacing,"0.15px"),$e=bt.extend("--ft-typography-title-line-height",ye.lineHeight,"1.2"),Oe=bt.extend("--ft-typography-title-text-transform",ye.textTransform,"inherit"),Se=bt.extend("--ft-typography-title-dense-font-family",ve),ke=bt.extend("--ft-typography-title-dense-font-size",ye.fontSize,"14px"),Ne=bt.extend("--ft-typography-title-dense-font-weight",ye.fontWeight,"normal"),Ce=bt.extend("--ft-typography-title-dense-letter-spacing",ye.letterSpacing,"0.105px"),Ee=bt.extend("--ft-typography-title-dense-line-height",ye.lineHeight,"1.7"),Me=bt.extend("--ft-typography-title-dense-text-transform",ye.textTransform,"inherit"),Re=bt.extend("--ft-typography-subtitle1-font-family",xe),je=bt.extend("--ft-typography-subtitle1-font-size",ye.fontSize,"16px"),Ue=bt.extend("--ft-typography-subtitle1-font-weight",ye.fontWeight,"600"),Fe=bt.extend("--ft-typography-subtitle1-letter-spacing",ye.letterSpacing,"0.144px"),ze=bt.extend("--ft-typography-subtitle1-line-height",ye.lineHeight,"1.5"),Ae=bt.extend("--ft-typography-subtitle1-text-transform",ye.textTransform,"inherit"),Be=bt.extend("--ft-typography-subtitle2-font-family",xe),Le=bt.extend("--ft-typography-subtitle2-font-size",ye.fontSize,"14px"),Te=bt.extend("--ft-typography-subtitle2-font-weight",ye.fontWeight,"normal"),Pe=bt.extend("--ft-typography-subtitle2-letter-spacing",ye.letterSpacing,"0.098px"),De=bt.extend("--ft-typography-subtitle2-line-height",ye.lineHeight,"1.7"),_e=bt.extend("--ft-typography-subtitle2-text-transform",ye.textTransform,"inherit"),Ie=bt.extend("--ft-typography-body1-font-family",xe),We=bt.extend("--ft-typography-body1-font-size",ye.fontSize,"16px"),He=bt.extend("--ft-typography-body1-font-weight",ye.fontWeight,"normal"),Ke=bt.extend("--ft-typography-body1-letter-spacing",ye.letterSpacing,"0.496px"),Ze=bt.extend("--ft-typography-body1-line-height",ye.lineHeight,"1.5"),Ve=bt.extend("--ft-typography-body1-text-transform",ye.textTransform,"inherit"),Je=bt.extend("--ft-typography-body2-font-family",xe),qe=bt.extend("--ft-typography-body2-font-size",ye.fontSize,"14px"),Xe=bt.extend("--ft-typography-body2-font-weight",ye.fontWeight,"normal"),Ye=bt.extend("--ft-typography-body2-letter-spacing",ye.letterSpacing,"0.252px"),Ge=bt.extend("--ft-typography-body2-line-height",ye.lineHeight,"1.4"),Qe=bt.extend("--ft-typography-body2-text-transform",ye.textTransform,"inherit"),ti=bt.extend("--ft-typography-caption-font-family",xe),ei=bt.extend("--ft-typography-caption-font-size",ye.fontSize,"12px"),ii=bt.extend("--ft-typography-caption-font-weight",ye.fontWeight,"normal"),oi=bt.extend("--ft-typography-caption-letter-spacing",ye.letterSpacing,"0.396px"),si=bt.extend("--ft-typography-caption-line-height",ye.lineHeight,"1.33"),ri=bt.extend("--ft-typography-caption-text-transform",ye.textTransform,"inherit"),ni=bt.extend("--ft-typography-breadcrumb-font-family",xe),ai=bt.extend("--ft-typography-breadcrumb-font-size",ye.fontSize,"10px"),li=bt.extend("--ft-typography-breadcrumb-font-weight",ye.fontWeight,"normal"),hi=bt.extend("--ft-typography-breadcrumb-letter-spacing",ye.letterSpacing,"0.33px"),ci=bt.extend("--ft-typography-breadcrumb-line-height",ye.lineHeight,"1.6"),pi=bt.extend("--ft-typography-breadcrumb-text-transform",ye.textTransform,"inherit"),fi=bt.extend("--ft-typography-overline-font-family",xe),di=bt.extend("--ft-typography-overline-font-size",ye.fontSize,"10px"),ui=bt.extend("--ft-typography-overline-font-weight",ye.fontWeight,"normal"),vi=bt.extend("--ft-typography-overline-letter-spacing",ye.letterSpacing,"1.5px"),xi=bt.extend("--ft-typography-overline-line-height",ye.lineHeight,"1.6"),yi=bt.extend("--ft-typography-overline-text-transform",ye.textTransform,"uppercase"),bi=bt.extend("--ft-typography-button-font-family",xe),gi=bt.extend("--ft-typography-button-font-size",ye.fontSize,"14px"),mi=bt.extend("--ft-typography-button-font-weight",ye.fontWeight,"600"),wi=bt.extend("--ft-typography-button-letter-spacing",ye.letterSpacing,"1.246px"),$i=bt.extend("--ft-typography-button-line-height",ye.lineHeight,"1.15"),Oi=bt.extend("--ft-typography-button-text-transform",ye.textTransform,"uppercase"),Si=y`
|
|
234
234
|
.ft-typography--title {
|
|
235
235
|
font-family: ${be};
|
|
236
236
|
font-size: ${ge};
|
|
@@ -246,11 +246,11 @@ const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void
|
|
|
246
246
|
font-weight: ${Ne};
|
|
247
247
|
letter-spacing: ${Ce};
|
|
248
248
|
line-height: ${Ee};
|
|
249
|
-
text-transform: ${
|
|
249
|
+
text-transform: ${Me};
|
|
250
250
|
}
|
|
251
251
|
`,Ni=y`
|
|
252
252
|
.ft-typography--subtitle1 {
|
|
253
|
-
font-family: ${
|
|
253
|
+
font-family: ${Re};
|
|
254
254
|
font-size: ${je};
|
|
255
255
|
font-weight: ${Ue};
|
|
256
256
|
letter-spacing: ${Fe};
|
|
@@ -276,7 +276,7 @@ const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void
|
|
|
276
276
|
line-height: ${Ze};
|
|
277
277
|
text-transform: ${Ve};
|
|
278
278
|
}
|
|
279
|
-
`,
|
|
279
|
+
`,Mi=y`
|
|
280
280
|
.ft-typography--body2 {
|
|
281
281
|
font-family: ${Je};
|
|
282
282
|
font-size: ${qe};
|
|
@@ -285,7 +285,7 @@ const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void
|
|
|
285
285
|
line-height: ${Ge};
|
|
286
286
|
text-transform: ${Qe};
|
|
287
287
|
}
|
|
288
|
-
`,
|
|
288
|
+
`,Ri=y`
|
|
289
289
|
.ft-typography--caption {
|
|
290
290
|
font-family: ${ti};
|
|
291
291
|
font-size: ${ei};
|
|
@@ -332,7 +332,7 @@ const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void
|
|
|
332
332
|
</${pe(this.element)}>
|
|
333
333
|
`:de`
|
|
334
334
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
335
|
-
`}}Bi.styles=[Si,ki,Ni,Ci,Ei,Ri,
|
|
335
|
+
`}}Bi.styles=[Si,ki,Ni,Ci,Ei,Mi,Ri,ji,Ui,Fi,zi],Ai([o()],Bi.prototype,"element",void 0),Ai([o()],Bi.prototype,"variant",void 0),c("ft-typography")(Bi);
|
|
336
336
|
/**
|
|
337
337
|
* @license
|
|
338
338
|
* Copyright 2017 Google LLC
|
|
@@ -484,10 +484,9 @@ class Li extends Bt{constructor(t){if(super(t),this.et=G,t.type!==zt)throw Error
|
|
|
484
484
|
flex-grow: 1;
|
|
485
485
|
overflow: auto;
|
|
486
486
|
}
|
|
487
|
-
`,Qi=bt.create("--ft-tooltip-distance","SIZE","4px"),to=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),eo=bt.create("--ft-tooltip-background-color","COLOR","#666666"),io=bt.create("--ft-tooltip-z-index","NUMBER","
|
|
487
|
+
`,Qi=bt.create("--ft-tooltip-distance","SIZE","4px"),to=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),eo=bt.create("--ft-tooltip-background-color","COLOR","#666666"),io=bt.create("--ft-tooltip-z-index","NUMBER","100"),oo=bt.external(gt.borderRadiusS,"Design system"),so=bt.create("--ft-tooltip-max-width","SIZE","150px"),ro=y`
|
|
488
488
|
.ft-tooltip--container {
|
|
489
489
|
display: block;
|
|
490
|
-
position: relative;
|
|
491
490
|
}
|
|
492
491
|
|
|
493
492
|
.ft-tooltip--inline {
|
|
@@ -511,8 +510,6 @@ class Li extends Bt{constructor(t){if(super(t),this.et=G,t.type!==zt)throw Error
|
|
|
511
510
|
border-radius: ${oo};
|
|
512
511
|
background-color: ${eo};
|
|
513
512
|
color: ${to};
|
|
514
|
-
top: -500px;
|
|
515
|
-
left: -500px;
|
|
516
513
|
position: relative;
|
|
517
514
|
word-break: break-word;
|
|
518
515
|
}
|
|
@@ -534,13 +531,13 @@ class Li extends Bt{constructor(t){if(super(t),this.et=G,t.type!==zt)throw Error
|
|
|
534
531
|
</div>
|
|
535
532
|
</div>
|
|
536
533
|
</div>
|
|
537
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=
|
|
534
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let r=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=n+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;a.top=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${so})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ao.elementDefinitions={"ft-typography":Bi},ao.styles=ro,no([o()],ao.prototype,"text",void 0),no([o({type:Boolean})],ao.prototype,"manual",void 0),no([o({type:Boolean})],ao.prototype,"inline",void 0),no([o({type:Number})],ao.prototype,"delay",void 0),no([o()],ao.prototype,"position",void 0),no([
|
|
538
535
|
/**
|
|
539
536
|
* @license
|
|
540
537
|
* Copyright 2017 Google LLC
|
|
541
538
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
542
539
|
*/
|
|
543
|
-
function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?l(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ao.prototype,"slotNodes",void 0),no([n(".ft-tooltip--container")],ao.prototype,"container",void 0),no([n("
|
|
540
|
+
function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?l(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ao.prototype,"slotNodes",void 0),no([n(".ft-tooltip--container")],ao.prototype,"container",void 0),no([n(".ft-tooltip")],ao.prototype,"tooltip",void 0),no([n(".ft-tooltip--content")],ao.prototype,"tooltipContent",void 0),no([s()],ao.prototype,"visible",void 0),c("ft-tooltip")(ao);var lo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ho extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class co extends Et{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new wt)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const e={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},i=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return X`
|
|
544
541
|
<div class="${Kt(e)}" part="container">
|
|
545
542
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
546
543
|
${Ht(this.ftTabs,((t,e)=>this.addTooltipIfNecessary(t,X`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tabs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"description": "Generic tabs component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.0.
|
|
23
|
-
"@fluid-topics/ft-ripple": "1.0.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.0.53",
|
|
23
|
+
"@fluid-topics/ft-ripple": "1.0.53",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "1.0.53",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.0.53",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.0.53",
|
|
27
27
|
"lit": "2.7.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "adfef35652b764d792d22aeef90c706676636803"
|
|
30
30
|
}
|