@fluid-topics/ft-in-product-help 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-in-product-help.min.js +222 -222
- package/package.json +3 -3
|
@@ -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(tr){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
|
|
@@ -59,7 +59,7 @@ const S={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},w=(t=S,o,
|
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
61
|
*/
|
|
62
|
-
const L=globalThis,W=L.trustedTypes,z=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",
|
|
62
|
+
const L=globalThis,W=L.trustedTypes,z=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,K="?"+F,B=`<${K}>`,M=document,A=()=>M.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,H="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,_=/>/g,G=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,Y=/"/g,J=/^(?:script|style|textarea|title)$/i,X=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),q=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,ot=M.createTreeWalker(M,129);function et(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==z?z.createHTML(o):o}let it=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=T;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===T?"!--"===l[1]?a=j:void 0!==l[1]?a=_:void 0!==l[2]?(J.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=G):void 0!==l[3]&&(a=G):a===G?">"===l[0]?(a=r??T,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?G:'"'===l[3]?Y:V):a===Y||a===V?a=G:a===j||a===_?a=T:(a=G,r=void 0);const f=a===G&&t[o+1].startsWith("/>")?" ":"";n+=a===T?e+B:c>=0?(i.push(s),e.slice(0,c)+Z+e.slice(c)+F+f):e+F+(-2===c?o:f)}return[et(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]})(o,e);if(this.el=t.createElement(c,i),ot.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ot.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(F),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:i[2],strings:e,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ct:at}),r.removeAttribute(t)}else t.startsWith(F)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(F),o=t.length-1;if(o>0){r.textContent=W?W.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],A()),ot.nextNode(),l.push({type:2,index:++n});r.append(t[o],A())}}}else if(8===r.nodeType)if(r.data===K)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(F,t+1));)l.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,o){const e=M.createElement("template");return e.innerHTML=t,e}};function rt(t,o,e=t,i){if(o===q)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=D(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=rt(t,r._$AS(t,o.values),r,i)),o}let nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=Q,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=rt(this,t,o),D(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(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!==Q&&D(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=it.createElement(et(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);ot.currentNode=i;let r=ot.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new nt(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new pt(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=ot.nextNode(),n++)}return ot.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=tt.get(t.strings);return void 0===o&&tt.set(t.strings,o=new it(t)),o}T(o){P(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(A()),this.k(A()),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))}},at=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=Q,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=Q}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=rt(this,t,o,0),n=!D(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=rt(this,i[e+a],o,a),s===q&&(s=this._$AH[a]),n||=!D(s)||s!==this._$AH[a],s===Q?t=Q:t!==Q&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends at{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Q?void 0:t}},lt=class extends at{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}},ct=class extends at{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=rt(this,t,o,0)??Q)===q)return;const e=this._$AH,i=t===Q&&e!==Q||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==Q&&(e===Q||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)}},pt=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){rt(this,t)}};const ft=L.litHtmlPolyfillSupport;ft?.(it,nt),(L.litHtmlVersions??=[]).push("3.1.0");
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright 2019 Google LLC
|
|
@@ -76,7 +76,7 @@ const ht=globalThis,dt=ht.ShadowRoot&&(void 0===ht.ShadyCSS||ht.ShadyCSS.nativeS
|
|
|
76
76
|
* Copyright 2017 Google LLC
|
|
77
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
78
|
*/
|
|
79
|
-
const Zt=globalThis,
|
|
79
|
+
const Zt=globalThis,Ft=Zt.trustedTypes,Kt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Bt="$lit$",Mt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Mt,Dt=`<${At}>`,Pt=document,Ht=()=>Pt.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,_t="[ \t\n\f\r]",Gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Yt=/>/g,Jt=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,to=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),oo=Symbol.for("lit-noChange"),eo=Symbol.for("lit-nothing"),io=new WeakMap,ro=Pt.createTreeWalker(Pt,129);function no(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Kt?Kt.createHTML(o):o}const ao=(t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=Gt;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===Gt?"!--"===l[1]?a=Vt:void 0!==l[1]?a=Yt:void 0!==l[2]?(Qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Jt):void 0!==l[3]&&(a=Jt):a===Jt?">"===l[0]?(a=r??Gt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Jt:'"'===l[3]?qt:Xt):a===qt||a===Xt?a=Jt:a===Vt||a===Yt?a=Gt:(a=Jt,r=void 0);const f=a===Jt&&t[o+1].startsWith("/>")?" ":"";n+=a===Gt?e+Dt:c>=0?(i.push(s),e.slice(0,c)+Bt+e.slice(c)+Mt+f):e+Mt+(-2===c?o:f)}return[no(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class so{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]=ao(t,o);if(this.el=so.createElement(l,e),ro.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ro.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Bt)){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]?fo:"?"===a[1]?ho:"@"===a[1]?uo:po}),i.removeAttribute(t)}else t.startsWith(Mt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(Qt.test(i.tagName)){const t=i.textContent.split(Mt),o=t.length-1;if(o>0){i.textContent=Ft?Ft.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Ht()),ro.nextNode(),s.push({type:2,index:++r});i.append(t[o],Ht())}}}else if(8===i.nodeType)if(i.data===At)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=Pt.createElement("template");return e.innerHTML=t,e}}function lo(t,o,e=t,i){if(o===oo)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=Tt(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=lo(t,r._$AS(t,o.values),r,i)),o}class co{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=eo,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=lo(this,t,o),Tt(t)?t===eo||null==t||""===t?(this._$AH!==eo&&this._$AR(),this._$AH=eo):t!==this._$AH&&t!==oo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>jt(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!==eo&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Pt.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=so.createElement(no(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??Pt).importNode(o,!0);ro.currentNode=i;let r=ro.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new co(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new yo(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=ro.nextNode(),n++)}return ro.currentNode=Pt,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=io.get(t.strings);return void 0===o&&io.set(t.strings,o=new so(t)),o}T(t){jt(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 co(this.k(Ht()),this.k(Ht()),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 po{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=eo,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=eo}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=lo(this,t,o,0),n=!Tt(t)||t!==this._$AH&&t!==oo,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=lo(this,i[e+a],o,a),s===oo&&(s=this._$AH[a]),n||=!Tt(s)||s!==this._$AH[a],s===eo?t=eo:t!==eo&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===eo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class fo extends po{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===eo?void 0:t}}class ho extends po{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==eo)}}class uo extends po{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=lo(this,t,o,0)??eo)===oo)return;const e=this._$AH,i=t===eo&&e!==eo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==eo&&(e===eo||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 yo{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){lo(this,t)}}const go=Zt.litHtmlPolyfillSupport;go?.(so,co),(Zt.litHtmlVersions??=[]).push("3.1.0");
|
|
80
80
|
/**
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2017 Google LLC
|
|
@@ -87,11 +87,11 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2019 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
|
-
*/class Uo extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Eo.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Io,ko=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};const Lo=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),zo=Symbol("exportpartsDebouncer");class Zo extends Uo{constructor(){super(),this[Io]=new U(5),this[Wo]=this.constructor.name,this[Lo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Lo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[zo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Io=zo,ko([N()],Zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return N({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!I(t,o),...null!=o?o:{}})}([])],Zo.prototype,"exportpartsPrefixes",void 0),ko([N()],Zo.prototype,"customStylesheet",void 0);const
|
|
90
|
+
*/class Uo extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Eo.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Io,ko=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};const Lo=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),zo=Symbol("exportpartsDebouncer");class Zo extends Uo{constructor(){super(),this[Io]=new U(5),this[Wo]=this.constructor.name,this[Lo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Lo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[zo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Io=zo,ko([N()],Zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return N({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!I(t,o),...null!=o?o:{}})}([])],Zo.prototype,"exportpartsPrefixes",void 0),ko([N()],Zo.prototype,"customStylesheet",void 0);const Fo=Oo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");mt`
|
|
91
91
|
.highlight-html-match {
|
|
92
|
-
background: ${
|
|
92
|
+
background: ${Fo};
|
|
93
93
|
}
|
|
94
|
-
`;const
|
|
94
|
+
`;const Ko=mt`
|
|
95
95
|
.ft-no-text-select {
|
|
96
96
|
-webkit-touch-callout: none;
|
|
97
97
|
-webkit-user-select: none;
|
|
@@ -123,29 +123,29 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
123
123
|
display: inline-block;
|
|
124
124
|
width: 0;
|
|
125
125
|
}
|
|
126
|
-
`;window.ftReduxStores||(window.ftReduxStores={});const
|
|
126
|
+
`;function Mo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Ao,Do,Po;const Ho=Symbol("internalReduxEventsUnsubscribers"),To=Symbol("internalStoresUnsubscribers"),jo=Symbol("internalStores");class _o extends Zo{constructor(){super(...arguments),this[Ao]=new Map,this[Do]=new Map,this[Po]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[jo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[jo].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[jo].delete(o)}setupStore(t,o){this[jo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jo].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[To].has(t.store):this[To].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[To].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[Ho].push((()=>o.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[To].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Ho].forEach((t=>t())),this[Ho]=[]}unsubscribeFromStore(t){this[To].has(t)&&this[To].get(t)(),this[To].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Ao=To,Do=jo,Po=Ho,_o.reduxProperties=new Map,_o.reduxReactiveProperties=new Set,_o.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={});const Go=Symbol("elementInternals");var Vo,Yo,Jo;const Xo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Jo=null===(Yo=null===(Vo=window.safari)||void 0===Vo?void 0:Vo.pushNotification)||void 0===Yo?void 0:Yo.toString())&&void 0!==Jo?Jo:"");var qo;t.FtInProductHelpMode=void 0,(qo=t.FtInProductHelpMode||(t.FtInProductHelpMode={})).STANDARD="standard",qo.THEATER="theater",qo.FULLSCREEN="fullscreen";class Qo extends CustomEvent{constructor(t,o){super("visibility-change",{detail:{opened:t,displayMode:o}})}}const te={standardSizeWidth:Oo.create("--ft-in-product-help-standard-width","","SIZE","400px"),standardSizeHeight:Oo.create("--ft-in-product-help-standard-height","","SIZE","630px"),topPosition:Oo.create("--ft-in-product-help-top","","SIZE","unset"),rightPosition:Oo.create("--ft-in-product-help-right","","SIZE","1rem"),bottomPosition:Oo.create("--ft-in-product-help-bottom","","SIZE","1rem"),leftPosition:Oo.create("--ft-in-product-help-left","","SIZE","unset"),zIndex:Oo.create("--ft-in-product-help-zindex","","NUMBER","10"),theaterSizeWidth:Oo.create("--ft-in-product-help-theater-width","","SIZE","90%"),theaterSizeHeight:Oo.create("--ft-in-product-help-theater-height","","SIZE","60%"),fullscreenSizeWidth:Oo.create("--ft-in-product-help-fullscreen-width","","SIZE","100%"),fullscreenSizeHeight:Oo.create("--ft-in-product-help-fullscreen-height","","SIZE","100%"),borderStyle:Oo.create("--ft-in-product-help-border-style","","BORDER-STYLE","solid"),borderWidth:Oo.create("--ft-in-product-help-border-width","","SIZE","0"),borderColor:Oo.extend("--ft-in-product-help-border-color","",$o.colorPrimary),borderRadius:Oo.extend("--ft-in-product-help-border-radius","",$o.borderRadiusM),shadow:Oo.extend("--ft-in-product-help-shadow","",$o.elevation02),topBarHeight:Oo.create("--ft-in-product-help-top-bar-height","","SIZE","28px"),iconColor:Oo.extend("--ft-in-product-help-icon-color","",$o.colorOnSurface),iconGap:Oo.create("--ft-in-product-help-icon-gap","","SIZE","8px"),tabletBreakpoint:Oo.create("--ft-in-product-help-tablet-breakpoint","","SIZE","768px"),desktopBreakpoint:Oo.create("--ft-in-product-help-desktop-breakpoint","","SIZE","1280px"),colorSurface:Oo.external($o.colorSurface,"Design system"),colorPrimary:Oo.external($o.colorPrimary,"Design system")},oe=mt`
|
|
127
127
|
.ft-in-product-help {
|
|
128
128
|
display: none;
|
|
129
129
|
position: fixed;
|
|
130
|
-
width: ${
|
|
131
|
-
height: ${
|
|
132
|
-
top: ${
|
|
133
|
-
right: ${
|
|
134
|
-
bottom: ${
|
|
135
|
-
left: ${
|
|
136
|
-
z-index: ${
|
|
137
|
-
|
|
138
|
-
border-style: ${
|
|
139
|
-
border-width: ${
|
|
140
|
-
border-color: ${
|
|
141
|
-
border-radius: ${
|
|
142
|
-
box-shadow: ${
|
|
130
|
+
width: ${te.standardSizeWidth};
|
|
131
|
+
height: ${te.standardSizeHeight};
|
|
132
|
+
top: ${te.topPosition};
|
|
133
|
+
right: ${te.rightPosition};
|
|
134
|
+
bottom: ${te.bottomPosition};
|
|
135
|
+
left: ${te.leftPosition};
|
|
136
|
+
z-index: ${te.zIndex};
|
|
137
|
+
|
|
138
|
+
border-style: ${te.borderStyle};
|
|
139
|
+
border-width: ${te.borderWidth};
|
|
140
|
+
border-color: ${te.borderColor};
|
|
141
|
+
border-radius: ${te.borderRadius};
|
|
142
|
+
box-shadow: ${te.shadow};
|
|
143
143
|
overflow: hidden;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-in-product-help.ft-in-product-help--theater {
|
|
147
|
-
width: ${
|
|
148
|
-
height: ${
|
|
147
|
+
width: ${te.theaterSizeWidth};
|
|
148
|
+
height: ${te.theaterSizeHeight};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-in-product-help.ft-in-product-help--fullscreen {
|
|
@@ -161,15 +161,15 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.ft-in-product-help--top-bar {
|
|
164
|
-
height: ${
|
|
165
|
-
background-color: ${
|
|
164
|
+
height: ${te.topBarHeight};
|
|
165
|
+
background-color: ${te.colorSurface};
|
|
166
166
|
display: flex;
|
|
167
167
|
justify-content: flex-end;
|
|
168
|
-
gap: ${
|
|
168
|
+
gap: ${te.iconGap};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.ft-in-product-help--top-bar ft-button:not(.ft-in-product-help--active-mode) {
|
|
172
|
-
--ft-button-color: ${
|
|
172
|
+
--ft-button-color: ${te.iconColor};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-in-product-help--home-button {
|
|
@@ -178,7 +178,7 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
178
178
|
|
|
179
179
|
iframe {
|
|
180
180
|
width: 100%;
|
|
181
|
-
height: calc(100% - ${
|
|
181
|
+
height: calc(100% - ${te.topBarHeight});
|
|
182
182
|
border: none;
|
|
183
183
|
}
|
|
184
184
|
`
|
|
@@ -186,12 +186,12 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
186
186
|
* @license
|
|
187
187
|
* Copyright 2017 Google LLC
|
|
188
188
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
189
|
-
*/,
|
|
189
|
+
*/,ee=1,ie=2,re=t=>(...o)=>({_$litDirective$:t,values:o});let ne=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)}},ae=class extends ne{constructor(t){if(super(t),this.et=Q,t.type!==ie)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||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:[]}}};
|
|
190
190
|
/**
|
|
191
191
|
* @license
|
|
192
192
|
* Copyright 2017 Google LLC
|
|
193
193
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
194
|
-
*/
|
|
194
|
+
*/ae.directiveName="unsafeHTML",ae.resultType=1;const se=re(ae);var le,ce;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.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=""}(le||(le={})),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=""}(ce||(ce={})),new Map([...["abw"].map((t=>[t,ce.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,ce.AUDIO])),...["avi"].map((t=>[t,ce.AVI])),...["chm","xhs"].map((t=>[t,ce.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,ce.CODE])),...["csv"].map((t=>[t,ce.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ce.DITA])),...["epub"].map((t=>[t,ce.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ce.EXCEL])),...["flac"].map((t=>[t,ce.FLAC])),...["gif"].map((t=>[t,ce.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ce.GZIP])),...["html","htm","xhtml"].map((t=>[t,ce.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,ce.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ce.JPEG])),...["json"].map((t=>[t,ce.JSON])),...["m4a","m4p"].map((t=>[t,ce.M4A])),...["mov","qt"].map((t=>[t,ce.MOV])),...["mp3"].map((t=>[t,ce.MP3])),...["mp4","m4v"].map((t=>[t,ce.MP4])),...["ogg","oga"].map((t=>[t,ce.OGG])),...["pdf","ps"].map((t=>[t,ce.PDF])),...["png"].map((t=>[t,ce.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ce.POWERPOINT])),...["rar"].map((t=>[t,ce.RAR])),...["stp"].map((t=>[t,ce.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ce.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,ce.VIDEO])),...["wav"].map((t=>[t,ce.WAV])),...["wma"].map((t=>[t,ce.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ce.WORD])),...["xml","xsl","rdf"].map((t=>[t,ce.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ce.YAML])),...["zip"].map((t=>[t,ce.ZIP]))]);const pe={size:Oo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Oo.extend("--ft-icon-fluid-topics-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Oo.extend("--ft-icon-file-format-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Oo.extend("--ft-icon-material-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Oo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},fe=mt`
|
|
195
195
|
:host, i.ft-icon {
|
|
196
196
|
display: inline-flex;
|
|
197
197
|
align-items: center;
|
|
@@ -200,14 +200,14 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
:host {
|
|
203
|
-
width: ${
|
|
204
|
-
height: ${
|
|
203
|
+
width: ${pe.size};
|
|
204
|
+
height: ${pe.size};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
i.ft-icon {
|
|
208
208
|
width: 100%;
|
|
209
209
|
height: 100%;
|
|
210
|
-
font-size: ${
|
|
210
|
+
font-size: ${pe.size};
|
|
211
211
|
line-height: 1;
|
|
212
212
|
font-weight: normal;
|
|
213
213
|
text-transform: none;
|
|
@@ -218,39 +218,39 @@ class bo extends zt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
218
218
|
text-rendering: auto;
|
|
219
219
|
-webkit-font-smoothing: antialiased;
|
|
220
220
|
-moz-osx-font-smoothing: grayscale;
|
|
221
|
-
vertical-align: ${
|
|
221
|
+
vertical-align: ${pe.verticalAlign};
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
i.ft-icon.ft-icon--fluid-topics {
|
|
225
|
-
font-family: ${
|
|
225
|
+
font-family: ${pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
226
226
|
|
|
227
227
|
/* Ugly fix because font is broken */
|
|
228
|
-
font-size: calc(0.75 * ${
|
|
229
|
-
line-height: ${
|
|
228
|
+
font-size: calc(0.75 * ${pe.size});
|
|
229
|
+
line-height: ${pe.size};
|
|
230
230
|
position: relative;
|
|
231
231
|
top: -4%;
|
|
232
232
|
justify-content: center;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-icon--file-format {
|
|
236
|
-
font-family: ${
|
|
236
|
+
font-family: ${pe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-icon--material {
|
|
240
|
-
font-family: ${
|
|
240
|
+
font-family: ${pe.materialFontFamily}, "Material Icons", sans-serif;
|
|
241
241
|
}
|
|
242
|
-
`;var
|
|
242
|
+
`;var he;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(he||(he={}));var de=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 ue extends Zo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(he).includes(this.variant)?this.variant:he.fluid_topics,o=t!==he.material||!!this.value;return to`
|
|
243
243
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
244
|
-
${
|
|
244
|
+
${se(this.resolvedIcon)}
|
|
245
245
|
<slot ?hidden=${o}></slot>
|
|
246
246
|
</i>
|
|
247
|
-
`}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
|
|
247
|
+
`}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 he.file_format:this.resolvedIcon=null!==(t=ce[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case he.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=le[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ue.elementDefinitions={},ue.styles=fe,de([N()],ue.prototype,"variant",void 0),de([N()],ue.prototype,"value",void 0),de([C()],ue.prototype,"resolvedIcon",void 0),de([R("slot")],ue.prototype,"slottedContent",void 0),k("ft-icon")(ue);
|
|
248
248
|
/**
|
|
249
249
|
* @license
|
|
250
250
|
* Copyright 2018 Google LLC
|
|
251
251
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
252
252
|
*/
|
|
253
|
-
const
|
|
253
|
+
const ye=re(class extends ne{constructor(t){if(super(t),t.type!==ee||"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}}),ge=Oo.extend("--ft-ripple-color","",$o.colorContent),be={color:ge,backgroundColor:Oo.extend("--ft-ripple-background-color","",ge),opacityContentOnSurfacePressed:Oo.external($o.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external($o.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external($o.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external($o.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},me=Oo.extend("--ft-ripple-color","",$o.colorPrimary),xe=me,Oe=Oo.extend("--ft-ripple-background-color","",me),ve=Oo.extend("--ft-ripple-color","",$o.colorSecondary),Se=ve,we=Oo.extend("--ft-ripple-background-color","",ve),Ne=mt`
|
|
254
254
|
:host {
|
|
255
255
|
display: contents;
|
|
256
256
|
}
|
|
@@ -263,7 +263,7 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
263
263
|
|
|
264
264
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
265
265
|
overflow: hidden;
|
|
266
|
-
border-radius: ${
|
|
266
|
+
border-radius: ${be.borderRadius};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
.ft-ripple .ft-ripple--background,
|
|
@@ -297,27 +297,27 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.ft-ripple .ft-ripple--background {
|
|
300
|
-
background-color: ${
|
|
300
|
+
background-color: ${be.backgroundColor};
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.ft-ripple .ft-ripple--effect {
|
|
304
|
-
background-color: ${
|
|
304
|
+
background-color: ${be.color};
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
308
|
-
background-color: ${
|
|
308
|
+
background-color: ${we};
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
312
|
-
background-color: ${
|
|
312
|
+
background-color: ${Se};
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
316
|
-
background-color: ${
|
|
316
|
+
background-color: ${Oe};
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
320
|
-
background-color: ${
|
|
320
|
+
background-color: ${xe};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.ft-ripple .ft-ripple--background {
|
|
@@ -347,117 +347,117 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
350
|
-
opacity: ${
|
|
350
|
+
opacity: ${be.opacityContentOnSurfaceHover};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
354
|
-
opacity: ${
|
|
354
|
+
opacity: ${be.opacityContentOnSurfaceSelected};
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
358
|
-
opacity: ${
|
|
358
|
+
opacity: ${be.opacityContentOnSurfaceFocused};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
362
|
-
opacity: ${
|
|
362
|
+
opacity: ${be.opacityContentOnSurfacePressed};
|
|
363
363
|
transform: translate(-50%, -50%) scale(1);
|
|
364
364
|
}
|
|
365
|
-
`;const
|
|
365
|
+
`;const Ce=Oo.extend("--ft-typography-font-family","",$o.titleFont),$e=Oo.extend("--ft-typography-font-family","",$o.contentFont),Ee={fontFamily:$e,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Re=Oo.extend("--ft-typography-title-font-family","",Ce),Ue=Oo.extend("--ft-typography-title-font-size","",Ee.fontSize,"20px"),Ie=Oo.extend("--ft-typography-title-font-weight","",Ee.fontWeight,"normal"),ke=Oo.extend("--ft-typography-title-letter-spacing","",Ee.letterSpacing,"0.15px"),Le=Oo.extend("--ft-typography-title-line-height","",Ee.lineHeight,"1.2"),We=Oo.extend("--ft-typography-title-text-transform","",Ee.textTransform,"inherit"),ze=Oo.extend("--ft-typography-title-dense-font-family","",Ce),Ze=Oo.extend("--ft-typography-title-dense-font-size","",Ee.fontSize,"14px"),Fe=Oo.extend("--ft-typography-title-dense-font-weight","",Ee.fontWeight,"normal"),Ke=Oo.extend("--ft-typography-title-dense-letter-spacing","",Ee.letterSpacing,"0.105px"),Be=Oo.extend("--ft-typography-title-dense-line-height","",Ee.lineHeight,"1.7"),Me=Oo.extend("--ft-typography-title-dense-text-transform","",Ee.textTransform,"inherit"),Ae=Oo.extend("--ft-typography-subtitle1-font-family","",$e),De=Oo.extend("--ft-typography-subtitle1-font-size","",Ee.fontSize,"16px"),Pe=Oo.extend("--ft-typography-subtitle1-font-weight","",Ee.fontWeight,"600"),He=Oo.extend("--ft-typography-subtitle1-letter-spacing","",Ee.letterSpacing,"0.144px"),Te=Oo.extend("--ft-typography-subtitle1-line-height","",Ee.lineHeight,"1.5"),je=Oo.extend("--ft-typography-subtitle1-text-transform","",Ee.textTransform,"inherit"),_e=Oo.extend("--ft-typography-subtitle2-font-family","",$e),Ge=Oo.extend("--ft-typography-subtitle2-font-size","",Ee.fontSize,"14px"),Ve=Oo.extend("--ft-typography-subtitle2-font-weight","",Ee.fontWeight,"normal"),Ye=Oo.extend("--ft-typography-subtitle2-letter-spacing","",Ee.letterSpacing,"0.098px"),Je=Oo.extend("--ft-typography-subtitle2-line-height","",Ee.lineHeight,"1.7"),Xe=Oo.extend("--ft-typography-subtitle2-text-transform","",Ee.textTransform,"inherit"),qe=Oo.extend("--ft-typography-body1-font-family","",$e),Qe=Oo.extend("--ft-typography-body1-font-size","",Ee.fontSize,"16px"),ti=Oo.extend("--ft-typography-body1-font-weight","",Ee.fontWeight,"normal"),oi=Oo.extend("--ft-typography-body1-letter-spacing","",Ee.letterSpacing,"0.496px"),ei=Oo.extend("--ft-typography-body1-line-height","",Ee.lineHeight,"1.5"),ii=Oo.extend("--ft-typography-body1-text-transform","",Ee.textTransform,"inherit"),ri=Oo.extend("--ft-typography-body2-font-family","",$e),ni=Oo.extend("--ft-typography-body2-font-size","",Ee.fontSize,"14px"),ai=Oo.extend("--ft-typography-body2-font-weight","",Ee.fontWeight,"normal"),si=Oo.extend("--ft-typography-body2-letter-spacing","",Ee.letterSpacing,"0.252px"),li=Oo.extend("--ft-typography-body2-line-height","",Ee.lineHeight,"1.4"),ci=Oo.extend("--ft-typography-body2-text-transform","",Ee.textTransform,"inherit"),pi=Oo.extend("--ft-typography-caption-font-family","",$e),fi=Oo.extend("--ft-typography-caption-font-size","",Ee.fontSize,"12px"),hi=Oo.extend("--ft-typography-caption-font-weight","",Ee.fontWeight,"normal"),di=Oo.extend("--ft-typography-caption-letter-spacing","",Ee.letterSpacing,"0.396px"),ui=Oo.extend("--ft-typography-caption-line-height","",Ee.lineHeight,"1.33"),yi=Oo.extend("--ft-typography-caption-text-transform","",Ee.textTransform,"inherit"),gi=Oo.extend("--ft-typography-breadcrumb-font-family","",$e),bi=Oo.extend("--ft-typography-breadcrumb-font-size","",Ee.fontSize,"10px"),mi=Oo.extend("--ft-typography-breadcrumb-font-weight","",Ee.fontWeight,"normal"),xi=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",Ee.letterSpacing,"0.33px"),Oi=Oo.extend("--ft-typography-breadcrumb-line-height","",Ee.lineHeight,"1.6"),vi=Oo.extend("--ft-typography-breadcrumb-text-transform","",Ee.textTransform,"inherit"),Si=Oo.extend("--ft-typography-overline-font-family","",$e),wi=Oo.extend("--ft-typography-overline-font-size","",Ee.fontSize,"10px"),Ni=Oo.extend("--ft-typography-overline-font-weight","",Ee.fontWeight,"normal"),Ci=Oo.extend("--ft-typography-overline-letter-spacing","",Ee.letterSpacing,"1.5px"),$i=Oo.extend("--ft-typography-overline-line-height","",Ee.lineHeight,"1.6"),Ei=Oo.extend("--ft-typography-overline-text-transform","",Ee.textTransform,"uppercase"),Ri={fontFamily:Oo.extend("--ft-typography-button-font-family","",$e),fontSize:Oo.extend("--ft-typography-button-font-size","",Ee.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-button-font-weight","",Ee.fontWeight,"600"),letterSpacing:Oo.extend("--ft-typography-button-letter-spacing","",Ee.letterSpacing,"1.246px"),lineHeight:Oo.extend("--ft-typography-button-line-height","",Ee.lineHeight,"1.15"),textTransform:Oo.extend("--ft-typography-button-text-transform","",Ee.textTransform,"uppercase")},Ui=mt`
|
|
366
366
|
.ft-typography--title {
|
|
367
|
-
font-family: ${
|
|
368
|
-
font-size: ${
|
|
369
|
-
font-weight: ${
|
|
370
|
-
letter-spacing: ${
|
|
371
|
-
line-height: ${
|
|
372
|
-
text-transform: ${
|
|
373
|
-
}
|
|
374
|
-
`,
|
|
367
|
+
font-family: ${Re};
|
|
368
|
+
font-size: ${Ue};
|
|
369
|
+
font-weight: ${Ie};
|
|
370
|
+
letter-spacing: ${ke};
|
|
371
|
+
line-height: ${Le};
|
|
372
|
+
text-transform: ${We};
|
|
373
|
+
}
|
|
374
|
+
`,Ii=mt`
|
|
375
375
|
.ft-typography--title-dense {
|
|
376
|
-
font-family: ${
|
|
377
|
-
font-size: ${
|
|
378
|
-
font-weight: ${
|
|
379
|
-
letter-spacing: ${
|
|
380
|
-
line-height: ${
|
|
381
|
-
text-transform: ${
|
|
382
|
-
}
|
|
383
|
-
`,
|
|
376
|
+
font-family: ${ze};
|
|
377
|
+
font-size: ${Ze};
|
|
378
|
+
font-weight: ${Fe};
|
|
379
|
+
letter-spacing: ${Ke};
|
|
380
|
+
line-height: ${Be};
|
|
381
|
+
text-transform: ${Me};
|
|
382
|
+
}
|
|
383
|
+
`,ki=mt`
|
|
384
384
|
.ft-typography--subtitle1 {
|
|
385
|
-
font-family: ${
|
|
386
|
-
font-size: ${
|
|
387
|
-
font-weight: ${
|
|
388
|
-
letter-spacing: ${
|
|
389
|
-
line-height: ${
|
|
390
|
-
text-transform: ${
|
|
391
|
-
}
|
|
392
|
-
`,
|
|
385
|
+
font-family: ${Ae};
|
|
386
|
+
font-size: ${De};
|
|
387
|
+
font-weight: ${Pe};
|
|
388
|
+
letter-spacing: ${He};
|
|
389
|
+
line-height: ${Te};
|
|
390
|
+
text-transform: ${je};
|
|
391
|
+
}
|
|
392
|
+
`,Li=mt`
|
|
393
393
|
.ft-typography--subtitle2 {
|
|
394
|
-
font-family: ${
|
|
395
|
-
font-size: ${
|
|
396
|
-
font-weight: ${
|
|
397
|
-
letter-spacing: ${
|
|
398
|
-
line-height: ${
|
|
399
|
-
text-transform: ${
|
|
394
|
+
font-family: ${_e};
|
|
395
|
+
font-size: ${Ge};
|
|
396
|
+
font-weight: ${Ve};
|
|
397
|
+
letter-spacing: ${Ye};
|
|
398
|
+
line-height: ${Je};
|
|
399
|
+
text-transform: ${Xe};
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
`,
|
|
402
|
+
`,Wi=mt`
|
|
403
403
|
.ft-typography--body1 {
|
|
404
|
-
font-family: ${
|
|
405
|
-
font-size: ${
|
|
406
|
-
font-weight: ${
|
|
407
|
-
letter-spacing: ${
|
|
408
|
-
line-height: ${
|
|
409
|
-
text-transform: ${
|
|
410
|
-
}
|
|
411
|
-
|
|
404
|
+
font-family: ${qe};
|
|
405
|
+
font-size: ${Qe};
|
|
406
|
+
font-weight: ${ti};
|
|
407
|
+
letter-spacing: ${oi};
|
|
408
|
+
line-height: ${ei};
|
|
409
|
+
text-transform: ${ii};
|
|
410
|
+
}
|
|
411
|
+
`,zi=mt`
|
|
412
412
|
.ft-typography--body2 {
|
|
413
|
-
font-family: ${
|
|
414
|
-
font-size: ${
|
|
415
|
-
font-weight: ${
|
|
416
|
-
letter-spacing: ${
|
|
417
|
-
line-height: ${
|
|
418
|
-
text-transform: ${
|
|
419
|
-
}
|
|
420
|
-
`,
|
|
413
|
+
font-family: ${ri};
|
|
414
|
+
font-size: ${ni};
|
|
415
|
+
font-weight: ${ai};
|
|
416
|
+
letter-spacing: ${si};
|
|
417
|
+
line-height: ${li};
|
|
418
|
+
text-transform: ${ci};
|
|
419
|
+
}
|
|
420
|
+
`,Zi=mt`
|
|
421
421
|
.ft-typography--caption {
|
|
422
|
-
font-family: ${
|
|
423
|
-
font-size: ${
|
|
424
|
-
font-weight: ${
|
|
425
|
-
letter-spacing: ${
|
|
426
|
-
line-height: ${
|
|
427
|
-
text-transform: ${
|
|
428
|
-
}
|
|
429
|
-
`,
|
|
422
|
+
font-family: ${pi};
|
|
423
|
+
font-size: ${fi};
|
|
424
|
+
font-weight: ${hi};
|
|
425
|
+
letter-spacing: ${di};
|
|
426
|
+
line-height: ${ui};
|
|
427
|
+
text-transform: ${yi};
|
|
428
|
+
}
|
|
429
|
+
`,Fi=mt`
|
|
430
430
|
.ft-typography--breadcrumb {
|
|
431
|
-
font-family: ${
|
|
432
|
-
font-size: ${
|
|
433
|
-
font-weight: ${
|
|
434
|
-
letter-spacing: ${
|
|
435
|
-
line-height: ${
|
|
436
|
-
text-transform: ${
|
|
437
|
-
}
|
|
438
|
-
`,
|
|
431
|
+
font-family: ${gi};
|
|
432
|
+
font-size: ${bi};
|
|
433
|
+
font-weight: ${mi};
|
|
434
|
+
letter-spacing: ${xi};
|
|
435
|
+
line-height: ${Oi};
|
|
436
|
+
text-transform: ${vi};
|
|
437
|
+
}
|
|
438
|
+
`,Ki=mt`
|
|
439
439
|
.ft-typography--overline {
|
|
440
|
-
font-family: ${
|
|
441
|
-
font-size: ${
|
|
442
|
-
font-weight: ${
|
|
443
|
-
letter-spacing: ${
|
|
444
|
-
line-height: ${
|
|
445
|
-
text-transform: ${
|
|
446
|
-
}
|
|
447
|
-
`,
|
|
440
|
+
font-family: ${Si};
|
|
441
|
+
font-size: ${wi};
|
|
442
|
+
font-weight: ${Ni};
|
|
443
|
+
letter-spacing: ${Ci};
|
|
444
|
+
line-height: ${$i};
|
|
445
|
+
text-transform: ${Ei};
|
|
446
|
+
}
|
|
447
|
+
`,Bi=mt`
|
|
448
448
|
.ft-typography--button {
|
|
449
|
-
font-family: ${
|
|
450
|
-
font-size: ${
|
|
451
|
-
font-weight: ${
|
|
452
|
-
letter-spacing: ${
|
|
453
|
-
line-height: ${
|
|
454
|
-
text-transform: ${
|
|
455
|
-
}
|
|
456
|
-
`,
|
|
449
|
+
font-family: ${Ri.fontFamily};
|
|
450
|
+
font-size: ${Ri.fontSize};
|
|
451
|
+
font-weight: ${Ri.fontWeight};
|
|
452
|
+
letter-spacing: ${Ri.letterSpacing};
|
|
453
|
+
line-height: ${Ri.lineHeight};
|
|
454
|
+
text-transform: ${Ri.textTransform};
|
|
455
|
+
}
|
|
456
|
+
`,Mi=mt`
|
|
457
457
|
.ft-typography {
|
|
458
458
|
vertical-align: inherit;
|
|
459
459
|
}
|
|
460
|
-
`,
|
|
460
|
+
`,Ai=[Object.keys(wo).map((t=>function(t){const o=wo[t];return mt`
|
|
461
461
|
.ft-typography--${bt(t)} {
|
|
462
462
|
font-family: ${o.fontFamily};
|
|
463
463
|
font-size: ${o.fontSize};
|
|
@@ -466,7 +466,7 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
466
466
|
line-height: ${o.lineHeight};
|
|
467
467
|
text-transform: ${o.textCase};
|
|
468
468
|
}
|
|
469
|
-
`}(t)))],
|
|
469
|
+
`}(t)))],Di={color:Oo.extend("--ft-loader-color","",$o.colorPrimary),size:Oo.create("--ft-loader-size","","SIZE","80px")},Pi=mt`
|
|
470
470
|
:host {
|
|
471
471
|
line-height: 0;
|
|
472
472
|
}
|
|
@@ -475,8 +475,8 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
475
475
|
display: inline-block;
|
|
476
476
|
position: relative;
|
|
477
477
|
|
|
478
|
-
width: ${
|
|
479
|
-
height: ${
|
|
478
|
+
width: ${Di.size};
|
|
479
|
+
height: ${Di.size};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-loader div {
|
|
@@ -485,7 +485,7 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
485
485
|
width: 25%;
|
|
486
486
|
height: 25%;
|
|
487
487
|
border-radius: 50%;
|
|
488
|
-
background: ${
|
|
488
|
+
background: ${Di.color};
|
|
489
489
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
490
490
|
}
|
|
491
491
|
|
|
@@ -532,10 +532,10 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
532
532
|
transform: translate(0, 0);
|
|
533
533
|
}
|
|
534
534
|
100% {
|
|
535
|
-
transform: translate(calc(0.35 * ${
|
|
535
|
+
transform: translate(calc(0.35 * ${Di.size}), 0);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
`,
|
|
538
|
+
`,Hi=Oo.extend("--ft-button-color","",$o.colorPrimary),Ti={backgroundColor:Oo.extend("--ft-button-background-color","",$o.colorSurface),borderRadius:Oo.extend("--ft-button-border-radius","",$o.borderRadiusL),color:Hi,fontSize:Oo.extend("--ft-button-font-size","",Ri.fontSize),iconSize:Oo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Oo.extend("--ft-button-ripple-color","",Hi),verticalPadding:Oo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Oo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Oo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Oo.external($o.colorOpacityDisabled,"Design system")},ji=Oo.extend("--ft-button-primary-color","",Oo.extend("--ft-button-color","",$o.colorOnPrimary)),_i={backgroundColor:Oo.extend("--ft-button-primary-background-color","",Oo.extend("--ft-button-background-color","",$o.colorPrimary)),color:ji,rippleColor:Oo.extend("--ft-button-primary-ripple-color","",ji)},Gi=Oo.extend("--ft-button-dense-border-radius","",Oo.extend("--ft-button-border-radius","",$o.borderRadiusM)),Vi=Oo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Yi=Oo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ji=Oo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Xi=[mt`
|
|
539
539
|
:host {
|
|
540
540
|
display: inline-block;
|
|
541
541
|
max-width: 100%;
|
|
@@ -546,7 +546,7 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
546
546
|
box-shadow: 0px 0px 0px transparent;
|
|
547
547
|
border: 0px solid transparent;
|
|
548
548
|
text-shadow: 0px 0px 0px transparent;
|
|
549
|
-
font-size: ${
|
|
549
|
+
font-size: ${Ti.fontSize};
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
button:hover {
|
|
@@ -575,31 +575,31 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
575
575
|
border: none;
|
|
576
576
|
pointer-events: auto;
|
|
577
577
|
|
|
578
|
-
--ft-button-internal-line-height: max(calc(${
|
|
579
|
-
--ft-button-internal-color: ${
|
|
580
|
-
${vo(
|
|
581
|
-
${vo(
|
|
578
|
+
--ft-button-internal-line-height: max(calc(${Ti.fontSize} + 2px), ${Ti.iconSize});
|
|
579
|
+
--ft-button-internal-color: ${Ti.color};
|
|
580
|
+
${vo(pe.size,Ti.iconSize)};
|
|
581
|
+
${vo(be.color,Ti.rippleColor)};
|
|
582
582
|
|
|
583
|
-
border-radius: ${
|
|
584
|
-
padding: ${
|
|
585
|
-
background-color: ${
|
|
583
|
+
border-radius: ${Ti.borderRadius};
|
|
584
|
+
padding: ${Ti.verticalPadding} ${Ti.horizontalPadding};
|
|
585
|
+
background-color: ${Ti.backgroundColor};
|
|
586
586
|
color: var(--ft-button-internal-color);
|
|
587
587
|
-webkit-mask-image: radial-gradient(white, black);
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
.ft-button.ft-button--outlined {
|
|
591
591
|
border: 1px solid var(--ft-button-internal-color);
|
|
592
|
-
padding: calc(${
|
|
592
|
+
padding: calc(${Ti.verticalPadding} - 1px) calc(${Ti.horizontalPadding} - 1px);
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
.ft-button.ft-button--dense {
|
|
596
|
-
padding: ${
|
|
597
|
-
border-radius: ${
|
|
598
|
-
gap: ${
|
|
596
|
+
padding: ${Vi} ${Yi};
|
|
597
|
+
border-radius: ${Gi};
|
|
598
|
+
gap: ${Ji};
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
602
|
-
padding: calc(${
|
|
602
|
+
padding: calc(${Vi} - 1px) calc(${Yi} - 1px);
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
.ft-button:not([disabled]):hover {
|
|
@@ -607,22 +607,22 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.ft-button--round {
|
|
610
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
610
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ti.verticalPadding});
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
.ft-button--round.ft-button--dense {
|
|
614
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
614
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vi});
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
.ft-button[disabled] {
|
|
618
618
|
filter: grayscale(1);
|
|
619
|
-
opacity: ${
|
|
619
|
+
opacity: ${Ti.opacityDisabled};
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
.ft-button.ft-button--primary {
|
|
623
|
-
background-color: ${
|
|
624
|
-
--ft-button-internal-color: ${
|
|
625
|
-
${vo(
|
|
623
|
+
background-color: ${_i.backgroundColor};
|
|
624
|
+
--ft-button-internal-color: ${_i.color};
|
|
625
|
+
${vo(be.color,_i.rippleColor)};
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
.ft-button:focus {
|
|
@@ -635,13 +635,13 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
635
635
|
white-space: nowrap;
|
|
636
636
|
text-overflow: ellipsis;
|
|
637
637
|
display: block;
|
|
638
|
-
margin: 0 ${
|
|
639
|
-
${vo(
|
|
640
|
-
${vo(
|
|
638
|
+
margin: 0 ${Ti.iconPadding};
|
|
639
|
+
${vo(Ri.fontSize,"1em")};
|
|
640
|
+
${vo(Ri.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
.ft-button--dense .ft-button--label {
|
|
644
|
-
margin: 0 ${
|
|
644
|
+
margin: 0 ${Ji};
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
.ft-button--label[hidden] {
|
|
@@ -654,13 +654,13 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
.ft-button--label[hidden] + ft-icon {
|
|
657
|
-
margin: 0 calc(${
|
|
658
|
-
padding: 0 ${
|
|
657
|
+
margin: 0 calc(${Ti.horizontalPadding} * -1);
|
|
658
|
+
padding: 0 ${Ti.verticalPadding};
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
662
|
-
margin: 0 calc(${
|
|
663
|
-
padding: 0 ${
|
|
662
|
+
margin: 0 calc(${Yi} * -1);
|
|
663
|
+
padding: 0 ${Vi};
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -669,34 +669,34 @@ const se=Jo(class extends Xo{constructor(t){if(super(t),t.type!==Vo||"class"!==t
|
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
ft-loader {
|
|
672
|
-
${vo(
|
|
673
|
-
${vo(
|
|
672
|
+
${vo(Di.size,Ti.iconSize)};
|
|
673
|
+
${vo(Di.color,"var(--ft-button-internal-color)")};
|
|
674
674
|
}
|
|
675
|
-
`,
|
|
675
|
+
`,Ko];var qi=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.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 to`
|
|
676
676
|
<style>
|
|
677
677
|
.ft-ripple .ft-ripple--effect {
|
|
678
678
|
left: ${this.originX}px;
|
|
679
679
|
top: ${this.originY}px;
|
|
680
680
|
}
|
|
681
681
|
</style>
|
|
682
|
-
<div class="${
|
|
682
|
+
<div class="${ye(t)}">
|
|
683
683
|
<div class="ft-ripple--background"></div>
|
|
684
684
|
<div class="ft-ripple--effect"></div>
|
|
685
685
|
</div>
|
|
686
|
-
`}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()}}
|
|
686
|
+
`}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()}}Qi.elementDefinitions={},Qi.styles=Ne,qi([N({type:Boolean})],Qi.prototype,"primary",void 0),qi([N({type:Boolean})],Qi.prototype,"secondary",void 0),qi([N({type:Boolean})],Qi.prototype,"unbounded",void 0),qi([N({type:Boolean})],Qi.prototype,"activated",void 0),qi([N({type:Boolean})],Qi.prototype,"selected",void 0),qi([N({type:Boolean})],Qi.prototype,"disabled",void 0),qi([C()],Qi.prototype,"hovered",void 0),qi([C()],Qi.prototype,"focused",void 0),qi([C()],Qi.prototype,"pressed",void 0),qi([C()],Qi.prototype,"rippling",void 0),qi([C()],Qi.prototype,"originX",void 0),qi([C()],Qi.prototype,"originY",void 0),qi([R(".ft-ripple")],Qi.prototype,"ripple",void 0),qi([R(".ft-ripple--effect")],Qi.prototype,"rippleEffect",void 0),k("ft-ripple")(Qi);
|
|
687
687
|
/**
|
|
688
688
|
* @license
|
|
689
689
|
* Copyright 2020 Google LLC
|
|
690
690
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
691
691
|
*/
|
|
692
|
-
const
|
|
693
|
-
<${
|
|
692
|
+
const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$litStatic$:t,r:tr}),ir=new Map,rr=(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=or(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=ir.get(t))&&(a.raw=a,ir.set(t,o=a)),e=s}return t(o,...e)})(X);var nr;!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"}(nr||(nr={}));var ar=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 sr extends Zo{constructor(){super(...arguments),this.variant=nr.body1}render(){return this.element?rr`
|
|
693
|
+
<${er(this.element)}
|
|
694
694
|
class="ft-typography ft-typography--${this.variant}">
|
|
695
695
|
<slot></slot>
|
|
696
|
-
</${
|
|
697
|
-
`:
|
|
696
|
+
</${er(this.element)}>
|
|
697
|
+
`:rr`
|
|
698
698
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
699
|
-
`}}
|
|
699
|
+
`}}sr.styles=[Ui,Ii,ki,Li,Wi,zi,Zi,Fi,Ki,Bi,Mi,...Ai],ar([N()],sr.prototype,"element",void 0),ar([N()],sr.prototype,"variant",void 0),k("ft-typography")(sr);const lr=Oo.create("--ft-tooltip-distance","","SIZE","4px"),cr=Oo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),pr=Oo.create("--ft-tooltip-background-color","","COLOR","#666666"),fr=Oo.create("--ft-tooltip-z-index","","NUMBER","100"),hr=Oo.external($o.borderRadiusS,"Design system"),dr=Oo.create("--ft-tooltip-max-width","","SIZE","150px"),ur=mt`
|
|
700
700
|
.ft-tooltip--container {
|
|
701
701
|
display: block;
|
|
702
702
|
}
|
|
@@ -711,21 +711,21 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
711
711
|
box-sizing: border-box;
|
|
712
712
|
overflow: hidden;
|
|
713
713
|
width: max-content;
|
|
714
|
-
max-width: ${
|
|
714
|
+
max-width: ${dr};
|
|
715
715
|
text-align: center;
|
|
716
|
-
padding: ${
|
|
717
|
-
z-index: ${
|
|
716
|
+
padding: ${lr};
|
|
717
|
+
z-index: ${fr};
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
.ft-tooltip--content {
|
|
721
721
|
padding: 4px 8px;
|
|
722
|
-
border-radius: ${
|
|
723
|
-
background-color: ${
|
|
724
|
-
color: ${
|
|
722
|
+
border-radius: ${hr};
|
|
723
|
+
background-color: ${pr};
|
|
724
|
+
color: ${cr};
|
|
725
725
|
position: relative;
|
|
726
726
|
word-break: break-word;
|
|
727
727
|
}
|
|
728
|
-
`,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 Sr(t){return xr(vr(t))}function wr(t){return t.replace(/left|right|bottom|top/g,(t=>dr[t]))}function Nr(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=Sr(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=Nr(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=Nr(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 Er(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 Rr=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?Er(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=Sr(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=wr(a)),[a,wr(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}],S=y[b+1];if(S)return{data:{index:b+1,overflows:v},reset:{placement:S}};const w=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])),N=w.filter((t=>t[2].slice(0,mr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||w[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 zr(t){return t instanceof HTMLElement||t instanceof Ir(t).HTMLElement}function Zr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ir(t).ShadowRoot)}function Kr(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 Fr(t){return["table","td","th"].includes(Ur(t))}function Br(t){const o=Mr(),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 Mr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ar(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||Zr(t)&&t.host||kr(t);return Zr(o)?o.host:o}function Tr(t){const o=Hr(t);return Ar(o)?t.ownerDocument?t.ownerDocument.body:t.body:zr(o)&&Kr(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||[],Kr(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=zr(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 Vr(t){const o=Gr(t);if(!zr(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 Yr=hr(0);function Jr(t){const o=Ir(t);return Mr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Yr}function Xr(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=Vr(i)):a=Vr(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=Vr(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 Nr({width:p,height:f,x:l,y:c})}function qr(t){return Xr(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=Mr();(!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+qr(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=Xr(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=zr(t)?Vr(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 Nr(i)}function tn(t,o){const e=Hr(t);return!(e===o||!Wr(e)||Ar(e))&&("fixed"===Dr(e).position||tn(e,o))}function on(t,o,e){const i=zr(o),r=kr(o),n="fixed"===e,a=Xr(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=hr(0);if(i||!i&&!n)if(("body"!==Ur(o)||Kr(r))&&(s=Pr(o)),i){const t=Xr(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=qr(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 zr(t)&&"fixed"!==Dr(t).position?o?o(t):t.offsetParent:null}function rn(t,o){const e=Ir(t);if(!zr(t))return e;let i=en(t,o);for(;i&&Fr(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(;zr(o)&&!Ar(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=zr(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)||Kr(n))&&(a=Pr(e)),zr(e))){const t=Xr(e);s=Vr(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)&&!Ar(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)||Kr(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:Vr,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 to`
|
|
728
|
+
`,yr=["start","end"],gr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+yr[0],o+"-"+yr[1])),[]),br=Math.min,mr=Math.max,xr=Math.round,Or=t=>({x:t,y:t}),vr={left:"right",right:"left",bottom:"top",top:"bottom"},Sr={start:"end",end:"start"};function wr(t,o,e){return mr(t,br(o,e))}function Nr(t,o){return"function"==typeof t?t(o):t}function Cr(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Er(t){return"x"===t?"y":"x"}function Rr(t){return"y"===t?"height":"width"}function Ur(t){return["top","bottom"].includes(Cr(t))?"y":"x"}function Ir(t){return Er(Ur(t))}function kr(t){return t.replace(/left|right|bottom|top/g,(t=>vr[t]))}function Lr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Wr(t,o,e){let{reference:i,floating:r}=t;const n=Ur(o),a=Ir(o),s=Rr(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($r(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function zr(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}=Nr(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=Lr(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=Lr(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 Zr(t,o,e){return(t?[...e.filter((o=>$r(o)===t)),...e.filter((o=>$r(o)!==t))]:e.filter((t=>Cr(t)===t))).filter((e=>!t||($r(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Sr[t]))}(e)!==e)))}const Fr=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=gr,autoAlignment:d=!0,...u}=Nr(t,o),y=void 0!==f||h===gr?Zr(f||null,d,h):h,g=await zr(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=$r(t),r=Ir(t),n=Rr(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=kr(a)),[a,kr(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}],S=y[b+1];if(S)return{data:{index:b+1,overflows:v},reset:{placement:S}};const w=v.map((t=>{const o=$r(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])),N=w.filter((t=>t[2].slice(0,$r(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||w[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Kr(t){return Ar(t)?(t.nodeName||"").toLowerCase():"#document"}function Br(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Mr(t){var o;return null==(o=(Ar(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ar(t){return t instanceof Node||t instanceof Br(t).Node}function Dr(t){return t instanceof Element||t instanceof Br(t).Element}function Pr(t){return t instanceof HTMLElement||t instanceof Br(t).HTMLElement}function Hr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Br(t).ShadowRoot)}function Tr(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Yr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function jr(t){return["table","td","th"].includes(Kr(t))}function _r(t){const o=Gr(),e=Yr(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 Gr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Vr(t){return["html","body","#document"].includes(Kr(t))}function Yr(t){return Br(t).getComputedStyle(t)}function Jr(t){return Dr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xr(t){if("html"===Kr(t))return t;const o=t.assignedSlot||t.parentNode||Hr(t)&&t.host||Mr(t);return Hr(o)?o.host:o}function qr(t){const o=Xr(t);return Vr(o)?t.ownerDocument?t.ownerDocument.body:t.body:Pr(o)&&Tr(o)?o:qr(o)}function Qr(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=qr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Br(r);return n?o.concat(a,a.visualViewport||[],Tr(r)?r:[],a.frameElement&&e?Qr(a.frameElement):[]):o.concat(r,Qr(r,[],e))}function tn(t){const o=Yr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=Pr(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=xr(e)!==n||xr(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function on(t){return Dr(t)?t:t.contextElement}function en(t){const o=on(t);if(!Pr(o))return Or(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=tn(o);let a=(n?xr(e.width):e.width)/i,s=(n?xr(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rn=Or(0);function nn(t){const o=Br(t);return Gr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:rn}function an(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=on(t);let a=Or(1);o&&(i?Dr(i)&&(a=en(i)):a=en(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Br(t))&&o}(n,e,i)?nn(n):Or(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=Br(n),o=i&&Dr(i)?Br(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=en(e),o=e.getBoundingClientRect(),i=Yr(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=Br(e).frameElement}}return Lr({width:p,height:f,x:l,y:c})}function sn(t){return an(Mr(t)).left+Jr(t).scrollLeft}function ln(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Br(t),i=Mr(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=Gr();(!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=Mr(t),e=Jr(t),i=t.ownerDocument.body,r=mr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=mr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+sn(t);const s=-e.scrollTop;return"rtl"===Yr(i).direction&&(a+=mr(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Mr(t));else if(Dr(o))i=function(t,o){const e=an(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=Pr(t)?en(t):Or(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=nn(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return Lr(i)}function cn(t,o){const e=Xr(t);return!(e===o||!Dr(e)||Vr(e))&&("fixed"===Yr(e).position||cn(e,o))}function pn(t,o,e){const i=Pr(o),r=Mr(o),n="fixed"===e,a=an(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=Or(0);if(i||!i&&!n)if(("body"!==Kr(o)||Tr(r))&&(s=Jr(o)),i){const t=an(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=sn(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fn(t,o){return Pr(t)&&"fixed"!==Yr(t).position?o?o(t):t.offsetParent:null}function hn(t,o){const e=Br(t);if(!Pr(t))return e;let i=fn(t,o);for(;i&&jr(i)&&"static"===Yr(i).position;)i=fn(i,o);return i&&("html"===Kr(i)||"body"===Kr(i)&&"static"===Yr(i).position&&!_r(i))?e:i||function(t){let o=Xr(t);for(;Pr(o)&&!Vr(o);){if(_r(o))return o;o=Xr(o)}return null}(t)||e}const dn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=Pr(e),n=Mr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=Or(1);const l=Or(0);if((r||!r&&"fixed"!==i)&&(("body"!==Kr(e)||Tr(n))&&(a=Jr(e)),Pr(e))){const t=an(e);s=en(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:Mr,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=Qr(t,[],!1).filter((t=>Dr(t)&&"body"!==Kr(t))),r=null;const n="fixed"===Yr(t).position;let a=n?Xr(t):t;for(;Dr(a)&&!Vr(a);){const o=Yr(a),e=_r(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Tr(a)&&!e&&cn(t,a))?i=i.filter((t=>t!==a)):r=o,a=Xr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=ln(o,e,r);return t.top=mr(i.top,t.top),t.right=br(i.right,t.right),t.bottom=br(i.bottom,t.bottom),t.left=mr(i.left,t.left),t}),ln(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hn,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||hn,n=this.getDimensions;return{reference:pn(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 tn(t)},getScale:en,isElement:Dr,isRTL:function(t){return"rtl"===Yr(t).direction}},un=(t,o,e)=>{const i=new Map,r={platform:dn,...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}=Wr(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}=Wr(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var yn=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 gn 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 to`
|
|
729
729
|
<div part="container"
|
|
730
730
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
731
731
|
@mouseenter=${this.onHover}
|
|
@@ -743,23 +743,23 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
743
743
|
</div>
|
|
744
744
|
</div>
|
|
745
745
|
</div>
|
|
746
|
-
`}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="",
|
|
746
|
+
`}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="",un(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}=Nr(t,o),c={x:e,y:i},p=await zr(o,l),f=Ur(Cr(r)),h=Er(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=wr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=wr(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}}}}),Fr({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))}}gn.elementDefinitions={"ft-typography":sr},gn.styles=ur,yn([N()],gn.prototype,"text",void 0),yn([N({type:Boolean})],gn.prototype,"manual",void 0),yn([N({type:Boolean})],gn.prototype,"inline",void 0),yn([N({type:Number})],gn.prototype,"delay",void 0),yn([N()],gn.prototype,"position",void 0),yn([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],gn.prototype,"slotNodes",void 0),yn([R(".ft-tooltip--container")],gn.prototype,"container",void 0),yn([R(".ft-tooltip")],gn.prototype,"tooltip",void 0),yn([R(".ft-tooltip--content")],gn.prototype,"tooltipContent",void 0),yn([C()],gn.prototype,"visible",void 0),yn([$({passive:!0})],gn.prototype,"onTouch",null),yn([$({passive:!0})],gn.prototype,"onHover",null),yn([$({passive:!0})],gn.prototype,"onOut",null),k("ft-tooltip")(gn);class bn extends Zo{render(){return to`
|
|
747
747
|
<div class="ft-loader">
|
|
748
748
|
<div></div>
|
|
749
749
|
<div></div>
|
|
750
750
|
<div></div>
|
|
751
751
|
<div></div>
|
|
752
752
|
</div>
|
|
753
|
-
`}}
|
|
753
|
+
`}}bn.styles=Pi,k("ft-loader")(bn);var mn=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 xn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=o}setFormValue(t){this[Go].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(to`
|
|
754
754
|
<button part="button"
|
|
755
|
-
class="${
|
|
755
|
+
class="${ye(this.buttonClasses)}"
|
|
756
756
|
aria-label="${this.getLabel()}"
|
|
757
757
|
?disabled=${this.isDisabled()}>
|
|
758
758
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
759
759
|
<ft-typography part="label"
|
|
760
760
|
variant=${this.typographyVariant}
|
|
761
761
|
element="span"
|
|
762
|
-
class="ft-button--label ${
|
|
762
|
+
class="ft-button--label ${Xo?"ft-safari-ellipsis-fix":""}"
|
|
763
763
|
?hidden=${!this.hasTextContent()}>
|
|
764
764
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
765
765
|
</ft-typography>
|
|
@@ -773,7 +773,7 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
773
773
|
</ft-tooltip>
|
|
774
774
|
`:t}resolveIcon(){return this.loading?to`
|
|
775
775
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?to`
|
|
776
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}
|
|
776
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}xn.elementDefinitions={"ft-ripple":Qi,"ft-tooltip":gn,"ft-typography":sr,"ft-icon":ue,"ft-loader":bn},mn([N({type:String,reflect:!0})],xn.prototype,"role",void 0),mn([N()],xn.prototype,"type",void 0),mn([N({type:Boolean})],xn.prototype,"disabled",void 0),mn([N()],xn.prototype,"label",void 0),mn([N()],xn.prototype,"icon",void 0),mn([N()],xn.prototype,"iconVariant",void 0),mn([N({type:Boolean})],xn.prototype,"trailingIcon",void 0),mn([N({type:Boolean})],xn.prototype,"loading",void 0),mn([N()],xn.prototype,"tooltipPosition",void 0),mn([N({type:Boolean})],xn.prototype,"hideTooltip",void 0),mn([N({type:Boolean})],xn.prototype,"forceTooltip",void 0),mn([R(".ft-button")],xn.prototype,"button",void 0),mn([R(".ft-button--label slot")],xn.prototype,"slottedContent",void 0);var On=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 vn extends xn{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"}}vn.styles=[Bo,Xi],On([N({type:Boolean})],vn.prototype,"primary",void 0),On([N({type:Boolean})],vn.prototype,"outlined",void 0),On([N({type:Boolean})],vn.prototype,"dense",void 0),On([N({type:Boolean})],vn.prototype,"round",void 0);const Sn=[mt`
|
|
777
777
|
:host {
|
|
778
778
|
display: inline-block;
|
|
779
779
|
max-width: 100%;
|
|
@@ -852,13 +852,13 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
852
852
|
/** Primary styles **/
|
|
853
853
|
|
|
854
854
|
.ft-button--primary {
|
|
855
|
-
${vo(
|
|
855
|
+
${vo(Di.color,Co.primaryIconColor)};
|
|
856
856
|
|
|
857
|
-
${vo(
|
|
858
|
-
${vo(
|
|
859
|
-
${vo(
|
|
860
|
-
${vo(
|
|
861
|
-
${vo(
|
|
857
|
+
${vo(be.color,Co.primaryStateLayerColor)};
|
|
858
|
+
${vo(be.opacityContentOnSurfaceHover,Co.primaryStateLayerOpacityHover)};
|
|
859
|
+
${vo(be.opacityContentOnSurfaceFocused,Co.primaryStateLayerOpacityFocus)};
|
|
860
|
+
${vo(be.opacityContentOnSurfaceSelected,Co.primaryStateLayerOpacityActive)};
|
|
861
|
+
${vo(be.opacityContentOnSurfacePressed,Co.primaryStateLayerOpacityActive)};
|
|
862
862
|
|
|
863
863
|
background-color: ${Co.primaryBackgroundColor};
|
|
864
864
|
color: ${Co.primaryColor};
|
|
@@ -876,13 +876,13 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
876
876
|
/** Secondary styles **/
|
|
877
877
|
|
|
878
878
|
.ft-button--secondary {
|
|
879
|
-
${vo(
|
|
879
|
+
${vo(Di.color,Co.secondaryIconColor)};
|
|
880
880
|
|
|
881
|
-
${vo(
|
|
882
|
-
${vo(
|
|
883
|
-
${vo(
|
|
884
|
-
${vo(
|
|
885
|
-
${vo(
|
|
881
|
+
${vo(be.color,Co.secondaryStateLayerColor)};
|
|
882
|
+
${vo(be.opacityContentOnSurfaceHover,Co.secondaryStateLayerOpacityHover)};
|
|
883
|
+
${vo(be.opacityContentOnSurfaceFocused,Co.secondaryStateLayerOpacityFocus)};
|
|
884
|
+
${vo(be.opacityContentOnSurfaceSelected,Co.secondaryStateLayerOpacityActive)};
|
|
885
|
+
${vo(be.opacityContentOnSurfacePressed,Co.secondaryStateLayerOpacityActive)};
|
|
886
886
|
|
|
887
887
|
background-color: ${Co.secondaryBackgroundColor};
|
|
888
888
|
color: ${Co.secondaryColor};
|
|
@@ -901,13 +901,13 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
901
901
|
/** Tertiary styles **/
|
|
902
902
|
|
|
903
903
|
.ft-button--tertiary {
|
|
904
|
-
${vo(
|
|
904
|
+
${vo(Di.color,Co.tertiaryIconColor)};
|
|
905
905
|
|
|
906
|
-
${vo(
|
|
907
|
-
${vo(
|
|
908
|
-
${vo(
|
|
909
|
-
${vo(
|
|
910
|
-
${vo(
|
|
906
|
+
${vo(be.color,Co.tertiaryStateLayerColor)};
|
|
907
|
+
${vo(be.opacityContentOnSurfaceHover,Co.tertiaryStateLayerOpacityHover)};
|
|
908
|
+
${vo(be.opacityContentOnSurfaceFocused,Co.tertiaryStateLayerOpacityFocus)};
|
|
909
|
+
${vo(be.opacityContentOnSurfaceSelected,Co.tertiaryStateLayerOpacityActive)};
|
|
910
|
+
${vo(be.opacityContentOnSurfacePressed,Co.tertiaryStateLayerOpacityActive)};
|
|
911
911
|
|
|
912
912
|
background-color: ${Co.tertiaryBackgroundColor};
|
|
913
913
|
color: ${Co.tertiaryColor};
|
|
@@ -925,13 +925,13 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
925
925
|
/** Neutral styles **/
|
|
926
926
|
|
|
927
927
|
.ft-button--neutral {
|
|
928
|
-
${vo(
|
|
928
|
+
${vo(Di.color,Co.neutralIconColor)};
|
|
929
929
|
|
|
930
|
-
${vo(
|
|
931
|
-
${vo(
|
|
932
|
-
${vo(
|
|
933
|
-
${vo(
|
|
934
|
-
${vo(
|
|
930
|
+
${vo(be.backgroundColor,Co.neutralStateLayerColor)};
|
|
931
|
+
${vo(be.opacityContentOnSurfaceHover,Co.neutralStateLayerOpacityHover)};
|
|
932
|
+
${vo(be.opacityContentOnSurfaceFocused,Co.neutralStateLayerOpacityFocus)};
|
|
933
|
+
${vo(be.opacityContentOnSurfaceSelected,Co.neutralStateLayerOpacityActive)};
|
|
934
|
+
${vo(be.opacityContentOnSurfacePressed,Co.neutralStateLayerOpacityActive)};
|
|
935
935
|
|
|
936
936
|
background-color: ${Co.neutralBackgroundColor};
|
|
937
937
|
color: ${Co.neutralColor};
|
|
@@ -949,8 +949,8 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
949
949
|
/** Large styles **/
|
|
950
950
|
|
|
951
951
|
.ft-button--large {
|
|
952
|
-
${vo(
|
|
953
|
-
${vo(
|
|
952
|
+
${vo(pe.size,Co.largeIconSize)};
|
|
953
|
+
${vo(Di.size,Co.largeIconSize)};
|
|
954
954
|
|
|
955
955
|
height: ${Co.largeHeight};
|
|
956
956
|
padding: 0 ${Co.largeHorizontalPadding};
|
|
@@ -972,8 +972,8 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
972
972
|
/** Small styles **/
|
|
973
973
|
|
|
974
974
|
.ft-button--small {
|
|
975
|
-
${vo(
|
|
976
|
-
${vo(
|
|
975
|
+
${vo(pe.size,Co.smallIconSize)};
|
|
976
|
+
${vo(Di.size,Co.smallIconSize)};
|
|
977
977
|
|
|
978
978
|
height: ${Co.smallHeight};
|
|
979
979
|
padding: 0 ${Co.smallHorizontalPadding};
|
|
@@ -991,7 +991,7 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
991
991
|
width: ${Co.smallIconOnlyWidth};
|
|
992
992
|
padding: unset;
|
|
993
993
|
}
|
|
994
|
-
`,
|
|
994
|
+
`,Ko];var wn,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 Cn extends xn{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?nr.caption1medium:nr.body2medium}}Cn.styles=[Bo,Sn],Nn([N({type:Boolean})],Cn.prototype,"primary",void 0),Nn([N({type:Boolean})],Cn.prototype,"secondary",void 0),Nn([N({type:Boolean})],Cn.prototype,"tertiary",void 0),Nn([N({type:Boolean})],Cn.prototype,"neutral",void 0),Nn([N({type:Boolean})],Cn.prototype,"small",void 0),k("ft-button")(vn),k("ftds-button")(Cn),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(wn||(wn={}));const $n=mt`
|
|
995
995
|
.ft-size-watcher--pixel {
|
|
996
996
|
width: 0;
|
|
997
997
|
height: 0;
|
|
@@ -1010,13 +1010,13 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
1010
1010
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
1011
1011
|
width: 100%;
|
|
1012
1012
|
}
|
|
1013
|
-
`;var
|
|
1013
|
+
`;var En=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 Rn extends CustomEvent{constructor(t,o){super("change",{detail:{size:t,category:o}})}}class Un extends Zo{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=wn.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new U}render(){return to`
|
|
1014
1014
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
1015
1015
|
<div class="ft-size-watcher--watcher"></div>
|
|
1016
1016
|
</div>
|
|
1017
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=
|
|
1017
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=wn.S:this.size<976?this.category=wn.M:this.size<1024?this.category=wn.L:this.size<1440?this.category=wn.XL:this.category=wn.XXL,this.dispatchEvent(new Rn(this.size,this.category)))}),this.debounceTimeout)}}Un.elementDefinitions={},Un.styles=$n,En([N({type:Number})],Un.prototype,"debounceTimeout",void 0),En([N({type:Boolean})],Un.prototype,"local",void 0),En([N({type:Number,reflect:!0})],Un.prototype,"size",void 0),En([N({type:String,reflect:!0})],Un.prototype,"category",void 0),En([R(".ft-size-watcher--watcher")],Un.prototype,"watcher",void 0),k("ft-size-watcher")(Un);var In=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 kn extends Zo{constructor(){super(...arguments),this.portalUrl="",this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.closeIcon=le.X_MARK,this.standardModeIcon=le.PIP,this.disableStandardMode=!1,this.theaterModeIcon=le.PIP_WIDE,this.disableTheaterMode=!1,this.fullscreenModeIcon=le.EXPAND_WIDE,this.disableFullscreenMode=!1,this.enableHomeButton=!1,this.homeIcon=le.HOME,this.enableOpenTabButton=!1,this.openTabIcon=le.EXTLINK_LIGHT,this.allowStandardMode=!0,this.allowTheaterMode=!0,this.allowFullscreenMode=!0}render(){const o={"ft-in-product-help":!0,"ft-in-product-help--opened":this.opened,"ft-in-product-help--standard":this.displayMode==t.FtInProductHelpMode.STANDARD,"ft-in-product-help--theater":this.displayMode==t.FtInProductHelpMode.THEATER,"ft-in-product-help--fullscreen":this.displayMode==t.FtInProductHelpMode.FULLSCREEN},e=this.allowStandardMode&&(this.allowTheaterMode||this.allowFullscreenMode),i=this.allowTheaterMode&&(this.allowStandardMode||this.allowFullscreenMode),r=this.allowFullscreenMode&&(this.allowStandardMode||this.allowTheaterMode);return to`
|
|
1018
1018
|
<ft-size-watcher @change=${this.onViewportChange}></ft-size-watcher>
|
|
1019
|
-
<div class="${
|
|
1019
|
+
<div class="${ye(o)}" part="container">
|
|
1020
1020
|
<div class="ft-in-product-help--top-bar" part="top-bar">
|
|
1021
1021
|
${this.enableHomeButton?to`
|
|
1022
1022
|
<ft-button icon="${this.homeIcon}"
|
|
@@ -1083,4 +1083,4 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Vi=t=>({_$li
|
|
|
1083
1083
|
</div>
|
|
1084
1084
|
<iframe src="${this.portalUrl}" part="iframe"/>
|
|
1085
1085
|
</div>
|
|
1086
|
-
`}update(t){super.update(t),(t.has("disableStandardMode")||t.has("disableTheaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes(),t.has("opened")&&this.updateModeOnOpen()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}open(){this.opened=!0}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new
|
|
1086
|
+
`}update(t){super.update(t),(t.has("disableStandardMode")||t.has("disableTheaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes(),t.has("opened")&&this.updateModeOnOpen()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}open(){this.opened=!0}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new Qo(this.opened,this.displayMode))}isTablet(){const t=getComputedStyle(this).getPropertyValue(te.tabletBreakpoint.name)||te.tabletBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}isDesktop(){const t=getComputedStyle(this).getPropertyValue(te.desktopBreakpoint.name)||te.desktopBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}navigateTo(t){this.iframe.contentWindow.postMessage({navigateTo:t},this.portalUrl)}openTab(){this.iframe.contentWindow.postMessage({openTabToCurrentUrl:!0},this.portalUrl)}}kn.elementDefinitions={"ft-button":vn,"ft-size-watcher":Un},kn.styles=oe,In([N()],kn.prototype,"portalUrl",void 0),In([N({reflect:!0,type:Boolean})],kn.prototype,"opened",void 0),In([N({reflect:!0})],kn.prototype,"displayMode",void 0),In([N()],kn.prototype,"closeIcon",void 0),In([N()],kn.prototype,"standardModeIcon",void 0),In([N({type:Boolean})],kn.prototype,"disableStandardMode",void 0),In([N()],kn.prototype,"theaterModeIcon",void 0),In([N({type:Boolean})],kn.prototype,"disableTheaterMode",void 0),In([N()],kn.prototype,"fullscreenModeIcon",void 0),In([N({type:Boolean})],kn.prototype,"disableFullscreenMode",void 0),In([N({type:Boolean})],kn.prototype,"enableHomeButton",void 0),In([N()],kn.prototype,"homeIcon",void 0),In([N({type:Boolean})],kn.prototype,"enableOpenTabButton",void 0),In([N()],kn.prototype,"openTabIcon",void 0),In([N()],kn.prototype,"iconVariant",void 0),In([C()],kn.prototype,"allowStandardMode",void 0),In([C()],kn.prototype,"allowTheaterMode",void 0),In([C()],kn.prototype,"allowFullscreenMode",void 0),In([R("iframe")],kn.prototype,"iframe",void 0),k("ft-in-product-help")(kn),t.FtInProductHelp=kn,t.FtInProductHelpCssVariables=te,t.FtInProductHelpVisibilityChange=Qo,t.styles=oe}({});
|