@fluid-topics/ft-accordion 2.1.12 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-accordion.light.js +21 -21
- package/build/ft-accordion.min.js +45 -45
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var jt=Object.create;var He=Object.defineProperty;var Yt=Object.getOwnPropertyDescriptor;var Xt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var te=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(i){throw t=0,i}};var qt=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xt(t))!Jt.call(e,r)&&r!==i&&He(e,r,{get:()=>t[r],enumerable:!(o=Yt(t,r))||o.enumerable});return e};var c=(e,t,i)=>(i=e!=null?jt(Zt(e)):{},qt(t||!e||!e.__esModule?He(i,"default",{value:e,enumerable:!0}):i,e));var A=te((oi,Pe)=>{Pe.exports=ftGlobals.wcUtils});var T=te((ri,De)=>{De.exports=ftGlobals.lit});var K=te((ni,Me)=>{Me.exports=ftGlobals.litDecorators});var Ke=te((si,ze)=>{ze.exports=ftGlobals.litClassMap});var Mt=te((ki,Dt)=>{Dt.exports=ftGlobals.litUnsafeHTML});var kt=c(A());var Ue=c(T()),de=c(K()),Ge=c(A());var we=c(T());var Be=we.css`
|
|
2
2
|
.ft-accordion {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div class="ft-accordion">
|
|
7
7
|
<slot @activated=${this.onChange}></slot>
|
|
8
8
|
</div>
|
|
9
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach(i=>i.active=i===t.target)}};H.elementDefinitions={};H.styles=Be;We([(0,de.property)({type:Boolean})],H.prototype,"multi",void 0);We([(0,de.query)("slot")],H.prototype,"content",void 0);var se=c(T()),fe=c(K()),
|
|
9
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach(i=>i.active=i===t.target)}};H.elementDefinitions={};H.styles=Be;We([(0,de.property)({type:Boolean})],H.prototype,"multi",void 0);We([(0,de.query)("slot")],H.prototype,"content",void 0);var se=c(T()),fe=c(K()),Kt=c(A());var qe=c(T()),_=c(K()),Qe=c(Ke()),ie=c(A());var Ze=c(T()),g=c(A()),Ve=g.FtCssVariableFactory.extend("--ft-ripple-color","",g.designSystemVariables.colorContent),w={color:Ve,backgroundColor:g.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ve),opacityContentOnSurfacePressed:g.FtCssVariableFactory.external(g.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:g.FtCssVariableFactory.external(g.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:g.FtCssVariableFactory.external(g.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:g.FtCssVariableFactory.external(g.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:g.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ke=g.FtCssVariableFactory.extend("--ft-ripple-color","",g.designSystemVariables.colorPrimary),je={color:ke,backgroundColor:g.FtCssVariableFactory.extend("--ft-ripple-background-color","",ke)},Ye=g.FtCssVariableFactory.extend("--ft-ripple-color","",g.designSystemVariables.colorSecondary),Xe={color:Ye,backgroundColor:g.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ye)},Je=Ze.css`
|
|
10
10
|
:host {
|
|
11
11
|
display: contents;
|
|
12
12
|
}
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
<div class="ft-ripple--background"></div>
|
|
130
130
|
<div class="ft-ripple--effect"></div>
|
|
131
131
|
</div>
|
|
132
|
-
`}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,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((i=this.target)!==null&&i!==void 0?i:o)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}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");let i=(...h)=>f=>{h.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(f)},o=i("mouseup","contextmenu"),r=i("touchend","touchcancel"),n=h=>{["Enter"," "].includes(h.key)&&i("keyup")(h)},a={passive:!0};t.addEventListener("mouseover",this.startHover,a),t.addEventListener("mousemove",this.moveRipple,a),t.addEventListener("mouseleave",this.endHover,a),t.addEventListener("mousedown",o,a),t.addEventListener("touchstart",r,a),t.addEventListener("touchmove",this.moveRipple,a),t.addEventListener("keydown",n,a),t.addEventListener("focus",this.startFocus,a),t.addEventListener("blur",this.endFocus,a),t.addEventListener("focusin",this.startFocus,a),t.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,a),t.removeEventListener("mousemove",this.moveRipple,a),t.removeEventListener("mouseleave",this.endHover,a),t.removeEventListener("mousedown",o,a),t.removeEventListener("touchstart",r,a),t.removeEventListener("touchmove",this.moveRipple,a),t.removeEventListener("keydown",n,a),t.removeEventListener("focus",this.startFocus,a),t.removeEventListener("blur",this.endFocus,a),t.removeEventListener("focusin",this.startFocus,a),t.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let i=t,o=t,r,n;return i.x!=null?{x:r,y:n}=i:o.touches!=null&&(r=o.touches[0].clientX,n=o.touches[0].clientY),{x:r,y:n}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)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=Je;v([(0,_.property)({type:Boolean})],m.prototype,"primary",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"secondary",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"unbounded",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"activated",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"selected",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"disabled",void 0);v([(0,_.state)()],m.prototype,"hovered",void 0);v([(0,_.state)()],m.prototype,"focused",void 0);v([(0,_.state)()],m.prototype,"pressed",void 0);v([(0,_.state)()],m.prototype,"rippling",void 0);v([(0,_.state)()],m.prototype,"originX",void 0);v([(0,_.state)()],m.prototype,"originY",void 0);v([(0,_.query)(".ft-ripple")],m.prototype,"ripple",void 0);v([(0,_.query)(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0);var Fe=c(A());var Ie={"ft-ripple":m};(0,Fe.customElements)(Ie);var Te=globalThis,ce=Te.trustedTypes,
|
|
133
|
-
\f\r]`,oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
134
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,lt=/^(?:script|style|textarea|title)$/i,$e=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),st=$e(1),ft=$e(2),ht=$e(3),ne=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),nt=new WeakMap,W=U.createTreeWalker(U,129);function dt(e,t){if(!Oe(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(t):t}var It=(e,t)=>{let i=e.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",a=oe;for(let h=0;h<i;h++){let f=e[h],d,y,x=-1,$=0;for(;$<f.length&&(a.lastIndex=$,y=a.exec(f),y!==null);)$=a.lastIndex,a===oe?y[1]==="!--"?a=tt:y[1]!==void 0?a=it:y[2]!==void 0?(lt.test(y[2])&&(r=RegExp("</"+y[2],"g")),a=B):y[3]!==void 0&&(a=B):a===B?y[0]===">"?(a=r??oe,x=-1):y[1]===void 0?x=-2:(x=a.lastIndex-y[2].length,d=y[1],a=y[3]===void 0?B:y[3]==='"'?rt:ot):a===rt||a===ot?a=B:a===tt||a===it?a=oe:(a=B,r=void 0);let N=a===B&&e[h+1].startsWith("/>")?" ":"";n+=a===oe?f+qt:x>=0?(o.push(d),f.slice(0,x)+at+f.slice(x)+P+N):f+P+(x===-2?h:N)}return[dt(e,n+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},ae=class e{constructor({strings:t,_$litType$:i},o){let r;this.parts=[];let n=0,a=0,h=t.length-1,f=this.parts,[d,y]=It(t,i);if(this.el=e.createElement(d,o),W.currentNode=this.el.content,i===2||i===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(r=W.nextNode())!==null&&f.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(let x of r.getAttributeNames())if(x.endsWith(at)){let $=y[a++],N=r.getAttribute(x).split(P),he=/([.?@])?(.*)/.exec($);f.push({type:1,index:n,name:he[2],strings:N,ctor:he[1]==="."?ve:he[1]==="?"?Ee:he[1]==="@"?be:k}),r.removeAttribute(x)}else x.startsWith(P)&&(f.push({type:6,index:n}),r.removeAttribute(x));if(lt.test(r.tagName)){let x=r.textContent.split(P),$=x.length-1;if($>0){r.textContent=ce?ce.emptyScript:"";for(let N=0;N<$;N++)r.append(x[N],xe()),W.nextNode(),f.push({type:2,index:++n});r.append(x[$],xe())}}}else if(r.nodeType===8)if(r.data===pt)f.push({type:2,index:n});else{let x=-1;for(;(x=r.data.indexOf(P,x+1))!==-1;)f.push({type:7,index:n}),x+=P.length-1}n++}}static createElement(t,i){let o=U.createElement("template");return o.innerHTML=t,o}};function V(e,t,i=e,o){if(t===ne)return t;let r=o!==void 0?i._$Co?.[o]:i._$Cl,n=re(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=r:i._$Cl=r),r!==void 0&&(t=V(e,r._$AS(e,t.values),r,o)),t}var Ae=class{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){let{el:{content:i},parts:o}=this._$AD,r=(t?.creationScope??U).importNode(i,!0);W.currentNode=r;let n=W.nextNode(),a=0,h=0,f=o[0];for(;f!==void 0;){if(a===f.index){let d;f.type===2?d=new me(n,n.nextSibling,this,t):f.type===1?d=new f.ctor(n,f.name,f.strings,this,t):f.type===6&&(d=new Se(n,this,t)),this._$AV.push(d),f=o[++h]}a!==f?.index&&(n=W.nextNode(),a++)}return W.currentNode=U,r}p(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},me=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=V(this,t,i),re(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==ne&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&re(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ae.createElement(dt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(i);else{let n=new Ae(r,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(t){let i=nt.get(t.strings);return i===void 0&&nt.set(t.strings,i=new ae(t)),i}k(t){Oe(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let n of t)r===i.length?i.push(o=new e(this.O(xe()),this.O(xe()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},k=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}_$AI(t,i=this,o,r){let n=this.strings,a=!1;if(n===void 0)t=V(this,t,i,0),a=!re(t)||t!==this._$AH&&t!==ne,a&&(this._$AH=t);else{let h=t,f,d;for(t=n[0],f=0;f<n.length-1;f++)d=V(this,h[o+f],i,f),d===ne&&(d=this._$AH[f]),a||=!re(d)||d!==this._$AH[f],d===u?t=u:t!==u&&(t+=(d??"")+n[f+1]),this._$AH[f]=d}a&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ve=class extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},Ee=class extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},be=class extends k{constructor(t,i,o,r,n){super(t,i,o,r,n),this.type=5}_$AI(t,i=this){if((t=V(this,t,i,0)??u)===ne)return;let o=this._$AH,r=t===u&&o!==u||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==u&&(o===u||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Se=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}};var Ft=Te.litHtmlPolyfillSupport;Ft?.(ae,me),(Te.litHtmlVersions??=[]).push("3.3.0");var xt=Symbol.for(""),ei=e=>{if(e?.r===xt)return e?._$litStatic$},Re=e=>({_$litStatic$:e,r:xt});var ct=new Map,Ce=e=>(t,...i)=>{let o=i.length,r,n,a=[],h=[],f,d=0,y=!1;for(;d<o;){for(f=t[d];d<o&&(n=i[d],(r=ei(n))!==void 0);)f+=r+t[++d],y=!0;d!==o&&h.push(n),a.push(f),d++}if(d===o&&a.push(t[o]),y){let x=a.join("$$lit$$");(t=ct.get(x))===void 0&&(a.raw=a,ct.set(x,t=a)),i=h}return e(t,...i)},Le=Ce(st),Ei=Ce(ft),bi=Ce(ht);var Ne=c(K()),Rt=c(A());var ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(ge||(ge={}));var b=c(T()),l=c(A()),mt=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.titleFont),R=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.contentFont),s={fontFamily:R,fontSize:l.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:l.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:l.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:l.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:l.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},j={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-font-family","",mt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-font-size","",s.fontSize,"20px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",s.letterSpacing,"0.15px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-line-height","",s.lineHeight,"1.2"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",s.textTransform,"inherit")},Y={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",mt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",s.letterSpacing,"0.105px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",s.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",s.textTransform,"inherit")},X={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",s.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",s.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",s.letterSpacing,"0.144px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",s.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",s.textTransform,"inherit")},Z={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",s.letterSpacing,"0.098px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",s.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",s.textTransform,"inherit")},J={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",s.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",s.letterSpacing,"0.496px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",s.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",s.textTransform,"inherit")},q={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",s.letterSpacing,"0.252px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",s.lineHeight,"1.4"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",s.textTransform,"inherit")},Q={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",s.fontSize,"12px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",s.letterSpacing,"0.396px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",s.lineHeight,"1.33"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",s.textTransform,"inherit")},I={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",s.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",s.letterSpacing,"0.33px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",s.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",s.textTransform,"inherit")},F={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",s.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",s.letterSpacing,"1.5px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",s.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",s.textTransform,"uppercase")},ee={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-button-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-button-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",s.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",s.letterSpacing,"1.246px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-button-line-height","",s.lineHeight,"1.15"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",s.textTransform,"uppercase")},gt=b.css`
|
|
132
|
+
`}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,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((i=this.target)!==null&&i!==void 0?i:o)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}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");let i=(...h)=>f=>{h.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(f)},o=i("mouseup","contextmenu"),r=i("touchend","touchcancel"),n=h=>{["Enter"," "].includes(h.key)&&i("keyup")(h)},a={passive:!0};t.addEventListener("mouseover",this.startHover,a),t.addEventListener("mousemove",this.moveRipple,a),t.addEventListener("mouseleave",this.endHover,a),t.addEventListener("mousedown",o,a),t.addEventListener("touchstart",r,a),t.addEventListener("touchmove",this.moveRipple,a),t.addEventListener("keydown",n,a),t.addEventListener("focus",this.startFocus,a),t.addEventListener("blur",this.endFocus,a),t.addEventListener("focusin",this.startFocus,a),t.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,a),t.removeEventListener("mousemove",this.moveRipple,a),t.removeEventListener("mouseleave",this.endHover,a),t.removeEventListener("mousedown",o,a),t.removeEventListener("touchstart",r,a),t.removeEventListener("touchmove",this.moveRipple,a),t.removeEventListener("keydown",n,a),t.removeEventListener("focus",this.startFocus,a),t.removeEventListener("blur",this.endFocus,a),t.removeEventListener("focusin",this.startFocus,a),t.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let i=t,o=t,r,n;return i.x!=null?{x:r,y:n}=i:o.touches!=null&&(r=o.touches[0].clientX,n=o.touches[0].clientY),{x:r,y:n}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)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=Je;v([(0,_.property)({type:Boolean})],m.prototype,"primary",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"secondary",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"unbounded",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"activated",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"selected",void 0);v([(0,_.property)({type:Boolean})],m.prototype,"disabled",void 0);v([(0,_.state)()],m.prototype,"hovered",void 0);v([(0,_.state)()],m.prototype,"focused",void 0);v([(0,_.state)()],m.prototype,"pressed",void 0);v([(0,_.state)()],m.prototype,"rippling",void 0);v([(0,_.state)()],m.prototype,"originX",void 0);v([(0,_.state)()],m.prototype,"originY",void 0);v([(0,_.query)(".ft-ripple")],m.prototype,"ripple",void 0);v([(0,_.query)(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0);var Fe=c(A());var Ie={"ft-ripple":m};(0,Fe.customElements)(Ie);var Te=globalThis,et=e=>e,ce=Te.trustedTypes,tt=ce?ce.createPolicy("lit-html",{createHTML:e=>e}):void 0,pt="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,lt="?"+P,Qt=`<${lt}>`,U=document,xe=()=>U.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",Oe=Array.isArray,It=e=>Oe(e)||typeof e?.[Symbol.iterator]=="function",_e=`[
|
|
133
|
+
\f\r]`,oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,it=/-->/g,ot=/>/g,B=RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
134
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,$e=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),ft=$e(1),ht=$e(2),dt=$e(3),ne=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),at=new WeakMap,W=U.createTreeWalker(U,129);function ct(e,t){if(!Oe(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return tt!==void 0?tt.createHTML(t):t}var Ft=(e,t)=>{let i=e.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",a=oe;for(let h=0;h<i;h++){let f=e[h],d,u,x=-1,$=0;for(;$<f.length&&(a.lastIndex=$,u=a.exec(f),u!==null);)$=a.lastIndex,a===oe?u[1]==="!--"?a=it:u[1]!==void 0?a=ot:u[2]!==void 0?(st.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=B):u[3]!==void 0&&(a=B):a===B?u[0]===">"?(a=r??oe,x=-1):u[1]===void 0?x=-2:(x=a.lastIndex-u[2].length,d=u[1],a=u[3]===void 0?B:u[3]==='"'?nt:rt):a===nt||a===rt?a=B:a===it||a===ot?a=oe:(a=B,r=void 0);let N=a===B&&e[h+1].startsWith("/>")?" ":"";n+=a===oe?f+Qt:x>=0?(o.push(d),f.slice(0,x)+pt+f.slice(x)+P+N):f+P+(x===-2?h:N)}return[ct(e,n+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},ae=class e{constructor({strings:t,_$litType$:i},o){let r;this.parts=[];let n=0,a=0,h=t.length-1,f=this.parts,[d,u]=Ft(t,i);if(this.el=e.createElement(d,o),W.currentNode=this.el.content,i===2||i===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(r=W.nextNode())!==null&&f.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(let x of r.getAttributeNames())if(x.endsWith(pt)){let $=u[a++],N=r.getAttribute(x).split(P),he=/([.?@])?(.*)/.exec($);f.push({type:1,index:n,name:he[2],strings:N,ctor:he[1]==="."?ve:he[1]==="?"?Ee:he[1]==="@"?be:k}),r.removeAttribute(x)}else x.startsWith(P)&&(f.push({type:6,index:n}),r.removeAttribute(x));if(st.test(r.tagName)){let x=r.textContent.split(P),$=x.length-1;if($>0){r.textContent=ce?ce.emptyScript:"";for(let N=0;N<$;N++)r.append(x[N],xe()),W.nextNode(),f.push({type:2,index:++n});r.append(x[$],xe())}}}else if(r.nodeType===8)if(r.data===lt)f.push({type:2,index:n});else{let x=-1;for(;(x=r.data.indexOf(P,x+1))!==-1;)f.push({type:7,index:n}),x+=P.length-1}n++}}static createElement(t,i){let o=U.createElement("template");return o.innerHTML=t,o}};function V(e,t,i=e,o){if(t===ne)return t;let r=o!==void 0?i._$Co?.[o]:i._$Cl,n=re(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=r:i._$Cl=r),r!==void 0&&(t=V(e,r._$AS(e,t.values),r,o)),t}var Ae=class{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){let{el:{content:i},parts:o}=this._$AD,r=(t?.creationScope??U).importNode(i,!0);W.currentNode=r;let n=W.nextNode(),a=0,h=0,f=o[0];for(;f!==void 0;){if(a===f.index){let d;f.type===2?d=new me(n,n.nextSibling,this,t):f.type===1?d=new f.ctor(n,f.name,f.strings,this,t):f.type===6&&(d=new Se(n,this,t)),this._$AV.push(d),f=o[++h]}a!==f?.index&&(n=W.nextNode(),a++)}return W.currentNode=U,r}p(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},me=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,r){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=V(this,t,i),re(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==ne&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):It(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==y&&re(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ae.createElement(ct(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(i);else{let n=new Ae(r,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(t){let i=at.get(t.strings);return i===void 0&&at.set(t.strings,i=new ae(t)),i}k(t){Oe(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let n of t)r===i.length?i.push(o=new e(this.O(xe()),this.O(xe()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let o=et(t).nextSibling;et(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},k=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,r,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=y}_$AI(t,i=this,o,r){let n=this.strings,a=!1;if(n===void 0)t=V(this,t,i,0),a=!re(t)||t!==this._$AH&&t!==ne,a&&(this._$AH=t);else{let h=t,f,d;for(t=n[0],f=0;f<n.length-1;f++)d=V(this,h[o+f],i,f),d===ne&&(d=this._$AH[f]),a||=!re(d)||d!==this._$AH[f],d===y?t=y:t!==y&&(t+=(d??"")+n[f+1]),this._$AH[f]=d}a&&!r&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ve=class extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}},Ee=class extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}},be=class extends k{constructor(t,i,o,r,n){super(t,i,o,r,n),this.type=5}_$AI(t,i=this){if((t=V(this,t,i,0)??y)===ne)return;let o=this._$AH,r=t===y&&o!==y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==y&&(o===y||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Se=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}};var ei=Te.litHtmlPolyfillSupport;ei?.(ae,me),(Te.litHtmlVersions??=[]).push("3.3.3");var mt=Symbol.for(""),ti=e=>{if(e?.r===mt)return e?._$litStatic$},Re=e=>({_$litStatic$:e,r:mt});var xt=new Map,Ce=e=>(t,...i)=>{let o=i.length,r,n,a=[],h=[],f,d=0,u=!1;for(;d<o;){for(f=t[d];d<o&&(n=i[d],(r=ti(n))!==void 0);)f+=r+t[++d],u=!0;d!==o&&h.push(n),a.push(f),d++}if(d===o&&a.push(t[o]),u){let x=a.join("$$lit$$");(t=xt.get(x))===void 0&&(a.raw=a,xt.set(x,t=a)),i=h}return e(t,...i)},Le=Ce(ft),bi=Ce(ht),Si=Ce(dt);var Ne=c(K()),Ct=c(A());var ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(ge||(ge={}));var b=c(T()),l=c(A()),gt=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.titleFont),R=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.contentFont),s={fontFamily:R,fontSize:l.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:l.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:l.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:l.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:l.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},j={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-font-family","",gt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-font-size","",s.fontSize,"20px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",s.letterSpacing,"0.15px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-line-height","",s.lineHeight,"1.2"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",s.textTransform,"inherit")},Y={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",gt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",s.letterSpacing,"0.105px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",s.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",s.textTransform,"inherit")},X={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",s.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",s.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",s.letterSpacing,"0.144px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",s.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",s.textTransform,"inherit")},Z={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",s.letterSpacing,"0.098px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",s.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",s.textTransform,"inherit")},J={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",s.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",s.letterSpacing,"0.496px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",s.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",s.textTransform,"inherit")},q={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",s.letterSpacing,"0.252px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",s.lineHeight,"1.4"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",s.textTransform,"inherit")},Q={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",s.fontSize,"12px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",s.letterSpacing,"0.396px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",s.lineHeight,"1.33"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",s.textTransform,"inherit")},I={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",s.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",s.letterSpacing,"0.33px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",s.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",s.textTransform,"inherit")},F={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",s.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",s.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",s.letterSpacing,"1.5px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",s.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",s.textTransform,"uppercase")},ee={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-button-font-family","",R),fontSize:l.FtCssVariableFactory.extend("--ft-typography-button-font-size","",s.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",s.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",s.letterSpacing,"1.246px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-button-line-height","",s.lineHeight,"1.15"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",s.textTransform,"uppercase")},ut=b.css`
|
|
135
135
|
.ft-typography--title {
|
|
136
136
|
font-family: ${j.fontFamily};
|
|
137
137
|
font-size: ${j.fontSize};
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
line-height: ${Y.lineHeight};
|
|
150
150
|
text-transform: ${Y.textTransform};
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
152
|
+
`,_t=b.css`
|
|
153
153
|
.ft-typography--subtitle1 {
|
|
154
154
|
font-family: ${X.fontFamily};
|
|
155
155
|
font-size: ${X.fontSize};
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
line-height: ${X.lineHeight};
|
|
159
159
|
text-transform: ${X.textTransform};
|
|
160
160
|
}
|
|
161
|
-
`,
|
|
161
|
+
`,At=b.css`
|
|
162
162
|
.ft-typography--subtitle2 {
|
|
163
163
|
font-family: ${Z.fontFamily};
|
|
164
164
|
font-size: ${Z.fontSize};
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
text-transform: ${Z.textTransform};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
`,
|
|
171
|
+
`,vt=b.css`
|
|
172
172
|
.ft-typography--body1 {
|
|
173
173
|
font-family: ${J.fontFamily};
|
|
174
174
|
font-size: ${J.fontSize};
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
line-height: ${J.lineHeight};
|
|
178
178
|
text-transform: ${J.textTransform};
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,Et=b.css`
|
|
181
181
|
.ft-typography--body2 {
|
|
182
182
|
font-family: ${q.fontFamily};
|
|
183
183
|
font-size: ${q.fontSize};
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
line-height: ${q.lineHeight};
|
|
187
187
|
text-transform: ${q.textTransform};
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,bt=b.css`
|
|
190
190
|
.ft-typography--caption {
|
|
191
191
|
font-family: ${Q.fontFamily};
|
|
192
192
|
font-size: ${Q.fontSize};
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
line-height: ${Q.lineHeight};
|
|
196
196
|
text-transform: ${Q.textTransform};
|
|
197
197
|
}
|
|
198
|
-
`,
|
|
198
|
+
`,St=b.css`
|
|
199
199
|
.ft-typography--breadcrumb {
|
|
200
200
|
font-family: ${I.fontFamily};
|
|
201
201
|
font-size: ${I.fontSize};
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
line-height: ${I.lineHeight};
|
|
205
205
|
text-transform: ${I.textTransform};
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,Tt=b.css`
|
|
208
208
|
.ft-typography--overline {
|
|
209
209
|
font-family: ${F.fontFamily};
|
|
210
210
|
font-size: ${F.fontSize};
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
line-height: ${F.lineHeight};
|
|
214
214
|
text-transform: ${F.textTransform};
|
|
215
215
|
}
|
|
216
|
-
`,
|
|
216
|
+
`,Ot=b.css`
|
|
217
217
|
.ft-typography--button {
|
|
218
218
|
font-family: ${ee.fontFamily};
|
|
219
219
|
font-size: ${ee.fontSize};
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
line-height: ${ee.lineHeight};
|
|
223
223
|
text-transform: ${ee.textTransform};
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
`,$t=b.css`
|
|
226
226
|
.ft-typography {
|
|
227
227
|
vertical-align: inherit;
|
|
228
228
|
}
|
|
229
|
-
`;var
|
|
229
|
+
`;var Rt=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var h=e.length-1;h>=0;h--)(a=e[h])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},C=class extends Ct.FtLitElement{constructor(){super(...arguments),this.variant=ge.body1}render(){return this.element?Le`
|
|
230
230
|
<${Re(this.element)}
|
|
231
231
|
part="text"
|
|
232
232
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
</${Re(this.element)}>
|
|
235
235
|
`:Le`
|
|
236
236
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
237
|
-
`}};C.styles=[
|
|
237
|
+
`}};C.styles=[ut,yt,_t,At,vt,Et,bt,St,Tt,Ot,$t];Rt([(0,Ne.property)()],C.prototype,"element",void 0);Rt([(0,Ne.property)()],C.prototype,"variant",void 0);var Nt=c(A());var Lt={"ft-typography":C};(0,Nt.customElements)(Lt);var Ht=c(T()),S=c(A()),L={size:S.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:S.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",S.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:S.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",S.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:S.FtCssVariableFactory.extend("--ft-icon-material-font-family","",S.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:S.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pt=[Ht.css`
|
|
238
238
|
:host, i.ft-icon {
|
|
239
239
|
display: inline-flex;
|
|
240
240
|
align-items: center;
|
|
@@ -282,12 +282,12 @@
|
|
|
282
282
|
.ft-icon--material {
|
|
283
283
|
font-family: ${L.materialFontFamily}, "Material Icons", sans-serif;
|
|
284
284
|
}
|
|
285
|
-
`,S.noTextSelect];var D;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(D||(D={}));var pe=c(T()),M=c(K()),
|
|
285
|
+
`,S.noTextSelect];var D;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(D||(D={}));var pe=c(T()),M=c(K()),wt=c(A()),Bt=c(Mt());var ue;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(ue||(ue={}));var p;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(p||(p={}));var ji=new Map([...["abw"].map(e=>[e,p.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(e=>[e,p.AUDIO]),...["avi"].map(e=>[e,p.AVI]),...["chm","xhs"].map(e=>[e,p.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(e=>[e,p.CODE]),...["csv"].map(e=>[e,p.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,p.DITA]),...["epub"].map(e=>[e,p.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,p.EXCEL]),...["flac"].map(e=>[e,p.FLAC]),...["gif"].map(e=>[e,p.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,p.GZIP]),...["html","htm","xhtml"].map(e=>[e,p.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,p.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,p.JPEG]),...["json"].map(e=>[e,p.JSON]),...["m4a","m4p"].map(e=>[e,p.M4A]),...["mov","qt"].map(e=>[e,p.MOV]),...["mp3"].map(e=>[e,p.MP3]),...["mp4","m4v"].map(e=>[e,p.MP4]),...["ogg","oga"].map(e=>[e,p.OGG]),...["pdf","ps"].map(e=>[e,p.PDF]),...["png"].map(e=>[e,p.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,p.POWERPOINT]),...["rar"].map(e=>[e,p.RAR]),...["stp"].map(e=>[e,p.STP]),...["txt","rtf","md","mdown"].map(e=>[e,p.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(e=>[e,p.VIDEO]),...["wav"].map(e=>[e,p.WAV]),...["wma"].map(e=>[e,p.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,p.WORD]),...["xml","xsl","rdf"].map(e=>[e,p.XML]),...["yaml","yml","x-yaml"].map(e=>[e,p.YAML]),...["zip"].map(e=>[e,p.ZIP])]);var Yi={[p.ABW]:"#91ABC6",[p.AUDIO]:"#1795E3",[p.AVI]:"#E63324",[p.CHM]:"#71C3EB",[p.CODE]:"#71C3EB",[p.CSV]:"#1F7345",[p.DITA]:"#71C3EB",[p.EPUB]:"#85B926",[p.EXCEL]:"#1F7345",[p.FLAC]:"#1795E3",[p.GIF]:"#59B031",[p.GZIP]:"#F8AB36",[p.HTML]:"#71C3EB",[p.IMAGE]:"#59B031",[p.JPEG]:"#59B031",[p.JSON]:"#71C3EB",[p.M4A]:"#1795E3",[p.MOV]:"#E63324",[p.MP3]:"#1795E3",[p.MP4]:"#E63324",[p.OGG]:"#1795E3",[p.PDF]:"#E44948",[p.PNG]:"#59B031",[p.POWERPOINT]:"#B54A2B",[p.RAR]:"#F8AB36",[p.STP]:"#3764B1",[p.TEXT]:"#3162AB",[p.UNKNOWN]:"#999999",[p.VIDEO]:"#E63324",[p.WAV]:"#1795E3",[p.WMA]:"#1795E3",[p.WORD]:"#3162AB",[p.XML]:"#71C3EB",[p.YAML]:"#71C3EB",[p.ZIP]:"#F8AB36"};var le=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var h=e.length-1;h>=0;h--)(a=e[h])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},E=class extends wt.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=pe.nothing}render(){let t=this.variant&&Object.values(D).includes(this.variant)?this.variant:D.fluid_topics,i=t!==D.material||!!this.value;return pe.html`
|
|
286
286
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
287
|
-
${(0,
|
|
287
|
+
${(0,Bt.unsafeHTML)(this.resolvedIcon)}
|
|
288
288
|
<slot ?hidden=${i}></slot>
|
|
289
289
|
</i>
|
|
290
|
-
`}getTextContent(){var t,i;return(i=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&i!==void 0?i:""}update(t){super.update(t),["value","variant"].some(i=>t.has(i))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.getTextContent();switch(this.variant){case D.file_format:this.resolvedIcon=(t=p[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case D.material:this.resolvedIcon=this.value||pe.nothing;break;default:this.resolvedIcon=(i=
|
|
290
|
+
`}getTextContent(){var t,i;return(i=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&i!==void 0?i:""}update(t){super.update(t),["value","variant"].some(i=>t.has(i))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.getTextContent();switch(this.variant){case D.file_format:this.resolvedIcon=(t=p[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case D.material:this.resolvedIcon=this.value||pe.nothing;break;default:this.resolvedIcon=(i=ue[o.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};E.elementDefinitions={};E.styles=Pt;le([(0,M.property)()],E.prototype,"variant",void 0);le([(0,M.property)()],E.prototype,"value",void 0);le([(0,M.property)({reflect:!0,attribute:"aria-hidden"})],E.prototype,"ariaHidden",void 0);le([(0,M.state)()],E.prototype,"resolvedIcon",void 0);le([(0,M.query)("slot")],E.prototype,"slottedContent",void 0);var Ut=c(A());var Wt={"ft-icon":E};(0,Ut.customElements)(Wt);var Gt=c(T()),z=c(A()),G={horizontalSpacing:z.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:z.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:z.FtCssVariableFactory.external(z.designSystemVariables.colorOutline,"Design system"),backgroundColor:z.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},zt=Gt.css`
|
|
291
291
|
.ft-accordion-item {
|
|
292
292
|
display: flex;
|
|
293
293
|
flex-direction: column;
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
.ft-accordion-item--separator {
|
|
334
334
|
border-bottom: 1px solid ${G.colorOutline};
|
|
335
335
|
}
|
|
336
|
-
`;var
|
|
336
|
+
`;var ye=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var h=e.length-1;h>=0;h--)(a=e[h])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},O=class extends Kt.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return se.html`
|
|
337
337
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
338
338
|
<div class="ft-accordion-item--toggle"
|
|
339
339
|
part="toggle"
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
</div>
|
|
364
364
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
365
365
|
</div>
|
|
366
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.active=!this.active)}};O.elementDefinitions={"ft-ripple":m,"ft-typography":C,"ft-icon":E};O.styles=
|
|
366
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.active=!this.active)}};O.elementDefinitions={"ft-ripple":m,"ft-typography":C,"ft-icon":E};O.styles=zt;ye([(0,fe.property)()],O.prototype,"icon",void 0);ye([(0,fe.property)()],O.prototype,"iconVariant",void 0);ye([(0,fe.property)()],O.prototype,"label",void 0);ye([(0,fe.property)({type:Boolean,reflect:!0})],O.prototype,"active",void 0);var Vt={"ft-accordion":H,"ft-accordion-item":O};(0,kt.customElements)(Vt);})();
|
|
367
367
|
/*! Bundled license information:
|
|
368
368
|
|
|
369
369
|
lit-html/lit-html.js:
|