@fluid-topics/ft-accordion 0.3.51 → 0.3.52
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-accordion.light.js +21 -19
- package/build/ft-accordion.min.js +14 -12
- package/package.json +6 -6
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
.ft-accordion {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
5
|
-
`;var
|
|
5
|
+
`;var l=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 p extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
|
|
6
6
|
<div class="ft-accordion">
|
|
7
7
|
<slot @activated=${this.onChange}></slot>
|
|
8
8
|
</div>
|
|
9
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}
|
|
9
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}p.elementDefinitions={},p.styles=n,l([o.property({type:Boolean})],p.prototype,"multi",void 0),l([o.query("slot")],p.prototype,"content",void 0);const a=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),f=a,h=e.FtCssVariableFactory.extend("--ft-ripple-background-color",a),c=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),d=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),x=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),g=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=y,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color",y),m=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),b=m,$=e.FtCssVariableFactory.extend("--ft-ripple-background-color",m),w=i.css`
|
|
10
10
|
:host {
|
|
11
11
|
display: contents;
|
|
12
12
|
}
|
|
@@ -84,18 +84,18 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
87
|
-
opacity: ${
|
|
87
|
+
opacity: ${g};
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
91
|
-
opacity: ${
|
|
91
|
+
opacity: ${x};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
95
95
|
opacity: ${c};
|
|
96
96
|
transform: translate(-50%, -50%) scale(1);
|
|
97
97
|
}
|
|
98
|
-
`;var k,z=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
98
|
+
`;var k,z=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 j extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
99
99
|
<style>
|
|
100
100
|
.ft-ripple .ft-ripple--effect,
|
|
101
101
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -112,15 +112,15 @@
|
|
|
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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}j.elementDefinitions={},j.styles=w,z([o.property({type:Boolean})],j.prototype,"primary",void 0),z([o.property({type:Boolean})],j.prototype,"secondary",void 0),z([o.property({type:Boolean})],j.prototype,"unbounded",void 0),z([o.property({type:Boolean})],j.prototype,"activated",void 0),z([o.property({type:Boolean})],j.prototype,"selected",void 0),z([o.property({type:Boolean})],j.prototype,"disabled",void 0),z([o.state()],j.prototype,"hovered",void 0),z([o.state()],j.prototype,"focused",void 0),z([o.state()],j.prototype,"pressed",void 0),z([o.state()],j.prototype,"rippling",void 0),z([o.state()],j.prototype,"rippleSize",void 0),z([o.state()],j.prototype,"originX",void 0),z([o.state()],j.prototype,"originY",void 0),z([o.query(".ft-ripple")],j.prototype,"ripple",void 0),z([o.query(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(j);const N=window,O=N.trustedTypes,_=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,A="?"+S,E=`<${A}>`,I=document,U=(t="")=>I.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,W=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),R=/'/g,Z=/"/g,D=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),H=new WeakMap,L=I.createTreeWalker(I,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=B;for(let e=0;e<i;e++){const i=t[e];let p,l,a=-1,f=0;for(;f<i.length&&(n.lastIndex=f,l=n.exec(i),null!==l);)f=n.lastIndex,n===B?"!--"===l[1]?n=T:void 0!==l[1]?n=W:void 0!==l[2]?(D.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=K):void 0!==l[3]&&(n=K):n===K?">"===l[0]?(n=null!=s?s:B,a=-1):void 0===l[1]?a=-2:(a=n.lastIndex-l[2].length,p=l[1],n=void 0===l[3]?K:'"'===l[3]?Z:R):n===Z||n===R?n=K:n===T||n===W?n=B:(n=K,s=void 0);const h=n===K&&t[e+1].startsWith("/>")?" ":"";r+=n===B?i+E:a>=0?(o.push(p),i.slice(0,a)+"$lit$"+i.slice(a)+S+h):i+S+(-2===a?(o.push(void 0),e):h)}const p=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==_?_.createHTML(p):p,o]};class Y{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,p=this.parts,[l,a]=X(t,e);if(this.el=Y.createElement(l,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=L.nextNode())&&p.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);p.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?ot:V})}else p.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(D.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),L.nextNode(),p.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===A)p.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)p.push({type:7,index:s}),t+=S.length-1}s++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var s,r,n,p;if(e===q)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===a?l=void 0:(l=new a(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(p=i)._$Co)&&void 0!==n?n:p._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=J(t,l._$AS(t,e.values),l,o)),e}class P{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);L.currentNode=s;let r=L.nextNode(),n=0,p=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new st(r,this,t)),this.u.push(e),l=o[++p]}n!==(null==l?void 0:l.index)&&(r=L.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),M(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==F&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new P(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new Y(t)),e}k(t){C(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 Q(this.O(U()),this.O(U()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,o,s){this.type=1,this._$AH=F,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=F}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=J(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const o=t;let n,p;for(t=s[0],n=0;n<s.length-1;n++)p=J(this,o[i+n],e,n),p===q&&(p=this._$AH[n]),r||(r=!M(p)||p!==this._$AH[n]),p===F?t=F:t!==F&&(t+=(null!=p?p:"")+s[n+1]),this._$AH[n]=p}r&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const et=O?O.emptyScript:"";class it extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class ot extends V{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=J(this,t,e,0))&&void 0!==i?i:F)===q)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==F&&(o===F||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 st{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){J(this,t)}}const rt=N.litHtmlPolyfillSupport;null==rt||rt(Y,Q),(null!==(k=N.litHtmlVersions)&&void 0!==k?k:N.litHtmlVersions=[]).push("2.4.0");
|
|
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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}j.elementDefinitions={},j.styles=w,z([o.property({type:Boolean})],j.prototype,"primary",void 0),z([o.property({type:Boolean})],j.prototype,"secondary",void 0),z([o.property({type:Boolean})],j.prototype,"unbounded",void 0),z([o.property({type:Boolean})],j.prototype,"activated",void 0),z([o.property({type:Boolean})],j.prototype,"selected",void 0),z([o.property({type:Boolean})],j.prototype,"disabled",void 0),z([o.state()],j.prototype,"hovered",void 0),z([o.state()],j.prototype,"focused",void 0),z([o.state()],j.prototype,"pressed",void 0),z([o.state()],j.prototype,"rippling",void 0),z([o.state()],j.prototype,"rippleSize",void 0),z([o.state()],j.prototype,"originX",void 0),z([o.state()],j.prototype,"originY",void 0),z([o.query(".ft-ripple")],j.prototype,"ripple",void 0),z([o.query(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(j);const N=window,O=N.trustedTypes,_=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,A="?"+S,E=`<${A}>`,I=document,U=(t="")=>I.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,W=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),R=/'/g,Z=/"/g,D=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),H=new WeakMap,L=I.createTreeWalker(I,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=B;for(let e=0;e<i;e++){const i=t[e];let l,p,a=-1,f=0;for(;f<i.length&&(n.lastIndex=f,p=n.exec(i),null!==p);)f=n.lastIndex,n===B?"!--"===p[1]?n=T:void 0!==p[1]?n=W:void 0!==p[2]?(D.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=K):void 0!==p[3]&&(n=K):n===K?">"===p[0]?(n=null!=s?s:B,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?K:'"'===p[3]?Z:R):n===Z||n===R?n=K:n===T||n===W?n=B:(n=K,s=void 0);const h=n===K&&t[e+1].startsWith("/>")?" ":"";r+=n===B?i+E:a>=0?(o.push(l),i.slice(0,a)+"$lit$"+i.slice(a)+S+h):i+S+(-2===a?(o.push(void 0),e):h)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==_?_.createHTML(l):l,o]};class Y{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[p,a]=X(t,e);if(this.el=Y.createElement(p,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=L.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const i=a[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?ot:V})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(D.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),L.nextNode(),l.push({type:2,index:++s});o.append(t[e],U())}}}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(S,t+1));)l.push({type:7,index:s}),t+=S.length-1}s++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var s,r,n,l;if(e===q)return e;let p=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=M(e)?void 0:e._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[o]=p:i._$Cl=p),void 0!==p&&(e=J(t,p._$AS(t,e.values),p,o)),e}class P{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);L.currentNode=s;let r=L.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new Q(r,r.nextSibling,this,t):1===p.type?e=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(e=new st(r,this,t)),this.u.push(e),p=o[++l]}n!==(null==p?void 0:p.index)&&(r=L.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),M(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==F&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new P(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new Y(t)),e}k(t){C(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 Q(this.O(U()),this.O(U()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,o,s){this.type=1,this._$AH=F,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=F}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=J(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=J(this,o[i+n],e,n),l===q&&(l=this._$AH[n]),r||(r=!M(l)||l!==this._$AH[n]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const et=O?O.emptyScript:"";class it extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class ot extends V{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=J(this,t,e,0))&&void 0!==i?i:F)===q)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==F&&(o===F||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 st{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){J(this,t)}}const rt=N.litHtmlPolyfillSupport;null==rt||rt(Y,Q),(null!==(k=N.litHtmlVersions)&&void 0!==k?k:N.litHtmlVersions=[]).push("2.4.0");
|
|
116
116
|
/**
|
|
117
117
|
* @license
|
|
118
118
|
* Copyright 2020 Google LLC
|
|
119
119
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
120
|
*/
|
|
121
|
-
const nt=Symbol.for(""),
|
|
121
|
+
const nt=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void 0:t._$litStatic$},pt=t=>({_$litStatic$:t,r:nt}),at=new Map,ft=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(r=i[a],s=lt(r));)p+=s+e[++a],f=!0;l.push(r),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=at.get(t))&&(n.raw=n,at.set(t,e=n)),i=l}return t(e,...i)})(G);var ht;!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"}(ht||(ht={}));const ct=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),dt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),xt={fontFamily:dt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",ct),yt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",xt.fontSize,"20px"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",xt.fontWeight,"normal"),vt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",xt.letterSpacing,"0.15px"),mt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",xt.lineHeight,"1.2"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",xt.textTransform,"inherit"),$t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ct),wt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",xt.fontSize,"14px"),kt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",xt.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",xt.letterSpacing,"0.105px"),jt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",xt.lineHeight,"1.7"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",xt.textTransform,"inherit"),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",dt),_t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",xt.fontSize,"16px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",xt.fontWeight,"600"),At=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",xt.letterSpacing,"0.144px"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",xt.lineHeight,"1.5"),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",xt.textTransform,"inherit"),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",dt),Mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",xt.fontSize,"14px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",xt.fontWeight,"normal"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",xt.letterSpacing,"0.098px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",xt.lineHeight,"1.7"),Wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",xt.textTransform,"inherit"),Kt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",dt),Rt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",xt.fontSize,"16px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",xt.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",xt.letterSpacing,"0.496px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",xt.lineHeight,"1.5"),qt=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",xt.textTransform,"inherit"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",dt),Ht=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",xt.fontSize,"14px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",xt.fontWeight,"normal"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",xt.letterSpacing,"0.252px"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",xt.lineHeight,"1.4"),Jt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",xt.textTransform,"inherit"),Pt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",dt),Qt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",xt.fontSize,"12px"),Vt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",xt.fontWeight,"normal"),te=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",xt.letterSpacing,"0.396px"),ee=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",xt.lineHeight,"1.33"),ie=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",xt.textTransform,"inherit"),oe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",dt),se=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",xt.fontSize,"10px"),re=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",xt.fontWeight,"normal"),ne=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",xt.letterSpacing,"0.33px"),le=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",xt.lineHeight,"1.6"),pe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",xt.textTransform,"inherit"),ae=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",dt),fe=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",xt.fontSize,"10px"),he=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",xt.fontWeight,"normal"),ce=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",xt.letterSpacing,"1.5px"),de=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",xt.lineHeight,"1.6"),xe=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",xt.textTransform,"uppercase"),ge=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",dt),ye=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",xt.fontSize,"14px"),ue=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",xt.fontWeight,"600"),ve=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",xt.letterSpacing,"1.246px"),me=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",xt.lineHeight,"1.15"),be=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",xt.textTransform,"uppercase"),$e=i.css`
|
|
122
122
|
.ft-typography--title {
|
|
123
|
-
font-family: ${
|
|
123
|
+
font-family: ${gt};
|
|
124
124
|
font-size: ${yt};
|
|
125
125
|
font-weight: ${ut};
|
|
126
126
|
letter-spacing: ${vt};
|
|
@@ -188,8 +188,8 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
188
188
|
font-size: ${se};
|
|
189
189
|
font-weight: ${re};
|
|
190
190
|
letter-spacing: ${ne};
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
191
|
+
line-height: ${le};
|
|
192
|
+
text-transform: ${pe};
|
|
193
193
|
}
|
|
194
194
|
`,Se=i.css`
|
|
195
195
|
.ft-typography--overline {
|
|
@@ -198,11 +198,11 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
198
198
|
font-weight: ${he};
|
|
199
199
|
letter-spacing: ${ce};
|
|
200
200
|
line-height: ${de};
|
|
201
|
-
text-transform: ${
|
|
201
|
+
text-transform: ${xe};
|
|
202
202
|
}
|
|
203
203
|
`,Ae=i.css`
|
|
204
204
|
.ft-typography--button {
|
|
205
|
-
font-family: ${
|
|
205
|
+
font-family: ${ge};
|
|
206
206
|
font-size: ${ye};
|
|
207
207
|
font-weight: ${ue};
|
|
208
208
|
letter-spacing: ${ve};
|
|
@@ -213,18 +213,19 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
213
213
|
.ft-typography {
|
|
214
214
|
vertical-align: inherit;
|
|
215
215
|
}
|
|
216
|
-
`;var Ie,Ue,Me=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
217
|
-
<${
|
|
216
|
+
`;var Ie,Ue,Me=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 Ce extends e.FtLitElement{constructor(){super(...arguments),this.variant=ht.body1}render(){return this.element?ft`
|
|
217
|
+
<${pt(this.element)}
|
|
218
218
|
class="ft-typography ft-typography--${this.variant}">
|
|
219
219
|
<slot></slot>
|
|
220
|
-
</${
|
|
220
|
+
</${pt(this.element)}>
|
|
221
221
|
`:ft`
|
|
222
222
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
223
223
|
`}}Ce.styles=[$e,we,ke,ze,je,Ne,Oe,_e,Se,Ae,Ee],Me([o.property()],Ce.prototype,"element",void 0),Me([o.property()],Ce.prototype,"variant",void 0),e.customElement("ft-typography")(Ce),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.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=""}(Ie||(Ie={})),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=""}(Ue||(Ue={})),new Map([...["abw"].map((t=>[t,Ue.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,Ue.AUDIO])),...["avi"].map((t=>[t,Ue.AVI])),...["chm","xhs"].map((t=>[t,Ue.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,Ue.CODE])),...["csv"].map((t=>[t,Ue.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ue.DITA])),...["epub"].map((t=>[t,Ue.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ue.EXCEL])),...["flac"].map((t=>[t,Ue.FLAC])),...["gif"].map((t=>[t,Ue.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ue.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ue.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,Ue.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ue.JPEG])),...["json"].map((t=>[t,Ue.JSON])),...["m4a","m4p"].map((t=>[t,Ue.M4A])),...["mov","qt"].map((t=>[t,Ue.MOV])),...["mp3"].map((t=>[t,Ue.MP3])),...["mp4","m4v"].map((t=>[t,Ue.MP4])),...["ogg","oga"].map((t=>[t,Ue.OGG])),...["pdf","ps"].map((t=>[t,Ue.PDF])),...["png"].map((t=>[t,Ue.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ue.POWERPOINT])),...["rar"].map((t=>[t,Ue.RAR])),...["stp"].map((t=>[t,Ue.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ue.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,Ue.VIDEO])),...["wav"].map((t=>[t,Ue.WAV])),...["wma"].map((t=>[t,Ue.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ue.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ue.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ue.YAML])),...["zip"].map((t=>[t,Ue.ZIP]))]);const Be=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Te=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),We=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ke=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Re=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ze=i.css`
|
|
224
224
|
:host, i.ft-icon {
|
|
225
225
|
display: inline-flex;
|
|
226
226
|
align-items: center;
|
|
227
|
-
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
flex-grow: 0;
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
:host {
|
|
@@ -256,6 +257,7 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
256
257
|
font-size: calc(0.9 * ${Be});
|
|
257
258
|
position: relative;
|
|
258
259
|
top: -5%;
|
|
260
|
+
justify-content: center;
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
.ft-icon--file-format {
|
|
@@ -265,7 +267,7 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
265
267
|
.ft-icon--material {
|
|
266
268
|
font-family: ${Ke}, "Material Icons", sans-serif;
|
|
267
269
|
}
|
|
268
|
-
`;var De;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(De||(De={}));var Ge=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
270
|
+
`;var De;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(De||(De={}));var Ge=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 qe extends e.FtLitElement{constructor(){super(...arguments),this.variant=De.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
|
|
269
271
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
270
272
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
271
273
|
<slot ?hidden=${t}></slot>
|
|
@@ -315,7 +317,7 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
315
317
|
.ft-accordion-item--separator {
|
|
316
318
|
border-bottom: 1px solid ${Fe.colorOutline};
|
|
317
319
|
}
|
|
318
|
-
`;var Le=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
320
|
+
`;var Le=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 Xe extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
|
|
319
321
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
320
322
|
<div class="ft-accordion-item--toggle"
|
|
321
323
|
part="toggle"
|
|
@@ -339,4 +341,4 @@ const nt=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
339
341
|
</div>
|
|
340
342
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
341
343
|
</div>
|
|
342
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Xe.elementDefinitions={"ft-ripple":j,"ft-typography":Ce,"ft-icon":qe},Xe.styles=He,Le([o.property({type:String})],Xe.prototype,"icon",void 0),Le([o.property({type:String})],Xe.prototype,"label",void 0),Le([o.property({type:Boolean,reflect:!0})],Xe.prototype,"active",void 0),e.customElement("ft-accordion")(
|
|
344
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Xe.elementDefinitions={"ft-ripple":j,"ft-typography":Ce,"ft-icon":qe},Xe.styles=He,Le([o.property({type:String})],Xe.prototype,"icon",void 0),Le([o.property({type:String})],Xe.prototype,"label",void 0),Le([o.property({type:Boolean,reflect:!0})],Xe.prototype,"active",void 0),e.customElement("ft-accordion")(p),e.customElement("ft-accordion-item")(Xe),t.FtAccordion=p,t.FtAccordionCssVariables={},t.FtAccordionItem=Xe,t.FtAccordionItemCssVariables=Fe,t.itemStyles=He,t.styles=n,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -51,19 +51,19 @@ const l=window,c=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"
|
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var v;const g=window,m=g.trustedTypes,b=m?m.emptyScript:"",w=g.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class
|
|
54
|
+
*/;var v;const g=window,m=g.trustedTypes,b=m?m.emptyScript:"",w=g.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=S){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:$).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:$;this._$El=s,this[s]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var k
|
|
60
|
+
var N;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(v=g.reactiveElementVersions)&&void 0!==v?v:g.reactiveElementVersions=[]).push("1.4.1");const E=window,C=E.trustedTypes,R=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,U="?"+M,j=`<${U}>`,z=document,F=(t="")=>z.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,P=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),D=/'/g,W=/"/g,K=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),H=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=z.createTreeWalker(z,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=_;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,p=0;for(;p<i.length&&(n.lastIndex=p,l=n.exec(i),null!==l);)p=n.lastIndex,n===_?"!--"===l[1]?n=B:void 0!==l[1]?n=P:void 0!==l[2]?(K.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=T):void 0!==l[3]&&(n=T):n===T?">"===l[0]?(n=null!=s?s:_,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?T:'"'===l[3]?W:D):n===W||n===D?n=T:n===B||n===P?n=_:(n=T,s=void 0);const h=n===T&&t[e+1].startsWith("/>")?" ":"";r+=n===_?i+j:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+M+h):i+M+(-2===c?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class X{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,c]=q(t,e);if(this.el=X.createElement(l,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?st:tt})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],F()),J.nextNode(),a.push({type:2,index:++s});o.append(t[e],F())}}}else if(8===o.nodeType)if(o.data===U)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var s,r,n,a;if(e===H)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(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=Y(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);J.currentNode=s;let r=J.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new rt(r,this,t)),this.u.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=J.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var s;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),A(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==H&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Z&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new G(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new X(t)),e}k(t){L(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 Q(this.O(F()),this.O(F()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,s){this.type=1,this._$AH=Z,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=Z}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=Y(this,t,e,0),r=!A(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=Y(this,o[i+n],e,n),a===H&&(a=this._$AH[n]),r||(r=!A(a)||a!==this._$AH[n]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const it=C?C.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class st extends tt{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=Y(this,t,e,0))&&void 0!==i?i:Z)===H)return;const o=this._$AH,s=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||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 rt{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){Y(this,t)}}const nt=E.litHtmlPolyfillSupport;null==nt||nt(X,Q),(null!==(N=E.litHtmlVersions)&&void 0!==N?N:E.litHtmlVersions=[]).push("2.4.0");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var at,lt;class ct extends
|
|
66
|
+
var at,lt;class ct extends k{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 Q(e.insertBefore(F(),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 H}}ct.finalized=!0,ct._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ct}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ht{static create(t,e,i){let o=t=>d(null!=t?t:i),s=u`var(${d(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>u`var(${d(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=u`var(${d(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>u`var(${d(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):d(null!=e?e:t.defaultValue),o=u`var(${d(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=>u`var(${d(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 ft={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
@@ -73,7 +73,7 @@ var at,lt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.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 c=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=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}yt([o()],xt.prototype,"exportpartsPrefix",void 0),yt([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)},...null!=e?e:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),u`
|
|
76
|
+
`}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.exportpartsDebouncer.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 c=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=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}yt([o()],xt.prototype,"exportpartsPrefix",void 0),yt([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)},...null!=e?e:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),yt([o()],xt.prototype,"customStylesheet",void 0),u`
|
|
77
77
|
.ft-no-text-select {
|
|
78
78
|
-webkit-touch-callout: none;
|
|
79
79
|
-webkit-user-select: none;
|
|
@@ -113,7 +113,7 @@ const bt=1,wt=2,$t=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
|
|
|
113
113
|
* @license
|
|
114
114
|
* Copyright 2018 Google LLC
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/const St=$t(class extends Ot{constructor(t){var e;if(super(t),t.type!==bt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return H}}),
|
|
116
|
+
*/const St=$t(class extends Ot{constructor(t){var e;if(super(t),t.type!==bt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return H}}),kt=ht.extend("--ft-ripple-color",ft.colorContent),Nt=kt,Et=ht.extend("--ft-ripple-background-color",kt),Ct=ht.external(ft.opacityContentOnSurfacePressed,"Design system"),Rt=ht.external(ft.opacityContentOnSurfaceHover,"Design system"),Mt=ht.external(ft.opacityContentOnSurfaceFocused,"Design system"),Ut=ht.external(ft.opacityContentOnSurfaceSelected,"Design system"),jt=ht.extend("--ft-ripple-color",ft.colorPrimary),zt=jt,Ft=ht.extend("--ft-ripple-background-color",jt),At=ht.extend("--ft-ripple-color",ft.colorSecondary),Lt=At,_t=ht.extend("--ft-ripple-background-color",At),Bt=u`
|
|
117
117
|
:host {
|
|
118
118
|
display: contents;
|
|
119
119
|
}
|
|
@@ -139,7 +139,7 @@ const bt=1,wt=2,$t=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.ft-ripple .ft-ripple--effect {
|
|
142
|
-
background-color: ${
|
|
142
|
+
background-color: ${Nt};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -225,7 +225,7 @@ const bt=1,wt=2,$t=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructo
|
|
|
225
225
|
* Copyright 2020 Google LLC
|
|
226
226
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
227
227
|
*/
|
|
228
|
-
const Dt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void 0:t._$litStatic$},Kt=t=>({_$litStatic$:t,r:Dt}),It=new Map,Ht=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],s=Wt(r));)l+=s+e[++c],p=!0;a.push(r),n.push(l),c++}if(c===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=It.get(t))&&(n.raw=n,It.set(t,e=n)),i=a}return t(e,...i)})(I);var Zt;!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"}(Zt||(Zt={}));const Vt=ht.extend("--ft-typography-font-family",ft.titleFont),Jt=ht.extend("--ft-typography-font-family",ft.contentFont),qt={fontFamily:Jt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ht.extend("--ft-typography-title-font-family",Vt),Yt=ht.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ht.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ht.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=ht.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=ht.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=ht.extend("--ft-typography-title-dense-font-family",Vt),oe=ht.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),se=ht.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),re=ht.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),ne=ht.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),ae=ht.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),le=ht.extend("--ft-typography-subtitle1-font-family",Jt),ce=ht.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),pe=ht.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),he=ht.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=ht.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=ht.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=ht.extend("--ft-typography-subtitle2-font-family",Jt),ye=ht.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xe=ht.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),ve=ht.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),ge=ht.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),me=ht.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),be=ht.extend("--ft-typography-body1-font-family",Jt),we=ht.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$e=ht.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oe=ht.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Se=ht.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),
|
|
228
|
+
const Dt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void 0:t._$litStatic$},Kt=t=>({_$litStatic$:t,r:Dt}),It=new Map,Ht=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],s=Wt(r));)l+=s+e[++c],p=!0;a.push(r),n.push(l),c++}if(c===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=It.get(t))&&(n.raw=n,It.set(t,e=n)),i=a}return t(e,...i)})(I);var Zt;!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"}(Zt||(Zt={}));const Vt=ht.extend("--ft-typography-font-family",ft.titleFont),Jt=ht.extend("--ft-typography-font-family",ft.contentFont),qt={fontFamily:Jt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ht.extend("--ft-typography-title-font-family",Vt),Yt=ht.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ht.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ht.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=ht.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=ht.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=ht.extend("--ft-typography-title-dense-font-family",Vt),oe=ht.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),se=ht.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),re=ht.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),ne=ht.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),ae=ht.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),le=ht.extend("--ft-typography-subtitle1-font-family",Jt),ce=ht.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),pe=ht.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),he=ht.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=ht.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=ht.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=ht.extend("--ft-typography-subtitle2-font-family",Jt),ye=ht.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xe=ht.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),ve=ht.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),ge=ht.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),me=ht.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),be=ht.extend("--ft-typography-body1-font-family",Jt),we=ht.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$e=ht.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oe=ht.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Se=ht.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),ke=ht.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ne=ht.extend("--ft-typography-body2-font-family",Jt),Ee=ht.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ce=ht.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Re=ht.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),Me=ht.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Ue=ht.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),je=ht.extend("--ft-typography-caption-font-family",Jt),ze=ht.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),Fe=ht.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Ae=ht.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Le=ht.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),_e=ht.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Be=ht.extend("--ft-typography-breadcrumb-font-family",Jt),Pe=ht.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),Te=ht.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),De=ht.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),We=ht.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Ke=ht.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),Ie=ht.extend("--ft-typography-overline-font-family",Jt),He=ht.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Ze=ht.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ve=ht.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Je=ht.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qe=ht.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xe=ht.extend("--ft-typography-button-font-family",Jt),Ye=ht.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),Ge=ht.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),Qe=ht.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),ti=ht.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),ei=ht.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase"),ii=u`
|
|
229
229
|
.ft-typography--title {
|
|
230
230
|
font-family: ${Xt};
|
|
231
231
|
font-size: ${Yt};
|
|
@@ -269,11 +269,11 @@ const Dt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void
|
|
|
269
269
|
font-weight: ${$e};
|
|
270
270
|
letter-spacing: ${Oe};
|
|
271
271
|
line-height: ${Se};
|
|
272
|
-
text-transform: ${
|
|
272
|
+
text-transform: ${ke};
|
|
273
273
|
}
|
|
274
274
|
`,ai=u`
|
|
275
275
|
.ft-typography--body2 {
|
|
276
|
-
font-family: ${
|
|
276
|
+
font-family: ${Ne};
|
|
277
277
|
font-size: ${Ee};
|
|
278
278
|
font-weight: ${Ce};
|
|
279
279
|
letter-spacing: ${Re};
|
|
@@ -337,7 +337,8 @@ class yi extends Ot{constructor(t){if(super(t),this.it=Z,t.type!==wt)throw Error
|
|
|
337
337
|
:host, i.ft-icon {
|
|
338
338
|
display: inline-flex;
|
|
339
339
|
align-items: center;
|
|
340
|
-
|
|
340
|
+
flex-shrink: 0;
|
|
341
|
+
flex-grow: 0;
|
|
341
342
|
}
|
|
342
343
|
|
|
343
344
|
:host {
|
|
@@ -369,6 +370,7 @@ class yi extends Ot{constructor(t){if(super(t),this.it=Z,t.type!==wt)throw Error
|
|
|
369
370
|
font-size: calc(0.9 * ${mi});
|
|
370
371
|
position: relative;
|
|
371
372
|
top: -5%;
|
|
373
|
+
justify-content: center;
|
|
372
374
|
}
|
|
373
375
|
|
|
374
376
|
.ft-icon--file-format {
|
|
@@ -378,12 +380,12 @@ class yi extends Ot{constructor(t){if(super(t),this.it=Z,t.type!==wt)throw Error
|
|
|
378
380
|
.ft-icon--material {
|
|
379
381
|
font-family: ${$i}, "Material Icons", sans-serif;
|
|
380
382
|
}
|
|
381
|
-
`;var
|
|
383
|
+
`;var ki;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ki||(ki={}));var Ni=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 Ei extends xt{constructor(){super(...arguments),this.variant=ki.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return I`
|
|
382
384
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
383
385
|
${xi(this.resolvedIcon)}
|
|
384
386
|
<slot ?hidden=${t}></slot>
|
|
385
387
|
</i>
|
|
386
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
388
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case ki.file_format:this.resolvedIcon=null!==(t=gi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ki.fluid_topics:this.resolvedIcon=null!==(e=vi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ei.elementDefinitions={},Ei.styles=Si,Ni([o()],Ei.prototype,"variant",void 0),Ni([o()],Ei.prototype,"value",void 0),Ni([s()],Ei.prototype,"resolvedIcon",void 0),Ni([r("slot")],Ei.prototype,"slottedContent",void 0),a("ft-icon")(Ei);const Ci={horizontalSpacing:ht.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),verticalSpacing:ht.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),colorOutline:ht.external(ft.colorOutline,"Design system")},Ri=u`
|
|
387
389
|
.ft-accordion-item {
|
|
388
390
|
display: flex;
|
|
389
391
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-accordion",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.52",
|
|
4
4
|
"description": "The accordion component allows the user to show and hide sections of related content on a page.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
24
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.52",
|
|
23
|
+
"@fluid-topics/ft-ripple": "0.3.52",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.52",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.52",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "746cdd6b34c2fa25220ed735914fb1dff9c0fde7"
|
|
29
29
|
}
|