@fluid-topics/ft-collapsible 1.1.7 → 1.1.8
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-collapsible.min.js +198 -198
- package/package.json +4 -4
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(cn){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -58,7 +58,7 @@ const N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=N,o,
|
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const W=globalThis,K=W.trustedTypes,F=K?K.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+Z,A=`<${B}>`,
|
|
61
|
+
*/const W=globalThis,K=W.trustedTypes,F=K?K.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+Z,A=`<${B}>`,M=document,D=()=>M.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,T="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,G=/>/g,Y=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),ot=new WeakMap,et=M.createTreeWalker(M,129);function it(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==F?F.createHTML(o):o}let rt=class t{constructor({strings:o,_$litType$:e},i){let r;this.parts=[];let n=0,a=0;const s=o.length-1,l=this.parts,[c,p]=((t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=j;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===j?"!--"===l[1]?a=_:void 0!==l[1]?a=G:void 0!==l[2]?(q.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Y):void 0!==l[3]&&(a=Y):a===Y?">"===l[0]?(a=r??j,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Y:'"'===l[3]?J:V):a===J||a===V?a=Y:a===_||a===G?a=j:(a=Y,r=void 0);const f=a===Y&&t[o+1].startsWith("/>")?" ":"";n+=a===j?e+A:c>=0?(i.push(s),e.slice(0,c)+z+e.slice(c)+Z+f):e+Z+(-2===c?o:f)}return[it(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]})(o,e);if(this.el=t.createElement(c,i),et.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=et.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(z)){const o=p[a++],e=r.getAttribute(t).split(Z),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:i[2],strings:e,ctor:"."===i[1]?lt:"?"===i[1]?ct:"@"===i[1]?pt:st}),r.removeAttribute(t)}else t.startsWith(Z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(q.test(r.tagName)){const t=r.textContent.split(Z),o=t.length-1;if(o>0){r.textContent=K?K.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],D()),et.nextNode(),l.push({type:2,index:++n});r.append(t[o],D())}}}else if(8===r.nodeType)if(r.data===B)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Z,t+1));)l.push({type:7,index:n}),t+=Z.length-1}n++}}static createElement(t,o){const e=M.createElement("template");return e.innerHTML=t,e}};function nt(t,o,e=t,i){if(o===Q)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=P(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=nt(t,r._$AS(t,o.values),r,i)),o}let at=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=nt(this,t,o),P(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>H(t)||"function"==typeof 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!==tt&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=rt.createElement(it(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??M).importNode(o,!0);et.currentNode=i;let r=et.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new at(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new ft(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=et.nextNode(),n++)}return et.currentNode=M,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=ot.get(t.strings);return void 0===o&&ot.set(t.strings,o=new rt(t)),o}T(o){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of o)r===e.length?e.push(i=new t(this.k(D()),this.k(D()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},st=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=tt}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=nt(this,t,o,0),n=!P(t)||t!==this._$AH&&t!==Q,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=nt(this,i[e+a],o,a),s===Q&&(s=this._$AH[a]),n||=!P(s)||s!==this._$AH[a],s===tt?t=tt:t!==tt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends st{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===tt?void 0:t}},ct=class extends st{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},pt=class extends st{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=nt(this,t,o,0)??tt)===Q)return;const e=this._$AH,i=t===tt&&e!==tt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==tt&&(e===tt||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ft=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}};const ht=W.litHtmlPolyfillSupport;ht?.(rt,at),(W.litHtmlVersions??=[]).push("3.1.0");
|
|
62
62
|
/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2019 Google LLC
|
|
@@ -75,7 +75,7 @@ const dt=globalThis,ut=dt.ShadowRoot&&(void 0===dt.ShadyCSS||dt.ShadyCSS.nativeS
|
|
|
75
75
|
* Copyright 2017 Google LLC
|
|
76
76
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
77
77
|
*/
|
|
78
|
-
const zt=globalThis,Zt=zt.trustedTypes,Bt=Zt?Zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",
|
|
78
|
+
const zt=globalThis,Zt=zt.trustedTypes,Bt=Zt?Zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Mt=`lit$${(Math.random()+"").slice(9)}$`,Dt="?"+Mt,Pt=`<${Dt}>`,Ht=document,Tt=()=>Ht.createComment(""),jt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_t=Array.isArray,Gt="[ \t\n\f\r]",Yt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Jt=/>/g,qt=RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Qt=/"/g,to=/^(?:script|style|textarea|title)$/i,oo=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),eo=Symbol.for("lit-noChange"),io=Symbol.for("lit-nothing"),ro=new WeakMap,no=Ht.createTreeWalker(Ht,129);function ao(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Bt?Bt.createHTML(o):o}const so=(t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=Yt;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===Yt?"!--"===l[1]?a=Vt:void 0!==l[1]?a=Jt:void 0!==l[2]?(to.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=qt):void 0!==l[3]&&(a=qt):a===qt?">"===l[0]?(a=r??Yt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?qt:'"'===l[3]?Qt:Xt):a===Qt||a===Xt?a=qt:a===Vt||a===Jt?a=Yt:(a=qt,r=void 0);const f=a===qt&&t[o+1].startsWith("/>")?" ":"";n+=a===Yt?e+Pt:c>=0?(i.push(s),e.slice(0,c)+At+e.slice(c)+Mt+f):e+Mt+(-2===c?o:f)}return[ao(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class lo{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=so(t,o);if(this.el=lo.createElement(l,e),no.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=no.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(At)){const o=c[n++],e=i.getAttribute(t).split(Mt),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:a[2],strings:e,ctor:"."===a[1]?ho:"?"===a[1]?uo:"@"===a[1]?yo:fo}),i.removeAttribute(t)}else t.startsWith(Mt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(to.test(i.tagName)){const t=i.textContent.split(Mt),o=t.length-1;if(o>0){i.textContent=Zt?Zt.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Tt()),no.nextNode(),s.push({type:2,index:++r});i.append(t[o],Tt())}}}else if(8===i.nodeType)if(i.data===Dt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Mt,t+1));)s.push({type:7,index:r}),t+=Mt.length-1}r++}}static createElement(t,o){const e=Ht.createElement("template");return e.innerHTML=t,e}}function co(t,o,e=t,i){if(o===eo)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=jt(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=co(t,r._$AS(t,o.values),r,i)),o}class po{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=io,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=co(this,t,o),jt(t)?t===io||null==t||""===t?(this._$AH!==io&&this._$AR(),this._$AH=io):t!==this._$AH&&t!==eo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_t(t)||"function"==typeof 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!==io&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ht.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=lo.createElement(ao(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??Ht).importNode(o,!0);no.currentNode=i;let r=no.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new po(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new go(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=no.nextNode(),n++)}return no.currentNode=Ht,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=ro.get(t.strings);return void 0===o&&ro.set(t.strings,o=new lo(t)),o}T(t){_t(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new po(this.k(Tt()),this.k(Tt()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class fo{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=io,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=io}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=co(this,t,o,0),n=!jt(t)||t!==this._$AH&&t!==eo,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=co(this,i[e+a],o,a),s===eo&&(s=this._$AH[a]),n||=!jt(s)||s!==this._$AH[a],s===io?t=io:t!==io&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===io?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ho extends fo{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===io?void 0:t}}class uo extends fo{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==io)}}class yo extends fo{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=co(this,t,o,0)??io)===eo)return;const e=this._$AH,i=t===io&&e!==io||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==io&&(e===io||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class go{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){co(this,t)}}const bo=zt.litHtmlPolyfillSupport;bo?.(lo,po),(zt.litHtmlVersions??=[]).push("3.1.0");
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2017 Google LLC
|
|
@@ -122,17 +122,17 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
122
122
|
display: inline-block;
|
|
123
123
|
width: 0;
|
|
124
124
|
}
|
|
125
|
-
`;window.ftReduxStores||(window.ftReduxStores={});const
|
|
125
|
+
`;function Mo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Do,Po,Ho;const To=Symbol("internalReduxEventsUnsubscribers"),jo=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores");class Go extends zo{constructor(){super(...arguments),this[Do]=new Map,this[Po]=new Map,this[Ho]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[_o].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Mo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[_o].delete(o)}setupStore(t,o){this[_o].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[_o].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[jo].has(t.store):this[jo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[jo].set(t,o.subscribe((()=>this.updateFromStores()))),Mo(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const i=t=>this[e](t);o.eventBus.addEventListener(t.eventName,i),this[To].push((()=>o.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[jo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[To].forEach((t=>t())),this[To]=[]}unsubscribeFromStore(t){this[jo].has(t)&&this[jo].get(t)(),this[jo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Do=jo,Po=_o,Ho=To,Go.reduxProperties=new Map,Go.reduxReactiveProperties=new Set,Go.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={});const Yo=Symbol("elementInternals");var Vo,Jo,qo;const Xo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qo=null===(Jo=null===(Vo=window.safari)||void 0===Vo?void 0:Vo.pushNotification)||void 0===Jo?void 0:Jo.toString())&&void 0!==qo?qo:""),Qo=1,te=2,oe=t=>(...o)=>({_$litDirective$:t,values:o});
|
|
126
126
|
/**
|
|
127
127
|
* @license
|
|
128
128
|
* Copyright 2017 Google LLC
|
|
129
129
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
130
|
-
*/let
|
|
130
|
+
*/let ee=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
|
|
131
131
|
/**
|
|
132
132
|
* @license
|
|
133
133
|
* Copyright 2018 Google LLC
|
|
134
134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
-
*/const
|
|
135
|
+
*/const ie=oe(class extends ee{constructor(t){if(super(t),t.type!==Qo||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return Q}});var re=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ne extends zo{constructor(){super(...arguments),this.open=!1,this.animated=!1,this.closeCollapsibleMatchers=[],this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.dense=!1,this.round=!1,this.small=!1,this.disabled=!1,this.tooltipPosition="right",this.openIcon="THIN_ARROW",this.closedIcon="THIN_ARROW_RIGHT",this.trailingIcon=!1,this.animationInProgress=!1,this.animationEndSafeguard=new U(800)}render(){const t={"ft-collapsible--content":!0,"ft-collapsible--hidden":!this.open,"ft-collapsible--animated":this.animated,"ft-collapsible--animation-in-progress":this.animated&&this.animationInProgress};return oo`
|
|
136
136
|
<slot name="toggle"
|
|
137
137
|
part="toggle"
|
|
138
138
|
@click=${this.toggleOpenAnimation}>
|
|
@@ -158,10 +158,10 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
158
158
|
</ft-or-ftds-button>
|
|
159
159
|
</slot>
|
|
160
160
|
<slot id="ft-collapsible-content"
|
|
161
|
-
class="${
|
|
161
|
+
class="${ie(t)}"
|
|
162
162
|
@click=${this.onContentClick}
|
|
163
163
|
@transitionend=${()=>this.animationInProgress=!1}></slot>
|
|
164
|
-
`}toggleOpenAnimation(){this.animationInProgress=!0,setTimeout((()=>this.toggleOpen()),5),this.animationEndSafeguard.run((()=>this.animationInProgress=!1))}toggleOpen(){this.open=!this.open,this.dispatchEvent(new CustomEvent("change",{detail:{open:this.open}}))}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeCollapsibleMatchers,this)&&this.toggleOpenAnimation()}}
|
|
164
|
+
`}toggleOpenAnimation(){this.animationInProgress=!0,setTimeout((()=>this.toggleOpen()),5),this.animationEndSafeguard.run((()=>this.animationInProgress=!1))}toggleOpen(){this.open=!this.open,this.dispatchEvent(new CustomEvent("change",{detail:{open:this.open}}))}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeCollapsibleMatchers,this)&&this.toggleOpenAnimation()}}re([w({type:Boolean,reflect:!0})],ne.prototype,"open",void 0),re([w({type:Boolean})],ne.prototype,"animated",void 0),re([L([])],ne.prototype,"closeCollapsibleMatchers",void 0),re([w({type:Boolean})],ne.prototype,"primary",void 0),re([w({type:Boolean})],ne.prototype,"secondary",void 0),re([w({type:Boolean})],ne.prototype,"tertiary",void 0),re([w({type:Boolean})],ne.prototype,"neutral",void 0),re([w({type:Boolean})],ne.prototype,"dense",void 0),re([w({type:Boolean})],ne.prototype,"round",void 0),re([w({type:Boolean})],ne.prototype,"small",void 0),re([w()],ne.prototype,"label",void 0),re([w()],ne.prototype,"openLabel",void 0),re([w()],ne.prototype,"closedLabel",void 0),re([w()],ne.prototype,"text",void 0),re([w()],ne.prototype,"openText",void 0),re([w()],ne.prototype,"closedText",void 0),re([w({type:Boolean})],ne.prototype,"disabled",void 0),re([w()],ne.prototype,"tooltipPosition",void 0),re([w()],ne.prototype,"iconVariant",void 0),re([w()],ne.prototype,"openIcon",void 0),re([w()],ne.prototype,"closedIcon",void 0),re([w({type:Boolean})],ne.prototype,"trailingIcon",void 0),re([C()],ne.prototype,"animationInProgress",void 0);const ae=vo.extend("--ft-ripple-color","",Ro.colorContent),se={color:ae,backgroundColor:vo.extend("--ft-ripple-background-color","",ae),opacityContentOnSurfacePressed:vo.external(Ro.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:vo.external(Ro.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:vo.external(Ro.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:vo.external(Ro.opacityContentOnSurfaceSelected,"Design system"),borderRadius:vo.create("--ft-ripple-border-radius","","SIZE","0px")},le=vo.extend("--ft-ripple-color","",Ro.colorPrimary),ce=le,pe=vo.extend("--ft-ripple-background-color","",le),fe=vo.extend("--ft-ripple-color","",Ro.colorSecondary),he=fe,de=vo.extend("--ft-ripple-background-color","",fe),ue=xt`
|
|
165
165
|
:host {
|
|
166
166
|
display: contents;
|
|
167
167
|
}
|
|
@@ -174,7 +174,7 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
174
174
|
|
|
175
175
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
176
176
|
overflow: hidden;
|
|
177
|
-
border-radius: ${
|
|
177
|
+
border-radius: ${se.borderRadius};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.ft-ripple .ft-ripple--background,
|
|
@@ -208,27 +208,27 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
.ft-ripple .ft-ripple--background {
|
|
211
|
-
background-color: ${
|
|
211
|
+
background-color: ${se.backgroundColor};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.ft-ripple .ft-ripple--effect {
|
|
215
|
-
background-color: ${
|
|
215
|
+
background-color: ${se.color};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
219
|
-
background-color: ${
|
|
219
|
+
background-color: ${de};
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
223
|
-
background-color: ${
|
|
223
|
+
background-color: ${he};
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
227
|
-
background-color: ${
|
|
227
|
+
background-color: ${pe};
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
231
|
-
background-color: ${
|
|
231
|
+
background-color: ${ce};
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.ft-ripple .ft-ripple--background {
|
|
@@ -258,117 +258,117 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
261
|
-
opacity: ${
|
|
261
|
+
opacity: ${se.opacityContentOnSurfaceHover};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
265
|
-
opacity: ${
|
|
265
|
+
opacity: ${se.opacityContentOnSurfaceSelected};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
269
|
-
opacity: ${
|
|
269
|
+
opacity: ${se.opacityContentOnSurfaceFocused};
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
273
|
-
opacity: ${
|
|
273
|
+
opacity: ${se.opacityContentOnSurfacePressed};
|
|
274
274
|
transform: translate(-50%, -50%) scale(1);
|
|
275
275
|
}
|
|
276
|
-
`;const
|
|
276
|
+
`;const ye=vo.extend("--ft-typography-font-family","",Ro.titleFont),ge=vo.extend("--ft-typography-font-family","",Ro.contentFont),be={fontFamily:ge,fontSize:vo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:vo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:vo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:vo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:vo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},me=vo.extend("--ft-typography-title-font-family","",ye),xe=vo.extend("--ft-typography-title-font-size","",be.fontSize,"20px"),Oe=vo.extend("--ft-typography-title-font-weight","",be.fontWeight,"normal"),ve=vo.extend("--ft-typography-title-letter-spacing","",be.letterSpacing,"0.15px"),Ne=vo.extend("--ft-typography-title-line-height","",be.lineHeight,"1.2"),Se=vo.extend("--ft-typography-title-text-transform","",be.textTransform,"inherit"),we=vo.extend("--ft-typography-title-dense-font-family","",ye),Ce=vo.extend("--ft-typography-title-dense-font-size","",be.fontSize,"14px"),$e=vo.extend("--ft-typography-title-dense-font-weight","",be.fontWeight,"normal"),Re=vo.extend("--ft-typography-title-dense-letter-spacing","",be.letterSpacing,"0.105px"),Ee=vo.extend("--ft-typography-title-dense-line-height","",be.lineHeight,"1.7"),Ue=vo.extend("--ft-typography-title-dense-text-transform","",be.textTransform,"inherit"),Ie=vo.extend("--ft-typography-subtitle1-font-family","",ge),ke=vo.extend("--ft-typography-subtitle1-font-size","",be.fontSize,"16px"),Le=vo.extend("--ft-typography-subtitle1-font-weight","",be.fontWeight,"600"),We=vo.extend("--ft-typography-subtitle1-letter-spacing","",be.letterSpacing,"0.144px"),Ke=vo.extend("--ft-typography-subtitle1-line-height","",be.lineHeight,"1.5"),Fe=vo.extend("--ft-typography-subtitle1-text-transform","",be.textTransform,"inherit"),ze=vo.extend("--ft-typography-subtitle2-font-family","",ge),Ze=vo.extend("--ft-typography-subtitle2-font-size","",be.fontSize,"14px"),Be=vo.extend("--ft-typography-subtitle2-font-weight","",be.fontWeight,"normal"),Ae=vo.extend("--ft-typography-subtitle2-letter-spacing","",be.letterSpacing,"0.098px"),Me=vo.extend("--ft-typography-subtitle2-line-height","",be.lineHeight,"1.7"),De=vo.extend("--ft-typography-subtitle2-text-transform","",be.textTransform,"inherit"),Pe=vo.extend("--ft-typography-body1-font-family","",ge),He=vo.extend("--ft-typography-body1-font-size","",be.fontSize,"16px"),Te=vo.extend("--ft-typography-body1-font-weight","",be.fontWeight,"normal"),je=vo.extend("--ft-typography-body1-letter-spacing","",be.letterSpacing,"0.496px"),_e=vo.extend("--ft-typography-body1-line-height","",be.lineHeight,"1.5"),Ge=vo.extend("--ft-typography-body1-text-transform","",be.textTransform,"inherit"),Ye=vo.extend("--ft-typography-body2-font-family","",ge),Ve=vo.extend("--ft-typography-body2-font-size","",be.fontSize,"14px"),Je=vo.extend("--ft-typography-body2-font-weight","",be.fontWeight,"normal"),qe=vo.extend("--ft-typography-body2-letter-spacing","",be.letterSpacing,"0.252px"),Xe=vo.extend("--ft-typography-body2-line-height","",be.lineHeight,"1.4"),Qe=vo.extend("--ft-typography-body2-text-transform","",be.textTransform,"inherit"),ti=vo.extend("--ft-typography-caption-font-family","",ge),oi=vo.extend("--ft-typography-caption-font-size","",be.fontSize,"12px"),ei=vo.extend("--ft-typography-caption-font-weight","",be.fontWeight,"normal"),ii=vo.extend("--ft-typography-caption-letter-spacing","",be.letterSpacing,"0.396px"),ri=vo.extend("--ft-typography-caption-line-height","",be.lineHeight,"1.33"),ni=vo.extend("--ft-typography-caption-text-transform","",be.textTransform,"inherit"),ai=vo.extend("--ft-typography-breadcrumb-font-family","",ge),si=vo.extend("--ft-typography-breadcrumb-font-size","",be.fontSize,"10px"),li=vo.extend("--ft-typography-breadcrumb-font-weight","",be.fontWeight,"normal"),ci=vo.extend("--ft-typography-breadcrumb-letter-spacing","",be.letterSpacing,"0.33px"),pi=vo.extend("--ft-typography-breadcrumb-line-height","",be.lineHeight,"1.6"),fi=vo.extend("--ft-typography-breadcrumb-text-transform","",be.textTransform,"inherit"),hi=vo.extend("--ft-typography-overline-font-family","",ge),di=vo.extend("--ft-typography-overline-font-size","",be.fontSize,"10px"),ui=vo.extend("--ft-typography-overline-font-weight","",be.fontWeight,"normal"),yi=vo.extend("--ft-typography-overline-letter-spacing","",be.letterSpacing,"1.5px"),gi=vo.extend("--ft-typography-overline-line-height","",be.lineHeight,"1.6"),bi=vo.extend("--ft-typography-overline-text-transform","",be.textTransform,"uppercase"),mi={fontFamily:vo.extend("--ft-typography-button-font-family","",ge),fontSize:vo.extend("--ft-typography-button-font-size","",be.fontSize,"14px"),fontWeight:vo.extend("--ft-typography-button-font-weight","",be.fontWeight,"600"),letterSpacing:vo.extend("--ft-typography-button-letter-spacing","",be.letterSpacing,"1.246px"),lineHeight:vo.extend("--ft-typography-button-line-height","",be.lineHeight,"1.15"),textTransform:vo.extend("--ft-typography-button-text-transform","",be.textTransform,"uppercase")},xi=xt`
|
|
277
277
|
.ft-typography--title {
|
|
278
|
-
font-family: ${
|
|
279
|
-
font-size: ${
|
|
280
|
-
font-weight: ${
|
|
281
|
-
letter-spacing: ${
|
|
282
|
-
line-height: ${
|
|
283
|
-
text-transform: ${
|
|
284
|
-
}
|
|
285
|
-
`,
|
|
278
|
+
font-family: ${me};
|
|
279
|
+
font-size: ${xe};
|
|
280
|
+
font-weight: ${Oe};
|
|
281
|
+
letter-spacing: ${ve};
|
|
282
|
+
line-height: ${Ne};
|
|
283
|
+
text-transform: ${Se};
|
|
284
|
+
}
|
|
285
|
+
`,Oi=xt`
|
|
286
286
|
.ft-typography--title-dense {
|
|
287
|
-
font-family: ${
|
|
288
|
-
font-size: ${
|
|
289
|
-
font-weight: ${
|
|
290
|
-
letter-spacing: ${
|
|
291
|
-
line-height: ${
|
|
292
|
-
text-transform: ${
|
|
293
|
-
}
|
|
294
|
-
`,
|
|
287
|
+
font-family: ${we};
|
|
288
|
+
font-size: ${Ce};
|
|
289
|
+
font-weight: ${$e};
|
|
290
|
+
letter-spacing: ${Re};
|
|
291
|
+
line-height: ${Ee};
|
|
292
|
+
text-transform: ${Ue};
|
|
293
|
+
}
|
|
294
|
+
`,vi=xt`
|
|
295
295
|
.ft-typography--subtitle1 {
|
|
296
|
-
font-family: ${
|
|
297
|
-
font-size: ${
|
|
298
|
-
font-weight: ${
|
|
299
|
-
letter-spacing: ${
|
|
300
|
-
line-height: ${
|
|
301
|
-
text-transform: ${
|
|
302
|
-
}
|
|
303
|
-
`,
|
|
296
|
+
font-family: ${Ie};
|
|
297
|
+
font-size: ${ke};
|
|
298
|
+
font-weight: ${Le};
|
|
299
|
+
letter-spacing: ${We};
|
|
300
|
+
line-height: ${Ke};
|
|
301
|
+
text-transform: ${Fe};
|
|
302
|
+
}
|
|
303
|
+
`,Ni=xt`
|
|
304
304
|
.ft-typography--subtitle2 {
|
|
305
|
-
font-family: ${
|
|
306
|
-
font-size: ${
|
|
307
|
-
font-weight: ${
|
|
308
|
-
letter-spacing: ${
|
|
309
|
-
line-height: ${
|
|
310
|
-
text-transform: ${
|
|
305
|
+
font-family: ${ze};
|
|
306
|
+
font-size: ${Ze};
|
|
307
|
+
font-weight: ${Be};
|
|
308
|
+
letter-spacing: ${Ae};
|
|
309
|
+
line-height: ${Me};
|
|
310
|
+
text-transform: ${De};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
`,
|
|
313
|
+
`,Si=xt`
|
|
314
314
|
.ft-typography--body1 {
|
|
315
|
-
font-family: ${
|
|
316
|
-
font-size: ${
|
|
317
|
-
font-weight: ${
|
|
318
|
-
letter-spacing: ${
|
|
319
|
-
line-height: ${
|
|
320
|
-
text-transform: ${
|
|
321
|
-
}
|
|
322
|
-
`,
|
|
315
|
+
font-family: ${Pe};
|
|
316
|
+
font-size: ${He};
|
|
317
|
+
font-weight: ${Te};
|
|
318
|
+
letter-spacing: ${je};
|
|
319
|
+
line-height: ${_e};
|
|
320
|
+
text-transform: ${Ge};
|
|
321
|
+
}
|
|
322
|
+
`,wi=xt`
|
|
323
323
|
.ft-typography--body2 {
|
|
324
|
-
font-family: ${
|
|
325
|
-
font-size: ${
|
|
326
|
-
font-weight: ${
|
|
327
|
-
letter-spacing: ${
|
|
328
|
-
line-height: ${
|
|
329
|
-
text-transform: ${
|
|
330
|
-
}
|
|
331
|
-
`,
|
|
324
|
+
font-family: ${Ye};
|
|
325
|
+
font-size: ${Ve};
|
|
326
|
+
font-weight: ${Je};
|
|
327
|
+
letter-spacing: ${qe};
|
|
328
|
+
line-height: ${Xe};
|
|
329
|
+
text-transform: ${Qe};
|
|
330
|
+
}
|
|
331
|
+
`,Ci=xt`
|
|
332
332
|
.ft-typography--caption {
|
|
333
|
-
font-family: ${
|
|
334
|
-
font-size: ${
|
|
335
|
-
font-weight: ${
|
|
336
|
-
letter-spacing: ${
|
|
337
|
-
line-height: ${
|
|
338
|
-
text-transform: ${
|
|
339
|
-
}
|
|
340
|
-
|
|
333
|
+
font-family: ${ti};
|
|
334
|
+
font-size: ${oi};
|
|
335
|
+
font-weight: ${ei};
|
|
336
|
+
letter-spacing: ${ii};
|
|
337
|
+
line-height: ${ri};
|
|
338
|
+
text-transform: ${ni};
|
|
339
|
+
}
|
|
340
|
+
`,$i=xt`
|
|
341
341
|
.ft-typography--breadcrumb {
|
|
342
|
-
font-family: ${
|
|
343
|
-
font-size: ${
|
|
344
|
-
font-weight: ${
|
|
345
|
-
letter-spacing: ${
|
|
346
|
-
line-height: ${
|
|
347
|
-
text-transform: ${
|
|
348
|
-
}
|
|
349
|
-
`,
|
|
342
|
+
font-family: ${ai};
|
|
343
|
+
font-size: ${si};
|
|
344
|
+
font-weight: ${li};
|
|
345
|
+
letter-spacing: ${ci};
|
|
346
|
+
line-height: ${pi};
|
|
347
|
+
text-transform: ${fi};
|
|
348
|
+
}
|
|
349
|
+
`,Ri=xt`
|
|
350
350
|
.ft-typography--overline {
|
|
351
|
-
font-family: ${
|
|
352
|
-
font-size: ${
|
|
353
|
-
font-weight: ${
|
|
354
|
-
letter-spacing: ${
|
|
355
|
-
line-height: ${
|
|
356
|
-
text-transform: ${
|
|
357
|
-
}
|
|
358
|
-
`,
|
|
351
|
+
font-family: ${hi};
|
|
352
|
+
font-size: ${di};
|
|
353
|
+
font-weight: ${ui};
|
|
354
|
+
letter-spacing: ${yi};
|
|
355
|
+
line-height: ${gi};
|
|
356
|
+
text-transform: ${bi};
|
|
357
|
+
}
|
|
358
|
+
`,Ei=xt`
|
|
359
359
|
.ft-typography--button {
|
|
360
|
-
font-family: ${
|
|
361
|
-
font-size: ${
|
|
362
|
-
font-weight: ${
|
|
363
|
-
letter-spacing: ${
|
|
364
|
-
line-height: ${
|
|
365
|
-
text-transform: ${
|
|
366
|
-
}
|
|
367
|
-
`,
|
|
360
|
+
font-family: ${mi.fontFamily};
|
|
361
|
+
font-size: ${mi.fontSize};
|
|
362
|
+
font-weight: ${mi.fontWeight};
|
|
363
|
+
letter-spacing: ${mi.letterSpacing};
|
|
364
|
+
line-height: ${mi.lineHeight};
|
|
365
|
+
text-transform: ${mi.textTransform};
|
|
366
|
+
}
|
|
367
|
+
`,Ui=xt`
|
|
368
368
|
.ft-typography {
|
|
369
369
|
vertical-align: inherit;
|
|
370
370
|
}
|
|
371
|
-
`,
|
|
371
|
+
`,Ii=[Object.keys(wo).map((t=>function(t){const o=wo[t];return xt`
|
|
372
372
|
.ft-typography--${mt(t)} {
|
|
373
373
|
font-family: ${o.fontFamily};
|
|
374
374
|
font-size: ${o.fontSize};
|
|
@@ -377,7 +377,7 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
377
377
|
line-height: ${o.lineHeight};
|
|
378
378
|
text-transform: ${o.textCase};
|
|
379
379
|
}
|
|
380
|
-
`}(t)))],
|
|
380
|
+
`}(t)))],ki={color:vo.extend("--ft-loader-color","",Ro.colorPrimary),size:vo.create("--ft-loader-size","","SIZE","80px")},Li=xt`
|
|
381
381
|
:host {
|
|
382
382
|
line-height: 0;
|
|
383
383
|
}
|
|
@@ -386,8 +386,8 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
386
386
|
display: inline-block;
|
|
387
387
|
position: relative;
|
|
388
388
|
|
|
389
|
-
width: ${
|
|
390
|
-
height: ${
|
|
389
|
+
width: ${ki.size};
|
|
390
|
+
height: ${ki.size};
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
.ft-loader div {
|
|
@@ -396,7 +396,7 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
396
396
|
width: 25%;
|
|
397
397
|
height: 25%;
|
|
398
398
|
border-radius: 50%;
|
|
399
|
-
background: ${
|
|
399
|
+
background: ${ki.color};
|
|
400
400
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
401
401
|
}
|
|
402
402
|
|
|
@@ -443,10 +443,10 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
443
443
|
transform: translate(0, 0);
|
|
444
444
|
}
|
|
445
445
|
100% {
|
|
446
|
-
transform: translate(calc(0.35 * ${
|
|
446
|
+
transform: translate(calc(0.35 * ${ki.size}), 0);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
`,
|
|
449
|
+
`,Wi={size:vo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:vo.extend("--ft-icon-fluid-topics-font-family","",vo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:vo.extend("--ft-icon-file-format-font-family","",vo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:vo.extend("--ft-icon-material-font-family","",vo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:vo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ki=xt`
|
|
450
450
|
:host, i.ft-icon {
|
|
451
451
|
display: inline-flex;
|
|
452
452
|
align-items: center;
|
|
@@ -455,14 +455,14 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
:host {
|
|
458
|
-
width: ${
|
|
459
|
-
height: ${
|
|
458
|
+
width: ${Wi.size};
|
|
459
|
+
height: ${Wi.size};
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
i.ft-icon {
|
|
463
463
|
width: 100%;
|
|
464
464
|
height: 100%;
|
|
465
|
-
font-size: ${
|
|
465
|
+
font-size: ${Wi.size};
|
|
466
466
|
line-height: 1;
|
|
467
467
|
font-weight: normal;
|
|
468
468
|
text-transform: none;
|
|
@@ -473,28 +473,28 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
473
473
|
text-rendering: auto;
|
|
474
474
|
-webkit-font-smoothing: antialiased;
|
|
475
475
|
-moz-osx-font-smoothing: grayscale;
|
|
476
|
-
vertical-align: ${
|
|
476
|
+
vertical-align: ${Wi.verticalAlign};
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
i.ft-icon.ft-icon--fluid-topics {
|
|
480
|
-
font-family: ${
|
|
480
|
+
font-family: ${Wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
481
481
|
|
|
482
482
|
/* Ugly fix because font is broken */
|
|
483
|
-
font-size: calc(0.75 * ${
|
|
484
|
-
line-height: ${
|
|
483
|
+
font-size: calc(0.75 * ${Wi.size});
|
|
484
|
+
line-height: ${Wi.size};
|
|
485
485
|
position: relative;
|
|
486
486
|
top: -4%;
|
|
487
487
|
justify-content: center;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-icon--file-format {
|
|
491
|
-
font-family: ${
|
|
491
|
+
font-family: ${Wi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-icon--material {
|
|
495
|
-
font-family: ${
|
|
495
|
+
font-family: ${Wi.materialFontFamily}, "Material Icons", sans-serif;
|
|
496
496
|
}
|
|
497
|
-
`,
|
|
497
|
+
`,Fi=vo.extend("--ft-button-color","",Ro.colorPrimary),zi={backgroundColor:vo.extend("--ft-button-background-color","",Ro.colorSurface),borderRadius:vo.extend("--ft-button-border-radius","",Ro.borderRadiusL),color:Fi,fontSize:vo.extend("--ft-button-font-size","",mi.fontSize),iconSize:vo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:vo.extend("--ft-button-ripple-color","",Fi),verticalPadding:vo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:vo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:vo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:vo.external(Ro.colorOpacityDisabled,"Design system")},Zi=vo.extend("--ft-button-primary-color","",vo.extend("--ft-button-color","",Ro.colorOnPrimary)),Bi={backgroundColor:vo.extend("--ft-button-primary-background-color","",vo.extend("--ft-button-background-color","",Ro.colorPrimary)),color:Zi,rippleColor:vo.extend("--ft-button-primary-ripple-color","",Zi)},Ai=vo.extend("--ft-button-dense-border-radius","",vo.extend("--ft-button-border-radius","",Ro.borderRadiusM)),Mi=vo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Di=vo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Pi=vo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Hi=[xt`
|
|
498
498
|
:host {
|
|
499
499
|
display: inline-block;
|
|
500
500
|
max-width: 100%;
|
|
@@ -505,7 +505,7 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
505
505
|
box-shadow: 0px 0px 0px transparent;
|
|
506
506
|
border: 0px solid transparent;
|
|
507
507
|
text-shadow: 0px 0px 0px transparent;
|
|
508
|
-
font-size: ${
|
|
508
|
+
font-size: ${zi.fontSize};
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
button:hover {
|
|
@@ -534,31 +534,31 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
534
534
|
border: none;
|
|
535
535
|
pointer-events: auto;
|
|
536
536
|
|
|
537
|
-
--ft-button-internal-line-height: max(calc(${
|
|
538
|
-
--ft-button-internal-color: ${
|
|
539
|
-
${No(
|
|
540
|
-
${No(
|
|
537
|
+
--ft-button-internal-line-height: max(calc(${zi.fontSize} + 2px), ${zi.iconSize});
|
|
538
|
+
--ft-button-internal-color: ${zi.color};
|
|
539
|
+
${No(Wi.size,zi.iconSize)};
|
|
540
|
+
${No(se.color,zi.rippleColor)};
|
|
541
541
|
|
|
542
|
-
border-radius: ${
|
|
543
|
-
padding: ${
|
|
544
|
-
background-color: ${
|
|
542
|
+
border-radius: ${zi.borderRadius};
|
|
543
|
+
padding: ${zi.verticalPadding} ${zi.horizontalPadding};
|
|
544
|
+
background-color: ${zi.backgroundColor};
|
|
545
545
|
color: var(--ft-button-internal-color);
|
|
546
546
|
-webkit-mask-image: radial-gradient(white, black);
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
.ft-button.ft-button--outlined {
|
|
550
550
|
border: 1px solid var(--ft-button-internal-color);
|
|
551
|
-
padding: calc(${
|
|
551
|
+
padding: calc(${zi.verticalPadding} - 1px) calc(${zi.horizontalPadding} - 1px);
|
|
552
552
|
}
|
|
553
553
|
|
|
554
554
|
.ft-button.ft-button--dense {
|
|
555
|
-
padding: ${
|
|
556
|
-
border-radius: ${
|
|
557
|
-
gap: ${
|
|
555
|
+
padding: ${Mi} ${Di};
|
|
556
|
+
border-radius: ${Ai};
|
|
557
|
+
gap: ${Pi};
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
561
|
-
padding: calc(${
|
|
561
|
+
padding: calc(${Mi} - 1px) calc(${Di} - 1px);
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
.ft-button:not([disabled]):hover {
|
|
@@ -566,22 +566,22 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
.ft-button--round {
|
|
569
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
569
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${zi.verticalPadding});
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
.ft-button--round.ft-button--dense {
|
|
573
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
573
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Mi});
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
.ft-button[disabled] {
|
|
577
577
|
filter: grayscale(1);
|
|
578
|
-
opacity: ${
|
|
578
|
+
opacity: ${zi.opacityDisabled};
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
.ft-button.ft-button--primary {
|
|
582
|
-
background-color: ${
|
|
583
|
-
--ft-button-internal-color: ${
|
|
584
|
-
${No(
|
|
582
|
+
background-color: ${Bi.backgroundColor};
|
|
583
|
+
--ft-button-internal-color: ${Bi.color};
|
|
584
|
+
${No(se.color,Bi.rippleColor)};
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
.ft-button:focus {
|
|
@@ -594,13 +594,13 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
594
594
|
white-space: nowrap;
|
|
595
595
|
text-overflow: ellipsis;
|
|
596
596
|
display: block;
|
|
597
|
-
margin: 0 ${
|
|
598
|
-
${No(
|
|
599
|
-
${No(
|
|
597
|
+
margin: 0 ${zi.iconPadding};
|
|
598
|
+
${No(mi.fontSize,"1em")};
|
|
599
|
+
${No(mi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
.ft-button--dense .ft-button--label {
|
|
603
|
-
margin: 0 ${
|
|
603
|
+
margin: 0 ${Pi};
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-button--label[hidden] {
|
|
@@ -613,13 +613,13 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-button--label[hidden] + ft-icon {
|
|
616
|
-
margin: 0 calc(${
|
|
617
|
-
padding: 0 ${
|
|
616
|
+
margin: 0 calc(${zi.horizontalPadding} * -1);
|
|
617
|
+
padding: 0 ${zi.verticalPadding};
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
621
|
-
margin: 0 calc(${
|
|
622
|
-
padding: 0 ${
|
|
621
|
+
margin: 0 calc(${Di} * -1);
|
|
622
|
+
padding: 0 ${Mi};
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -628,34 +628,34 @@ class mo extends Ft{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
ft-loader {
|
|
631
|
-
${No(
|
|
632
|
-
${No(
|
|
631
|
+
${No(ki.size,zi.iconSize)};
|
|
632
|
+
${No(ki.color,"var(--ft-button-internal-color)")};
|
|
633
633
|
}
|
|
634
|
-
`,Bo];var
|
|
634
|
+
`,Bo];var Ti=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ji extends zo{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.originX=0,this.originY=0,this.debouncer=new U(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.setupDebouncer=new U(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.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.isFocusVisible(null==t?void 0:t.target)&&!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 oo`
|
|
635
635
|
<style>
|
|
636
636
|
.ft-ripple .ft-ripple--effect {
|
|
637
637
|
left: ${this.originX}px;
|
|
638
638
|
top: ${this.originY}px;
|
|
639
639
|
}
|
|
640
640
|
</style>
|
|
641
|
-
<div class="${
|
|
641
|
+
<div class="${ie(t)}">
|
|
642
642
|
<div class="ft-ripple--background"></div>
|
|
643
643
|
<div class="ft-ripple--effect"></div>
|
|
644
644
|
</div>
|
|
645
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}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 o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",e,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",e,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
645
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}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 o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",e,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",e,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ji.elementDefinitions={},ji.styles=ue,Ti([w({type:Boolean})],ji.prototype,"primary",void 0),Ti([w({type:Boolean})],ji.prototype,"secondary",void 0),Ti([w({type:Boolean})],ji.prototype,"unbounded",void 0),Ti([w({type:Boolean})],ji.prototype,"activated",void 0),Ti([w({type:Boolean})],ji.prototype,"selected",void 0),Ti([w({type:Boolean})],ji.prototype,"disabled",void 0),Ti([C()],ji.prototype,"hovered",void 0),Ti([C()],ji.prototype,"focused",void 0),Ti([C()],ji.prototype,"pressed",void 0),Ti([C()],ji.prototype,"rippling",void 0),Ti([C()],ji.prototype,"originX",void 0),Ti([C()],ji.prototype,"originY",void 0),Ti([E(".ft-ripple")],ji.prototype,"ripple",void 0),Ti([E(".ft-ripple--effect")],ji.prototype,"rippleEffect",void 0),k("ft-ripple")(ji);
|
|
646
646
|
/**
|
|
647
647
|
* @license
|
|
648
648
|
* Copyright 2020 Google LLC
|
|
649
649
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
650
650
|
*/
|
|
651
|
-
const
|
|
652
|
-
<${
|
|
651
|
+
const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Yi=t=>({_$litStatic$:t,r:_i}),Vi=new Map,Ji=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=Gi(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=Vi.get(t))&&(a.raw=a,Vi.set(t,o=a)),e=s}return t(o,...e)})(X);var qi;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(qi||(qi={}));var Xi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qi extends zo{constructor(){super(...arguments),this.variant=qi.body1}render(){return this.element?Ji`
|
|
652
|
+
<${Yi(this.element)}
|
|
653
653
|
class="ft-typography ft-typography--${this.variant}">
|
|
654
654
|
<slot></slot>
|
|
655
|
-
</${
|
|
656
|
-
`:
|
|
655
|
+
</${Yi(this.element)}>
|
|
656
|
+
`:Ji`
|
|
657
657
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
658
|
-
`}}
|
|
658
|
+
`}}Qi.styles=[xi,Oi,vi,Ni,Si,wi,Ci,$i,Ri,Ei,Ui,...Ii],Xi([w()],Qi.prototype,"element",void 0),Xi([w()],Qi.prototype,"variant",void 0),k("ft-typography")(Qi);const tr=vo.create("--ft-tooltip-distance","","SIZE","4px"),or=vo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),er=vo.create("--ft-tooltip-background-color","","COLOR","#666666"),ir=vo.create("--ft-tooltip-z-index","","NUMBER","100"),rr=vo.external(Ro.borderRadiusS,"Design system"),nr=vo.create("--ft-tooltip-max-width","","SIZE","150px"),ar=xt`
|
|
659
659
|
.ft-tooltip--container {
|
|
660
660
|
display: block;
|
|
661
661
|
}
|
|
@@ -670,21 +670,21 @@ const Bi=Symbol.for(""),Ai=t=>{if(t?.r===Bi)return t?._$litStatic$},Di=t=>({_$li
|
|
|
670
670
|
box-sizing: border-box;
|
|
671
671
|
overflow: hidden;
|
|
672
672
|
width: max-content;
|
|
673
|
-
max-width: ${
|
|
673
|
+
max-width: ${nr};
|
|
674
674
|
text-align: center;
|
|
675
|
-
padding: ${
|
|
676
|
-
z-index: ${
|
|
675
|
+
padding: ${tr};
|
|
676
|
+
z-index: ${ir};
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
.ft-tooltip--content {
|
|
680
680
|
padding: 4px 8px;
|
|
681
|
-
border-radius: ${
|
|
682
|
-
background-color: ${
|
|
683
|
-
color: ${
|
|
681
|
+
border-radius: ${rr};
|
|
682
|
+
background-color: ${er};
|
|
683
|
+
color: ${or};
|
|
684
684
|
position: relative;
|
|
685
685
|
word-break: break-word;
|
|
686
686
|
}
|
|
687
|
-
`,Qi=["start","end"],tr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Qi[0],o+"-"+Qi[1])),[]),or=Math.min,er=Math.max,ir=Math.round,rr=t=>({x:t,y:t}),nr={left:"right",right:"left",bottom:"top",top:"bottom"},ar={start:"end",end:"start"};function sr(t,o,e){return er(t,or(o,e))}function lr(t,o){return"function"==typeof t?t(o):t}function cr(t){return t.split("-")[0]}function pr(t){return t.split("-")[1]}function fr(t){return"x"===t?"y":"x"}function hr(t){return"y"===t?"height":"width"}function dr(t){return["top","bottom"].includes(cr(t))?"y":"x"}function ur(t){return fr(dr(t))}function yr(t){return t.replace(/left|right|bottom|top/g,(t=>nr[t]))}function gr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function br(t,o,e){let{reference:i,floating:r}=t;const n=dr(o),a=ur(o),s=hr(a),l=cr(o),c="y"===n,p=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:p,y:i.y-r.height};break;case"bottom":d={x:p,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch(pr(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function mr(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=lr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=gr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=gr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function xr(t,o,e){return(t?[...e.filter((o=>pr(o)===t)),...e.filter((o=>pr(o)!==t))]:e.filter((t=>cr(t)===t))).filter((e=>!t||(pr(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ar[t]))}(e)!==e)))}const Or=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=tr,autoAlignment:d=!0,...u}=lr(t,o),y=void 0!==f||h===tr?xr(f||null,d,h):h,g=await mr(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=pr(t),r=ur(t),n=hr(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=yr(a)),[a,yr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[cr(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=pr(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,pr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function vr(t){return wr(t)?(t.nodeName||"").toLowerCase():"#document"}function Nr(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Sr(t){var o;return null==(o=(wr(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function wr(t){return t instanceof Node||t instanceof Nr(t).Node}function Cr(t){return t instanceof Element||t instanceof Nr(t).Element}function $r(t){return t instanceof HTMLElement||t instanceof Nr(t).HTMLElement}function Rr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Nr(t).ShadowRoot)}function Er(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Wr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Ur(t){return["table","td","th"].includes(vr(t))}function Ir(t){const o=kr(),e=Wr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function kr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lr(t){return["html","body","#document"].includes(vr(t))}function Wr(t){return Nr(t).getComputedStyle(t)}function Kr(t){return Cr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fr(t){if("html"===vr(t))return t;const o=t.assignedSlot||t.parentNode||Rr(t)&&t.host||Sr(t);return Rr(o)?o.host:o}function zr(t){const o=Fr(t);return Lr(o)?t.ownerDocument?t.ownerDocument.body:t.body:$r(o)&&Er(o)?o:zr(o)}function Zr(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=zr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Nr(r);return n?o.concat(a,a.visualViewport||[],Er(r)?r:[],a.frameElement&&e?Zr(a.frameElement):[]):o.concat(r,Zr(r,[],e))}function Br(t){const o=Wr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=$r(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=ir(e)!==n||ir(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function Ar(t){return Cr(t)?t:t.contextElement}function Dr(t){const o=Ar(t);if(!$r(o))return rr(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=Br(o);let a=(n?ir(e.width):e.width)/i,s=(n?ir(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Mr=rr(0);function Pr(t){const o=Nr(t);return kr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Mr}function Hr(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=Ar(t);let a=rr(1);o&&(i?Cr(i)&&(a=Dr(i)):a=Dr(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Nr(t))&&o}(n,e,i)?Pr(n):rr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,p=r.width/a.x,f=r.height/a.y;if(n){const t=Nr(n),o=i&&Cr(i)?Nr(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=Dr(e),o=e.getBoundingClientRect(),i=Wr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=r,c+=n,e=Nr(e).frameElement}}return gr({width:p,height:f,x:l,y:c})}function Tr(t){return Hr(Sr(t)).left+Kr(t).scrollLeft}function jr(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Nr(t),i=Sr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=kr();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=Sr(t),e=Kr(t),i=t.ownerDocument.body,r=er(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=er(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+Tr(t);const s=-e.scrollTop;return"rtl"===Wr(i).direction&&(a+=er(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Sr(t));else if(Cr(o))i=function(t,o){const e=Hr(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=$r(t)?Dr(t):rr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=Pr(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return gr(i)}function _r(t,o){const e=Fr(t);return!(e===o||!Cr(e)||Lr(e))&&("fixed"===Wr(e).position||_r(e,o))}function Gr(t,o,e){const i=$r(o),r=Sr(o),n="fixed"===e,a=Hr(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=rr(0);if(i||!i&&!n)if(("body"!==vr(o)||Er(r))&&(s=Kr(o)),i){const t=Hr(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=Tr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yr(t,o){return $r(t)&&"fixed"!==Wr(t).position?o?o(t):t.offsetParent:null}function Vr(t,o){const e=Nr(t);if(!$r(t))return e;let i=Yr(t,o);for(;i&&Ur(i)&&"static"===Wr(i).position;)i=Yr(i,o);return i&&("html"===vr(i)||"body"===vr(i)&&"static"===Wr(i).position&&!Ir(i))?e:i||function(t){let o=Fr(t);for(;$r(o)&&!Lr(o);){if(Ir(o))return o;o=Fr(o)}return null}(t)||e}const Jr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=$r(e),n=Sr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=rr(1);const l=rr(0);if((r||!r&&"fixed"!==i)&&(("body"!==vr(e)||Er(n))&&(a=Kr(e)),$r(e))){const t=Hr(e);s=Dr(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Sr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=Zr(t,[],!1).filter((t=>Cr(t)&&"body"!==vr(t))),r=null;const n="fixed"===Wr(t).position;let a=n?Fr(t):t;for(;Cr(a)&&!Lr(a);){const o=Wr(a),e=Ir(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Er(a)&&!e&&_r(t,a))?i=i.filter((t=>t!==a)):r=o,a=Fr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=jr(o,e,r);return t.top=er(i.top,t.top),t.right=or(i.right,t.right),t.bottom=or(i.bottom,t.bottom),t.left=er(i.left,t.left),t}),jr(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Vr,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||Vr,n=this.getDimensions;return{reference:Gr(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Br(t)},getScale:Dr,isElement:Cr,isRTL:function(t){return"rtl"===Wr(t).direction}},qr=(t,o,e)=>{const i=new Map,r={platform:Jr,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:p,y:f}=br(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:p,y:f}=br(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var Xr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qr extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oo`
|
|
687
|
+
`,sr=["start","end"],lr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+sr[0],o+"-"+sr[1])),[]),cr=Math.min,pr=Math.max,fr=Math.round,hr=t=>({x:t,y:t}),dr={left:"right",right:"left",bottom:"top",top:"bottom"},ur={start:"end",end:"start"};function yr(t,o,e){return pr(t,cr(o,e))}function gr(t,o){return"function"==typeof t?t(o):t}function br(t){return t.split("-")[0]}function mr(t){return t.split("-")[1]}function xr(t){return"x"===t?"y":"x"}function Or(t){return"y"===t?"height":"width"}function vr(t){return["top","bottom"].includes(br(t))?"y":"x"}function Nr(t){return xr(vr(t))}function Sr(t){return t.replace(/left|right|bottom|top/g,(t=>dr[t]))}function wr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Cr(t,o,e){let{reference:i,floating:r}=t;const n=vr(o),a=Nr(o),s=Or(a),l=br(o),c="y"===n,p=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:p,y:i.y-r.height};break;case"bottom":d={x:p,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch(mr(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function $r(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=gr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=wr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=wr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Rr(t,o,e){return(t?[...e.filter((o=>mr(o)===t)),...e.filter((o=>mr(o)!==t))]:e.filter((t=>br(t)===t))).filter((e=>!t||(mr(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ur[t]))}(e)!==e)))}const Er=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=lr,autoAlignment:d=!0,...u}=gr(t,o),y=void 0!==f||h===lr?Rr(f||null,d,h):h,g=await $r(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=mr(t),r=Nr(t),n=Or(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Sr(a)),[a,Sr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[br(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=mr(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,mr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Ur(t){return Lr(t)?(t.nodeName||"").toLowerCase():"#document"}function Ir(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function kr(t){var o;return null==(o=(Lr(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Lr(t){return t instanceof Node||t instanceof Ir(t).Node}function Wr(t){return t instanceof Element||t instanceof Ir(t).Element}function Kr(t){return t instanceof HTMLElement||t instanceof Ir(t).HTMLElement}function Fr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ir(t).ShadowRoot)}function zr(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Dr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Zr(t){return["table","td","th"].includes(Ur(t))}function Br(t){const o=Ar(),e=Dr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Ar(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Mr(t){return["html","body","#document"].includes(Ur(t))}function Dr(t){return Ir(t).getComputedStyle(t)}function Pr(t){return Wr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hr(t){if("html"===Ur(t))return t;const o=t.assignedSlot||t.parentNode||Fr(t)&&t.host||kr(t);return Fr(o)?o.host:o}function Tr(t){const o=Hr(t);return Mr(o)?t.ownerDocument?t.ownerDocument.body:t.body:Kr(o)&&zr(o)?o:Tr(o)}function jr(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=Tr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ir(r);return n?o.concat(a,a.visualViewport||[],zr(r)?r:[],a.frameElement&&e?jr(a.frameElement):[]):o.concat(r,jr(r,[],e))}function _r(t){const o=Dr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=Kr(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=fr(e)!==n||fr(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function Gr(t){return Wr(t)?t:t.contextElement}function Yr(t){const o=Gr(t);if(!Kr(o))return hr(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=_r(o);let a=(n?fr(e.width):e.width)/i,s=(n?fr(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Vr=hr(0);function Jr(t){const o=Ir(t);return Ar()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Vr}function qr(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=Gr(t);let a=hr(1);o&&(i?Wr(i)&&(a=Yr(i)):a=Yr(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ir(t))&&o}(n,e,i)?Jr(n):hr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,p=r.width/a.x,f=r.height/a.y;if(n){const t=Ir(n),o=i&&Wr(i)?Ir(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=Yr(e),o=e.getBoundingClientRect(),i=Dr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=r,c+=n,e=Ir(e).frameElement}}return wr({width:p,height:f,x:l,y:c})}function Xr(t){return qr(kr(t)).left+Pr(t).scrollLeft}function Qr(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Ir(t),i=kr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Ar();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=kr(t),e=Pr(t),i=t.ownerDocument.body,r=pr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=pr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+Xr(t);const s=-e.scrollTop;return"rtl"===Dr(i).direction&&(a+=pr(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(kr(t));else if(Wr(o))i=function(t,o){const e=qr(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=Kr(t)?Yr(t):hr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=Jr(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return wr(i)}function tn(t,o){const e=Hr(t);return!(e===o||!Wr(e)||Mr(e))&&("fixed"===Dr(e).position||tn(e,o))}function on(t,o,e){const i=Kr(o),r=kr(o),n="fixed"===e,a=qr(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=hr(0);if(i||!i&&!n)if(("body"!==Ur(o)||zr(r))&&(s=Pr(o)),i){const t=qr(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=Xr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function en(t,o){return Kr(t)&&"fixed"!==Dr(t).position?o?o(t):t.offsetParent:null}function rn(t,o){const e=Ir(t);if(!Kr(t))return e;let i=en(t,o);for(;i&&Zr(i)&&"static"===Dr(i).position;)i=en(i,o);return i&&("html"===Ur(i)||"body"===Ur(i)&&"static"===Dr(i).position&&!Br(i))?e:i||function(t){let o=Hr(t);for(;Kr(o)&&!Mr(o);){if(Br(o))return o;o=Hr(o)}return null}(t)||e}const nn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=Kr(e),n=kr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=hr(1);const l=hr(0);if((r||!r&&"fixed"!==i)&&(("body"!==Ur(e)||zr(n))&&(a=Pr(e)),Kr(e))){const t=qr(e);s=Yr(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:kr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=jr(t,[],!1).filter((t=>Wr(t)&&"body"!==Ur(t))),r=null;const n="fixed"===Dr(t).position;let a=n?Hr(t):t;for(;Wr(a)&&!Mr(a);){const o=Dr(a),e=Br(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||zr(a)&&!e&&tn(t,a))?i=i.filter((t=>t!==a)):r=o,a=Hr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=Qr(o,e,r);return t.top=pr(i.top,t.top),t.right=cr(i.right,t.right),t.bottom=cr(i.bottom,t.bottom),t.left=pr(i.left,t.left),t}),Qr(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rn,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||rn,n=this.getDimensions;return{reference:on(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return _r(t)},getScale:Yr,isElement:Wr,isRTL:function(t){return"rtl"===Dr(t).direction}},an=(t,o,e)=>{const i=new Map,r={platform:nn,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:p,y:f}=Cr(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:p,y:f}=Cr(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var sn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ln extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oo`
|
|
688
688
|
<div part="container"
|
|
689
689
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
690
690
|
@mouseenter=${this.onHover}
|
|
@@ -702,34 +702,34 @@ const Bi=Symbol.for(""),Ai=t=>{if(t?.r===Bi)return t?._$litStatic$},Di=t=>({_$li
|
|
|
702
702
|
</div>
|
|
703
703
|
</div>
|
|
704
704
|
</div>
|
|
705
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
705
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",an(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=gr(t,o),c={x:e,y:i},p=await $r(o,l),f=vr(br(r)),h=xr(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=yr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=yr(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}),Er({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),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,o){return Math.max(t,Math.min(0,-o))}}ln.elementDefinitions={"ft-typography":Qi},ln.styles=ar,sn([w()],ln.prototype,"text",void 0),sn([w({type:Boolean})],ln.prototype,"manual",void 0),sn([w({type:Boolean})],ln.prototype,"inline",void 0),sn([w({type:Number})],ln.prototype,"delay",void 0),sn([w()],ln.prototype,"position",void 0),sn([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],ln.prototype,"slotNodes",void 0),sn([E(".ft-tooltip--container")],ln.prototype,"container",void 0),sn([E(".ft-tooltip")],ln.prototype,"tooltip",void 0),sn([E(".ft-tooltip--content")],ln.prototype,"tooltipContent",void 0),sn([C()],ln.prototype,"visible",void 0),sn([$({passive:!0})],ln.prototype,"onTouch",null),sn([$({passive:!0})],ln.prototype,"onHover",null),sn([$({passive:!0})],ln.prototype,"onOut",null),k("ft-tooltip")(ln);
|
|
706
706
|
/**
|
|
707
707
|
* @license
|
|
708
708
|
* Copyright 2017 Google LLC
|
|
709
709
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
710
710
|
*/
|
|
711
|
-
class
|
|
711
|
+
class cn extends ee{constructor(t){if(super(t),this.et=tt,t.type!==te)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.vt=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const pn=oe(cn);var fn,hn,dn;!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.EXTLINK_LIGHT="",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=""}(fn||(fn={})),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=""}(hn||(hn={})),new Map([...["abw"].map((t=>[t,hn.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,hn.AUDIO])),...["avi"].map((t=>[t,hn.AVI])),...["chm","xhs"].map((t=>[t,hn.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,hn.CODE])),...["csv"].map((t=>[t,hn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,hn.DITA])),...["epub"].map((t=>[t,hn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,hn.EXCEL])),...["flac"].map((t=>[t,hn.FLAC])),...["gif"].map((t=>[t,hn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,hn.GZIP])),...["html","htm","xhtml"].map((t=>[t,hn.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,hn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,hn.JPEG])),...["json"].map((t=>[t,hn.JSON])),...["m4a","m4p"].map((t=>[t,hn.M4A])),...["mov","qt"].map((t=>[t,hn.MOV])),...["mp3"].map((t=>[t,hn.MP3])),...["mp4","m4v"].map((t=>[t,hn.MP4])),...["ogg","oga"].map((t=>[t,hn.OGG])),...["pdf","ps"].map((t=>[t,hn.PDF])),...["png"].map((t=>[t,hn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,hn.POWERPOINT])),...["rar"].map((t=>[t,hn.RAR])),...["stp"].map((t=>[t,hn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,hn.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,hn.VIDEO])),...["wav"].map((t=>[t,hn.WAV])),...["wma"].map((t=>[t,hn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,hn.WORD])),...["xml","xsl","rdf"].map((t=>[t,hn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,hn.YAML])),...["zip"].map((t=>[t,hn.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(dn||(dn={}));var un=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yn extends zo{constructor(){super(...arguments),this.resolvedIcon=io}render(){const t=this.variant&&Object.values(dn).includes(this.variant)?this.variant:dn.fluid_topics,o=t!==dn.material||!!this.value;return oo`
|
|
712
712
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
713
|
-
${
|
|
713
|
+
${pn(this.resolvedIcon)}
|
|
714
714
|
<slot ?hidden=${o}></slot>
|
|
715
715
|
</i>
|
|
716
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case
|
|
716
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case dn.file_format:this.resolvedIcon=null!==(t=hn[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case dn.material:this.resolvedIcon=this.value||io;break;default:this.resolvedIcon=null!==(o=fn[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}yn.elementDefinitions={},yn.styles=Ki,un([w()],yn.prototype,"variant",void 0),un([w()],yn.prototype,"value",void 0),un([C()],yn.prototype,"resolvedIcon",void 0),un([E("slot")],yn.prototype,"slottedContent",void 0),k("ft-icon")(yn);class gn extends zo{render(){return oo`
|
|
717
717
|
<div class="ft-loader">
|
|
718
718
|
<div></div>
|
|
719
719
|
<div></div>
|
|
720
720
|
<div></div>
|
|
721
721
|
<div></div>
|
|
722
722
|
</div>
|
|
723
|
-
`}}
|
|
723
|
+
`}}gn.styles=Li,k("ft-loader")(gn);var bn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Yo].form}constructor(...t){super(t),this[Yo]=this.attachInternals(),this[Yo].role=o}setFormValue(t){this[Yo].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(oo`
|
|
724
724
|
<button part="button"
|
|
725
|
-
class="${
|
|
725
|
+
class="${ie(this.buttonClasses)}"
|
|
726
726
|
aria-label="${this.getLabel()}"
|
|
727
727
|
?disabled=${this.isDisabled()}>
|
|
728
728
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
729
729
|
<ft-typography part="label"
|
|
730
730
|
variant=${this.typographyVariant}
|
|
731
731
|
element="span"
|
|
732
|
-
class="ft-button--label ${
|
|
732
|
+
class="ft-button--label ${Xo?"ft-safari-ellipsis-fix":""}"
|
|
733
733
|
?hidden=${!this.hasTextContent()}>
|
|
734
734
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
735
735
|
</ft-typography>
|
|
@@ -743,7 +743,7 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
743
743
|
</ft-tooltip>
|
|
744
744
|
`:t}resolveIcon(){return this.loading?oo`
|
|
745
745
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?oo`
|
|
746
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:io}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
746
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:io}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mn.elementDefinitions={"ft-ripple":ji,"ft-tooltip":ln,"ft-typography":Qi,"ft-icon":yn,"ft-loader":gn},bn([w({type:String,reflect:!0})],mn.prototype,"role",void 0),bn([w()],mn.prototype,"type",void 0),bn([w({type:Boolean})],mn.prototype,"disabled",void 0),bn([w()],mn.prototype,"label",void 0),bn([w()],mn.prototype,"icon",void 0),bn([w()],mn.prototype,"iconVariant",void 0),bn([w({type:Boolean})],mn.prototype,"trailingIcon",void 0),bn([w({type:Boolean})],mn.prototype,"loading",void 0),bn([w()],mn.prototype,"tooltipPosition",void 0),bn([w({type:Boolean})],mn.prototype,"hideTooltip",void 0),bn([w({type:Boolean})],mn.prototype,"forceTooltip",void 0),bn([E(".ft-button")],mn.prototype,"button",void 0),bn([E(".ft-button--label slot")],mn.prototype,"slottedContent",void 0);var xn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class On extends mn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}On.styles=[Ao,Hi],xn([w({type:Boolean})],On.prototype,"primary",void 0),xn([w({type:Boolean})],On.prototype,"outlined",void 0),xn([w({type:Boolean})],On.prototype,"dense",void 0),xn([w({type:Boolean})],On.prototype,"round",void 0);const vn=[xt`
|
|
747
747
|
:host {
|
|
748
748
|
display: inline-block;
|
|
749
749
|
max-width: 100%;
|
|
@@ -822,13 +822,13 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
822
822
|
/** Primary styles **/
|
|
823
823
|
|
|
824
824
|
.ft-button--primary {
|
|
825
|
-
${No(
|
|
825
|
+
${No(ki.color,$o.primaryIconColor)};
|
|
826
826
|
|
|
827
|
-
${No(
|
|
828
|
-
${No(
|
|
829
|
-
${No(
|
|
830
|
-
${No(
|
|
831
|
-
${No(
|
|
827
|
+
${No(se.color,$o.primaryStateLayerColor)};
|
|
828
|
+
${No(se.opacityContentOnSurfaceHover,$o.primaryStateLayerOpacityHover)};
|
|
829
|
+
${No(se.opacityContentOnSurfaceFocused,$o.primaryStateLayerOpacityFocus)};
|
|
830
|
+
${No(se.opacityContentOnSurfaceSelected,$o.primaryStateLayerOpacityActive)};
|
|
831
|
+
${No(se.opacityContentOnSurfacePressed,$o.primaryStateLayerOpacityActive)};
|
|
832
832
|
|
|
833
833
|
background-color: ${$o.primaryBackgroundColor};
|
|
834
834
|
color: ${$o.primaryColor};
|
|
@@ -846,13 +846,13 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
846
846
|
/** Secondary styles **/
|
|
847
847
|
|
|
848
848
|
.ft-button--secondary {
|
|
849
|
-
${No(
|
|
849
|
+
${No(ki.color,$o.secondaryIconColor)};
|
|
850
850
|
|
|
851
|
-
${No(
|
|
852
|
-
${No(
|
|
853
|
-
${No(
|
|
854
|
-
${No(
|
|
855
|
-
${No(
|
|
851
|
+
${No(se.color,$o.secondaryStateLayerColor)};
|
|
852
|
+
${No(se.opacityContentOnSurfaceHover,$o.secondaryStateLayerOpacityHover)};
|
|
853
|
+
${No(se.opacityContentOnSurfaceFocused,$o.secondaryStateLayerOpacityFocus)};
|
|
854
|
+
${No(se.opacityContentOnSurfaceSelected,$o.secondaryStateLayerOpacityActive)};
|
|
855
|
+
${No(se.opacityContentOnSurfacePressed,$o.secondaryStateLayerOpacityActive)};
|
|
856
856
|
|
|
857
857
|
background-color: ${$o.secondaryBackgroundColor};
|
|
858
858
|
color: ${$o.secondaryColor};
|
|
@@ -871,13 +871,13 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
871
871
|
/** Tertiary styles **/
|
|
872
872
|
|
|
873
873
|
.ft-button--tertiary {
|
|
874
|
-
${No(
|
|
874
|
+
${No(ki.color,$o.tertiaryIconColor)};
|
|
875
875
|
|
|
876
|
-
${No(
|
|
877
|
-
${No(
|
|
878
|
-
${No(
|
|
879
|
-
${No(
|
|
880
|
-
${No(
|
|
876
|
+
${No(se.color,$o.tertiaryStateLayerColor)};
|
|
877
|
+
${No(se.opacityContentOnSurfaceHover,$o.tertiaryStateLayerOpacityHover)};
|
|
878
|
+
${No(se.opacityContentOnSurfaceFocused,$o.tertiaryStateLayerOpacityFocus)};
|
|
879
|
+
${No(se.opacityContentOnSurfaceSelected,$o.tertiaryStateLayerOpacityActive)};
|
|
880
|
+
${No(se.opacityContentOnSurfacePressed,$o.tertiaryStateLayerOpacityActive)};
|
|
881
881
|
|
|
882
882
|
background-color: ${$o.tertiaryBackgroundColor};
|
|
883
883
|
color: ${$o.tertiaryColor};
|
|
@@ -895,13 +895,13 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
895
895
|
/** Neutral styles **/
|
|
896
896
|
|
|
897
897
|
.ft-button--neutral {
|
|
898
|
-
${No(
|
|
898
|
+
${No(ki.color,$o.neutralIconColor)};
|
|
899
899
|
|
|
900
|
-
${No(
|
|
901
|
-
${No(
|
|
902
|
-
${No(
|
|
903
|
-
${No(
|
|
904
|
-
${No(
|
|
900
|
+
${No(se.backgroundColor,$o.neutralStateLayerColor)};
|
|
901
|
+
${No(se.opacityContentOnSurfaceHover,$o.neutralStateLayerOpacityHover)};
|
|
902
|
+
${No(se.opacityContentOnSurfaceFocused,$o.neutralStateLayerOpacityFocus)};
|
|
903
|
+
${No(se.opacityContentOnSurfaceSelected,$o.neutralStateLayerOpacityActive)};
|
|
904
|
+
${No(se.opacityContentOnSurfacePressed,$o.neutralStateLayerOpacityActive)};
|
|
905
905
|
|
|
906
906
|
background-color: ${$o.neutralBackgroundColor};
|
|
907
907
|
color: ${$o.neutralColor};
|
|
@@ -919,8 +919,8 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
919
919
|
/** Large styles **/
|
|
920
920
|
|
|
921
921
|
.ft-button--large {
|
|
922
|
-
${No(
|
|
923
|
-
${No(
|
|
922
|
+
${No(Wi.size,$o.largeIconSize)};
|
|
923
|
+
${No(ki.size,$o.largeIconSize)};
|
|
924
924
|
|
|
925
925
|
height: ${$o.largeHeight};
|
|
926
926
|
padding: 0 ${$o.largeHorizontalPadding};
|
|
@@ -942,8 +942,8 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
942
942
|
/** Small styles **/
|
|
943
943
|
|
|
944
944
|
.ft-button--small {
|
|
945
|
-
${No(
|
|
946
|
-
${No(
|
|
945
|
+
${No(Wi.size,$o.smallIconSize)};
|
|
946
|
+
${No(ki.size,$o.smallIconSize)};
|
|
947
947
|
|
|
948
948
|
height: ${$o.smallHeight};
|
|
949
949
|
padding: 0 ${$o.smallHorizontalPadding};
|
|
@@ -961,7 +961,7 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
961
961
|
width: ${$o.smallIconOnlyWidth};
|
|
962
962
|
padding: unset;
|
|
963
963
|
}
|
|
964
|
-
`,Bo];var
|
|
964
|
+
`,Bo];var Nn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Sn extends mn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?qi.caption1medium:qi.body2medium}}Sn.styles=[Ao,vn],Nn([w({type:Boolean})],Sn.prototype,"primary",void 0),Nn([w({type:Boolean})],Sn.prototype,"secondary",void 0),Nn([w({type:Boolean})],Sn.prototype,"tertiary",void 0),Nn([w({type:Boolean})],Sn.prototype,"neutral",void 0),Nn([w({type:Boolean})],Sn.prototype,"small",void 0),k("ft-button")(On),k("ftds-button")(Sn);const wn=xt`
|
|
965
965
|
:host {
|
|
966
966
|
display: contents;
|
|
967
967
|
}
|
|
@@ -985,4 +985,4 @@ class tn extends Yo{constructor(t){if(super(t),this.et=tt,t.type!==_o)throw Erro
|
|
|
985
985
|
.ft-collapsible--animated.ft-collapsible--hidden, .ft-collapsible--animated.ft-collapsible--hidden::slotted(*) {
|
|
986
986
|
transition: opacity 300ms;
|
|
987
987
|
}
|
|
988
|
-
`;class
|
|
988
|
+
`;class Cn extends ne{}Cn.elementDefinitions={"ft-or-ftds-button":On},Cn.styles=wn;class $n extends ne{}$n.elementDefinitions={"ft-or-ftds-button":Sn},$n.styles=wn,k("ft-collapsible")(Cn),k("ftds-collapsible")($n),t.FtCollapsible=Cn,t.FtdsCollapsible=$n,t.styles=wn}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-collapsible",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Collapsible web component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "1.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-button": "1.1.8",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.8",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "95fb2d06899d700513970ac830958922b98539df"
|
|
27
27
|
}
|