@fluid-topics/ft-search-bar 1.0.13 → 1.0.15
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-search-bar.css.js +38 -0
- package/build/ft-search-bar.js +29 -20
- package/build/ft-search-bar.light.js +150 -110
- package/build/ft-search-bar.min.js +160 -120
- package/package.json +14 -14
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);d(s,l,a);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,c,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Mi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -45,7 +45,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
45
45
|
* Copyright 2021 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
48
|
+
var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function c(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?l(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
@@ -66,13 +66,13 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
|
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:N}),(null!==(k=S.reactiveElementVersions)&&void 0!==k?k:S.reactiveElementVersions=[]).push("1.6.1");const F=window,I=F.trustedTypes,L=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,
|
|
69
|
+
var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:N}),(null!==(k=S.reactiveElementVersions)&&void 0!==k?k:S.reactiveElementVersions=[]).push("1.6.1");const F=window,I=F.trustedTypes,L=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,U="?"+j,P=`<${U}>`,A=document,T=()=>A.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,Z=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,q=/>/g,J=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),tt=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),it=new WeakMap,ot=A.createTreeWalker(A,129,null,!1),st=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=V;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===V?"!--"===l[1]?n=K:void 0!==l[1]?n=q:void 0!==l[2]?(Q.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=J):void 0!==l[3]&&(n=J):n===J?">"===l[0]?(n=null!=s?s:V,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?J:'"'===l[3]?Y:X):n===Y||n===X?n=J:n===K||n===q?n=V:(n=J,s=void 0);const p=n===J&&t[e+1].startsWith("/>")?" ":"";r+=n===V?i+P:c>=0?(o.push(a),i.slice(0,c)+D+i.slice(c)+j+p):i+j+(-2===c?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==L?L.createHTML(a):a,o]};class rt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,c]=st(t,e);if(this.el=rt.createElement(l,i),ot.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ot.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(D)||e.startsWith(j)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+D).split(j),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?ft:ct})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Q.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),ot.nextNode(),a.push({type:2,index:++s});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===U)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)a.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var s,r,n,a;if(e===tt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=_(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=nt(t,l._$AS(t,e.values),l,o)),e}class at{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);ot.currentNode=s;let r=ot.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new lt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ut(r,this,t)),this._$AV.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=ot.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class lt{constructor(t,e,i,o){var s;this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),_(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Z(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!==et&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new at(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new rt(t)),e}T(t){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new lt(this.k(T()),this.k(T()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ct{constructor(t,e,i,o,s){this.type=1,this._$AH=et,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=et}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=nt(this,t,e,0),r=!_(t)||t!==this._$AH&&t!==tt,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=nt(this,o[i+n],e,n),a===tt&&(a=this._$AH[n]),r||(r=!_(a)||a!==this._$AH[n]),a===et?t=et:t!==et&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ht extends ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}}const pt=I?I.emptyScript:"";class dt extends ct{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends ct{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=nt(this,t,e,0))&&void 0!==i?i:et)===tt)return;const o=this._$AH,s=t===et&&o!==et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==et&&(o===et||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ut{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}}const bt={O:D,P:j,A:U,C:1,M:st,L:at,D:Z,R:nt,I:lt,V:ct,H:dt,N:ft,U:ht,F:ut},vt=F.litHtmlPolyfillSupport;null==vt||vt(rt,lt),(null!==(M=F.litHtmlVersions)&&void 0!==M?M:F.litHtmlVersions=[]).push("2.7.3");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
74
|
*/
|
|
75
|
-
var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new at(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return tt}};yt.finalized=!0,yt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:yt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let o=t=>y(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=m`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>m`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function wt(t,e){return y(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:$t.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:$t.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:$t.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:$t.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:$t.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:$t.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:$t.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:$t.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:$t.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class St extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Ot,Et=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ct=Symbol("constructorPrototype"),zt=Symbol("constructorName"),Bt=Symbol("exportpartsDebouncer");class Rt extends St{constructor(){super(),this[Ot]=new e(5),this[zt]=this.constructor.name,this[Ct]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zt]&&Object.setPrototypeOf(this,this[Ct])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Bt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ot=Bt,Et([o()],Rt.prototype,"exportpartsPrefix",void 0),Et([f([])],Rt.prototype,"exportpartsPrefixes",void 0),Et([o()],Rt.prototype,"customStylesheet",void 0);const Nt=m`
|
|
75
|
+
var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new lt(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return tt}};yt.finalized=!0,yt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:yt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let o=t=>y(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=m`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>m`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function wt(t,e){return y(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:$t.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:$t.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:$t.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:$t.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:$t.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:$t.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:$t.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:$t.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:$t.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class St extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Ot,Et=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ct=Symbol("constructorPrototype"),zt=Symbol("constructorName"),Bt=Symbol("exportpartsDebouncer");class Rt extends St{constructor(){super(),this[Ot]=new e(5),this[zt]=this.constructor.name,this[Ct]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zt]&&Object.setPrototypeOf(this,this[Ct])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Bt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ot=Bt,Et([o()],Rt.prototype,"exportpartsPrefix",void 0),Et([f([])],Rt.prototype,"exportpartsPrefixes",void 0),Et([o()],Rt.prototype,"customStylesheet",void 0);const Nt=m`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -104,17 +104,17 @@ var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
104
104
|
display: inline-block;
|
|
105
105
|
width: 0;
|
|
106
106
|
}
|
|
107
|
-
`;class It{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let s=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>s=s.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),s}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}var Lt,Dt,jt;const
|
|
107
|
+
`;class It{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let s=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>s=s.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),s}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}var Lt,Dt,jt;const Ut=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(jt=null===(Dt=null===(Lt=window.safari)||void 0===Lt?void 0:Lt.pushNotification)||void 0===Dt?void 0:Dt.toString())&&void 0!==jt?jt:""),Pt=1,At=2,Tt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2017 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/class
|
|
112
|
+
*/class _t{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2020 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/const{I:
|
|
117
|
+
*/const{I:Ht}=bt,Zt=()=>document.createComment(""),Wt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Zt(),r),o=s.insertBefore(Zt(),r);i=new Ht(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},Vt=(t,e,i=t)=>(t._$AI(e,i),t),Kt={},qt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Jt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Xt=Tt(class extends _t{constructor(t){if(super(t),t.type!==At)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:a}=this.dt(e,i,o);if(!Array.isArray(r))return this.ht=a,n;const l=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],c=[];let h,p,d=0,f=r.length-1,u=0,b=n.length-1;for(;d<=f&&u<=b;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[u])c[u]=Vt(r[d],n[u]),d++,u++;else if(l[f]===a[b])c[b]=Vt(r[f],n[b]),f--,b--;else if(l[d]===a[b])c[b]=Vt(r[d],n[b]),Wt(t,c[b+1],r[d]),d++,b--;else if(l[f]===a[u])c[u]=Vt(r[f],n[u]),Wt(t,r[d],r[f]),f--,u++;else if(void 0===h&&(h=Jt(a,u,b),p=Jt(l,d,f)),h.has(l[d]))if(h.has(l[f])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Wt(t,r[d]);Vt(e,n[u]),c[u]=e}else c[u]=Vt(i,n[u]),Wt(t,r[d],i),r[e]=null;u++}else qt(r[f]),f--;else qt(r[d]),d++;for(;u<=b;){const e=Wt(t,c[b+1]);Vt(e,n[u]),c[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&qt(t)}return this.ht=a,((t,e=Kt)=>{t._$AH=e})(t,c),tt}});
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
120
120
|
* Copyright 2017 Google LLC
|
|
@@ -138,7 +138,7 @@ var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
138
138
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
139
139
|
width: 100%;
|
|
140
140
|
}
|
|
141
|
-
`;var Gt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
141
|
+
`;var Gt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class te extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class ee extends Rt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Yt.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return G`
|
|
142
142
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
143
143
|
<div class="ft-size-watcher--watcher"></div>
|
|
144
144
|
</div>
|
|
@@ -148,7 +148,7 @@ var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
148
148
|
* Copyright 2020 Google LLC
|
|
149
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
150
|
*/
|
|
151
|
-
const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void 0:t._$litStatic$},se=t=>({_$litStatic$:t,r:ie}),re=new Map,ne=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],
|
|
151
|
+
const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void 0:t._$litStatic$},se=t=>({_$litStatic$:t,r:ie}),re=new Map,ne=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],s=oe(r));)l+=s+e[++c],h=!0;c!==o&&a.push(r),n.push(l),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=re.get(t))&&(n.raw=n,re.set(t,e=n)),i=a}return t(e,...i)})(G);var ae;!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"}(ae||(ae={}));const le=$t.extend("--ft-typography-font-family",kt.titleFont),ce=$t.extend("--ft-typography-font-family",kt.contentFont),he={fontFamily:ce,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},pe=$t.extend("--ft-typography-title-font-family",le),de=$t.extend("--ft-typography-title-font-size",he.fontSize,"20px"),fe=$t.extend("--ft-typography-title-font-weight",he.fontWeight,"normal"),ue=$t.extend("--ft-typography-title-letter-spacing",he.letterSpacing,"0.15px"),be=$t.extend("--ft-typography-title-line-height",he.lineHeight,"1.2"),ve=$t.extend("--ft-typography-title-text-transform",he.textTransform,"inherit"),ge=$t.extend("--ft-typography-title-dense-font-family",le),xe=$t.extend("--ft-typography-title-dense-font-size",he.fontSize,"14px"),ye=$t.extend("--ft-typography-title-dense-font-weight",he.fontWeight,"normal"),me=$t.extend("--ft-typography-title-dense-letter-spacing",he.letterSpacing,"0.105px"),$e=$t.extend("--ft-typography-title-dense-line-height",he.lineHeight,"1.7"),we=$t.extend("--ft-typography-title-dense-text-transform",he.textTransform,"inherit"),ke=$t.extend("--ft-typography-subtitle1-font-family",ce),Se=$t.extend("--ft-typography-subtitle1-font-size",he.fontSize,"16px"),Oe=$t.extend("--ft-typography-subtitle1-font-weight",he.fontWeight,"600"),Ee=$t.extend("--ft-typography-subtitle1-letter-spacing",he.letterSpacing,"0.144px"),Ce=$t.extend("--ft-typography-subtitle1-line-height",he.lineHeight,"1.5"),ze=$t.extend("--ft-typography-subtitle1-text-transform",he.textTransform,"inherit"),Be=$t.extend("--ft-typography-subtitle2-font-family",ce),Re=$t.extend("--ft-typography-subtitle2-font-size",he.fontSize,"14px"),Ne=$t.extend("--ft-typography-subtitle2-font-weight",he.fontWeight,"normal"),Me=$t.extend("--ft-typography-subtitle2-letter-spacing",he.letterSpacing,"0.098px"),Fe=$t.extend("--ft-typography-subtitle2-line-height",he.lineHeight,"1.7"),Ie=$t.extend("--ft-typography-subtitle2-text-transform",he.textTransform,"inherit"),Le={fontFamily:$t.extend("--ft-typography-body1-font-family",ce),fontSize:$t.extend("--ft-typography-body1-font-size",he.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",he.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",he.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",he.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",he.textTransform,"inherit")},De={fontFamily:$t.extend("--ft-typography-body2-font-family",ce),fontSize:$t.extend("--ft-typography-body2-font-size",he.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-body2-font-weight",he.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body2-letter-spacing",he.letterSpacing,"0.252px"),lineHeight:$t.extend("--ft-typography-body2-line-height",he.lineHeight,"1.4"),textTransform:$t.extend("--ft-typography-body2-text-transform",he.textTransform,"inherit")},je={fontFamily:$t.extend("--ft-typography-caption-font-family",ce),fontSize:$t.extend("--ft-typography-caption-font-size",he.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",he.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",he.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",he.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",he.textTransform,"inherit")},Ue=$t.extend("--ft-typography-breadcrumb-font-family",ce),Pe=$t.extend("--ft-typography-breadcrumb-font-size",he.fontSize,"10px"),Ae=$t.extend("--ft-typography-breadcrumb-font-weight",he.fontWeight,"normal"),Te=$t.extend("--ft-typography-breadcrumb-letter-spacing",he.letterSpacing,"0.33px"),_e=$t.extend("--ft-typography-breadcrumb-line-height",he.lineHeight,"1.6"),He=$t.extend("--ft-typography-breadcrumb-text-transform",he.textTransform,"inherit"),Ze=$t.extend("--ft-typography-overline-font-family",ce),We=$t.extend("--ft-typography-overline-font-size",he.fontSize,"10px"),Ve=$t.extend("--ft-typography-overline-font-weight",he.fontWeight,"normal"),Ke=$t.extend("--ft-typography-overline-letter-spacing",he.letterSpacing,"1.5px"),qe=$t.extend("--ft-typography-overline-line-height",he.lineHeight,"1.6"),Je=$t.extend("--ft-typography-overline-text-transform",he.textTransform,"uppercase"),Xe={fontFamily:$t.extend("--ft-typography-button-font-family",ce),fontSize:$t.extend("--ft-typography-button-font-size",he.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",he.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",he.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",he.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",he.textTransform,"uppercase")},Ye=m`
|
|
152
152
|
.ft-typography--title {
|
|
153
153
|
font-family: ${pe};
|
|
154
154
|
font-size: ${de};
|
|
@@ -214,12 +214,12 @@ const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void
|
|
|
214
214
|
}
|
|
215
215
|
`,si=m`
|
|
216
216
|
.ft-typography--breadcrumb {
|
|
217
|
-
font-family: ${
|
|
218
|
-
font-size: ${
|
|
217
|
+
font-family: ${Ue};
|
|
218
|
+
font-size: ${Pe};
|
|
219
219
|
font-weight: ${Ae};
|
|
220
220
|
letter-spacing: ${Te};
|
|
221
|
-
line-height: ${
|
|
222
|
-
text-transform: ${
|
|
221
|
+
line-height: ${_e};
|
|
222
|
+
text-transform: ${He};
|
|
223
223
|
}
|
|
224
224
|
`,ri=m`
|
|
225
225
|
.ft-typography--overline {
|
|
@@ -239,24 +239,24 @@ const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void
|
|
|
239
239
|
line-height: ${Xe.lineHeight};
|
|
240
240
|
text-transform: ${Xe.textTransform};
|
|
241
241
|
}
|
|
242
|
-
`,
|
|
242
|
+
`,ai=m`
|
|
243
243
|
.ft-typography {
|
|
244
244
|
vertical-align: inherit;
|
|
245
245
|
}
|
|
246
|
-
`;var
|
|
246
|
+
`;var li=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ci extends Rt{constructor(){super(...arguments),this.variant=ae.body1}render(){return this.element?ne`
|
|
247
247
|
<${se(this.element)}
|
|
248
248
|
class="ft-typography ft-typography--${this.variant}">
|
|
249
249
|
<slot></slot>
|
|
250
250
|
</${se(this.element)}>
|
|
251
251
|
`:ne`
|
|
252
252
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
253
|
-
`}}function hi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pi(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>pi(e,t.selected))),value:t.value}}function di(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>pi(t,!1)))}}ci.styles=[Ye,Qe,Ge,ti,ei,ii,oi,si,ri,ni,
|
|
253
|
+
`}}function hi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pi(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>pi(e,t.selected))),value:t.value}}function di(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>pi(t,!1)))}}ci.styles=[Ye,Qe,Ge,ti,ei,ii,oi,si,ri,ni,ai],li([o()],ci.prototype,"element",void 0),li([o()],ci.prototype,"variant",void 0),d("ft-typography")(ci);
|
|
254
254
|
/**
|
|
255
255
|
* @license
|
|
256
256
|
* Copyright 2018 Google LLC
|
|
257
257
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
258
258
|
*/
|
|
259
|
-
const fi=Tt(class extends
|
|
259
|
+
const fi=Tt(class extends _t{constructor(t){var e;if(super(t),t.type!==Pt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return tt}}),ui=$t.extend("--ft-ripple-color",kt.colorContent),bi={color:ui,backgroundColor:$t.extend("--ft-ripple-background-color",ui),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},vi=$t.extend("--ft-ripple-color",kt.colorPrimary),gi=vi,xi=$t.extend("--ft-ripple-background-color",vi),yi=$t.extend("--ft-ripple-color",kt.colorSecondary),mi=yi,$i=$t.extend("--ft-ripple-background-color",yi),wi=m`
|
|
260
260
|
:host {
|
|
261
261
|
display: contents;
|
|
262
262
|
}
|
|
@@ -346,7 +346,7 @@ const fi=Tt(class extends Ht{constructor(t){var e;if(super(t),t.type!==Ut||"clas
|
|
|
346
346
|
opacity: ${bi.opacityContentOnSurfacePressed};
|
|
347
347
|
transform: translate(-50%, -50%) scale(1);
|
|
348
348
|
}
|
|
349
|
-
`;var ki=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
349
|
+
`;var ki=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Si extends Rt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(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 e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return G`
|
|
350
350
|
<style>
|
|
351
351
|
.ft-ripple .ft-ripple--effect,
|
|
352
352
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -395,7 +395,7 @@ const fi=Tt(class extends Ht{constructor(t){var e;if(super(t),t.type!==Ut||"clas
|
|
|
395
395
|
position: relative;
|
|
396
396
|
word-break: break-word;
|
|
397
397
|
}
|
|
398
|
-
`;var Ci=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
398
|
+
`;var Ci=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class zi extends Rt{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 e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return G`
|
|
399
399
|
<div part="container"
|
|
400
400
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
401
401
|
@mouseenter=${this.onHover}
|
|
@@ -495,7 +495,7 @@ const fi=Tt(class extends Ht{constructor(t){var e;if(super(t),t.type!==Ut||"clas
|
|
|
495
495
|
* Copyright 2017 Google LLC
|
|
496
496
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
497
497
|
*/
|
|
498
|
-
class Mi extends
|
|
498
|
+
class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.ft=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Mi.directiveName="unsafeHTML",Mi.resultType=1;const Fi=Tt(Mi);var Ii,Li;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.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=""}(Ii||(Ii={})),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=""}(Li||(Li={}));const Di=new Map([...["abw"].map((t=>[t,Li.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,Li.AUDIO])),...["avi"].map((t=>[t,Li.AVI])),...["chm","xhs"].map((t=>[t,Li.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,Li.CODE])),...["csv"].map((t=>[t,Li.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Li.DITA])),...["epub"].map((t=>[t,Li.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Li.EXCEL])),...["flac"].map((t=>[t,Li.FLAC])),...["gif"].map((t=>[t,Li.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Li.GZIP])),...["html","htm","xhtml"].map((t=>[t,Li.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,Li.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Li.JPEG])),...["json"].map((t=>[t,Li.JSON])),...["m4a","m4p"].map((t=>[t,Li.M4A])),...["mov","qt"].map((t=>[t,Li.MOV])),...["mp3"].map((t=>[t,Li.MP3])),...["mp4","m4v"].map((t=>[t,Li.MP4])),...["ogg","oga"].map((t=>[t,Li.OGG])),...["pdf","ps"].map((t=>[t,Li.PDF])),...["png"].map((t=>[t,Li.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Li.POWERPOINT])),...["rar"].map((t=>[t,Li.RAR])),...["stp"].map((t=>[t,Li.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Li.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,Li.VIDEO])),...["wav"].map((t=>[t,Li.WAV])),...["wma"].map((t=>[t,Li.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Li.WORD])),...["xml","xsl","rdf"].map((t=>[t,Li.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Li.YAML])),...["zip"].map((t=>[t,Li.ZIP]))]),ji=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ui={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pi=m`
|
|
499
499
|
:host, i.ft-icon {
|
|
500
500
|
display: inline-flex;
|
|
501
501
|
align-items: center;
|
|
@@ -504,14 +504,14 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
:host {
|
|
507
|
-
width: ${
|
|
508
|
-
height: ${
|
|
507
|
+
width: ${Ui.size};
|
|
508
|
+
height: ${Ui.size};
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
i.ft-icon {
|
|
512
512
|
width: 100%;
|
|
513
513
|
height: 100%;
|
|
514
|
-
font-size: ${
|
|
514
|
+
font-size: ${Ui.size};
|
|
515
515
|
line-height: 1;
|
|
516
516
|
font-weight: normal;
|
|
517
517
|
text-transform: none;
|
|
@@ -522,33 +522,33 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
522
522
|
text-rendering: auto;
|
|
523
523
|
-webkit-font-smoothing: antialiased;
|
|
524
524
|
-moz-osx-font-smoothing: grayscale;
|
|
525
|
-
vertical-align: ${
|
|
525
|
+
vertical-align: ${Ui.verticalAlign};
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
i.ft-icon.ft-icon--fluid-topics {
|
|
529
|
-
font-family: ${
|
|
529
|
+
font-family: ${Ui.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
530
530
|
|
|
531
531
|
/* Ugly fix because font is broken */
|
|
532
|
-
font-size: calc(0.75 * ${
|
|
533
|
-
line-height: ${
|
|
532
|
+
font-size: calc(0.75 * ${Ui.size});
|
|
533
|
+
line-height: ${Ui.size};
|
|
534
534
|
position: relative;
|
|
535
535
|
top: -4%;
|
|
536
536
|
justify-content: center;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ft-icon--file-format {
|
|
540
|
-
font-family: ${
|
|
540
|
+
font-family: ${Ui.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-icon--material {
|
|
544
|
-
font-family: ${
|
|
544
|
+
font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
|
|
545
545
|
}
|
|
546
|
-
`;var Ai;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ai||(Ai={}));var Ti=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
546
|
+
`;var Ai;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ai||(Ai={}));var Ti=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class _i extends Rt{constructor(){super(...arguments),this.resolvedIcon=et}render(){const t=this.variant&&Object.values(Ai).includes(this.variant)?this.variant:Ai.fluid_topics,e=t!==Ai.material||!!this.value;return G`
|
|
547
547
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
548
548
|
${Fi(this.resolvedIcon)}
|
|
549
549
|
<slot ?hidden=${e}></slot>
|
|
550
550
|
</i>
|
|
551
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ai.file_format:this.resolvedIcon=null!==(t=Li[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ai.material:this.resolvedIcon=this.value||et;break;default:this.resolvedIcon=null!==(e=Ii[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}
|
|
551
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ai.file_format:this.resolvedIcon=null!==(t=Li[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ai.material:this.resolvedIcon=this.value||et;break;default:this.resolvedIcon=null!==(e=Ii[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_i.elementDefinitions={},_i.styles=Pi,Ti([o()],_i.prototype,"variant",void 0),Ti([o()],_i.prototype,"value",void 0),Ti([s()],_i.prototype,"resolvedIcon",void 0),Ti([n("slot")],_i.prototype,"slottedContent",void 0),d("ft-icon")(_i);const Hi=$t.extend("--ft-button-color",kt.colorPrimary),Zi={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:Hi,fontSize:$t.extend("--ft-button-font-size",Xe.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Hi),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Wi=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",kt.colorOnPrimary)),Vi={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",kt.colorPrimary)),color:Wi,rippleColor:$t.extend("--ft-button-primary-ripple-color",Wi)},Ki=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",kt.borderRadiusM)),qi=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ji=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Xi=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),Yi=[m`
|
|
552
552
|
:host {
|
|
553
553
|
display: inline-block;
|
|
554
554
|
max-width: 100%;
|
|
@@ -590,7 +590,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
590
590
|
|
|
591
591
|
--ft-button-internal-line-height: max(calc(${Zi.fontSize} + 2px), ${Zi.iconSize});
|
|
592
592
|
--ft-button-internal-color: ${Zi.color};
|
|
593
|
-
${wt(
|
|
593
|
+
${wt(Ui.size,Zi.iconSize)};
|
|
594
594
|
${wt(bi.color,Zi.rippleColor)};
|
|
595
595
|
|
|
596
596
|
border-radius: ${Zi.borderRadius};
|
|
@@ -685,7 +685,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
685
685
|
${wt(Bi.size,Zi.iconSize)};
|
|
686
686
|
${wt(Bi.color,"var(--ft-button-internal-color)")};
|
|
687
687
|
}
|
|
688
|
-
`,Nt];var Qi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
688
|
+
`,Nt];var Qi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Gi extends Rt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!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=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(G`
|
|
689
689
|
<button part="button"
|
|
690
690
|
class="${fi(t)}"
|
|
691
691
|
aria-label="${this.getLabel()}"
|
|
@@ -694,7 +694,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
694
694
|
<ft-typography part="label"
|
|
695
695
|
variant="button"
|
|
696
696
|
element="span"
|
|
697
|
-
class="ft-button--label ${
|
|
697
|
+
class="ft-button--label ${Ut?"ft-safari-ellipsis-fix":""}"
|
|
698
698
|
?hidden=${!this.hasTextContent()}>
|
|
699
699
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
700
700
|
</ft-typography>
|
|
@@ -708,7 +708,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
708
708
|
</ft-tooltip>
|
|
709
709
|
`:t}resolveIcon(){return this.loading?G`
|
|
710
710
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?G`
|
|
711
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}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}}Gi.elementDefinitions={"ft-ripple":Si,"ft-tooltip":zi,"ft-typography":ci,"ft-icon":
|
|
711
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}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}}Gi.elementDefinitions={"ft-ripple":Si,"ft-tooltip":zi,"ft-typography":ci,"ft-icon":_i,"ft-loader":Ni},Gi.styles=[Ft,Yi],Qi([o({type:String,reflect:!0})],Gi.prototype,"role",void 0),Qi([o({type:Boolean})],Gi.prototype,"primary",void 0),Qi([o({type:Boolean})],Gi.prototype,"outlined",void 0),Qi([o({type:Boolean})],Gi.prototype,"disabled",void 0),Qi([o({type:Boolean})],Gi.prototype,"dense",void 0),Qi([o({type:Boolean})],Gi.prototype,"round",void 0),Qi([o()],Gi.prototype,"label",void 0),Qi([o()],Gi.prototype,"icon",void 0),Qi([o()],Gi.prototype,"iconVariant",void 0),Qi([o({type:Boolean})],Gi.prototype,"trailingIcon",void 0),Qi([o({type:Boolean})],Gi.prototype,"loading",void 0),Qi([o()],Gi.prototype,"tooltipPosition",void 0),Qi([o({type:Boolean})],Gi.prototype,"hideTooltip",void 0),Qi([o({type:Boolean})],Gi.prototype,"forceTooltip",void 0),Qi([n(".ft-button")],Gi.prototype,"button",void 0),Qi([n(".ft-button--label slot")],Gi.prototype,"slottedContent",void 0),d("ft-button")(Gi);const to=$t.extend("--ft-checkbox-text-color",kt.colorOnSurfaceHigh),eo=$t.external(kt.colorPrimary,"Design system"),io=$t.external(kt.colorOnPrimary,"Design system"),oo=$t.extend("--ft-checkbox-border-color",kt.colorOnSurfaceMedium),so=$t.external(kt.colorOnSurfaceDisabled,"Design system"),ro=m`
|
|
712
712
|
* {
|
|
713
713
|
box-sizing: border-box;
|
|
714
714
|
}
|
|
@@ -785,7 +785,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
785
785
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
786
786
|
opacity: 1;
|
|
787
787
|
}
|
|
788
|
-
`;var no=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
788
|
+
`;var no=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ao extends Rt{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return G`
|
|
789
789
|
<label class="${fi(t)}" for="checkbox-input">
|
|
790
790
|
<div class="ft-checkbox--box-container">
|
|
791
791
|
<ft-ripple
|
|
@@ -811,14 +811,14 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
811
811
|
<slot></slot>
|
|
812
812
|
</ft-typography>
|
|
813
813
|
</label>
|
|
814
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}
|
|
814
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}ao.elementDefinitions={"ft-ripple":Si,"ft-typography":ci},ao.styles=ro,no([o()],ao.prototype,"name",void 0),no([o({type:Boolean,reflect:!0})],ao.prototype,"checked",void 0),no([o({type:Boolean})],ao.prototype,"indeterminate",void 0),no([o({type:Boolean})],ao.prototype,"disabled",void 0),no([n(".ft-checkbox")],ao.prototype,"container",void 0),no([n("ft-ripple")],ao.prototype,"ripple",void 0),d("ft-checkbox")(ao);const lo=$t.extend("--ft-radio-text-color",kt.colorOnSurfaceHigh),co=$t.external(kt.colorPrimary,"Design system"),ho=($t.external(kt.colorOnPrimary,"Design system"),$t.extend("--ft-radio-border-color",kt.colorOnSurfaceMedium)),po=$t.external(kt.colorOnSurfaceDisabled,"Design system"),fo=m`
|
|
815
815
|
* {
|
|
816
816
|
box-sizing: border-box;
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
.ft-radio {
|
|
820
820
|
box-sizing: border-box;
|
|
821
|
-
color: ${
|
|
821
|
+
color: ${lo};
|
|
822
822
|
|
|
823
823
|
display: inline-flex;
|
|
824
824
|
align-items: center;
|
|
@@ -890,7 +890,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
890
890
|
.ft-radio--disabled .ft-radio--box:after {
|
|
891
891
|
background-color: ${po};
|
|
892
892
|
}
|
|
893
|
-
`;var uo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
893
|
+
`;var uo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class bo extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class vo extends Rt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return G`
|
|
894
894
|
<div class="${fi(t)}">
|
|
895
895
|
<div class="ft-radio--box-container">
|
|
896
896
|
<ft-ripple
|
|
@@ -919,7 +919,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
919
919
|
:host {
|
|
920
920
|
display: contents;
|
|
921
921
|
}
|
|
922
|
-
`;var xo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
922
|
+
`;var xo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class yo extends Rt{constructor(){super(...arguments),this.name=""}render(){return G`
|
|
923
923
|
<slot @slotchange=${this.onSlotChange}
|
|
924
924
|
@change=${this.onChange}
|
|
925
925
|
@keydown=${this.onKeyDown}
|
|
@@ -991,7 +991,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
991
991
|
margin: 10px 0;
|
|
992
992
|
color: ${mo.colorOnSurfaceMedium};
|
|
993
993
|
}
|
|
994
|
-
`;var wo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
994
|
+
`;var wo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ko extends Rt{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return G`
|
|
995
995
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
996
996
|
${null==this.parent?null:G`
|
|
997
997
|
<div tabindex="0"
|
|
@@ -1055,7 +1055,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1055
1055
|
@change=${t=>t.stopPropagation()}>
|
|
1056
1056
|
${t.renderOption?t.renderOption:t.label}
|
|
1057
1057
|
</ft-radio>
|
|
1058
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ko.elementDefinitions={"ft-button":Gi,"ft-ripple":Si,"ft-typography":ci,"ft-checkbox":
|
|
1058
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ko.elementDefinitions={"ft-button":Gi,"ft-ripple":Si,"ft-typography":ci,"ft-checkbox":ao,"ft-icon":_i,"ft-radio":vo},ko.styles=$o,wo([o({type:String})],ko.prototype,"filterId",void 0),wo([o({type:Object})],ko.prototype,"parent",void 0),wo([o({type:Array})],ko.prototype,"options",void 0),wo([o({type:Boolean})],ko.prototype,"multivalued",void 0),wo([o({type:Boolean})],ko.prototype,"disabled",void 0),wo([o({type:Boolean})],ko.prototype,"hideSelectedOptions",void 0),wo([o({type:Boolean})],ko.prototype,"preventNavigation",void 0),wo([o({type:String})],ko.prototype,"filter",void 0),wo([o({type:String})],ko.prototype,"moreValuesButtonLabel",void 0),wo([o({type:String})],ko.prototype,"noValuesLabel",void 0),wo([o({type:Number})],ko.prototype,"displayedValuesLimit",void 0),wo([n(".ft-filter-level--container")],ko.prototype,"container",void 0),wo([s()],ko.prototype,"displayedPages",void 0);const So={buttonsColor:$t.extend("--ft-snap-scroll-buttons-color",kt.colorPrimary),buttonsZIndex:$t.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:$t.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:$t.external(kt.colorSurface,"Design system")},Oo=m`
|
|
1059
1059
|
.ft-snap-scroll {
|
|
1060
1060
|
box-sizing: border-box;
|
|
1061
1061
|
position: relative;
|
|
@@ -1180,7 +1180,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1180
1180
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1181
1181
|
background-color: ${So.colorSurface};
|
|
1182
1182
|
}
|
|
1183
|
-
`;var Eo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1183
|
+
`;var Eo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Co extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class zo extends Rt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=fi({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Ut}),e=this.controls&&this.withScroll;return G`
|
|
1184
1184
|
<div part="container" class="${t}">
|
|
1185
1185
|
<ft-button
|
|
1186
1186
|
class="ft-snap-scroll--previous"
|
|
@@ -1316,7 +1316,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1316
1316
|
slot:not([name]) {
|
|
1317
1317
|
display: none;
|
|
1318
1318
|
}
|
|
1319
|
-
`];var jo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1319
|
+
`];var jo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Uo extends CustomEvent{constructor(t){super("change",{detail:t})}}class Po extends Rt{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e(300),this.changeDebouncer=new e(10),this.lastDispatchedValues=[]}get flatOptions(){return h(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return G`
|
|
1320
1320
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1321
1321
|
part="container">
|
|
1322
1322
|
${this.label||t?G`
|
|
@@ -1388,17 +1388,17 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1388
1388
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1389
1389
|
noValuesLabel="${this.noValuesLabel}"
|
|
1390
1390
|
></ft-filter-level>
|
|
1391
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;p(this.lastDispatchedValues,t)||(this.dispatchEvent(new
|
|
1391
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;p(this.lastDispatchedValues,t)||(this.dispatchEvent(new Uo(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Po.elementDefinitions={"ft-button":Gi,"ft-filter-level":ko,"ft-snap-scroll":zo,"ft-typography":ci},Po.styles=Do,jo([o({type:String})],Po.prototype,"id",void 0),jo([o({type:String})],Po.prototype,"label",void 0),jo([o({type:String})],Po.prototype,"filterPlaceHolder",void 0),jo([o({type:String})],Po.prototype,"clearButtonLabel",void 0),jo([o({type:String})],Po.prototype,"moreValuesButtonLabel",void 0),jo([o({type:String})],Po.prototype,"noValuesLabel",void 0),jo([f([])],Po.prototype,"options",void 0),jo([o({type:Boolean})],Po.prototype,"multivalued",void 0),jo([o({type:Boolean})],Po.prototype,"disabled",void 0),jo([o({type:Boolean})],Po.prototype,"raiseSelectedOptions",void 0),jo([o({type:Number})],Po.prototype,"displayedValuesLimit",void 0),jo([o({type:Boolean})],Po.prototype,"hideClearButton",void 0),jo([n(".ft-filter--slot")],Po.prototype,"slotElement",void 0),jo([n(".ft-filter--container")],Po.prototype,"container",void 0),jo([n(".ft-filter--values")],Po.prototype,"valuesContainer",void 0),jo([n(".ft-filter--levels")],Po.prototype,"levelsContainer",void 0),jo([s()],Po.prototype,"lastLevelHasHiddenvalues",void 0),jo([n(".ft-filter--filter input")],Po.prototype,"filterInput",void 0),jo([function(t){return r({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],Po.prototype,"levels",void 0),jo([s()],Po.prototype,"withScroll",void 0),jo([s()],Po.prototype,"filter",void 0),jo([s()],Po.prototype,"slideIn",void 0),jo([s()],Po.prototype,"slideOut",void 0);var Ao=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class To extends Rt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return G`
|
|
1392
1392
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1393
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}To.elementDefinitions={},Ao([o({type:String})],To.prototype,"label",void 0),Ao([o({type:Object,converter:t=>t})],To.prototype,"value",void 0),Ao([o({type:Boolean,reflect:!0})],To.prototype,"selected",void 0),Ao([o({type:Object})],To.prototype,"subOptions",void 0),Ao([f({})],To.prototype,"renderOption",void 0),Ao([n(".ft-filter-option--slot")],To.prototype,"slotElement",void 0),d("ft-filter")(
|
|
1393
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}To.elementDefinitions={},Ao([o({type:String})],To.prototype,"label",void 0),Ao([o({type:Object,converter:t=>t})],To.prototype,"value",void 0),Ao([o({type:Boolean,reflect:!0})],To.prototype,"selected",void 0),Ao([o({type:Object})],To.prototype,"subOptions",void 0),Ao([f({})],To.prototype,"renderOption",void 0),Ao([n(".ft-filter-option--slot")],To.prototype,"slotElement",void 0),d("ft-filter")(Po),d("ft-filter-option")(To);const _o=m`
|
|
1394
1394
|
.ft-accordion {
|
|
1395
1395
|
box-sizing: border-box;
|
|
1396
1396
|
}
|
|
1397
|
-
`;var
|
|
1397
|
+
`;var Ho=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Zo extends Rt{constructor(){super(...arguments),this.multi=!1}render(){return G`
|
|
1398
1398
|
<div class="ft-accordion">
|
|
1399
1399
|
<slot @activated=${this.onChange}></slot>
|
|
1400
1400
|
</div>
|
|
1401
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Zo.elementDefinitions={},Zo.styles=Ho
|
|
1401
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Zo.elementDefinitions={},Zo.styles=_o,Ho([o({type:Boolean})],Zo.prototype,"multi",void 0),Ho([n("slot")],Zo.prototype,"content",void 0);const Wo=$t.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Vo=$t.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Ko=$t.external(kt.colorOutline,"Design system"),qo=m`
|
|
1402
1402
|
.ft-accordion-item {
|
|
1403
1403
|
display: flex;
|
|
1404
1404
|
flex-direction: column;
|
|
@@ -1443,7 +1443,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1443
1443
|
.ft-accordion-item--separator {
|
|
1444
1444
|
border-bottom: 1px solid ${Ko};
|
|
1445
1445
|
}
|
|
1446
|
-
`;var Jo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1446
|
+
`;var Jo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Xo extends Rt{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return G`
|
|
1447
1447
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1448
1448
|
<div class="ft-accordion-item--toggle"
|
|
1449
1449
|
part="toggle"
|
|
@@ -1473,7 +1473,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1473
1473
|
</div>
|
|
1474
1474
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1475
1475
|
</div>
|
|
1476
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Xo.elementDefinitions={"ft-ripple":Si,"ft-typography":ci,"ft-icon":
|
|
1476
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Xo.elementDefinitions={"ft-ripple":Si,"ft-typography":ci,"ft-icon":_i},Xo.styles=qo,Jo([o()],Xo.prototype,"icon",void 0),Jo([o()],Xo.prototype,"iconVariant",void 0),Jo([o()],Xo.prototype,"label",void 0),Jo([o({type:Boolean,reflect:!0})],Xo.prototype,"active",void 0),d("ft-accordion")(Zo),d("ft-accordion-item")(Xo);const Yo=$t.extend("--ft-chip-color",kt.colorOnSurface),Qo={backgroundColor:$t.extend("--ft-chip-background-color",kt.colorSurface),color:Yo,fontSize:$t.extend("--ft-chip-font-size",De.fontSize),iconSize:$t.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:$t.extend("--ft-chip-ripple-color",Yo),horizontalPadding:$t.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:$t.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:$t.external(kt.colorOutline,"Design system"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Go=$t.extend("--ft-chip-highlighted-color",$t.extend("--ft-chip-color",kt.colorOnPrimary)),ts={backgroundColor:$t.extend("--ft-chip-highlighted-background-color",$t.extend("--ft-chip-background-color",kt.colorPrimary)),color:Go,rippleColor:$t.extend("--ft-chip-highlighted-ripple-color",Go)},es=$t.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),is=$t.create("--ft-chip-dense-vertical-padding","SIZE","4px"),os=[Nt,m`
|
|
1477
1477
|
:host {
|
|
1478
1478
|
display: inline-block;
|
|
1479
1479
|
max-width: 100%;
|
|
@@ -1491,7 +1491,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1491
1491
|
|
|
1492
1492
|
--ft-chip-internal-font-size: ${Qo.fontSize};
|
|
1493
1493
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1494
|
-
${wt(
|
|
1494
|
+
${wt(Ui.size,Qo.iconSize)};
|
|
1495
1495
|
--ft-chip-internal-vertical-padding: ${Qo.verticalPadding};
|
|
1496
1496
|
--ft-chip-internal-horizontal-padding: ${Qo.horizontalPadding};
|
|
1497
1497
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -1610,7 +1610,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1610
1610
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1611
1611
|
order: -1;
|
|
1612
1612
|
}
|
|
1613
|
-
`];var ss=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1613
|
+
`];var ss=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class rs extends CustomEvent{constructor(){super("icon-click")}}class ns extends Rt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ut};return G`
|
|
1614
1614
|
<div class="${fi(t)}"
|
|
1615
1615
|
aria-label="${this.getLabel()}"
|
|
1616
1616
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -1633,25 +1633,25 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1633
1633
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
1634
1634
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
1635
1635
|
</div>
|
|
1636
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new rs))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new rs))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ns.elementDefinitions={"ft-ripple":Si,"ft-typography":ci,"ft-icon":
|
|
1636
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new rs))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new rs))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ns.elementDefinitions={"ft-ripple":Si,"ft-typography":ci,"ft-icon":_i,"ft-button":Gi},ns.styles=os,ss([o({type:Boolean})],ns.prototype,"highlighted",void 0),ss([o({type:Boolean})],ns.prototype,"removable",void 0),ss([o({type:Boolean})],ns.prototype,"disabled",void 0),ss([o({type:Boolean})],ns.prototype,"clickable",void 0),ss([o({type:Boolean})],ns.prototype,"iconClickable",void 0),ss([o({type:Boolean})],ns.prototype,"dense",void 0),ss([o({type:Boolean})],ns.prototype,"multiLine",void 0),ss([o()],ns.prototype,"label",void 0),ss([o()],ns.prototype,"iconLabel",void 0),ss([o()],ns.prototype,"icon",void 0),ss([o()],ns.prototype,"iconVariant",void 0),ss([o({type:Boolean})],ns.prototype,"trailingIcon",void 0),ss([n("ft-typography slot")],ns.prototype,"slottedContent",void 0),d("ft-chip")(ns);const as={fontSize:$t.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:$t.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:$t.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:$t.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:$t.create("--ft-input-label-max-width","SIZE","100%"),borderColor:$t.extend("--ft-input-label-border-color",kt.colorOutline),textColor:$t.extend("--ft-input-label-text-color",kt.colorOnSurfaceMedium),disabledTextColor:$t.extend("--ft-input-label-disabled-text-color",kt.colorOnSurfaceDisabled),colorSurface:$t.external(kt.colorSurface,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},ls=m`
|
|
1637
1637
|
.ft-input-label {
|
|
1638
1638
|
position: absolute;
|
|
1639
1639
|
inset: 0;
|
|
1640
1640
|
display: flex;
|
|
1641
|
-
background-color: ${
|
|
1642
|
-
border-radius: ${
|
|
1641
|
+
background-color: ${as.colorSurface};
|
|
1642
|
+
border-radius: ${as.borderRadiusS} ${as.borderRadiusS} 0 0;
|
|
1643
1643
|
}
|
|
1644
1644
|
|
|
1645
1645
|
.ft-input-label--outlined {
|
|
1646
|
-
border-radius: ${
|
|
1646
|
+
border-radius: ${as.borderRadiusS};
|
|
1647
1647
|
}
|
|
1648
1648
|
|
|
1649
1649
|
.ft-input-label {
|
|
1650
|
-
border-color: ${
|
|
1650
|
+
border-color: ${as.borderColor};
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
1653
|
.ft-input-label.ft-input-label--in-error {
|
|
1654
|
-
border-color: ${
|
|
1654
|
+
border-color: ${as.colorError}
|
|
1655
1655
|
}
|
|
1656
1656
|
|
|
1657
1657
|
.ft-input-label:before,
|
|
@@ -1664,7 +1664,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1664
1664
|
}
|
|
1665
1665
|
|
|
1666
1666
|
.ft-input-label:before {
|
|
1667
|
-
width: calc(${
|
|
1667
|
+
width: calc(${as.horizontalSpacing} - 4px);
|
|
1668
1668
|
flex-shrink: 0;
|
|
1669
1669
|
}
|
|
1670
1670
|
|
|
@@ -1680,20 +1680,20 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1680
1680
|
border-bottom-width: 1px;
|
|
1681
1681
|
border-bottom-style: solid;
|
|
1682
1682
|
border-color: inherit;
|
|
1683
|
-
color: ${
|
|
1683
|
+
color: ${as.textColor};
|
|
1684
1684
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1685
|
-
max-width: calc(${
|
|
1685
|
+
max-width: calc(${as.labelMaxWidth} - 2 * (${as.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1686
1686
|
text-overflow: ellipsis;
|
|
1687
|
-
${wt(je.fontSize,
|
|
1688
|
-
${wt(je.lineHeight,
|
|
1687
|
+
${wt(je.fontSize,as.fontSize)};
|
|
1688
|
+
${wt(je.lineHeight,as.fontSize)};
|
|
1689
1689
|
}
|
|
1690
1690
|
|
|
1691
1691
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1692
|
-
color: ${
|
|
1692
|
+
color: ${as.colorError}
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
1695
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1696
|
-
color: ${
|
|
1696
|
+
color: ${as.disabledTextColor};
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
1699
|
.ft-input-label--hidden-text {
|
|
@@ -1710,19 +1710,19 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1710
1710
|
overflow: hidden;
|
|
1711
1711
|
white-space: nowrap;
|
|
1712
1712
|
text-overflow: ellipsis;
|
|
1713
|
-
padding: ${
|
|
1714
|
-
margin: calc(${
|
|
1713
|
+
padding: ${as.verticalSpacing} 4px;
|
|
1714
|
+
margin: calc(${as.verticalSpacing} * -1) 0;
|
|
1715
1715
|
max-width: 100%;
|
|
1716
1716
|
box-sizing: border-box;
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
1719
|
.ft-input-label--raised .ft-input-label--text {
|
|
1720
|
-
${wt(je.fontSize,
|
|
1721
|
-
${wt(je.lineHeight,
|
|
1720
|
+
${wt(je.fontSize,as.raisedFontSize)};
|
|
1721
|
+
${wt(je.lineHeight,as.raisedFontSize)};
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
1724
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1725
|
-
top: ${
|
|
1725
|
+
top: ${as.verticalSpacing};
|
|
1726
1726
|
}
|
|
1727
1727
|
|
|
1728
1728
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1735,27 +1735,27 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1735
1735
|
.ft-input-label--outlined:before {
|
|
1736
1736
|
border-left-width: 1px;
|
|
1737
1737
|
border-left-style: solid;
|
|
1738
|
-
border-radius: ${
|
|
1738
|
+
border-radius: ${as.borderRadiusS} 0 0 ${as.borderRadiusS};
|
|
1739
1739
|
}
|
|
1740
1740
|
|
|
1741
1741
|
.ft-input-label--outlined:after {
|
|
1742
1742
|
border-right-width: 1px;
|
|
1743
1743
|
border-right-style: solid;
|
|
1744
|
-
border-radius: 0 ${
|
|
1744
|
+
border-radius: 0 ${as.borderRadiusS} ${as.borderRadiusS} 0;
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1748
1748
|
padding: 2px 4px;
|
|
1749
|
-
z-index: ${
|
|
1750
|
-
background-color: ${
|
|
1751
|
-
border-radius: ${
|
|
1749
|
+
z-index: ${as.raisedZIndex};
|
|
1750
|
+
background-color: ${as.colorSurface};
|
|
1751
|
+
border-radius: ${as.borderRadiusS};
|
|
1752
1752
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1753
1753
|
}
|
|
1754
1754
|
|
|
1755
1755
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1756
1756
|
border-top: none;
|
|
1757
1757
|
}
|
|
1758
|
-
`;var cs=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1758
|
+
`;var cs=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class hs extends Rt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return G`
|
|
1759
1759
|
<div class="${fi(t)}">
|
|
1760
1760
|
${this.text?G`
|
|
1761
1761
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -1764,7 +1764,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1764
1764
|
</div>
|
|
1765
1765
|
`:null}
|
|
1766
1766
|
</div>
|
|
1767
|
-
`}}hs.elementDefinitions={},hs.styles=[oi,
|
|
1767
|
+
`}}hs.elementDefinitions={},hs.styles=[oi,ls],cs([o({type:String})],hs.prototype,"text",void 0),cs([o({type:Boolean})],hs.prototype,"raised",void 0),cs([o({type:Boolean})],hs.prototype,"outlined",void 0),cs([o({type:Boolean})],hs.prototype,"disabled",void 0),cs([o({type:Boolean})],hs.prototype,"error",void 0),d("ft-input-label")(hs);const ps={labelSize:$t.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:$t.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:$t.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:$t.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:$t.extend("--ft-select-selected-option-color",kt.colorOnSurface),helperColor:$t.extend("--ft-select-helper-color",kt.colorOnSurfaceMedium),optionsColor:$t.extend("--ft-select-options-color",kt.colorOnSurface),optionsZIndex:$t.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:$t.external(kt.colorSurface,"Design system"),colorOnSurfaceDisabled:$t.external(kt.colorOnSurfaceDisabled,"Design system"),colorPrimary:$t.external(kt.colorPrimary,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),elevation02:$t.external(kt.elevation02,"Design system"),colorError:$t.external(kt.colorError,"Design system")},ds=m`
|
|
1768
1768
|
*:focus {
|
|
1769
1769
|
outline: none;
|
|
1770
1770
|
}
|
|
@@ -1816,11 +1816,11 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
1818
|
ft-input-label {
|
|
1819
|
-
${wt(
|
|
1820
|
-
${wt(
|
|
1821
|
-
${wt(
|
|
1822
|
-
${wt(
|
|
1823
|
-
${wt(
|
|
1819
|
+
${wt(as.fontSize,ps.selectedOptionSize)};
|
|
1820
|
+
${wt(as.raisedFontSize,ps.labelSize)};
|
|
1821
|
+
${wt(as.verticalSpacing,ps.verticalSpacing)};
|
|
1822
|
+
${wt(as.horizontalSpacing,ps.horizontalSpacing)};
|
|
1823
|
+
${wt(as.labelMaxWidth,`calc(100% - ${Ui.size} - 8px)`)};
|
|
1824
1824
|
}
|
|
1825
1825
|
|
|
1826
1826
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1828,8 +1828,8 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1831
|
-
${wt(
|
|
1832
|
-
${wt(
|
|
1831
|
+
${wt(as.borderColor,ps.colorPrimary)};
|
|
1832
|
+
${wt(as.textColor,ps.colorPrimary)};
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
.ft-select--selected-option {
|
|
@@ -1913,14 +1913,14 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1913
1913
|
.ft-select--in-error .ft-select--helper-text {
|
|
1914
1914
|
color: ${ps.colorError};
|
|
1915
1915
|
}
|
|
1916
|
-
`;var fs=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
1917
|
-
<div class="${fi(
|
|
1916
|
+
`;var fs=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class us extends Rt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return G``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}us.elementDefinitions={},fs([o({type:String})],us.prototype,"label",void 0),fs([o({type:Object,converter:t=>t})],us.prototype,"value",void 0),fs([o({type:Boolean,reflect:!0})],us.prototype,"selected",void 0);class bs extends Rt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let r=this.hasOptionsMenuOpen,n=this.disabled||!this.hasOptions;const a=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,l={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":n,"ft-select--options-displayed":r,"ft-select--has-option-selected":a,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return G`
|
|
1917
|
+
<div class="${fi(l)}" part="container">
|
|
1918
1918
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1919
1919
|
<ft-input-label text="${this.label}"
|
|
1920
1920
|
part="label"
|
|
1921
1921
|
?disabled=${n}
|
|
1922
1922
|
?outlined=${this.outlined}
|
|
1923
|
-
?raised=${
|
|
1923
|
+
?raised=${a||r}
|
|
1924
1924
|
?error=${this.error}
|
|
1925
1925
|
></ft-input-label>
|
|
1926
1926
|
<div class="ft-select--input-panel"
|
|
@@ -1961,7 +1961,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1961
1961
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
1962
1962
|
<span>${t.label}</span>
|
|
1963
1963
|
</div>
|
|
1964
|
-
`}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!p(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}bs.elementDefinitions={"ft-input-label":hs,"ft-typography":ci,"ft-ripple":Si,"ft-icon":
|
|
1964
|
+
`}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!p(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}bs.elementDefinitions={"ft-input-label":hs,"ft-typography":ci,"ft-ripple":Si,"ft-icon":_i},bs.styles=[ii,oi,ds],fs([o({type:String})],bs.prototype,"label",void 0),fs([o({type:String})],bs.prototype,"helper",void 0),fs([o({type:Boolean})],bs.prototype,"outlined",void 0),fs([o({type:Boolean})],bs.prototype,"disabled",void 0),fs([o({type:Boolean})],bs.prototype,"error",void 0),fs([o({type:Boolean})],bs.prototype,"fixedMenuPosition",void 0),fs([o({type:Array})],bs.prototype,"options",void 0),fs([s()],bs.prototype,"selectedOption",void 0),fs([s()],bs.prototype,"optionsDisplayed",void 0),fs([s()],bs.prototype,"focusOptions",void 0),fs([n(".ft-select")],bs.prototype,"container",void 0),fs([n(".ft-select--options")],bs.prototype,"optionsMenu",void 0),fs([n(".ft-select--input-panel")],bs.prototype,"mainPanel",void 0),fs([n(".ft-select--option:first-child")],bs.prototype,"firstOption",void 0),fs([n(".ft-select--option:focus")],bs.prototype,"focusedOption",void 0),fs([n(".ft-select--option.ft-select--option-selected")],bs.prototype,"selectedOptionElement",void 0),fs([n(".ft-select--option:last-child")],bs.prototype,"lastOption",void 0),fs([n("slot")],bs.prototype,"optionsSlot",void 0),d("ft-select")(bs),d("ft-select-option")(us);const vs={display:$t.create("--ft-skeleton--display","DISPLAY","block"),width:$t.create("--ft-skeleton--width","SIZE","100%"),height:$t.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:$t.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:$t.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:$t.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:$t.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:$t.external(kt.borderRadiusM,"Design system")},gs=m`
|
|
1965
1965
|
:host {
|
|
1966
1966
|
width: ${vs.width};
|
|
1967
1967
|
height: ${vs.height};
|
|
@@ -2125,8 +2125,8 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2125
2125
|
}
|
|
2126
2126
|
|
|
2127
2127
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2128
|
-
${wt(
|
|
2129
|
-
${wt(
|
|
2128
|
+
${wt(as.borderColor,"transparent")};
|
|
2129
|
+
${wt(as.borderRadiusS,`calc(${xs.borderRadius} - 1px)`)};
|
|
2130
2130
|
${wt(ps.selectedOptionColor,xs.buttonColor)};
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
@@ -2147,6 +2147,42 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2147
2147
|
border-radius: calc(${xs.borderRadius} - 1px) 0 0 calc(${xs.borderRadius} - 1px);
|
|
2148
2148
|
}
|
|
2149
2149
|
|
|
2150
|
+
[part="content-locale-selector"] {
|
|
2151
|
+
flex-grow: 0;
|
|
2152
|
+
display: flex;
|
|
2153
|
+
flex-direction: column;
|
|
2154
|
+
max-height: 100%;
|
|
2155
|
+
max-width: 100%;
|
|
2156
|
+
color: ${Ro};
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
[part="content-locale-selector"] > ft-radio-group {
|
|
2160
|
+
flex-grow: 1;
|
|
2161
|
+
flex-shrink: 1;
|
|
2162
|
+
overflow: auto;
|
|
2163
|
+
display: flex;
|
|
2164
|
+
flex-direction: column;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
[part="content-locale-selector-header"] {
|
|
2168
|
+
display: flex;
|
|
2169
|
+
flex-wrap: wrap;
|
|
2170
|
+
gap: 4px;
|
|
2171
|
+
flex-shrink: 0;
|
|
2172
|
+
padding: 0 10px;
|
|
2173
|
+
margin-bottom: 8px;
|
|
2174
|
+
${wt(he.fontSize,"14px")};
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
[part="content-locale-selector-label"] {
|
|
2178
|
+
display: block;
|
|
2179
|
+
flex-shrink: 1;
|
|
2180
|
+
flex-grow: 1;
|
|
2181
|
+
word-break: break-word;
|
|
2182
|
+
${wt(he.lineHeight,"22px")};
|
|
2183
|
+
${wt(he.fontWeight,"bold")};
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2150
2186
|
`,ms=m`
|
|
2151
2187
|
.ft-search-bar--presets {
|
|
2152
2188
|
min-width: 200px;
|
|
@@ -2343,7 +2379,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2343
2379
|
</a>
|
|
2344
2380
|
`))}
|
|
2345
2381
|
</div>
|
|
2346
|
-
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,r,n;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(r=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const r=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==r||r.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ai.file_format:Ai.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Ii.BOOK:Ii.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,o,s,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,
|
|
2382
|
+
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,r,n;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(r=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const r=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==r||r.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ai.file_format:Ai.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Ii.BOOK:Ii.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,o,s,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,a]=((null!==(i=ji.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(s=null!==(o=Di.get(a))&&void 0!==o?o:Di.get(e))&&void 0!==s?s:Di.get(n))&&void 0!==r?r:Li.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Ii.TOPICS}return G`
|
|
2347
2383
|
<ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
2348
2384
|
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}ws.styles=[Mt,m`
|
|
2349
2385
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
@@ -2428,7 +2464,7 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2428
2464
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2429
2465
|
</ft-chip>
|
|
2430
2466
|
`:null}
|
|
2431
|
-
${Xt(this.searchBar.facets,(t=>t.key),(i=>{const o=function(t){return h(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(i);return Xt(o,(s=>{let r=i.label+": "+function(t){return hi(t).split("|").join(" > ")}(s);const n=i.key.replace(":","-"),
|
|
2467
|
+
${Xt(this.searchBar.facets,(t=>t.key),(i=>{const o=function(t){return h(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(i);return Xt(o,(s=>{let r=i.label+": "+function(t){return hi(t).split("|").join(" > ")}(s);const n=i.key.replace(":","-"),a=G`
|
|
2432
2468
|
<ft-chip
|
|
2433
2469
|
part="selected-filters selected-filter-${n}"
|
|
2434
2470
|
?dense=${this.searchBar.dense&&!t}
|
|
@@ -2443,9 +2479,9 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2443
2479
|
data-value="${s}">
|
|
2444
2480
|
${function(t){return hi(t).split("|").pop()}(s)}
|
|
2445
2481
|
</ft-chip>
|
|
2446
|
-
`;return e?
|
|
2482
|
+
`;return e?a:G`
|
|
2447
2483
|
<ft-tooltip inline text="${r}">
|
|
2448
|
-
${
|
|
2484
|
+
${a}
|
|
2449
2485
|
</ft-tooltip>
|
|
2450
2486
|
`}))}))}
|
|
2451
2487
|
${t?G`
|
|
@@ -2617,34 +2653,34 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2617
2653
|
</div>
|
|
2618
2654
|
`}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}Os.styles=m`
|
|
2619
2655
|
|
|
2620
|
-
`;var Es=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,
|
|
2656
|
+
`;var Es=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Cs={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"};class zs extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Bs extends CustomEvent{constructor(t){super("change",{detail:t})}}const Rs=()=>{};class Ns extends Rt{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new It(Cs,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=Yt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.suggestManager=new ws(this),this.selectedFacetsManager=new ks(this),this.desktopSearchBarManager=new Os(this),this.mobileSearchBarManager=new Ss(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new e(10),this.updateLocalesDebouncer=new e(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new e(500),this.closeFloatingContainer=t=>{this.isMobile()||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>t.values.length>0&&!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Yt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G`
|
|
2621
2657
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2622
2658
|
${this.renderSearchBar()}
|
|
2623
2659
|
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():G`
|
|
2624
2660
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton" part="loader"
|
|
2625
2661
|
tabindex="-1"></ft-skeleton>
|
|
2626
|
-
`}renderMobileFacets(){const
|
|
2662
|
+
`}renderMobileFacets(){var t;const e=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop();return G`
|
|
2627
2663
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
2628
2664
|
${this.hasLocaleSelector()?G`
|
|
2629
2665
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
2630
2666
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2631
2667
|
<ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2632
2668
|
</ft-typography>
|
|
2633
|
-
${(null==
|
|
2669
|
+
${(null==e?void 0:e.label)?G`
|
|
2634
2670
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2635
|
-
${null==
|
|
2671
|
+
${null==e?void 0:e.label}
|
|
2636
2672
|
</ft-typography>
|
|
2637
2673
|
`:et}
|
|
2638
2674
|
</div>
|
|
2639
|
-
<
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2675
|
+
<div part="content-locale-selector">
|
|
2676
|
+
<ft-radio-group @change=${t=>this.contentLocale=t.detail}>
|
|
2677
|
+
${Xt(null!==(t=this.availableContentLocales)&&void 0!==t?t:[],(t=>t.lang),(t=>G`
|
|
2678
|
+
<ft-radio .value=${t.lang}
|
|
2679
|
+
?checked=${t.lang==this.contentLocale}
|
|
2680
|
+
>${t.label}
|
|
2681
|
+
</ft-radio>`))}
|
|
2682
|
+
</ft-radio-group>
|
|
2683
|
+
</div>
|
|
2648
2684
|
</ft-accordion-item>
|
|
2649
2685
|
`:null}
|
|
2650
2686
|
${Xt(this.facets,(t=>t.key),(t=>{const e=di(t),i=t.key.replace(":","-"),o=function(t){return h(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e);return t.rootNodes.length>0?G`
|
|
@@ -2713,23 +2749,27 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2713
2749
|
@click=${this.clearFilters}>
|
|
2714
2750
|
${this.labelResolver.resolve("clearFilters")}
|
|
2715
2751
|
</ft-button>
|
|
2716
|
-
`:et}renderDesktopFacets(){return this.hasFacets()?G`
|
|
2752
|
+
`:et}renderDesktopFacets(){var t;return this.hasFacets()?G`
|
|
2717
2753
|
<ft-snap-scroll horizontal limitSize controls
|
|
2718
2754
|
class="ft-search-bar--filters-container"
|
|
2719
2755
|
part="filters-container"
|
|
2720
2756
|
exportpartsPrefix="filters-container"
|
|
2721
2757
|
data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
|
|
2722
2758
|
${this.hasLocaleSelector()?G`
|
|
2723
|
-
<
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2759
|
+
<div part="content-locale-selector">
|
|
2760
|
+
<div part="content-locale-selector-header">
|
|
2761
|
+
<ft-typography variant="overline" part="content-locale-selector-label">
|
|
2762
|
+
${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2763
|
+
</ft-typography>
|
|
2764
|
+
</div>
|
|
2765
|
+
<ft-radio-group @change=${t=>this.contentLocale=t.detail}>
|
|
2766
|
+
${Xt(null!==(t=this.availableContentLocales)&&void 0!==t?t:[],(t=>t.lang),(t=>G`
|
|
2767
|
+
<ft-radio .value=${t.lang}
|
|
2768
|
+
?checked=${t.lang==this.contentLocale}
|
|
2769
|
+
>${t.label}
|
|
2770
|
+
</ft-radio>`))}
|
|
2771
|
+
</ft-radio-group>
|
|
2772
|
+
</div>
|
|
2733
2773
|
`:et}
|
|
2734
2774
|
${Xt(this.facets,(t=>t.key),(t=>{const e=di(t),i=e.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0})),o=t.key.replace(":","-");return G`
|
|
2735
2775
|
<ft-filter
|
|
@@ -2750,11 +2790,11 @@ class Mi extends Ht{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2750
2790
|
></ft-filter>
|
|
2751
2791
|
`}))}
|
|
2752
2792
|
</ft-snap-scroll>
|
|
2753
|
-
`:et}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var e,i,o,s,r;if(t.has("labels")&&(this.labelResolver=new It(Cs,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const i=t=>this.availableContentLocales.some((e=>e.lang
|
|
2793
|
+
`:et}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var e,i,o,s,r;if(t.has("labels")&&(this.labelResolver=new It(Cs,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const i=t=>this.availableContentLocales.some((e=>e.lang==t));i(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&i(t.get("contentLocale"))?t.get("contentLocale"):null===(e=this.availableContentLocales[0])||void 0===e?void 0:e.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),t.has("presets")&&(null!==(i=this.presets)&&void 0!==i?i:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>hi(t))))))),t.has("presets")||t.has("selectedPreset")){const t=(null!==(o=this.presets)&&void 0!==o?o:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(r=(null!==(s=this.presets)&&void 0!==s?s:[]).find((t=>this.compareRequests(t,this.request))))||void 0===r?void 0:r.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi()),t.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run((()=>this.dispatchEvent(new Bs(this.request))))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run((()=>{var t;null===(t=this.api)||void 0===t||t.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])).then((t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0}))})),this.updateFacetsDebouncer.run((()=>{this.retrieveFacetsFromSearch().then((()=>{this.facetsLoaded=!0,this.facetsInitialized=!0}))}),this.facetsInitialized?500:10)}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0}),this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout((()=>this.initApi()),10))}async retrieveFacetsFromSearch(){var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch(Rs)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new zs(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var t;this.recentSearches=JSON.parse(null!==(t=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==t?t:"[]")}saveRecentSearches(){const t=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&h(i.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=e.includes(t.value)))})),e.length&&i.push({key:t,negative:!1,values:e}),this.searchFilters=i,this.scrollToFacet=t}setFiltersFromPreset(t){null!=t&&(null!=t.contentLocale&&(this.contentLocale=t.contentLocale),this.searchFilters=t.filters)}clearFilters(){this.facets.forEach((t=>h(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}querySelector(t){return this.shadowRoot.querySelector(t)}querySelectorAll(t){return this.shadowRoot.querySelectorAll(t)}renderDesktopFloatingMenu(){return this.forceMenuOpen?et:G`
|
|
2754
2794
|
<div class="ft-search-bar--floating-panel"
|
|
2755
2795
|
id="ft-search-bar-floating-panel"
|
|
2756
2796
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2757
2797
|
part="floating-panel"
|
|
2758
2798
|
tabindex="-1">
|
|
2759
2799
|
${this.renderDesktopMenu()}
|
|
2760
|
-
</div>`}}Ns.elementDefinitions={"ft-accordion":Zo,"ft-accordion-item":Xo,"ft-button":Gi,"ft-chip":ns,"ft-filter":
|
|
2800
|
+
</div>`}}Ns.elementDefinitions={"ft-accordion":Zo,"ft-accordion-item":Xo,"ft-button":Gi,"ft-chip":ns,"ft-filter":Po,"ft-filter-option":To,"ft-icon":_i,"ft-ripple":Si,"ft-select":bs,"ft-select-option":us,"ft-size-watcher":ee,"ft-skeleton":$s,"ft-snap-scroll":zo,"ft-tooltip":zi,"ft-typography":ci,"ft-radio-group":yo,"ft-radio":vo},Ns.styles=[ii,ys,ms,ks.styles,ws.styles],Es([o({type:Boolean})],Ns.prototype,"dense",void 0),Es([o()],Ns.prototype,"mode",void 0),Es([o({type:Boolean})],Ns.prototype,"forceMobileMenuOpen",void 0),Es([o({type:Boolean})],Ns.prototype,"forceMenuOpen",void 0),Es([o()],Ns.prototype,"baseUrl",void 0),Es([o()],Ns.prototype,"apiIntegrationIdentifier",void 0),Es([o()],Ns.prototype,"contentLocale",void 0),Es([s()],Ns.prototype,"availableContentLocales",void 0),Es([s()],Ns.prototype,"availableContentLocalesInitialized",void 0),Es([o()],Ns.prototype,"uiLocale",void 0),Es([f({})],Ns.prototype,"labels",void 0),Es([f([])],Ns.prototype,"displayedFilters",void 0),Es([f([])],Ns.prototype,"presets",void 0),Es([o({type:String,reflect:!0})],Ns.prototype,"selectedPreset",void 0),Es([f([])],Ns.prototype,"priors",void 0),Es([o()],Ns.prototype,"searchRequestSerializer",void 0),Es([s()],Ns.prototype,"searchFilters",void 0),Es([s()],Ns.prototype,"sizeCategory",void 0),Es([s()],Ns.prototype,"displayFacets",void 0),Es([s()],Ns.prototype,"mobileMenuOpen",void 0),Es([s()],Ns.prototype,"facets",void 0),Es([s()],Ns.prototype,"facetsInitialized",void 0),Es([n(".ft-search-bar--container")],Ns.prototype,"container",void 0),Es([n(".ft-search-bar--filters-opener")],Ns.prototype,"filtersOpener",void 0),Es([n(".ft-search-bar--floating-panel")],Ns.prototype,"floatingContainer",void 0),Es([n("ft-snap-scroll.ft-search-bar--filters-container")],Ns.prototype,"scrollingFiltersContainer",void 0),Es([n(".ft-search-bar--input")],Ns.prototype,"input",void 0),Es([s()],Ns.prototype,"query",void 0),Es([s()],Ns.prototype,"suggestions",void 0),Es([s()],Ns.prototype,"recentSearches",void 0),Es([s()],Ns.prototype,"scrollToFacet",void 0),Es([s()],Ns.prototype,"api",void 0),Es([s()],Ns.prototype,"facetsLoaded",void 0),d("ft-search-bar")(Ns),t.DEFAULT_LABELS=Cs,t.FtSearchBar=Ns,t.FtSearchBarCssVariables=xs,t.LaunchSearchEvent=zs,t.SearchStateChangeEvent=Bs,t.facetsCss=ms,t.searchBarCss=ys}({});
|