@fluid-topics/ft-reader-navigation-button 1.0.56 → 1.0.58
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.
|
@@ -138,13 +138,13 @@
|
|
|
138
138
|
<div class="ft-ripple--background"></div>
|
|
139
139
|
<div class="ft-ripple--effect"></div>
|
|
140
140
|
</div>
|
|
141
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}m.elementDefinitions={},m.styles=y,b([o.property({type:Boolean})],m.prototype,"primary",void 0),b([o.property({type:Boolean})],m.prototype,"secondary",void 0),b([o.property({type:Boolean})],m.prototype,"unbounded",void 0),b([o.property({type:Boolean})],m.prototype,"activated",void 0),b([o.property({type:Boolean})],m.prototype,"selected",void 0),b([o.property({type:Boolean})],m.prototype,"disabled",void 0),b([o.state()],m.prototype,"hovered",void 0),b([o.state()],m.prototype,"focused",void 0),b([o.state()],m.prototype,"pressed",void 0),b([o.state()],m.prototype,"rippling",void 0),b([o.state()],m.prototype,"originX",void 0),b([o.state()],m.prototype,"originY",void 0),b([o.query(".ft-ripple")],m.prototype,"ripple",void 0),b([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const $=window,w=$.trustedTypes,k=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,O="?"+S,j=`<${O}>`,C=document,I=()=>C.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,T="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,A=/>/g,F=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,Z=/"/g,U=/^(?:script|style|textarea|title)$/i,P=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),D=new WeakMap,H=C.createTreeWalker(C,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=B;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===B?"!--"===a[1]?r=M:void 0!==a[1]?r=A:void 0!==a[2]?(U.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=F):void 0!==a[3]&&(r=F):r===F?">"===a[0]?(r=null!=n?n:B,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?F:'"'===a[3]?Z:_):r===Z||r===_?r=F:r===M||r===A?r=B:(r=F,n=void 0);const f=r===F&&t[i+1].startsWith("/>")?" ":"";s+=r===B?e+j:p>=0?(o.push(l),e.slice(0,p)+z+e.slice(p)+S+f):e+S+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(l):l,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=L(t,i);if(this.el=K.createElement(a,e),H.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=H.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(z)||i.startsWith(S)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+z).split(S),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?Q:"@"===i[1]?tt:X})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(U.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=w?w.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],I()),H.nextNode(),l.push({type:2,index:++n});o.append(t[i],I())}}}else if(8===o.nodeType)if(o.data===O)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)l.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function G(t,i,e=t,o){var n,s,r,l;if(i===R)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=N(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=G(t,a._$AS(t,i.values),a,o)),i}class V{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:C).importNode(e,!0);H.currentNode=n;let s=H.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new q(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new it(s,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=H.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class q{constructor(t,i,e,o){var n;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=G(this,t,i),N(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(C.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new V(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new K(t)),i}T(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new q(this.k(I()),this.k(I()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class X{constructor(t,i,e,o,n){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=G(this,t,i,0),s=!N(t)||t!==this._$AH&&t!==R,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=G(this,o[e+r],i,r),l===R&&(l=this._$AH[r]),s||(s=!N(l)||l!==this._$AH[r]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const J=w?w.emptyScript:"";class Q extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class tt extends X{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=G(this,t,i,0))&&void 0!==e?e:W)===R)return;const o=this._$AH,n=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==W&&(o===W||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const et=$.litHtmlPolyfillSupport;null==et||et(K,q),(null!==(v=$.litHtmlVersions)&&void 0!==v?v:$.litHtmlVersions=[]).push("2.7.3");
|
|
141
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}m.elementDefinitions={},m.styles=y,b([o.property({type:Boolean})],m.prototype,"primary",void 0),b([o.property({type:Boolean})],m.prototype,"secondary",void 0),b([o.property({type:Boolean})],m.prototype,"unbounded",void 0),b([o.property({type:Boolean})],m.prototype,"activated",void 0),b([o.property({type:Boolean})],m.prototype,"selected",void 0),b([o.property({type:Boolean})],m.prototype,"disabled",void 0),b([o.state()],m.prototype,"hovered",void 0),b([o.state()],m.prototype,"focused",void 0),b([o.state()],m.prototype,"pressed",void 0),b([o.state()],m.prototype,"rippling",void 0),b([o.state()],m.prototype,"originX",void 0),b([o.state()],m.prototype,"originY",void 0),b([o.query(".ft-ripple")],m.prototype,"ripple",void 0),b([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const $=window,w=$.trustedTypes,k=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,O="?"+S,C=`<${O}>`,I=document,N=()=>I.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,T="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,M=/>/g,F=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,Z=/"/g,R=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),P=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),D=new WeakMap,K=I.createTreeWalker(I,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=B;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===B?"!--"===a[1]?r=A:void 0!==a[1]?r=M:void 0!==a[2]?(R.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=F):void 0!==a[3]&&(r=F):r===F?">"===a[0]?(r=null!=n?n:B,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?F:'"'===a[3]?Z:_):r===Z||r===_?r=F:r===A||r===M?r=B:(r=F,n=void 0);const f=r===F&&t[i+1].startsWith("/>")?" ":"";s+=r===B?e+C:p>=0?(o.push(l),e.slice(0,p)+z+e.slice(p)+S+f):e+S+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=L(t,i);if(this.el=H.createElement(a,e),K.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=K.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(z)||i.startsWith(S)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+z).split(S),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?Q:"@"===i[1]?tt:X})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(R.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=w?w.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],N()),K.nextNode(),l.push({type:2,index:++n});o.append(t[i],N())}}}else if(8===o.nodeType)if(o.data===O)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)l.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function G(t,i,e=t,o){var n,s,r,l;if(i===P)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=G(t,a._$AS(t,i.values),a,o)),i}class V{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);K.currentNode=n;let s=K.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new q(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new it(s,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=K.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class q{constructor(t,i,e,o){var n;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=G(this,t,i),j(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==P&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new V(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new H(t)),i}T(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new q(this.k(N()),this.k(N()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class X{constructor(t,i,e,o,n){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=G(this,t,i,0),s=!j(t)||t!==this._$AH&&t!==P,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=G(this,o[e+r],i,r),l===P&&(l=this._$AH[r]),s||(s=!j(l)||l!==this._$AH[r]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const J=w?w.emptyScript:"";class Q extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class tt extends X{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=G(this,t,i,0))&&void 0!==e?e:W)===P)return;const o=this._$AH,n=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==W&&(o===W||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const et=$.litHtmlPolyfillSupport;null==et||et(H,q),(null!==(v=$.litHtmlVersions)&&void 0!==v?v:$.litHtmlVersions=[]).push("2.7.3");
|
|
142
142
|
/**
|
|
143
143
|
* @license
|
|
144
144
|
* Copyright 2020 Google LLC
|
|
145
145
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
146
146
|
*/
|
|
147
|
-
const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void 0:t._$litStatic$},st=t=>({_$litStatic$:t,r:ot}),rt=new Map,lt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=nt(s));)a+=n+i[++p],h=!0;p!==o&&l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=rt.get(t))&&(r.raw=r,rt.set(t,i=r)),e=l}return t(i,...e)})(
|
|
147
|
+
const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void 0:t._$litStatic$},st=t=>({_$litStatic$:t,r:ot}),rt=new Map,lt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=nt(s));)a+=n+i[++p],h=!0;p!==o&&l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=rt.get(t))&&(r.raw=r,rt.set(t,i=r)),e=l}return t(i,...e)})(U);var at;!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"}(at||(at={}));const pt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),ht=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ft={fontFamily:ht,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",pt),ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",ft.fontSize,"20px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ft.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ft.letterSpacing,"0.15px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",ft.lineHeight,"1.2"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ft.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",pt),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ft.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ft.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ft.letterSpacing,"0.105px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ft.lineHeight,"1.7"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ft.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",ht),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ft.fontSize,"16px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ft.fontWeight,"600"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ft.letterSpacing,"0.144px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ft.lineHeight,"1.5"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ft.textTransform,"inherit"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",ht),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ft.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ft.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ft.letterSpacing,"0.098px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ft.lineHeight,"1.7"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ft.textTransform,"inherit"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",ht),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ft.fontSize,"16px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ft.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ft.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ft.lineHeight,"1.5"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ft.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",ht),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ft.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ft.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ft.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ft.lineHeight,"1.4"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ft.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",ht),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ft.fontSize,"12px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ft.fontWeight,"normal"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ft.letterSpacing,"0.396px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ft.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ft.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",ht),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ft.fontSize,"10px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ft.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ft.letterSpacing,"0.33px"),ni=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ft.lineHeight,"1.6"),si=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ft.textTransform,"inherit"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",ht),li=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ft.fontSize,"10px"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ft.fontWeight,"normal"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ft.letterSpacing,"1.5px"),hi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ft.lineHeight,"1.6"),fi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ft.textTransform,"uppercase"),di={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",ht),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",ft.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ft.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ft.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",ft.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ft.textTransform,"uppercase")},ci=e.css`
|
|
148
148
|
.ft-typography--title {
|
|
149
149
|
font-family: ${dt};
|
|
150
150
|
font-size: ${ct};
|
|
@@ -167,18 +167,18 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
167
167
|
font-family: ${zt};
|
|
168
168
|
font-size: ${St};
|
|
169
169
|
font-weight: ${Ot};
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
170
|
+
letter-spacing: ${Ct};
|
|
171
|
+
line-height: ${It};
|
|
172
|
+
text-transform: ${Nt};
|
|
173
173
|
}
|
|
174
174
|
`,gi=e.css`
|
|
175
175
|
.ft-typography--subtitle2 {
|
|
176
|
-
font-family: ${
|
|
176
|
+
font-family: ${jt};
|
|
177
177
|
font-size: ${Et};
|
|
178
178
|
font-weight: ${Tt};
|
|
179
179
|
letter-spacing: ${Bt};
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
180
|
+
line-height: ${At};
|
|
181
|
+
text-transform: ${Mt};
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
`,yi=e.css`
|
|
@@ -186,17 +186,17 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
186
186
|
font-family: ${Ft};
|
|
187
187
|
font-size: ${_t};
|
|
188
188
|
font-weight: ${Zt};
|
|
189
|
-
letter-spacing: ${
|
|
190
|
-
line-height: ${
|
|
191
|
-
text-transform: ${
|
|
189
|
+
letter-spacing: ${Rt};
|
|
190
|
+
line-height: ${Ut};
|
|
191
|
+
text-transform: ${Pt};
|
|
192
192
|
}
|
|
193
193
|
`,vi=e.css`
|
|
194
194
|
.ft-typography--body2 {
|
|
195
195
|
font-family: ${Wt};
|
|
196
196
|
font-size: ${Dt};
|
|
197
|
-
font-weight: ${
|
|
197
|
+
font-weight: ${Kt};
|
|
198
198
|
letter-spacing: ${Lt};
|
|
199
|
-
line-height: ${
|
|
199
|
+
line-height: ${Ht};
|
|
200
200
|
text-transform: ${Gt};
|
|
201
201
|
}
|
|
202
202
|
`,bi=e.css`
|
|
@@ -246,7 +246,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
246
246
|
</${st(this.element)}>
|
|
247
247
|
`:lt`
|
|
248
248
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
249
|
-
`}}Si.styles=[ci,ui,xi,gi,yi,vi,bi,mi,$i,wi,ki],zi([o.property()],Si.prototype,"element",void 0),zi([o.property()],Si.prototype,"variant",void 0),i.customElement("ft-typography")(Si);const Oi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),
|
|
249
|
+
`}}Si.styles=[ci,ui,xi,gi,yi,vi,bi,mi,$i,wi,ki],zi([o.property()],Si.prototype,"element",void 0),zi([o.property()],Si.prototype,"variant",void 0),i.customElement("ft-typography")(Si);const Oi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ci=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ii=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),ji=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ei=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ti=e.css`
|
|
250
250
|
.ft-tooltip--container {
|
|
251
251
|
display: block;
|
|
252
252
|
}
|
|
@@ -264,18 +264,18 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
264
264
|
max-width: ${Ei};
|
|
265
265
|
text-align: center;
|
|
266
266
|
padding: ${Oi};
|
|
267
|
-
z-index: ${
|
|
267
|
+
z-index: ${Ni};
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.ft-tooltip--content {
|
|
271
271
|
padding: 4px 8px;
|
|
272
|
-
border-radius: ${
|
|
273
|
-
background-color: ${
|
|
274
|
-
color: ${
|
|
272
|
+
border-radius: ${ji};
|
|
273
|
+
background-color: ${Ii};
|
|
274
|
+
color: ${Ci};
|
|
275
275
|
position: relative;
|
|
276
276
|
word-break: break-word;
|
|
277
277
|
}
|
|
278
|
-
`;var Bi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
278
|
+
`;var Bi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ai extends i.FtLitElement{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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
279
279
|
<div part="container"
|
|
280
280
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
281
281
|
@mouseenter=${this.onHover}
|
|
@@ -293,7 +293,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
293
293
|
</div>
|
|
294
294
|
</div>
|
|
295
295
|
</div>
|
|
296
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=s+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=s+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,d=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Ei})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}
|
|
296
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=s+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=s+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,d=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Ei})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}Ai.elementDefinitions={"ft-typography":Si},Ai.styles=Ti,Bi([o.property()],Ai.prototype,"text",void 0),Bi([o.property({type:Boolean})],Ai.prototype,"manual",void 0),Bi([o.property({type:Boolean})],Ai.prototype,"inline",void 0),Bi([o.property({type:Number})],Ai.prototype,"delay",void 0),Bi([o.property()],Ai.prototype,"position",void 0),Bi([o.queryAssignedNodes("",!0)],Ai.prototype,"slotNodes",void 0),Bi([o.query(".ft-tooltip--container")],Ai.prototype,"container",void 0),Bi([o.query(".ft-tooltip")],Ai.prototype,"tooltip",void 0),Bi([o.query(".ft-tooltip--content")],Ai.prototype,"tooltipContent",void 0),Bi([o.state()],Ai.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ai);const Mi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Fi=e.css`
|
|
297
297
|
:host {
|
|
298
298
|
line-height: 0;
|
|
299
299
|
}
|
|
@@ -302,8 +302,8 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
302
302
|
display: inline-block;
|
|
303
303
|
position: relative;
|
|
304
304
|
|
|
305
|
-
width: ${
|
|
306
|
-
height: ${
|
|
305
|
+
width: ${Mi.size};
|
|
306
|
+
height: ${Mi.size};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.ft-loader div {
|
|
@@ -312,7 +312,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
312
312
|
width: 25%;
|
|
313
313
|
height: 25%;
|
|
314
314
|
border-radius: 50%;
|
|
315
|
-
background: ${
|
|
315
|
+
background: ${Mi.color};
|
|
316
316
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -359,7 +359,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
359
359
|
transform: translate(0, 0);
|
|
360
360
|
}
|
|
361
361
|
100% {
|
|
362
|
-
transform: translate(calc(0.35 * ${
|
|
362
|
+
transform: translate(calc(0.35 * ${Mi.size}), 0);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
`;class _i extends i.FtLitElement{render(){return e.html`
|
|
@@ -369,7 +369,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
369
369
|
<div></div>
|
|
370
370
|
<div></div>
|
|
371
371
|
</div>
|
|
372
|
-
`}}var Zi,
|
|
372
|
+
`}}var Zi,Ri;_i.styles=Fi,i.customElement("ft-loader")(_i),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Zi||(Zi={})),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=""}(Ri||(Ri={})),new Map([...["abw"].map((t=>[t,Ri.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,Ri.AUDIO])),...["avi"].map((t=>[t,Ri.AVI])),...["chm","xhs"].map((t=>[t,Ri.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,Ri.CODE])),...["csv"].map((t=>[t,Ri.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ri.DITA])),...["epub"].map((t=>[t,Ri.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ri.EXCEL])),...["flac"].map((t=>[t,Ri.FLAC])),...["gif"].map((t=>[t,Ri.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ri.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ri.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,Ri.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ri.JPEG])),...["json"].map((t=>[t,Ri.JSON])),...["m4a","m4p"].map((t=>[t,Ri.M4A])),...["mov","qt"].map((t=>[t,Ri.MOV])),...["mp3"].map((t=>[t,Ri.MP3])),...["mp4","m4v"].map((t=>[t,Ri.MP4])),...["ogg","oga"].map((t=>[t,Ri.OGG])),...["pdf","ps"].map((t=>[t,Ri.PDF])),...["png"].map((t=>[t,Ri.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ri.POWERPOINT])),...["rar"].map((t=>[t,Ri.RAR])),...["stp"].map((t=>[t,Ri.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ri.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,Ri.VIDEO])),...["wav"].map((t=>[t,Ri.WAV])),...["wma"].map((t=>[t,Ri.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ri.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ri.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ri.YAML])),...["zip"].map((t=>[t,Ri.ZIP]))]);const Ui={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pi=e.css`
|
|
373
373
|
:host, i.ft-icon {
|
|
374
374
|
display: inline-flex;
|
|
375
375
|
align-items: center;
|
|
@@ -378,14 +378,14 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
:host {
|
|
381
|
-
width: ${
|
|
382
|
-
height: ${
|
|
381
|
+
width: ${Ui.size};
|
|
382
|
+
height: ${Ui.size};
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
i.ft-icon {
|
|
386
386
|
width: 100%;
|
|
387
387
|
height: 100%;
|
|
388
|
-
font-size: ${
|
|
388
|
+
font-size: ${Ui.size};
|
|
389
389
|
line-height: 1;
|
|
390
390
|
font-weight: normal;
|
|
391
391
|
text-transform: none;
|
|
@@ -396,33 +396,33 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
396
396
|
text-rendering: auto;
|
|
397
397
|
-webkit-font-smoothing: antialiased;
|
|
398
398
|
-moz-osx-font-smoothing: grayscale;
|
|
399
|
-
vertical-align: ${
|
|
399
|
+
vertical-align: ${Ui.verticalAlign};
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
i.ft-icon.ft-icon--fluid-topics {
|
|
403
|
-
font-family: ${
|
|
403
|
+
font-family: ${Ui.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
404
404
|
|
|
405
405
|
/* Ugly fix because font is broken */
|
|
406
|
-
font-size: calc(0.75 * ${
|
|
407
|
-
line-height: ${
|
|
406
|
+
font-size: calc(0.75 * ${Ui.size});
|
|
407
|
+
line-height: ${Ui.size};
|
|
408
408
|
position: relative;
|
|
409
409
|
top: -4%;
|
|
410
410
|
justify-content: center;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
.ft-icon--file-format {
|
|
414
|
-
font-family: ${
|
|
414
|
+
font-family: ${Ui.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
.ft-icon--material {
|
|
418
|
-
font-family: ${
|
|
418
|
+
font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
|
|
419
419
|
}
|
|
420
|
-
`;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Di=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
420
|
+
`;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Di=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ki extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Wi).includes(this.variant)?this.variant:Wi.fluid_topics,i=t!==Wi.material||!!this.value;return e.html`
|
|
421
421
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
422
422
|
${s.unsafeHTML(this.resolvedIcon)}
|
|
423
423
|
<slot ?hidden=${i}></slot>
|
|
424
424
|
</i>
|
|
425
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=
|
|
425
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Ri[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Wi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Zi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ki.elementDefinitions={},Ki.styles=Pi,Di([o.property()],Ki.prototype,"variant",void 0),Di([o.property()],Ki.prototype,"value",void 0),Di([o.state()],Ki.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Ki.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ki);const Li=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Li,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",di.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Li),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Gi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Vi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Gi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Gi)},qi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Xi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Yi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ji=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Qi=[e.css`
|
|
426
426
|
:host {
|
|
427
427
|
display: inline-block;
|
|
428
428
|
max-width: 100%;
|
|
@@ -433,7 +433,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
433
433
|
box-shadow: 0px 0px 0px transparent;
|
|
434
434
|
border: 0px solid transparent;
|
|
435
435
|
text-shadow: 0px 0px 0px transparent;
|
|
436
|
-
font-size: ${
|
|
436
|
+
font-size: ${Hi.fontSize};
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
button:hover {
|
|
@@ -462,21 +462,21 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
462
462
|
border: none;
|
|
463
463
|
pointer-events: auto;
|
|
464
464
|
|
|
465
|
-
--ft-button-internal-line-height: max(calc(${
|
|
466
|
-
--ft-button-internal-color: ${
|
|
467
|
-
${i.setVariable(
|
|
468
|
-
${i.setVariable(h.color,
|
|
465
|
+
--ft-button-internal-line-height: max(calc(${Hi.fontSize} + 2px), ${Hi.iconSize});
|
|
466
|
+
--ft-button-internal-color: ${Hi.color};
|
|
467
|
+
${i.setVariable(Ui.size,Hi.iconSize)};
|
|
468
|
+
${i.setVariable(h.color,Hi.rippleColor)};
|
|
469
469
|
|
|
470
|
-
border-radius: ${
|
|
471
|
-
padding: ${
|
|
472
|
-
background-color: ${
|
|
470
|
+
border-radius: ${Hi.borderRadius};
|
|
471
|
+
padding: ${Hi.verticalPadding} ${Hi.horizontalPadding};
|
|
472
|
+
background-color: ${Hi.backgroundColor};
|
|
473
473
|
color: var(--ft-button-internal-color);
|
|
474
474
|
-webkit-mask-image: radial-gradient(white, black);
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
.ft-button.ft-button--outlined {
|
|
478
478
|
border: 1px solid var(--ft-button-internal-color);
|
|
479
|
-
padding: calc(${
|
|
479
|
+
padding: calc(${Hi.verticalPadding} - 1px) calc(${Hi.horizontalPadding} - 1px);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-button.ft-button--dense {
|
|
@@ -494,7 +494,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
.ft-button--round {
|
|
497
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
497
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Hi.verticalPadding});
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
.ft-button--round.ft-button--dense {
|
|
@@ -503,7 +503,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
503
503
|
|
|
504
504
|
.ft-button[disabled] {
|
|
505
505
|
filter: grayscale(1);
|
|
506
|
-
opacity: ${
|
|
506
|
+
opacity: ${Hi.opacityDisabled};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-button.ft-button--primary {
|
|
@@ -522,7 +522,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
522
522
|
white-space: nowrap;
|
|
523
523
|
text-overflow: ellipsis;
|
|
524
524
|
display: block;
|
|
525
|
-
margin: 0 ${
|
|
525
|
+
margin: 0 ${Hi.iconPadding};
|
|
526
526
|
${i.setVariable(di.fontSize,"1em")};
|
|
527
527
|
${i.setVariable(di.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
528
528
|
}
|
|
@@ -541,8 +541,8 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-button--label[hidden] + ft-icon {
|
|
544
|
-
margin: 0 calc(${
|
|
545
|
-
padding: 0 ${
|
|
544
|
+
margin: 0 calc(${Hi.horizontalPadding} * -1);
|
|
545
|
+
padding: 0 ${Hi.verticalPadding};
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
@@ -556,10 +556,10 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
ft-loader {
|
|
559
|
-
${i.setVariable(
|
|
560
|
-
${i.setVariable(
|
|
559
|
+
${i.setVariable(Mi.size,Hi.iconSize)};
|
|
560
|
+
${i.setVariable(Mi.color,"var(--ft-button-internal-color)")};
|
|
561
561
|
}
|
|
562
|
-
`,i.noTextSelect];var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
562
|
+
`,i.noTextSelect];var te,ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ee extends i.FtLitElement{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(e.html`
|
|
563
563
|
<button part="button"
|
|
564
564
|
class="${n.classMap(t)}"
|
|
565
565
|
aria-label="${this.getLabel()}"
|
|
@@ -582,13 +582,13 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
582
582
|
</ft-tooltip>
|
|
583
583
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
584
584
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
585
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}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}}
|
|
585
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}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}}ee.elementDefinitions={"ft-ripple":m,"ft-tooltip":Ai,"ft-typography":Si,"ft-icon":Ki,"ft-loader":_i},ee.styles=[i.safariEllipsisFix,Qi],ie([o.property({type:String,reflect:!0})],ee.prototype,"role",void 0),ie([o.property({type:Boolean})],ee.prototype,"primary",void 0),ie([o.property({type:Boolean})],ee.prototype,"outlined",void 0),ie([o.property({type:Boolean})],ee.prototype,"disabled",void 0),ie([o.property({type:Boolean})],ee.prototype,"dense",void 0),ie([o.property({type:Boolean})],ee.prototype,"round",void 0),ie([o.property()],ee.prototype,"label",void 0),ie([o.property()],ee.prototype,"icon",void 0),ie([o.property()],ee.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),ie([o.property({type:Boolean})],ee.prototype,"loading",void 0),ie([o.property()],ee.prototype,"tooltipPosition",void 0),ie([o.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),ie([o.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),ie([o.query(".ft-button")],ee.prototype,"button",void 0),ie([o.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0),i.customElement("ft-button")(ee),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(te||(te={}));var oe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ne extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const se=Symbol("registerInterval");class re extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[se]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[se]):this.dispatchEvent(new ne)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=se,oe([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var le=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ae extends re{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let i=n.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
|
|
586
586
|
<a class=${i}
|
|
587
587
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
588
588
|
@click=${t=>this.onLinkClick(t)}>
|
|
589
589
|
<slot></slot>
|
|
590
590
|
</a>
|
|
591
|
-
`}onLinkClick(t){var i;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(i=this.stateManager)||void 0===i||i.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}
|
|
591
|
+
`}onLinkClick(t){var i;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(i=this.stateManager)||void 0===i||i.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}ae.styles=l,le([o.property()],ae.prototype,"tocId",void 0),le([o.property()],ae.prototype,"section",void 0),le([o.property({type:Number})],ae.prototype,"pageNumber",void 0),le([o.property({type:Boolean})],ae.prototype,"removeStyle",void 0),i.customElement("ft-reader-internal-link")(ae);var pe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class he extends re{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new i.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Zi.THIN_ARROW_RIGHT:Zi.THIN_ARROW_LEFT}render(){var t,i,o,n,s;if(null==this.targetPage&&!this.editorMode)return e.nothing;const r=e.html`
|
|
592
592
|
<ft-button ?forceTooltip=${!this.hideTooltip}
|
|
593
593
|
?hideTooltip=${this.hideTooltip}
|
|
594
594
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -602,4 +602,4 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
602
602
|
<ft-reader-internal-link .tocId=${null===(s=this.targetPage)||void 0===s?void 0:s.rootTocId} removestyle>
|
|
603
603
|
${r}
|
|
604
604
|
</ft-reader-internal-link>
|
|
605
|
-
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,i;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(i=this.targetPage)||void 0===i?void 0:i.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}
|
|
605
|
+
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,i;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(i=this.targetPage)||void 0===i?void 0:i.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}he.elementDefinitions={"ft-button":ee,"ft-reader-internal-link":ae},he.styles=a,pe([o.property()],he.prototype,"target",void 0),pe([o.property()],he.prototype,"content",void 0),pe([o.property()],he.prototype,"tooltipPosition",void 0),pe([o.property({type:Boolean})],he.prototype,"hideTooltip",void 0),pe([o.property()],he.prototype,"iconVariant",void 0),pe([o.property()],he.prototype,"icon",void 0),pe([o.property({type:Boolean})],he.prototype,"trailingIcon",void 0),pe([o.property({type:Boolean,attribute:!1})],he.prototype,"editorMode",void 0),pe([i.redux()],he.prototype,"currentPage",void 0),pe([o.state()],he.prototype,"targetPage",void 0),i.customElement("ft-reader-navigation-button")(he),t.FtReaderNavigationButton=he,t.FtReaderNavigationButtonCssVariables={},t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -56,13 +56,13 @@ const p=window,d=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var M;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const R=window,
|
|
59
|
+
var M;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const R=window,F=R.trustedTypes,U=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,T="?"+z,B=`<${T}>`,A=document,P=()=>A.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,_="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Y=new WeakMap,Q=A.createTreeWalker(A,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=D;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===D?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=K):void 0!==l[3]&&(s=K):s===K?">"===l[0]?(s=null!=n?n:D,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?K:'"'===l[3]?V:Z):s===V||s===Z?s=K:s===W||s===H?s=D:(s=K,n=void 0);const p=s===K&&t[e+1].startsWith("/>")?" ":"";r+=s===D?i+B:h>=0?(o.push(a),i.slice(0,h)+j+i.slice(h)+z+p):i+z+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(j)||e.startsWith(z)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+j).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?lt:"@"===e[1]?ht:rt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===T)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)a.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var n,r,s,a;if(e===X)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=L(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,o)),e}class ot{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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new nt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ct(r,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}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 nt{constructor(t,e,i,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=it(this,t,e),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new ot(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new et(t)),e}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new nt(this.k(P()),this.k(P()),this,this.options)):i=e[o],i._$AI(n),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 rt{constructor(t,e,i,o,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=it(this,t,e,0),r=!L(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=it(this,o[i+s],e,s),a===X&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=F?F.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:G)===X)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==G&&(o===G||n);n&&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 ct{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){it(this,t)}}const pt=R.litHtmlPolyfillSupport;null==pt||pt(et,nt),(null!==(M=R.litHtmlVersions)&&void 0!==M?M:R.litHtmlVersions=[]).push("2.7.3");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new nt(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 X}};ut.finalized=!0,ut._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>b(null!=t?t:i),n=y`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=y`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):b(null!=e?e:t.defaultValue),o=y`var(${b(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${b(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 yt(t,e){return b(`${t.name}: ${e}`)}const xt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{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 x(i,t.elementStyles),i}}var mt,wt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const $t=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new e(5),this[Ot]=this.constructor.name,this[$t]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[$t])}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[St].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,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}mt=St,wt([o()],kt.prototype,"exportpartsPrefix",void 0),wt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),wt([o()],kt.prototype,"customStylesheet",void 0);const Ct=y`
|
|
65
|
+
var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new nt(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 X}};ut.finalized=!0,ut._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>b(null!=t?t:i),n=y`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=y`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):b(null!=e?e:t.defaultValue),o=y`var(${b(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${b(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 yt(t,e){return b(`${t.name}: ${e}`)}const xt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{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 x(i,t.elementStyles),i}}var mt,wt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const $t=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new e(5),this[Ot]=this.constructor.name,this[$t]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[$t])}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[St].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,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}mt=St,wt([o()],kt.prototype,"exportpartsPrefix",void 0),wt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),wt([o()],kt.prototype,"customStylesheet",void 0);const Ct=y`
|
|
66
66
|
.ft-no-text-select {
|
|
67
67
|
-webkit-touch-callout: none;
|
|
68
68
|
-webkit-user-select: none;
|
|
@@ -94,7 +94,7 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
width: 0;
|
|
96
96
|
}
|
|
97
|
-
`;function Et(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Mt,Rt,
|
|
97
|
+
`;function Et(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Mt,Rt,Ft;const Ut=Symbol("internalReduxEventsUnsubscribers"),jt=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores");class Tt extends kt{constructor(){super(...arguments),this[Mt]=new Map,this[Rt]=new Map,this[Ft]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[zt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Et(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[zt].delete(e)}setupStore(t,e){this[zt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[zt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[jt].has(t.store):this[jt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[jt].set(t,e.subscribe((()=>this.updateFromStores()))),Et(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Ut].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[jt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ut].forEach((t=>t())),this[Ut]=[]}unsubscribeFromStore(t){this[jt].has(t)&&this[jt].get(t)(),this[jt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Mt=jt,Rt=zt,Ft=Ut,window.ftReduxStores||(window.ftReduxStores={});var Bt,At,Pt;const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Pt=null===(At=null===(Bt=window.safari)||void 0===Bt?void 0:Bt.pushNotification)||void 0===At?void 0:At.toString())&&void 0!==Pt?Pt:""),It={outlineColor:bt.extend("--ft-reader-internal-link-outline-color",xt.colorPrimary)},_t=y`
|
|
98
98
|
:host {
|
|
99
99
|
display: contents;
|
|
100
100
|
}
|
|
@@ -121,7 +121,7 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
121
121
|
* @license
|
|
122
122
|
* Copyright 2018 Google LLC
|
|
123
123
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
-
*/const Vt=Kt(class extends Zt{constructor(t){var e;if(super(t),t.type!==Wt||"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 n=t.element.classList;this.it.forEach((t=>{t in e||(n.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?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Jt=bt.extend("--ft-ripple-color",xt.colorContent),qt={color:Jt,backgroundColor:bt.extend("--ft-ripple-background-color",Jt),opacityContentOnSurfacePressed:bt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(xt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Xt=bt.extend("--ft-ripple-color",xt.colorPrimary),
|
|
124
|
+
*/const Vt=Kt(class extends Zt{constructor(t){var e;if(super(t),t.type!==Wt||"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 n=t.element.classList;this.it.forEach((t=>{t in e||(n.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?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Jt=bt.extend("--ft-ripple-color",xt.colorContent),qt={color:Jt,backgroundColor:bt.extend("--ft-ripple-background-color",Jt),opacityContentOnSurfacePressed:bt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(xt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Xt=bt.extend("--ft-ripple-color",xt.colorPrimary),Gt=Xt,Yt=bt.extend("--ft-ripple-background-color",Xt),Qt=bt.extend("--ft-ripple-color",xt.colorSecondary),te=Qt,ee=bt.extend("--ft-ripple-background-color",Qt),ie=y`
|
|
125
125
|
:host {
|
|
126
126
|
display: contents;
|
|
127
127
|
}
|
|
@@ -184,11 +184,11 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
187
|
-
background-color: ${
|
|
187
|
+
background-color: ${Yt};
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
191
|
-
background-color: ${
|
|
191
|
+
background-color: ${Gt};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.ft-ripple .ft-ripple--background {
|
|
@@ -250,7 +250,7 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
250
250
|
* Copyright 2020 Google LLC
|
|
251
251
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
252
252
|
*/
|
|
253
|
-
const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void 0:t._$litStatic$},ae=t=>({_$litStatic$:t,r:re}),le=new Map,he=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=se(r));)l+=n+e[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=le.get(t))&&(s.raw=s,le.set(t,e=s)),i=a}return t(e,...i)})(q);var ce;!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"}(ce||(ce={}));const pe=bt.extend("--ft-typography-font-family",xt.titleFont),de=bt.extend("--ft-typography-font-family",xt.contentFont),fe={fontFamily:de,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ue=bt.extend("--ft-typography-title-font-family",pe),ve=bt.extend("--ft-typography-title-font-size",fe.fontSize,"20px"),be=bt.extend("--ft-typography-title-font-weight",fe.fontWeight,"normal"),ye=bt.extend("--ft-typography-title-letter-spacing",fe.letterSpacing,"0.15px"),xe=bt.extend("--ft-typography-title-line-height",fe.lineHeight,"1.2"),ge=bt.extend("--ft-typography-title-text-transform",fe.textTransform,"inherit"),me=bt.extend("--ft-typography-title-dense-font-family",pe),we=bt.extend("--ft-typography-title-dense-font-size",fe.fontSize,"14px"),$e=bt.extend("--ft-typography-title-dense-font-weight",fe.fontWeight,"normal"),Oe=bt.extend("--ft-typography-title-dense-letter-spacing",fe.letterSpacing,"0.105px"),Se=bt.extend("--ft-typography-title-dense-line-height",fe.lineHeight,"1.7"),ke=bt.extend("--ft-typography-title-dense-text-transform",fe.textTransform,"inherit"),Ce=bt.extend("--ft-typography-subtitle1-font-family",de),Ne=bt.extend("--ft-typography-subtitle1-font-size",fe.fontSize,"16px"),Ee=bt.extend("--ft-typography-subtitle1-font-weight",fe.fontWeight,"600"),Me=bt.extend("--ft-typography-subtitle1-letter-spacing",fe.letterSpacing,"0.144px"),Re=bt.extend("--ft-typography-subtitle1-line-height",fe.lineHeight,"1.5"),
|
|
253
|
+
const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void 0:t._$litStatic$},ae=t=>({_$litStatic$:t,r:re}),le=new Map,he=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=se(r));)l+=n+e[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=le.get(t))&&(s.raw=s,le.set(t,e=s)),i=a}return t(e,...i)})(q);var ce;!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"}(ce||(ce={}));const pe=bt.extend("--ft-typography-font-family",xt.titleFont),de=bt.extend("--ft-typography-font-family",xt.contentFont),fe={fontFamily:de,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ue=bt.extend("--ft-typography-title-font-family",pe),ve=bt.extend("--ft-typography-title-font-size",fe.fontSize,"20px"),be=bt.extend("--ft-typography-title-font-weight",fe.fontWeight,"normal"),ye=bt.extend("--ft-typography-title-letter-spacing",fe.letterSpacing,"0.15px"),xe=bt.extend("--ft-typography-title-line-height",fe.lineHeight,"1.2"),ge=bt.extend("--ft-typography-title-text-transform",fe.textTransform,"inherit"),me=bt.extend("--ft-typography-title-dense-font-family",pe),we=bt.extend("--ft-typography-title-dense-font-size",fe.fontSize,"14px"),$e=bt.extend("--ft-typography-title-dense-font-weight",fe.fontWeight,"normal"),Oe=bt.extend("--ft-typography-title-dense-letter-spacing",fe.letterSpacing,"0.105px"),Se=bt.extend("--ft-typography-title-dense-line-height",fe.lineHeight,"1.7"),ke=bt.extend("--ft-typography-title-dense-text-transform",fe.textTransform,"inherit"),Ce=bt.extend("--ft-typography-subtitle1-font-family",de),Ne=bt.extend("--ft-typography-subtitle1-font-size",fe.fontSize,"16px"),Ee=bt.extend("--ft-typography-subtitle1-font-weight",fe.fontWeight,"600"),Me=bt.extend("--ft-typography-subtitle1-letter-spacing",fe.letterSpacing,"0.144px"),Re=bt.extend("--ft-typography-subtitle1-line-height",fe.lineHeight,"1.5"),Fe=bt.extend("--ft-typography-subtitle1-text-transform",fe.textTransform,"inherit"),Ue=bt.extend("--ft-typography-subtitle2-font-family",de),je=bt.extend("--ft-typography-subtitle2-font-size",fe.fontSize,"14px"),ze=bt.extend("--ft-typography-subtitle2-font-weight",fe.fontWeight,"normal"),Te=bt.extend("--ft-typography-subtitle2-letter-spacing",fe.letterSpacing,"0.098px"),Be=bt.extend("--ft-typography-subtitle2-line-height",fe.lineHeight,"1.7"),Ae=bt.extend("--ft-typography-subtitle2-text-transform",fe.textTransform,"inherit"),Pe=bt.extend("--ft-typography-body1-font-family",de),Le=bt.extend("--ft-typography-body1-font-size",fe.fontSize,"16px"),Ie=bt.extend("--ft-typography-body1-font-weight",fe.fontWeight,"normal"),_e=bt.extend("--ft-typography-body1-letter-spacing",fe.letterSpacing,"0.496px"),De=bt.extend("--ft-typography-body1-line-height",fe.lineHeight,"1.5"),We=bt.extend("--ft-typography-body1-text-transform",fe.textTransform,"inherit"),He=bt.extend("--ft-typography-body2-font-family",de),Ke=bt.extend("--ft-typography-body2-font-size",fe.fontSize,"14px"),Ze=bt.extend("--ft-typography-body2-font-weight",fe.fontWeight,"normal"),Ve=bt.extend("--ft-typography-body2-letter-spacing",fe.letterSpacing,"0.252px"),Je=bt.extend("--ft-typography-body2-line-height",fe.lineHeight,"1.4"),qe=bt.extend("--ft-typography-body2-text-transform",fe.textTransform,"inherit"),Xe=bt.extend("--ft-typography-caption-font-family",de),Ge=bt.extend("--ft-typography-caption-font-size",fe.fontSize,"12px"),Ye=bt.extend("--ft-typography-caption-font-weight",fe.fontWeight,"normal"),Qe=bt.extend("--ft-typography-caption-letter-spacing",fe.letterSpacing,"0.396px"),ti=bt.extend("--ft-typography-caption-line-height",fe.lineHeight,"1.33"),ei=bt.extend("--ft-typography-caption-text-transform",fe.textTransform,"inherit"),ii=bt.extend("--ft-typography-breadcrumb-font-family",de),oi=bt.extend("--ft-typography-breadcrumb-font-size",fe.fontSize,"10px"),ni=bt.extend("--ft-typography-breadcrumb-font-weight",fe.fontWeight,"normal"),ri=bt.extend("--ft-typography-breadcrumb-letter-spacing",fe.letterSpacing,"0.33px"),si=bt.extend("--ft-typography-breadcrumb-line-height",fe.lineHeight,"1.6"),ai=bt.extend("--ft-typography-breadcrumb-text-transform",fe.textTransform,"inherit"),li=bt.extend("--ft-typography-overline-font-family",de),hi=bt.extend("--ft-typography-overline-font-size",fe.fontSize,"10px"),ci=bt.extend("--ft-typography-overline-font-weight",fe.fontWeight,"normal"),pi=bt.extend("--ft-typography-overline-letter-spacing",fe.letterSpacing,"1.5px"),di=bt.extend("--ft-typography-overline-line-height",fe.lineHeight,"1.6"),fi=bt.extend("--ft-typography-overline-text-transform",fe.textTransform,"uppercase"),ui={fontFamily:bt.extend("--ft-typography-button-font-family",de),fontSize:bt.extend("--ft-typography-button-font-size",fe.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",fe.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",fe.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",fe.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",fe.textTransform,"uppercase")},vi=y`
|
|
254
254
|
.ft-typography--title {
|
|
255
255
|
font-family: ${ue};
|
|
256
256
|
font-size: ${ve};
|
|
@@ -275,21 +275,21 @@ const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void
|
|
|
275
275
|
font-weight: ${Ee};
|
|
276
276
|
letter-spacing: ${Me};
|
|
277
277
|
line-height: ${Re};
|
|
278
|
-
text-transform: ${
|
|
278
|
+
text-transform: ${Fe};
|
|
279
279
|
}
|
|
280
280
|
`,xi=y`
|
|
281
281
|
.ft-typography--subtitle2 {
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
282
|
+
font-family: ${Ue};
|
|
283
|
+
font-size: ${je};
|
|
284
284
|
font-weight: ${ze};
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
285
|
+
letter-spacing: ${Te};
|
|
286
|
+
line-height: ${Be};
|
|
287
|
+
text-transform: ${Ae};
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
`,gi=y`
|
|
291
291
|
.ft-typography--body1 {
|
|
292
|
-
font-family: ${
|
|
292
|
+
font-family: ${Pe};
|
|
293
293
|
font-size: ${Le};
|
|
294
294
|
font-weight: ${Ie};
|
|
295
295
|
letter-spacing: ${_e};
|
|
@@ -308,8 +308,8 @@ const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void
|
|
|
308
308
|
`,wi=y`
|
|
309
309
|
.ft-typography--caption {
|
|
310
310
|
font-family: ${Xe};
|
|
311
|
-
font-size: ${
|
|
312
|
-
font-weight: ${
|
|
311
|
+
font-size: ${Ge};
|
|
312
|
+
font-weight: ${Ye};
|
|
313
313
|
letter-spacing: ${Qe};
|
|
314
314
|
line-height: ${ti};
|
|
315
315
|
text-transform: ${ei};
|
|
@@ -352,7 +352,7 @@ const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void
|
|
|
352
352
|
</${ae(this.element)}>
|
|
353
353
|
`:he`
|
|
354
354
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
355
|
-
`}}Ni.styles=[vi,bi,yi,xi,gi,mi,wi,$i,Oi,Si,ki],Ci([o()],Ni.prototype,"element",void 0),Ci([o()],Ni.prototype,"variant",void 0),c("ft-typography")(Ni);const Ei=bt.create("--ft-tooltip-distance","SIZE","4px"),Mi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ri=bt.create("--ft-tooltip-background-color","COLOR","#666666"),
|
|
355
|
+
`}}Ni.styles=[vi,bi,yi,xi,gi,mi,wi,$i,Oi,Si,ki],Ci([o()],Ni.prototype,"element",void 0),Ci([o()],Ni.prototype,"variant",void 0),c("ft-typography")(Ni);const Ei=bt.create("--ft-tooltip-distance","SIZE","4px"),Mi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ri=bt.create("--ft-tooltip-background-color","COLOR","#666666"),Fi=bt.create("--ft-tooltip-z-index","NUMBER","100"),Ui=bt.external(xt.borderRadiusS,"Design system"),ji=bt.create("--ft-tooltip-max-width","SIZE","150px"),zi=y`
|
|
356
356
|
.ft-tooltip--container {
|
|
357
357
|
display: block;
|
|
358
358
|
}
|
|
@@ -367,21 +367,21 @@ const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void
|
|
|
367
367
|
box-sizing: border-box;
|
|
368
368
|
overflow: hidden;
|
|
369
369
|
width: max-content;
|
|
370
|
-
max-width: ${
|
|
370
|
+
max-width: ${ji};
|
|
371
371
|
text-align: center;
|
|
372
372
|
padding: ${Ei};
|
|
373
|
-
z-index: ${
|
|
373
|
+
z-index: ${Fi};
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
.ft-tooltip--content {
|
|
377
377
|
padding: 4px 8px;
|
|
378
|
-
border-radius: ${
|
|
378
|
+
border-radius: ${Ui};
|
|
379
379
|
background-color: ${Ri};
|
|
380
380
|
color: ${Mi};
|
|
381
381
|
position: relative;
|
|
382
382
|
word-break: break-word;
|
|
383
383
|
}
|
|
384
|
-
`;var
|
|
384
|
+
`;var Ti=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bi extends kt{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 q`
|
|
385
385
|
<div part="container"
|
|
386
386
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
387
387
|
@mouseenter=${this.onHover}
|
|
@@ -399,13 +399,13 @@ const re=Symbol.for(""),se=t=>{if((null==t?void 0:t.r)===re)return null==t?void
|
|
|
399
399
|
</div>
|
|
400
400
|
</div>
|
|
401
401
|
</div>
|
|
402
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,n=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,d=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(p,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${
|
|
402
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,n=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,d=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(p,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ji})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Bi.elementDefinitions={"ft-typography":Ni},Bi.styles=zi,Ti([o()],Bi.prototype,"text",void 0),Ti([o({type:Boolean})],Bi.prototype,"manual",void 0),Ti([o({type:Boolean})],Bi.prototype,"inline",void 0),Ti([o({type:Number})],Bi.prototype,"delay",void 0),Ti([o()],Bi.prototype,"position",void 0),Ti([
|
|
403
403
|
/**
|
|
404
404
|
* @license
|
|
405
405
|
* Copyright 2017 Google LLC
|
|
406
406
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
407
407
|
*/
|
|
408
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
408
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Bi.prototype,"slotNodes",void 0),Ti([s(".ft-tooltip--container")],Bi.prototype,"container",void 0),Ti([s(".ft-tooltip")],Bi.prototype,"tooltip",void 0),Ti([s(".ft-tooltip--content")],Bi.prototype,"tooltipContent",void 0),Ti([n()],Bi.prototype,"visible",void 0),c("ft-tooltip")(Bi);const Ai={color:bt.extend("--ft-loader-color",xt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Pi=y`
|
|
409
409
|
:host {
|
|
410
410
|
line-height: 0;
|
|
411
411
|
}
|
|
@@ -414,8 +414,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
414
414
|
display: inline-block;
|
|
415
415
|
position: relative;
|
|
416
416
|
|
|
417
|
-
width: ${
|
|
418
|
-
height: ${
|
|
417
|
+
width: ${Ai.size};
|
|
418
|
+
height: ${Ai.size};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.ft-loader div {
|
|
@@ -424,7 +424,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
424
424
|
width: 25%;
|
|
425
425
|
height: 25%;
|
|
426
426
|
border-radius: 50%;
|
|
427
|
-
background: ${
|
|
427
|
+
background: ${Ai.color};
|
|
428
428
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
429
429
|
}
|
|
430
430
|
|
|
@@ -471,7 +471,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
471
471
|
transform: translate(0, 0);
|
|
472
472
|
}
|
|
473
473
|
100% {
|
|
474
|
-
transform: translate(calc(0.35 * ${
|
|
474
|
+
transform: translate(calc(0.35 * ${Ai.size}), 0);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
`;class Li extends kt{render(){return q`
|
|
@@ -481,13 +481,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
481
481
|
<div></div>
|
|
482
482
|
<div></div>
|
|
483
483
|
</div>
|
|
484
|
-
`}}Li.styles=
|
|
484
|
+
`}}Li.styles=Pi,c("ft-loader")(Li);
|
|
485
485
|
/**
|
|
486
486
|
* @license
|
|
487
487
|
* Copyright 2017 Google LLC
|
|
488
488
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
489
489
|
*/
|
|
490
|
-
class Ii extends Zt{constructor(t){if(super(t),this.et=
|
|
490
|
+
class Ii extends Zt{constructor(t){if(super(t),this.et=G,t.type!==Ht)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===X)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:[]}}}Ii.directiveName="unsafeHTML",Ii.resultType=1;const _i=Kt(Ii);var Di,Wi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Di||(Di={})),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=""}(Wi||(Wi={})),new Map([...["abw"].map((t=>[t,Wi.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,Wi.AUDIO])),...["avi"].map((t=>[t,Wi.AVI])),...["chm","xhs"].map((t=>[t,Wi.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,Wi.CODE])),...["csv"].map((t=>[t,Wi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Wi.DITA])),...["epub"].map((t=>[t,Wi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Wi.EXCEL])),...["flac"].map((t=>[t,Wi.FLAC])),...["gif"].map((t=>[t,Wi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Wi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Wi.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,Wi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Wi.JPEG])),...["json"].map((t=>[t,Wi.JSON])),...["m4a","m4p"].map((t=>[t,Wi.M4A])),...["mov","qt"].map((t=>[t,Wi.MOV])),...["mp3"].map((t=>[t,Wi.MP3])),...["mp4","m4v"].map((t=>[t,Wi.MP4])),...["ogg","oga"].map((t=>[t,Wi.OGG])),...["pdf","ps"].map((t=>[t,Wi.PDF])),...["png"].map((t=>[t,Wi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Wi.POWERPOINT])),...["rar"].map((t=>[t,Wi.RAR])),...["stp"].map((t=>[t,Wi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Wi.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,Wi.VIDEO])),...["wav"].map((t=>[t,Wi.WAV])),...["wma"].map((t=>[t,Wi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Wi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Wi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Wi.YAML])),...["zip"].map((t=>[t,Wi.ZIP]))]);const Hi={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ki=y`
|
|
491
491
|
:host, i.ft-icon {
|
|
492
492
|
display: inline-flex;
|
|
493
493
|
align-items: center;
|
|
@@ -535,12 +535,12 @@ class Ii extends Zt{constructor(t){if(super(t),this.et=Y,t.type!==Ht)throw Error
|
|
|
535
535
|
.ft-icon--material {
|
|
536
536
|
font-family: ${Hi.materialFontFamily}, "Material Icons", sans-serif;
|
|
537
537
|
}
|
|
538
|
-
`;var Zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zi||(Zi={}));var Vi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ji extends kt{constructor(){super(...arguments),this.resolvedIcon=
|
|
538
|
+
`;var Zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zi||(Zi={}));var Vi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ji extends kt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Zi).includes(this.variant)?this.variant:Zi.fluid_topics,e=t!==Zi.material||!!this.value;return q`
|
|
539
539
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
540
540
|
${_i(this.resolvedIcon)}
|
|
541
541
|
<slot ?hidden=${e}></slot>
|
|
542
542
|
</i>
|
|
543
|
-
`}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 Zi.file_format:this.resolvedIcon=null!==(t=Wi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zi.material:this.resolvedIcon=this.value||
|
|
543
|
+
`}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 Zi.file_format:this.resolvedIcon=null!==(t=Wi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zi.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=Di[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ji.elementDefinitions={},Ji.styles=Ki,Vi([o()],Ji.prototype,"variant",void 0),Vi([o()],Ji.prototype,"value",void 0),Vi([n()],Ji.prototype,"resolvedIcon",void 0),Vi([s("slot")],Ji.prototype,"slottedContent",void 0),c("ft-icon")(Ji);const qi=bt.extend("--ft-button-color",xt.colorPrimary),Xi={backgroundColor:bt.extend("--ft-button-background-color",xt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",xt.borderRadiusL),color:qi,fontSize:bt.extend("--ft-button-font-size",ui.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",qi),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(xt.colorOpacityDisabled,"Design system")},Gi=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",xt.colorOnPrimary)),Yi={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",xt.colorPrimary)),color:Gi,rippleColor:bt.extend("--ft-button-primary-ripple-color",Gi)},Qi=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",xt.borderRadiusM)),to=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),eo=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),io=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),oo=[y`
|
|
544
544
|
:host {
|
|
545
545
|
display: inline-block;
|
|
546
546
|
max-width: 100%;
|
|
@@ -625,9 +625,9 @@ class Ii extends Zt{constructor(t){if(super(t),this.et=Y,t.type!==Ht)throw Error
|
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
.ft-button.ft-button--primary {
|
|
628
|
-
background-color: ${
|
|
629
|
-
--ft-button-internal-color: ${
|
|
630
|
-
${yt(qt.color,
|
|
628
|
+
background-color: ${Yi.backgroundColor};
|
|
629
|
+
--ft-button-internal-color: ${Yi.color};
|
|
630
|
+
${yt(qt.color,Yi.rippleColor)};
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
.ft-button:focus {
|
|
@@ -674,10 +674,10 @@ class Ii extends Zt{constructor(t){if(super(t),this.et=Y,t.type!==Ht)throw Error
|
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
ft-loader {
|
|
677
|
-
${yt(
|
|
678
|
-
${yt(
|
|
677
|
+
${yt(Ai.size,Xi.iconSize)};
|
|
678
|
+
${yt(Ai.color,"var(--ft-button-internal-color)")};
|
|
679
679
|
}
|
|
680
|
-
`,Ct];var no=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class
|
|
680
|
+
`,Ct];var no,ro=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class so extends kt{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(q`
|
|
681
681
|
<button part="button"
|
|
682
682
|
class="${Vt(t)}"
|
|
683
683
|
aria-label="${this.getLabel()}"
|
|
@@ -700,13 +700,13 @@ class Ii extends Zt{constructor(t){if(super(t),this.et=Y,t.type!==Ht)throw Error
|
|
|
700
700
|
</ft-tooltip>
|
|
701
701
|
`:t}resolveIcon(){return this.loading?q`
|
|
702
702
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?q`
|
|
703
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
703
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}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}}so.elementDefinitions={"ft-ripple":ne,"ft-tooltip":Bi,"ft-typography":Ni,"ft-icon":Ji,"ft-loader":Li},so.styles=[Nt,oo],ro([o({type:String,reflect:!0})],so.prototype,"role",void 0),ro([o({type:Boolean})],so.prototype,"primary",void 0),ro([o({type:Boolean})],so.prototype,"outlined",void 0),ro([o({type:Boolean})],so.prototype,"disabled",void 0),ro([o({type:Boolean})],so.prototype,"dense",void 0),ro([o({type:Boolean})],so.prototype,"round",void 0),ro([o()],so.prototype,"label",void 0),ro([o()],so.prototype,"icon",void 0),ro([o()],so.prototype,"iconVariant",void 0),ro([o({type:Boolean})],so.prototype,"trailingIcon",void 0),ro([o({type:Boolean})],so.prototype,"loading",void 0),ro([o()],so.prototype,"tooltipPosition",void 0),ro([o({type:Boolean})],so.prototype,"hideTooltip",void 0),ro([o({type:Boolean})],so.prototype,"forceTooltip",void 0),ro([s(".ft-button")],so.prototype,"button",void 0),ro([s(".ft-button--label slot")],so.prototype,"slottedContent",void 0),c("ft-button")(so),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(no||(no={}));var ao=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lo extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ho=Symbol("registerInterval");class co extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[ho]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ho]):this.dispatchEvent(new lo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ho,ao([n()],i.prototype,"stateManager",void 0),i}(Tt)){}var po=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fo extends co{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Vt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return q`
|
|
704
704
|
<a class=${e}
|
|
705
705
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
706
706
|
@click=${t=>this.onLinkClick(t)}>
|
|
707
707
|
<slot></slot>
|
|
708
708
|
</a>
|
|
709
|
-
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}
|
|
709
|
+
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}fo.styles=_t,po([o()],fo.prototype,"tocId",void 0),po([o()],fo.prototype,"section",void 0),po([o({type:Number})],fo.prototype,"pageNumber",void 0),po([o({type:Boolean})],fo.prototype,"removeStyle",void 0),c("ft-reader-internal-link")(fo);var uo=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vo extends co{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Di.THIN_ARROW_RIGHT:Di.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return G;const r=q`
|
|
710
710
|
<ft-button ?forceTooltip=${!this.hideTooltip}
|
|
711
711
|
?hideTooltip=${this.hideTooltip}
|
|
712
712
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -720,4 +720,4 @@ class Ii extends Zt{constructor(t){if(super(t),this.et=Y,t.type!==Ht)throw Error
|
|
|
720
720
|
<ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
|
|
721
721
|
${r}
|
|
722
722
|
</ft-reader-internal-link>
|
|
723
|
-
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}
|
|
723
|
+
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}vo.elementDefinitions={"ft-button":so,"ft-reader-internal-link":fo},vo.styles=Dt,uo([o()],vo.prototype,"target",void 0),uo([o()],vo.prototype,"content",void 0),uo([o()],vo.prototype,"tooltipPosition",void 0),uo([o({type:Boolean})],vo.prototype,"hideTooltip",void 0),uo([o()],vo.prototype,"iconVariant",void 0),uo([o()],vo.prototype,"icon",void 0),uo([o({type:Boolean})],vo.prototype,"trailingIcon",void 0),uo([o({type:Boolean,attribute:!1})],vo.prototype,"editorMode",void 0),uo([(t=>{const e=null!=t?t:{};return(t,i)=>{var n;const r={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};o(r)(t,i);const s=t;s.reduxProperties=s.reduxProperties||new Map,s.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}})()],vo.prototype,"currentPage",void 0),uo([n()],vo.prototype,"targetPage",void 0),c("ft-reader-navigation-button")(vo),t.FtReaderNavigationButton=vo,t.FtReaderNavigationButtonCssVariables={},t.styles=Dt}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-navigation-button",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.58",
|
|
4
4
|
"description": "Button used to navigate between pages in an integrated reader context.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "1.0.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.0.
|
|
24
|
-
"@fluid-topics/ft-reader-internal-link": "1.0.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-button": "1.0.58",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.0.58",
|
|
24
|
+
"@fluid-topics/ft-reader-internal-link": "1.0.58",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.0.58",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.0.58",
|
|
27
27
|
"lit": "2.7.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "110d1b1f9cb2239c15279f2e89047b028e15ca61"
|
|
30
30
|
}
|