@fluid-topics/ft-chip-choice 1.3.8 → 1.3.10
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var pn=Object.create;var Po=Object.defineProperty;var fn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var yn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty;var ue=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var hn=(e,o,a,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of un(o))!gn.call(e,c)&&c!==a&&Po(e,c,{get:()=>o[c],enumerable:!(i=fn(o,c))||i.enumerable});return e};var b=(e,o,a)=>(a=e!=null?pn(yn(e)):{},hn(o||!e||!e.__esModule?Po(a,"default",{value:e,enumerable:!0}):a,e));var L=ue((Kn,Wo)=>{Wo.exports=ftGlobals.wcUtils});var I=ue((Vn,ko)=>{ko.exports=ftGlobals.lit});var ct=ue((jn,zo)=>{zo.exports=ftGlobals.litDecorators});var ge=ue((Os,Ur)=>{Ur.exports=ftGlobals.litClassMap});var
|
|
1
|
+
"use strict";(()=>{var pn=Object.create;var Po=Object.defineProperty;var fn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var yn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty;var ue=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var hn=(e,o,a,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of un(o))!gn.call(e,c)&&c!==a&&Po(e,c,{get:()=>o[c],enumerable:!(i=fn(o,c))||i.enumerable});return e};var b=(e,o,a)=>(a=e!=null?pn(yn(e)):{},hn(o||!e||!e.__esModule?Po(a,"default",{value:e,enumerable:!0}):a,e));var L=ue((Kn,Wo)=>{Wo.exports=ftGlobals.wcUtils});var I=ue((Vn,ko)=>{ko.exports=ftGlobals.lit});var ct=ue((jn,zo)=>{zo.exports=ftGlobals.litDecorators});var ge=ue((Os,Ur)=>{Ur.exports=ftGlobals.litClassMap});var Da=ue((Ep,_a)=>{_a.exports=ftGlobals.litUnsafeHTML});var Ao=b(L());var _o=b(I()),vt=b(ct()),Do=b(L());var To=b(I()),Yn={},Ho=To.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
:host(:focus-visible) {
|
|
10
10
|
outline: none;
|
|
11
11
|
}
|
|
12
|
-
`;var Kt=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},qe=class extends CustomEvent{constructor(o){super("change",{detail:{value:o}})}},ft=class extends
|
|
12
|
+
`;var Kt=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},qe=class extends CustomEvent{constructor(o){super("change",{detail:{value:o}})}},ft=class extends Do.FtLitElement{constructor(){super(...arguments),this.name="",this.multiselect=!1,this.role="radiogroup",this.ariaLabelledBy="",this.selectedOptions=new Set}render(){return _o.html`
|
|
13
13
|
<slot @slotchange=${this.onSlotChange}
|
|
14
14
|
@ft-chip-choice-option-change=${this.onChange}>
|
|
15
15
|
</slot>
|
|
16
|
-
`}onSlotChange(){this.chipChoiceOptions.forEach(o=>{o.name=this.name,o.selected&&(this.selectedOptions.add(o.value),this.requestUpdate())})}update(o){super.update(o),o.has("multiselect")&&(this.role=this.multiselect?"group":"radiogroup",this.chipChoiceOptions.forEach(a=>{a.role=this.multiselect?"checkbox":"radio"}))}onChange(o){o.stopPropagation(),o.detail.selected?this.multiselect?this.selectedOptions.add(o.detail.value):(this.selectedOptions=new Set([o.detail.value]),this.chipChoiceOptions.map(a=>{a.selected=a.value===o.detail.value})):this.selectedOptions.delete(o.detail.value),this.requestUpdate(),this.dispatchEvent(new qe(new Set(this.selectedOptions)))}};ft.styles=Ho;Kt([(0,vt.property)()],ft.prototype,"name",void 0);Kt([(0,vt.property)({type:Boolean})],ft.prototype,"multiselect",void 0);Kt([(0,vt.property)({reflect:!0,attribute:"role"})],ft.prototype,"role",void 0);Kt([(0,vt.property)({reflect:!0,attribute:"aria-labelledby"})],ft.prototype,"ariaLabelledBy",void 0);Kt([(0,vt.queryAssignedElements)()],ft.prototype,"chipChoiceOptions",void 0);Kt([(0,vt.state)()],ft.prototype,"selectedOptions",void 0);var cn=b(I()),Ot=b(ct()),ln=b(L());var tn=b(I()),Z=b(L());var Ke=b(I()),w=b(L());var Ko=b(I()),
|
|
16
|
+
`}onSlotChange(){this.chipChoiceOptions.forEach(o=>{o.name=this.name,o.selected&&(this.selectedOptions.add(o.value),this.requestUpdate())})}update(o){super.update(o),o.has("multiselect")&&(this.role=this.multiselect?"group":"radiogroup",this.chipChoiceOptions.forEach(a=>{a.role=this.multiselect?"checkbox":"radio"}))}onChange(o){o.stopPropagation(),o.detail.selected?this.multiselect?this.selectedOptions.add(o.detail.value):(this.selectedOptions=new Set([o.detail.value]),this.chipChoiceOptions.map(a=>{a.selected=a.value===o.detail.value})):this.selectedOptions.delete(o.detail.value),this.requestUpdate(),this.dispatchEvent(new qe(new Set(this.selectedOptions)))}};ft.styles=Ho;Kt([(0,vt.property)()],ft.prototype,"name",void 0);Kt([(0,vt.property)({type:Boolean})],ft.prototype,"multiselect",void 0);Kt([(0,vt.property)({reflect:!0,attribute:"role"})],ft.prototype,"role",void 0);Kt([(0,vt.property)({reflect:!0,attribute:"aria-labelledby"})],ft.prototype,"ariaLabelledBy",void 0);Kt([(0,vt.queryAssignedElements)()],ft.prototype,"chipChoiceOptions",void 0);Kt([(0,vt.state)()],ft.prototype,"selectedOptions",void 0);var cn=b(I()),Ot=b(ct()),ln=b(L());var tn=b(I()),Z=b(L());var Ke=b(I()),w=b(L());var Ko=b(I()),_=b(L()),Go=_.FtCssVariableFactory.extend("--ft-ripple-color","",_.designSystemVariables.colorContent),y={color:Go,backgroundColor:_.FtCssVariableFactory.extend("--ft-ripple-background-color","",Go),opacityContentOnSurfacePressed:_.FtCssVariableFactory.external(_.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:_.FtCssVariableFactory.external(_.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:_.FtCssVariableFactory.external(_.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:_.FtCssVariableFactory.external(_.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:_.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Uo=_.FtCssVariableFactory.extend("--ft-ripple-color","",_.designSystemVariables.colorPrimary),Fo={color:Uo,backgroundColor:_.FtCssVariableFactory.extend("--ft-ripple-background-color","",Uo)},Mo=_.FtCssVariableFactory.extend("--ft-ripple-color","",_.designSystemVariables.colorSecondary),Zo={color:Mo,backgroundColor:_.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mo)},Vo=Ko.css`
|
|
17
17
|
:host {
|
|
18
18
|
display: contents;
|
|
19
19
|
}
|
|
@@ -278,7 +278,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
278
278
|
.ft-icon--material {
|
|
279
279
|
font-family: ${z.materialFontFamily}, "Material Icons", sans-serif;
|
|
280
280
|
}
|
|
281
|
-
`,ut.noTextSelect];var No=b(L());var Re=b(ct()),Va=b(L());var
|
|
281
|
+
`,ut.noTextSelect];var No=b(L());var Re=b(ct()),Va=b(L());var Dr=b(I()),v=b(L());var zr=b(I()),ye=b(L()),A={color:ye.FtCssVariableFactory.extend("--ft-loader-color","",ye.designSystemVariables.colorPrimary),size:ye.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Tr=zr.css`
|
|
282
282
|
:host {
|
|
283
283
|
line-height: 0;
|
|
284
284
|
}
|
|
@@ -347,7 +347,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
347
347
|
transform: translate(calc(0.35 * ${A.size}), 0);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
`;var Hr=v.FtCssVariableFactory.extend("--ft-button-color","",v.designSystemVariables.colorPrimary),P={backgroundColor:v.FtCssVariableFactory.extend("--ft-button-background-color","",v.designSystemVariables.colorSurface),borderRadius:v.FtCssVariableFactory.extend("--ft-button-border-radius","",v.designSystemVariables.borderRadiusL),color:Hr,fontSize:v.FtCssVariableFactory.extend("--ft-button-font-size","",xt.fontSize),iconSize:v.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:v.FtCssVariableFactory.extend("--ft-button-ripple-color","",Hr),verticalPadding:v.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:v.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:v.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:v.FtCssVariableFactory.external(v.designSystemVariables.colorOpacityDisabled,"Design system")},
|
|
350
|
+
`;var Hr=v.FtCssVariableFactory.extend("--ft-button-color","",v.designSystemVariables.colorPrimary),P={backgroundColor:v.FtCssVariableFactory.extend("--ft-button-background-color","",v.designSystemVariables.colorSurface),borderRadius:v.FtCssVariableFactory.extend("--ft-button-border-radius","",v.designSystemVariables.borderRadiusL),color:Hr,fontSize:v.FtCssVariableFactory.extend("--ft-button-font-size","",xt.fontSize),iconSize:v.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:v.FtCssVariableFactory.extend("--ft-button-ripple-color","",Hr),verticalPadding:v.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:v.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:v.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:v.FtCssVariableFactory.external(v.designSystemVariables.colorOpacityDisabled,"Design system")},_r=v.FtCssVariableFactory.extend("--ft-button-primary-color","",v.FtCssVariableFactory.extend("--ft-button-color","",v.designSystemVariables.colorOnPrimary)),Qe={backgroundColor:v.FtCssVariableFactory.extend("--ft-button-primary-background-color","",v.FtCssVariableFactory.extend("--ft-button-background-color","",v.designSystemVariables.colorPrimary)),color:_r,rippleColor:v.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",_r)},St={borderRadius:v.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",v.FtCssVariableFactory.extend("--ft-button-border-radius","",v.designSystemVariables.borderRadiusM)),verticalPadding:v.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:v.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:v.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Gr=[Dr.css`
|
|
351
351
|
:host {
|
|
352
352
|
display: inline-block;
|
|
353
353
|
max-width: 100%;
|
|
@@ -496,8 +496,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
496
496
|
<div class="ft-ripple--effect"></div>
|
|
497
497
|
</div>
|
|
498
498
|
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var a,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 o,a;let i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((a=this.target)!==null&&a!==void 0?a:i)}forceFocusUpdate(){var o;!((o=this.target)===null||o===void 0)&&o.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let a=(...p)=>u=>{p.forEach(m=>window.addEventListener(m,this.endPress,{once:!0})),this.startPress(u)},i=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),l=p=>{["Enter"," "].includes(p.key)&&a("keyup")(p)},d={passive:!0};o.addEventListener("mouseover",this.startHover,d),o.addEventListener("mousemove",this.moveRipple,d),o.addEventListener("mouseleave",this.endHover,d),o.addEventListener("mousedown",i,d),o.addEventListener("touchstart",c,d),o.addEventListener("touchmove",this.moveRipple,d),o.addEventListener("keydown",l,d),o.addEventListener("focus",this.startFocus,d),o.addEventListener("blur",this.endFocus,d),o.addEventListener("focusin",this.startFocus,d),o.addEventListener("focusout",this.endFocus,d),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,d),o.removeEventListener("mousemove",this.moveRipple,d),o.removeEventListener("mouseleave",this.endHover,d),o.removeEventListener("mousedown",i,d),o.removeEventListener("touchstart",c,d),o.removeEventListener("touchmove",this.moveRipple,d),o.removeEventListener("keydown",l,d),o.removeEventListener("focus",this.startFocus,d),o.removeEventListener("blur",this.endFocus,d),o.removeEventListener("focusin",this.startFocus,d),o.removeEventListener("focusout",this.endFocus,d),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let a=o,i=o,c,l;return a.x!=null?{x:c,y:l}=a:i.touches!=null&&(c=i.touches[0].clientX,l=i.touches[0].clientY),{x:c,y:l}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let a of o.composedPath()){if(a===this.target)break;if("hasAttribute"in a&&a.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=Vo;et([(0,K.property)({type:Boolean})],$.prototype,"primary",void 0);et([(0,K.property)({type:Boolean})],$.prototype,"secondary",void 0);et([(0,K.property)({type:Boolean})],$.prototype,"unbounded",void 0);et([(0,K.property)({type:Boolean})],$.prototype,"activated",void 0);et([(0,K.property)({type:Boolean})],$.prototype,"selected",void 0);et([(0,K.property)({type:Boolean})],$.prototype,"disabled",void 0);et([(0,K.state)()],$.prototype,"hovered",void 0);et([(0,K.state)()],$.prototype,"focused",void 0);et([(0,K.state)()],$.prototype,"pressed",void 0);et([(0,K.state)()],$.prototype,"rippling",void 0);et([(0,K.state)()],$.prototype,"originX",void 0);et([(0,K.state)()],$.prototype,"originY",void 0);et([(0,K.query)(".ft-ripple")],$.prototype,"ripple",void 0);et([(0,K.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);(0,Zr.customElement)("ft-ripple")($);var Ha=b(L());var Ta=b(I()),U=b(ct()),Ne=b(L());var da=b(L());var no=globalThis,We=no.trustedTypes,Kr=We?We.createPolicy("lit-html",{createHTML:e=>e}):void 0,Qr="$lit$",It=`lit$${Math.random().toFixed(9).slice(2)}$`,Jr="?"+It,bn=`<${Jr}>`,Ut=document,ke=()=>Ut.createComment(""),be=e=>e===null||typeof e!="object"&&typeof e!="function",io=Array.isArray,xn=e=>io(e)||typeof e?.[Symbol.iterator]=="function",Je=`[
|
|
499
|
-
\f\r]`,me=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vr=/-->/g,jr=/>/g,
|
|
500
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yr=/'/g,Xr=/"/g,ta=/^(?:script|style|textarea|title)$/i,co=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),ea=co(1),oa=co(2),ra=co(3),xe=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),qr=new WeakMap,Gt=Ut.createTreeWalker(Ut,129);function aa(e,o){if(!io(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kr!==void 0?Kr.createHTML(o):o}var Sn=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":o===3?"<math>":"",d=me;for(let p=0;p<a;p++){let u=e[p],m,C,x=-1,E=0;for(;E<u.length&&(d.lastIndex=E,C=d.exec(u),C!==null);)E=d.lastIndex,d===me?C[1]==="!--"?d=Vr:C[1]!==void 0?d=jr:C[2]!==void 0?(ta.test(C[2])&&(c=RegExp("</"+C[2],"g")),d=
|
|
499
|
+
\f\r]`,me=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vr=/-->/g,jr=/>/g,Dt=RegExp(`>|${Je}(?:([^\\s"'>=/]+)(${Je}*=${Je}*(?:[^
|
|
500
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yr=/'/g,Xr=/"/g,ta=/^(?:script|style|textarea|title)$/i,co=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),ea=co(1),oa=co(2),ra=co(3),xe=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),qr=new WeakMap,Gt=Ut.createTreeWalker(Ut,129);function aa(e,o){if(!io(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kr!==void 0?Kr.createHTML(o):o}var Sn=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":o===3?"<math>":"",d=me;for(let p=0;p<a;p++){let u=e[p],m,C,x=-1,E=0;for(;E<u.length&&(d.lastIndex=E,C=d.exec(u),C!==null);)E=d.lastIndex,d===me?C[1]==="!--"?d=Vr:C[1]!==void 0?d=jr:C[2]!==void 0?(ta.test(C[2])&&(c=RegExp("</"+C[2],"g")),d=Dt):C[3]!==void 0&&(d=Dt):d===Dt?C[0]===">"?(d=c??me,x=-1):C[1]===void 0?x=-2:(x=d.lastIndex-C[2].length,m=C[1],d=C[3]===void 0?Dt:C[3]==='"'?Xr:Yr):d===Xr||d===Yr?d=Dt:d===Vr||d===jr?d=me:(d=Dt,c=void 0);let N=d===Dt&&e[p+1].startsWith("/>")?" ":"";l+=d===me?u+bn:x>=0?(i.push(m),u.slice(0,x)+Qr+u.slice(x)+It+N):u+It+(x===-2?p:N)}return[aa(e,l+(e[a]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},Se=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let l=0,d=0,p=o.length-1,u=this.parts,[m,C]=Sn(o,a);if(this.el=e.createElement(m,i),Gt.currentNode=this.el.content,a===2||a===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(c=Gt.nextNode())!==null&&u.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let x of c.getAttributeNames())if(x.endsWith(Qr)){let E=C[d++],N=c.getAttribute(x).split(It),R=/([.?@])?(.*)/.exec(E);u.push({type:1,index:l,name:R[2],strings:N,ctor:R[1]==="."?eo:R[1]==="?"?oo:R[1]==="@"?ro:oe}),c.removeAttribute(x)}else x.startsWith(It)&&(u.push({type:6,index:l}),c.removeAttribute(x));if(ta.test(c.tagName)){let x=c.textContent.split(It),E=x.length-1;if(E>0){c.textContent=We?We.emptyScript:"";for(let N=0;N<E;N++)c.append(x[N],ke()),Gt.nextNode(),u.push({type:2,index:++l});c.append(x[E],ke())}}}else if(c.nodeType===8)if(c.data===Jr)u.push({type:2,index:l});else{let x=-1;for(;(x=c.data.indexOf(It,x+1))!==-1;)u.push({type:7,index:l}),x+=It.length-1}l++}}static createElement(o,a){let i=Ut.createElement("template");return i.innerHTML=o,i}};function ee(e,o,a=e,i){if(o===xe)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,l=be(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=ee(e,c._$AS(e,o.values),c,i)),o}var to=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:i}=this._$AD,c=(o?.creationScope??Ut).importNode(a,!0);Gt.currentNode=c;let l=Gt.nextNode(),d=0,p=0,u=i[0];for(;u!==void 0;){if(d===u.index){let m;u.type===2?m=new ze(l,l.nextSibling,this,o):u.type===1?m=new u.ctor(l,u.name,u.strings,this,o):u.type===6&&(m=new ao(l,this,o)),this._$AV.push(m),u=i[++p]}d!==u?.index&&(l=Gt.nextNode(),d++)}return Gt.currentNode=Ut,c}p(o){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},ze=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=ee(this,o,a),be(o)?o===M||o==null||o===""?(this._$AH!==M&&this._$AR(),this._$AH=M):o!==this._$AH&&o!==xe&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):xn(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==M&&be(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ut.createTextNode(o)),this._$AH=o}$(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=Se.createElement(aa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new to(c,this),d=l.u(this.options);l.p(a),this.T(d),this._$AH=l}}_$AC(o){let a=qr.get(o.strings);return a===void 0&&qr.set(o.strings,a=new Se(o)),a}k(o){io(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let l of o)c===a.length?a.push(i=new e(this.O(ke()),this.O(ke()),this,this.options)):i=a[c],i._$AI(l),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},oe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,l){this.type=1,this._$AH=M,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}_$AI(o,a=this,i,c){let l=this.strings,d=!1;if(l===void 0)o=ee(this,o,a,0),d=!be(o)||o!==this._$AH&&o!==xe,d&&(this._$AH=o);else{let p=o,u,m;for(o=l[0],u=0;u<l.length-1;u++)m=ee(this,p[i+u],a,u),m===xe&&(m=this._$AH[u]),d||=!be(m)||m!==this._$AH[u],m===M?o=M:o!==M&&(o+=(m??"")+l[u+1]),this._$AH[u]=m}d&&!c&&this.j(o)}j(o){o===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},eo=class extends oe{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===M?void 0:o}},oo=class extends oe{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==M)}},ro=class extends oe{constructor(o,a,i,c,l){super(o,a,i,c,l),this.type=5}_$AI(o,a=this){if((o=ee(this,o,a,0)??M)===xe)return;let i=this._$AH,c=o===M&&i!==M||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,l=o!==M&&(i===M||c);c&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},ao=class{constructor(o,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){ee(this,o)}};var Cn=no.litHtmlPolyfillSupport;Cn?.(Se,ze),(no.litHtmlVersions??=[]).push("3.3.0");var ia=Symbol.for(""),On=e=>{if(e?.r===ia)return e?._$litStatic$},lo=e=>({_$litStatic$:e,r:ia});var na=new Map,so=e=>(o,...a)=>{let i=a.length,c,l,d=[],p=[],u,m=0,C=!1;for(;m<i;){for(u=o[m];m<i&&(l=a[m],(c=On(l))!==void 0);)u+=c+o[++m],C=!0;m!==i&&p.push(l),d.push(u),m++}if(m===i&&d.push(o[i]),C){let x=d.join("$$lit$$");(o=na.get(x))===void 0&&(d.raw=d,na.set(x,o=d)),a=p}return e(o,...a)},po=so(ea),Is=so(oa),Ps=so(ra);var fo=b(ct()),la=b(L());var yt;(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",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(yt||(yt={}));var ca=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},tt=class extends la.FtLitElement{constructor(){super(...arguments),this.variant=yt.body1}render(){return this.element?po`
|
|
501
501
|
<${lo(this.element)}
|
|
502
502
|
part="text"
|
|
503
503
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -534,7 +534,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
534
534
|
position: relative;
|
|
535
535
|
word-break: break-word;
|
|
536
536
|
}
|
|
537
|
-
`;var ua=["top","right","bottom","left"],fa=["start","end"],yo=ua.reduce((e,o)=>e.concat(o,o+"-"+fa[0],o+"-"+fa[1]),[]),ya=Math.min,ga=Math.max;var vn={left:"right",right:"left",bottom:"top",top:"bottom"},wn={start:"end",end:"start"};function go(e,o,a){return ga(e,ya(o,a))}function Te(e,o){return typeof e=="function"?e(o):e}function ae(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function ho(e){return e==="x"?"y":"x"}function mo(e){return e==="y"?"height":"width"}function He(e){return["top","bottom"].includes(ae(e))?"y":"x"}function bo(e){return ho(He(e))}function ha(e,o,a){a===void 0&&(a=!1);let i=Pt(e),c=bo(e),l=mo(c),d=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(d=uo(d)),[d,uo(d)]}function ma(e){return e.replace(/start|end/g,o=>wn[o])}function uo(e){return e.replace(/left|right|bottom|top/g,o=>vn[o])}function Nn(e){return{top:0,right:0,bottom:0,left:0,...e}}function ba(e){return typeof e!="number"?Nn(e):{top:e,right:e,bottom:e,left:e}}function Ft(e){let{x:o,y:a,width:i,height:c}=e;return{width:i,height:c,top:a,left:o,right:o+i,bottom:a+c,x:o,y:a}}function xa(e,o,a){let{reference:i,floating:c}=e,l=He(o),d=bo(o),p=mo(d),u=ae(o),m=l==="y",C=i.x+i.width/2-c.width/2,x=i.y+i.height/2-c.height/2,E=i[p]/2-c[p]/2,N;switch(u){case"top":N={x:C,y:i.y-c.height};break;case"bottom":N={x:C,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:x};break;case"left":N={x:i.x-c.width,y:x};break;default:N={x:i.x,y:i.y}}switch(Pt(o)){case"start":N[d]-=E*(a&&m?-1:1);break;case"end":N[d]+=E*(a&&m?-1:1);break}return N}var Sa=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:d}=a,p=l.filter(Boolean),u=await(d.isRTL==null?void 0:d.isRTL(o)),m=await d.getElementRects({reference:e,floating:o,strategy:c}),{x:C,y:x}=xa(m,i,u),E=i,N={},R=0;for(let T=0;T<p.length;T++){let{name:_,fn:H}=p[T],{x:G,y:Q,data:$t,reset:X}=await H({x:C,y:x,initialPlacement:i,placement:E,strategy:c,middlewareData:N,rects:m,platform:d,elements:{reference:e,floating:o}});C=G??C,x=Q??x,N={...N,[_]:{...N[_],...$t}},X&&R<=50&&(R++,typeof X=="object"&&(X.placement&&(E=X.placement),X.rects&&(m=X.rects===!0?await d.getElementRects({reference:e,floating:o,strategy:c}):X.rects),{x:C,y:x}=xa(m,E,u)),T=-1)}return{x:C,y:x,placement:E,strategy:c,middlewareData:N}};async function xo(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:d,elements:p,strategy:u}=e,{boundary:m="clippingAncestors",rootBoundary:C="viewport",elementContext:x="floating",altBoundary:E=!1,padding:N=0}=Te(o,e),R=ba(N),_=p[E?x==="floating"?"reference":"floating":x],H=Ft(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(_)))==null||a?_:_.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:C,strategy:u})),G=x==="floating"?{x:i,y:c,width:d.floating.width,height:d.floating.height}:d.reference,Q=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),$t=await(l.isElement==null?void 0:l.isElement(Q))?await(l.getScale==null?void 0:l.getScale(Q))||{x:1,y:1}:{x:1,y:1},X=Ft(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:G,offsetParent:Q,strategy:u}):G);return{top:(H.top-X.top+R.top)/$t.y,bottom:(X.bottom-H.bottom+R.bottom)/$t.y,left:(H.left-X.left+R.left)/$t.x,right:(X.right-H.right+R.right)/$t.x}}function En(e,o,a){return(e?[...a.filter(c=>Pt(c)===e),...a.filter(c=>Pt(c)!==e)]:a.filter(c=>ae(c)===c)).filter(c=>e?Pt(c)===e||(o?ma(c)!==c:!1):!0)}var So=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:d,placement:p,platform:u,elements:m}=o,{crossAxis:C=!1,alignment:x,allowedPlacements:E=yo,autoAlignment:N=!0,...R}=Te(e,o),T=x!==void 0||E===yo?En(x||null,N,E):E,_=await xo(o,R),H=((a=d.autoPlacement)==null?void 0:a.index)||0,G=T[H];if(G==null)return{};let Q=ha(G,l,await(u.isRTL==null?void 0:u.isRTL(m.floating)));if(p!==G)return{reset:{placement:T[0]}};let $t=[_[ae(G)],_[Q[0]],_[Q[1]]],X=[...((i=d.autoPlacement)==null?void 0:i.overflows)||[],{placement:G,overflows:$t}],$o=T[H+1];if($o)return{data:{index:H+1,overflows:X},reset:{placement:$o}};let Bo=X.map(bt=>{let fe=Pt(bt.placement);return[bt.placement,fe&&C?bt.overflows.slice(0,2).reduce((dn,sn)=>dn+sn,0):bt.overflows[0],bt.overflows]}).sort((bt,fe)=>bt[1]-fe[1]),Io=((c=Bo.filter(bt=>bt[2].slice(0,Pt(bt[0])?2:3).every(fe=>fe<=0))[0])==null?void 0:c[0])||Bo[0][0];return Io!==p?{data:{index:H+1,overflows:X},reset:{placement:Io}}:{}}}};var Co=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:d=!1,limiter:p={fn:_=>{let{x:H,y:G}=_;return{x:H,y:G}}},...u}=Te(e,o),m={x:a,y:i},C=await xo(o,u),x=He(ae(c)),E=ho(x),N=m[E],R=m[x];if(l){let _=E==="y"?"top":"left",H=E==="y"?"bottom":"right",G=N+C[_],Q=N-C[H];N=go(G,N,Q)}if(d){let _=x==="y"?"top":"left",H=x==="y"?"bottom":"right",G=R+C[_],Q=R-C[H];R=go(G,R,Q)}let T=p.fn({...o,[E]:N,[x]:R});return{...T,data:{x:T.x-a,y:T.y-i,enabled:{[E]:l,[x]:d}}}}}};var Oo=Math.min,ne=Math.max,Ce=Math.round;var Lt=e=>({x:e,y:e});function Rt(e){return Oa(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function At(e){var o;return(o=(Oa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Oa(e){return e instanceof Node||e instanceof ot(e).Node}function Ct(e){return e instanceof Element||e instanceof ot(e).Element}function gt(e){return e instanceof HTMLElement||e instanceof ot(e).HTMLElement}function Ca(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}function ie(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=it(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function va(e){return["table","td","th"].includes(Rt(e))}function _e(e){let o=Ge(),a=it(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function wa(e){let o=Mt(e);for(;gt(o)&&!Oe(o);){if(_e(o))return o;o=Mt(o)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oe(e){return["html","body","#document"].includes(Rt(e))}function it(e){return ot(e).getComputedStyle(e)}function ve(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mt(e){if(Rt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Ca(e)&&e.host||At(e);return Ca(o)?o.host:o}function Na(e){let o=Mt(e);return Oe(o)?e.ownerDocument?e.ownerDocument.body:e.body:gt(o)&&ie(o)?o:Na(o)}function De(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Na(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),d=ot(c);return l?o.concat(d,d.visualViewport||[],ie(c)?c:[],d.frameElement&&a?De(d.frameElement):[]):o.concat(c,De(c,[],a))}function Ra(e){let o=it(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=gt(e),l=c?e.offsetWidth:a,d=c?e.offsetHeight:i,p=Ce(a)!==l||Ce(i)!==d;return p&&(a=l,i=d),{width:a,height:i,$:p}}function Aa(e){return Ct(e)?e:e.contextElement}function ce(e){let o=Aa(e);if(!gt(o))return Lt(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=Ra(o),d=(l?Ce(a.width):a.width)/i,p=(l?Ce(a.height):a.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}var An=Lt(0);function $a(e){let o=ot(e);return!Ge()||!o.visualViewport?An:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function $n(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==ot(e)?!1:o}function we(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=Aa(e),d=Lt(1);o&&(i?Ct(i)&&(d=ce(i)):d=ce(e));let p=$n(l,a,i)?$a(l):Lt(0),u=(c.left+p.x)/d.x,m=(c.top+p.y)/d.y,C=c.width/d.x,x=c.height/d.y;if(l){let E=ot(l),N=i&&Ct(i)?ot(i):i,R=E.frameElement;for(;R&&i&&N!==E;){let T=ce(R),_=R.getBoundingClientRect(),H=it(R),G=_.left+(R.clientLeft+parseFloat(H.paddingLeft))*T.x,Q=_.top+(R.clientTop+parseFloat(H.paddingTop))*T.y;u*=T.x,m*=T.y,C*=T.x,x*=T.y,u+=G,m+=Q,R=ot(R).frameElement}}return Ft({width:C,height:x,x:u,y:m})}function Bn(e){let{rect:o,offsetParent:a,strategy:i}=e,c=gt(a),l=At(a);if(a===l)return o;let d={scrollLeft:0,scrollTop:0},p=Lt(1),u=Lt(0);if((c||!c&&i!=="fixed")&&((Rt(a)!=="body"||ie(l))&&(d=ve(a)),gt(a))){let m=we(a);p=ce(a),u.x=m.x+a.clientLeft,u.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-d.scrollLeft*p.x+u.x,y:o.y*p.y-d.scrollTop*p.y+u.y}}function In(e){return Array.from(e.getClientRects())}function Ba(e){return we(At(e)).left+ve(e).scrollLeft}function Pn(e){let o=At(e),a=ve(e),i=e.ownerDocument.body,c=ne(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=ne(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),d=-a.scrollLeft+Ba(e),p=-a.scrollTop;return it(i).direction==="rtl"&&(d+=ne(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:d,y:p}}function Wn(e,o){let a=ot(e),i=At(e),c=a.visualViewport,l=i.clientWidth,d=i.clientHeight,p=0,u=0;if(c){l=c.width,d=c.height;let m=Ge();(!m||m&&o==="fixed")&&(p=c.offsetLeft,u=c.offsetTop)}return{width:l,height:d,x:p,y:u}}function kn(e,o){let a=we(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=gt(e)?ce(e):Lt(1),d=e.clientWidth*l.x,p=e.clientHeight*l.y,u=c*l.x,m=i*l.y;return{width:d,height:p,x:u,y:m}}function Ea(e,o,a){let i;if(o==="viewport")i=Wn(e,a);else if(o==="document")i=Pn(At(e));else if(Ct(o))i=kn(o,a);else{let c=$a(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return Ft(i)}function Ia(e,o){let a=Mt(e);return a===o||!Ct(a)||Oe(a)?!1:it(a).position==="fixed"||Ia(a,o)}function zn(e,o){let a=o.get(e);if(a)return a;let i=De(e,[],!1).filter(p=>Ct(p)&&Rt(p)!=="body"),c=null,l=it(e).position==="fixed",d=l?Mt(e):e;for(;Ct(d)&&!Oe(d);){let p=it(d),u=_e(d);!u&&p.position==="fixed"&&(c=null),(l?!u&&!c:!u&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||ie(d)&&!u&&Ia(e,d))?i=i.filter(C=>C!==d):c=p,d=Mt(d)}return o.set(e,i),i}function Tn(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,d=[...a==="clippingAncestors"?zn(o,this._c):[].concat(a),i],p=d[0],u=d.reduce((m,C)=>{let x=Ea(o,C,c);return m.top=ne(x.top,m.top),m.right=Oo(x.right,m.right),m.bottom=Oo(x.bottom,m.bottom),m.left=ne(x.left,m.left),m},Ea(o,p,c));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Hn(e){return Ra(e)}function Dn(e,o,a){let i=gt(o),c=At(o),l=a==="fixed",d=we(e,!0,l,o),p={scrollLeft:0,scrollTop:0},u=Lt(0);if(i||!i&&!l)if((Rt(o)!=="body"||ie(c))&&(p=ve(o)),i){let m=we(o,!0,l,o);u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}else c&&(u.x=Ba(c));return{x:d.left+p.scrollLeft-u.x,y:d.top+p.scrollTop-u.y,width:d.width,height:d.height}}function La(e,o){return!gt(e)||it(e).position==="fixed"?null:o?o(e):e.offsetParent}function Pa(e,o){let a=ot(e);if(!gt(e))return a;let i=La(e,o);for(;i&&va(i)&&it(i).position==="static";)i=La(i,o);return i&&(Rt(i)==="html"||Rt(i)==="body"&&it(i).position==="static"&&!_e(i))?a:i||wa(e)||a}var _n=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||Pa,l=this.getDimensions;return{reference:Dn(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function Gn(e){return it(e).direction==="rtl"}var Ue={convertOffsetParentRelativeRectToViewportRelativeRect:Bn,getDocumentElement:At,getClippingRect:Tn,getOffsetParent:Pa,getElementRects:_n,getClientRects:In,getDimensions:Hn,getScale:ce,isElement:Ct,isRTL:Gn};var Wa=(e,o,a)=>{let i=new Map,c={platform:Ue,...a},l={...c.platform,_c:i};return Sa(e,o,{...c,platform:l})};function ka(e){return Un(e)}function vo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Un(e){for(let o=e;o;o=vo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=vo(e);o;o=vo(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function za(e,o,a){return Wa(e,o,{platform:{...Ue,getOffsetParent:i=>Ue.getOffsetParent(i,ka)},middleware:[Co({crossAxis:!0}),So({allowedPlacements:[a]})]})}var rt=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},W=class extends Ne.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 Ne.Debouncer,this.revealDebouncer=new Ne.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Ta.html`
|
|
537
|
+
`;var ua=["top","right","bottom","left"],fa=["start","end"],yo=ua.reduce((e,o)=>e.concat(o,o+"-"+fa[0],o+"-"+fa[1]),[]),ya=Math.min,ga=Math.max;var vn={left:"right",right:"left",bottom:"top",top:"bottom"},wn={start:"end",end:"start"};function go(e,o,a){return ga(e,ya(o,a))}function Te(e,o){return typeof e=="function"?e(o):e}function ae(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function ho(e){return e==="x"?"y":"x"}function mo(e){return e==="y"?"height":"width"}function He(e){return["top","bottom"].includes(ae(e))?"y":"x"}function bo(e){return ho(He(e))}function ha(e,o,a){a===void 0&&(a=!1);let i=Pt(e),c=bo(e),l=mo(c),d=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(d=uo(d)),[d,uo(d)]}function ma(e){return e.replace(/start|end/g,o=>wn[o])}function uo(e){return e.replace(/left|right|bottom|top/g,o=>vn[o])}function Nn(e){return{top:0,right:0,bottom:0,left:0,...e}}function ba(e){return typeof e!="number"?Nn(e):{top:e,right:e,bottom:e,left:e}}function Ft(e){let{x:o,y:a,width:i,height:c}=e;return{width:i,height:c,top:a,left:o,right:o+i,bottom:a+c,x:o,y:a}}function xa(e,o,a){let{reference:i,floating:c}=e,l=He(o),d=bo(o),p=mo(d),u=ae(o),m=l==="y",C=i.x+i.width/2-c.width/2,x=i.y+i.height/2-c.height/2,E=i[p]/2-c[p]/2,N;switch(u){case"top":N={x:C,y:i.y-c.height};break;case"bottom":N={x:C,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:x};break;case"left":N={x:i.x-c.width,y:x};break;default:N={x:i.x,y:i.y}}switch(Pt(o)){case"start":N[d]-=E*(a&&m?-1:1);break;case"end":N[d]+=E*(a&&m?-1:1);break}return N}var Sa=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:d}=a,p=l.filter(Boolean),u=await(d.isRTL==null?void 0:d.isRTL(o)),m=await d.getElementRects({reference:e,floating:o,strategy:c}),{x:C,y:x}=xa(m,i,u),E=i,N={},R=0;for(let T=0;T<p.length;T++){let{name:D,fn:H}=p[T],{x:G,y:Q,data:$t,reset:X}=await H({x:C,y:x,initialPlacement:i,placement:E,strategy:c,middlewareData:N,rects:m,platform:d,elements:{reference:e,floating:o}});C=G??C,x=Q??x,N={...N,[D]:{...N[D],...$t}},X&&R<=50&&(R++,typeof X=="object"&&(X.placement&&(E=X.placement),X.rects&&(m=X.rects===!0?await d.getElementRects({reference:e,floating:o,strategy:c}):X.rects),{x:C,y:x}=xa(m,E,u)),T=-1)}return{x:C,y:x,placement:E,strategy:c,middlewareData:N}};async function xo(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:d,elements:p,strategy:u}=e,{boundary:m="clippingAncestors",rootBoundary:C="viewport",elementContext:x="floating",altBoundary:E=!1,padding:N=0}=Te(o,e),R=ba(N),D=p[E?x==="floating"?"reference":"floating":x],H=Ft(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(D)))==null||a?D:D.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:C,strategy:u})),G=x==="floating"?{x:i,y:c,width:d.floating.width,height:d.floating.height}:d.reference,Q=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),$t=await(l.isElement==null?void 0:l.isElement(Q))?await(l.getScale==null?void 0:l.getScale(Q))||{x:1,y:1}:{x:1,y:1},X=Ft(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:G,offsetParent:Q,strategy:u}):G);return{top:(H.top-X.top+R.top)/$t.y,bottom:(X.bottom-H.bottom+R.bottom)/$t.y,left:(H.left-X.left+R.left)/$t.x,right:(X.right-H.right+R.right)/$t.x}}function En(e,o,a){return(e?[...a.filter(c=>Pt(c)===e),...a.filter(c=>Pt(c)!==e)]:a.filter(c=>ae(c)===c)).filter(c=>e?Pt(c)===e||(o?ma(c)!==c:!1):!0)}var So=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:d,placement:p,platform:u,elements:m}=o,{crossAxis:C=!1,alignment:x,allowedPlacements:E=yo,autoAlignment:N=!0,...R}=Te(e,o),T=x!==void 0||E===yo?En(x||null,N,E):E,D=await xo(o,R),H=((a=d.autoPlacement)==null?void 0:a.index)||0,G=T[H];if(G==null)return{};let Q=ha(G,l,await(u.isRTL==null?void 0:u.isRTL(m.floating)));if(p!==G)return{reset:{placement:T[0]}};let $t=[D[ae(G)],D[Q[0]],D[Q[1]]],X=[...((i=d.autoPlacement)==null?void 0:i.overflows)||[],{placement:G,overflows:$t}],$o=T[H+1];if($o)return{data:{index:H+1,overflows:X},reset:{placement:$o}};let Bo=X.map(bt=>{let fe=Pt(bt.placement);return[bt.placement,fe&&C?bt.overflows.slice(0,2).reduce((dn,sn)=>dn+sn,0):bt.overflows[0],bt.overflows]}).sort((bt,fe)=>bt[1]-fe[1]),Io=((c=Bo.filter(bt=>bt[2].slice(0,Pt(bt[0])?2:3).every(fe=>fe<=0))[0])==null?void 0:c[0])||Bo[0][0];return Io!==p?{data:{index:H+1,overflows:X},reset:{placement:Io}}:{}}}};var Co=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:d=!1,limiter:p={fn:D=>{let{x:H,y:G}=D;return{x:H,y:G}}},...u}=Te(e,o),m={x:a,y:i},C=await xo(o,u),x=He(ae(c)),E=ho(x),N=m[E],R=m[x];if(l){let D=E==="y"?"top":"left",H=E==="y"?"bottom":"right",G=N+C[D],Q=N-C[H];N=go(G,N,Q)}if(d){let D=x==="y"?"top":"left",H=x==="y"?"bottom":"right",G=R+C[D],Q=R-C[H];R=go(G,R,Q)}let T=p.fn({...o,[E]:N,[x]:R});return{...T,data:{x:T.x-a,y:T.y-i,enabled:{[E]:l,[x]:d}}}}}};var Oo=Math.min,ne=Math.max,Ce=Math.round;var Lt=e=>({x:e,y:e});function Rt(e){return Oa(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function At(e){var o;return(o=(Oa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Oa(e){return e instanceof Node||e instanceof ot(e).Node}function Ct(e){return e instanceof Element||e instanceof ot(e).Element}function gt(e){return e instanceof HTMLElement||e instanceof ot(e).HTMLElement}function Ca(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}function ie(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=it(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function va(e){return["table","td","th"].includes(Rt(e))}function De(e){let o=Ge(),a=it(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function wa(e){let o=Mt(e);for(;gt(o)&&!Oe(o);){if(De(o))return o;o=Mt(o)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oe(e){return["html","body","#document"].includes(Rt(e))}function it(e){return ot(e).getComputedStyle(e)}function ve(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mt(e){if(Rt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Ca(e)&&e.host||At(e);return Ca(o)?o.host:o}function Na(e){let o=Mt(e);return Oe(o)?e.ownerDocument?e.ownerDocument.body:e.body:gt(o)&&ie(o)?o:Na(o)}function _e(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Na(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),d=ot(c);return l?o.concat(d,d.visualViewport||[],ie(c)?c:[],d.frameElement&&a?_e(d.frameElement):[]):o.concat(c,_e(c,[],a))}function Ra(e){let o=it(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=gt(e),l=c?e.offsetWidth:a,d=c?e.offsetHeight:i,p=Ce(a)!==l||Ce(i)!==d;return p&&(a=l,i=d),{width:a,height:i,$:p}}function Aa(e){return Ct(e)?e:e.contextElement}function ce(e){let o=Aa(e);if(!gt(o))return Lt(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=Ra(o),d=(l?Ce(a.width):a.width)/i,p=(l?Ce(a.height):a.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}var An=Lt(0);function $a(e){let o=ot(e);return!Ge()||!o.visualViewport?An:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function $n(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==ot(e)?!1:o}function we(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=Aa(e),d=Lt(1);o&&(i?Ct(i)&&(d=ce(i)):d=ce(e));let p=$n(l,a,i)?$a(l):Lt(0),u=(c.left+p.x)/d.x,m=(c.top+p.y)/d.y,C=c.width/d.x,x=c.height/d.y;if(l){let E=ot(l),N=i&&Ct(i)?ot(i):i,R=E.frameElement;for(;R&&i&&N!==E;){let T=ce(R),D=R.getBoundingClientRect(),H=it(R),G=D.left+(R.clientLeft+parseFloat(H.paddingLeft))*T.x,Q=D.top+(R.clientTop+parseFloat(H.paddingTop))*T.y;u*=T.x,m*=T.y,C*=T.x,x*=T.y,u+=G,m+=Q,R=ot(R).frameElement}}return Ft({width:C,height:x,x:u,y:m})}function Bn(e){let{rect:o,offsetParent:a,strategy:i}=e,c=gt(a),l=At(a);if(a===l)return o;let d={scrollLeft:0,scrollTop:0},p=Lt(1),u=Lt(0);if((c||!c&&i!=="fixed")&&((Rt(a)!=="body"||ie(l))&&(d=ve(a)),gt(a))){let m=we(a);p=ce(a),u.x=m.x+a.clientLeft,u.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-d.scrollLeft*p.x+u.x,y:o.y*p.y-d.scrollTop*p.y+u.y}}function In(e){return Array.from(e.getClientRects())}function Ba(e){return we(At(e)).left+ve(e).scrollLeft}function Pn(e){let o=At(e),a=ve(e),i=e.ownerDocument.body,c=ne(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=ne(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),d=-a.scrollLeft+Ba(e),p=-a.scrollTop;return it(i).direction==="rtl"&&(d+=ne(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:d,y:p}}function Wn(e,o){let a=ot(e),i=At(e),c=a.visualViewport,l=i.clientWidth,d=i.clientHeight,p=0,u=0;if(c){l=c.width,d=c.height;let m=Ge();(!m||m&&o==="fixed")&&(p=c.offsetLeft,u=c.offsetTop)}return{width:l,height:d,x:p,y:u}}function kn(e,o){let a=we(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=gt(e)?ce(e):Lt(1),d=e.clientWidth*l.x,p=e.clientHeight*l.y,u=c*l.x,m=i*l.y;return{width:d,height:p,x:u,y:m}}function Ea(e,o,a){let i;if(o==="viewport")i=Wn(e,a);else if(o==="document")i=Pn(At(e));else if(Ct(o))i=kn(o,a);else{let c=$a(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return Ft(i)}function Ia(e,o){let a=Mt(e);return a===o||!Ct(a)||Oe(a)?!1:it(a).position==="fixed"||Ia(a,o)}function zn(e,o){let a=o.get(e);if(a)return a;let i=_e(e,[],!1).filter(p=>Ct(p)&&Rt(p)!=="body"),c=null,l=it(e).position==="fixed",d=l?Mt(e):e;for(;Ct(d)&&!Oe(d);){let p=it(d),u=De(d);!u&&p.position==="fixed"&&(c=null),(l?!u&&!c:!u&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||ie(d)&&!u&&Ia(e,d))?i=i.filter(C=>C!==d):c=p,d=Mt(d)}return o.set(e,i),i}function Tn(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,d=[...a==="clippingAncestors"?zn(o,this._c):[].concat(a),i],p=d[0],u=d.reduce((m,C)=>{let x=Ea(o,C,c);return m.top=ne(x.top,m.top),m.right=Oo(x.right,m.right),m.bottom=Oo(x.bottom,m.bottom),m.left=ne(x.left,m.left),m},Ea(o,p,c));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Hn(e){return Ra(e)}function _n(e,o,a){let i=gt(o),c=At(o),l=a==="fixed",d=we(e,!0,l,o),p={scrollLeft:0,scrollTop:0},u=Lt(0);if(i||!i&&!l)if((Rt(o)!=="body"||ie(c))&&(p=ve(o)),i){let m=we(o,!0,l,o);u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}else c&&(u.x=Ba(c));return{x:d.left+p.scrollLeft-u.x,y:d.top+p.scrollTop-u.y,width:d.width,height:d.height}}function La(e,o){return!gt(e)||it(e).position==="fixed"?null:o?o(e):e.offsetParent}function Pa(e,o){let a=ot(e);if(!gt(e))return a;let i=La(e,o);for(;i&&va(i)&&it(i).position==="static";)i=La(i,o);return i&&(Rt(i)==="html"||Rt(i)==="body"&&it(i).position==="static"&&!De(i))?a:i||wa(e)||a}var Dn=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||Pa,l=this.getDimensions;return{reference:_n(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function Gn(e){return it(e).direction==="rtl"}var Ue={convertOffsetParentRelativeRectToViewportRelativeRect:Bn,getDocumentElement:At,getClippingRect:Tn,getOffsetParent:Pa,getElementRects:Dn,getClientRects:In,getDimensions:Hn,getScale:ce,isElement:Ct,isRTL:Gn};var Wa=(e,o,a)=>{let i=new Map,c={platform:Ue,...a},l={...c.platform,_c:i};return Sa(e,o,{...c,platform:l})};function ka(e){return Un(e)}function vo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Un(e){for(let o=e;o;o=vo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=vo(e);o;o=vo(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function za(e,o,a){return Wa(e,o,{platform:{...Ue,getOffsetParent:i=>Ue.getOffsetParent(i,ka)},middleware:[Co({crossAxis:!0}),So({allowedPlacements:[a]})]})}var rt=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},W=class extends Ne.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 Ne.Debouncer,this.revealDebouncer=new Ne.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Ta.html`
|
|
538
538
|
<div part="container"
|
|
539
539
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
540
540
|
@mouseenter=${this.onHover}
|
|
@@ -552,7 +552,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
552
552
|
</div>
|
|
553
553
|
</div>
|
|
554
554
|
</div>
|
|
555
|
-
`}updated(o){o.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(o)}contentAvailableCallback(o){super.contentAvailableCallback(o),["visible","text"].some(a=>o.has(a))&&this.visible&&this.positionTooltip()}async show(o){this.visible=!0,o!=null&&await this.hideDebounce.run(()=>{this.hide()},o)}async showTemporaryText(o,a){let i=this.manual;this.manual=!0;let c=this.text;this.text=o,await this.show(a),this.text=c,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var o;return((o=this.slotNodes)!==null&&o!==void 0?o:[]).filter(a=>a.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let o=this.tooltipContent.style;switch(o.transition="none",this.validPosition){case"top":o.top=this.tooltip.clientHeight+"px",o.left="0";break;case"bottom":o.top=-this.tooltip.clientHeight+"px",o.left="0";break;case"left":o.top="0",o.left=this.tooltip.clientWidth+"px";break;case"right":o.top="0",o.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",za(this.slottedElement,this.tooltip,this.position).then(({x:o,y:a})=>{this.tooltip&&(this.tooltip.style.left=`${o}px`,this.tooltip.style.top=`${a}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(o,a){return Math.max(o,Math.min(0,-a))}};W.elementDefinitions={"ft-typography":tt};W.styles=pa;rt([(0,U.property)()],W.prototype,"text",void 0);rt([(0,U.property)({type:Boolean})],W.prototype,"manual",void 0);rt([(0,U.property)({type:Boolean})],W.prototype,"inline",void 0);rt([(0,U.property)({type:Number})],W.prototype,"delay",void 0);rt([(0,U.property)()],W.prototype,"position",void 0);rt([(0,U.queryAssignedNodes)()],W.prototype,"slotNodes",void 0);rt([(0,U.query)(".ft-tooltip--container")],W.prototype,"container",void 0);rt([(0,U.query)(".ft-tooltip")],W.prototype,"tooltip",void 0);rt([(0,U.query)(".ft-tooltip--content")],W.prototype,"tooltipContent",void 0);rt([(0,U.state)()],W.prototype,"visible",void 0);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onTouch",null);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onHover",null);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onOut",null);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onClick",null);(0,Ha.customElement)("ft-tooltip")(W);var Fa=b(L());var Ee=b(I()),Wt=b(ct()),Ga=b(L()),Ua=b(_a());var le;(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.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR=""})(le||(le={}));var g;(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=""})(g||(g={}));var Lp=new Map([...["abw"].map(e=>[e,g.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,g.AUDIO]),...["avi"].map(e=>[e,g.AVI]),...["chm","xhs"].map(e=>[e,g.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,g.CODE]),...["csv"].map(e=>[e,g.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,g.DITA]),...["epub"].map(e=>[e,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,g.EXCEL]),...["flac"].map(e=>[e,g.FLAC]),...["gif"].map(e=>[e,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,g.GZIP]),...["html","htm","xhtml"].map(e=>[e,g.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,g.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,g.JPEG]),...["json"].map(e=>[e,g.JSON]),...["m4a","m4p"].map(e=>[e,g.M4A]),...["mov","qt"].map(e=>[e,g.MOV]),...["mp3"].map(e=>[e,g.MP3]),...["mp4","m4v"].map(e=>[e,g.MP4]),...["ogg","oga"].map(e=>[e,g.OGG]),...["pdf","ps"].map(e=>[e,g.PDF]),...["png"].map(e=>[e,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,g.POWERPOINT]),...["rar"].map(e=>[e,g.RAR]),...["stp"].map(e=>[e,g.STP]),...["txt","rtf","md","mdown"].map(e=>[e,g.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,g.VIDEO]),...["wav"].map(e=>[e,g.WAV]),...["wma"].map(e=>[e,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,g.WORD]),...["xml","xsl","rdf"].map(e=>[e,g.XML]),...["yaml","yml","x-yaml"].map(e=>[e,g.YAML]),...["zip"].map(e=>[e,g.ZIP])]);var Rp={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var st;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(st||(st={}));var Le=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},V=class extends Ga.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ee.nothing}render(){let o=this.variant&&Object.values(st).includes(this.variant)?this.variant:st.fluid_topics,a=o!==st.material||!!this.value;return Ee.html`
|
|
555
|
+
`}updated(o){o.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(o)}contentAvailableCallback(o){super.contentAvailableCallback(o),["visible","text"].some(a=>o.has(a))&&this.visible&&this.positionTooltip()}async show(o){this.visible=!0,o!=null&&await this.hideDebounce.run(()=>{this.hide()},o)}async showTemporaryText(o,a){let i=this.manual;this.manual=!0;let c=this.text;this.text=o,await this.show(a),this.text=c,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var o;return((o=this.slotNodes)!==null&&o!==void 0?o:[]).filter(a=>a.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let o=this.tooltipContent.style;switch(o.transition="none",this.validPosition){case"top":o.top=this.tooltip.clientHeight+"px",o.left="0";break;case"bottom":o.top=-this.tooltip.clientHeight+"px",o.left="0";break;case"left":o.top="0",o.left=this.tooltip.clientWidth+"px";break;case"right":o.top="0",o.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",za(this.slottedElement,this.tooltip,this.position).then(({x:o,y:a})=>{this.tooltip&&(this.tooltip.style.left=`${o}px`,this.tooltip.style.top=`${a}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(o,a){return Math.max(o,Math.min(0,-a))}};W.elementDefinitions={"ft-typography":tt};W.styles=pa;rt([(0,U.property)()],W.prototype,"text",void 0);rt([(0,U.property)({type:Boolean})],W.prototype,"manual",void 0);rt([(0,U.property)({type:Boolean})],W.prototype,"inline",void 0);rt([(0,U.property)({type:Number})],W.prototype,"delay",void 0);rt([(0,U.property)()],W.prototype,"position",void 0);rt([(0,U.queryAssignedNodes)()],W.prototype,"slotNodes",void 0);rt([(0,U.query)(".ft-tooltip--container")],W.prototype,"container",void 0);rt([(0,U.query)(".ft-tooltip")],W.prototype,"tooltip",void 0);rt([(0,U.query)(".ft-tooltip--content")],W.prototype,"tooltipContent",void 0);rt([(0,U.state)()],W.prototype,"visible",void 0);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onTouch",null);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onHover",null);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onOut",null);rt([(0,U.eventOptions)({passive:!0})],W.prototype,"onClick",null);(0,Ha.customElement)("ft-tooltip")(W);var Fa=b(L());var Ee=b(I()),Wt=b(ct()),Ga=b(L()),Ua=b(Da());var le;(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.EYE="",e.SHARE="󨃱",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=""})(le||(le={}));var g;(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=""})(g||(g={}));var Lp=new Map([...["abw"].map(e=>[e,g.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,g.AUDIO]),...["avi"].map(e=>[e,g.AVI]),...["chm","xhs"].map(e=>[e,g.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,g.CODE]),...["csv"].map(e=>[e,g.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,g.DITA]),...["epub"].map(e=>[e,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,g.EXCEL]),...["flac"].map(e=>[e,g.FLAC]),...["gif"].map(e=>[e,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,g.GZIP]),...["html","htm","xhtml"].map(e=>[e,g.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,g.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,g.JPEG]),...["json"].map(e=>[e,g.JSON]),...["m4a","m4p"].map(e=>[e,g.M4A]),...["mov","qt"].map(e=>[e,g.MOV]),...["mp3"].map(e=>[e,g.MP3]),...["mp4","m4v"].map(e=>[e,g.MP4]),...["ogg","oga"].map(e=>[e,g.OGG]),...["pdf","ps"].map(e=>[e,g.PDF]),...["png"].map(e=>[e,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,g.POWERPOINT]),...["rar"].map(e=>[e,g.RAR]),...["stp"].map(e=>[e,g.STP]),...["txt","rtf","md","mdown"].map(e=>[e,g.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,g.VIDEO]),...["wav"].map(e=>[e,g.WAV]),...["wma"].map(e=>[e,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,g.WORD]),...["xml","xsl","rdf"].map(e=>[e,g.XML]),...["yaml","yml","x-yaml"].map(e=>[e,g.YAML]),...["zip"].map(e=>[e,g.ZIP])]);var Rp={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var st;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(st||(st={}));var Le=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},V=class extends Ga.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ee.nothing}render(){let o=this.variant&&Object.values(st).includes(this.variant)?this.variant:st.fluid_topics,a=o!==st.material||!!this.value;return Ee.html`
|
|
556
556
|
<i class="ft-icon ft-icon--${o} ft-no-text-select" part="icon icon-${o}">
|
|
557
557
|
${(0,Ua.unsafeHTML)(this.resolvedIcon)}
|
|
558
558
|
<slot ?hidden=${a}></slot>
|
|
@@ -1442,7 +1442,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1442
1442
|
></ftds-button>
|
|
1443
1443
|
`:this.withAction?Tt.html`
|
|
1444
1444
|
<slot name="action"></slot>
|
|
1445
|
-
`:Tt.nothing}resolveButtonSize(){switch(this.size){case J.large:return J.medium;case J.medium:case J.small:return J.small}}getLabel(){return this.label||this.textContent}get textContent(){var o,a;return(a=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&a!==void 0?a:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Eo)}typographyVariant(){switch(this.size){case J.large:return yt.body2medium;case J.medium:case J.small:return yt.caption1medium}}};pt.elementDefinitions={"ft-typography":tt,"ft-icon":V,"ftds-button":mt};pt.styles=an;pe([(0,Ht.property)({type:Boolean})],pt.prototype,"withAction",void 0);pe([(0,Ht.property)({type:Boolean})],pt.prototype,"removable",void 0);pe([(0,Ht.property)()],pt.prototype,"removeButtonLabel",void 0);pe([(0,Ht.property)()],pt.prototype,"label",void 0);pe([(0,Ht.property)()],pt.prototype,"icon",void 0);pe([(0,Ht.query)("ft-typography slot")],pt.prototype,"slottedContent",void 0);(0,Lo.customElement)("ft-chip")(k);(0,Lo.customElement)("ftds-chip")(pt);var
|
|
1445
|
+
`:Tt.nothing}resolveButtonSize(){switch(this.size){case J.large:return J.medium;case J.medium:case J.small:return J.small}}getLabel(){return this.label||this.textContent}get textContent(){var o,a;return(a=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&a!==void 0?a:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Eo)}typographyVariant(){switch(this.size){case J.large:return yt.body2medium;case J.medium:case J.small:return yt.caption1medium}}};pt.elementDefinitions={"ft-typography":tt,"ft-icon":V,"ftds-button":mt};pt.styles=an;pe([(0,Ht.property)({type:Boolean})],pt.prototype,"withAction",void 0);pe([(0,Ht.property)({type:Boolean})],pt.prototype,"removable",void 0);pe([(0,Ht.property)()],pt.prototype,"removeButtonLabel",void 0);pe([(0,Ht.property)()],pt.prototype,"label",void 0);pe([(0,Ht.property)()],pt.prototype,"icon",void 0);pe([(0,Ht.query)("ft-typography slot")],pt.prototype,"slottedContent",void 0);(0,Lo.customElement)("ft-chip")(k);(0,Lo.customElement)("ftds-chip")(pt);var _t=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(d=e[p])&&(l=(c<3?d(l):c>3?d(o,a,l):d(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},Ro=class extends CustomEvent{constructor(o,a){super("ft-chip-choice-option-change",{detail:{value:o,selected:a},bubbles:!0,composed:!0})}},nt=class extends ln.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.label="",this.selected=!1,this.dense=!1,this.multiLine=!1,this.role="radio"}render(){return cn.html`
|
|
1446
1446
|
<ft-chip clickable
|
|
1447
1447
|
part="chip"
|
|
1448
1448
|
icon=${this.selected?"CHECK":""}
|
|
@@ -1454,7 +1454,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1454
1454
|
@keydown=${this.onKeyDown}>
|
|
1455
1455
|
<slot></slot>
|
|
1456
1456
|
</ft-chip>
|
|
1457
|
-
`}onKeyDown(o){o.key==" "&&o.preventDefault()}update(o){super.update(o),o.has("selected")&&(this.ariaChecked=this.selected?"true":"false")}onChange(o){o.preventDefault(),this.selected=!this.selected,this.dispatchEvent(new Ro(this.value,this.selected))}};nt.elementDefinitions={"ft-chip":k};nt.styles=en;
|
|
1457
|
+
`}onKeyDown(o){o.key==" "&&o.preventDefault()}update(o){super.update(o),o.has("selected")&&(this.ariaChecked=this.selected?"true":"false")}onChange(o){o.preventDefault(),this.selected=!this.selected,this.dispatchEvent(new Ro(this.value,this.selected))}};nt.elementDefinitions={"ft-chip":k};nt.styles=en;_t([(0,Ot.property)()],nt.prototype,"name",void 0);_t([(0,Ot.property)()],nt.prototype,"value",void 0);_t([(0,Ot.property)()],nt.prototype,"label",void 0);_t([(0,Ot.property)({type:Boolean})],nt.prototype,"selected",void 0);_t([(0,Ot.property)({type:Boolean})],nt.prototype,"dense",void 0);_t([(0,Ot.property)({type:Boolean})],nt.prototype,"multiLine",void 0);_t([(0,Ot.property)({reflect:!0,attribute:"role"})],nt.prototype,"role",void 0);_t([(0,Ot.query)("ft-chip")],nt.prototype,"chip",void 0);(0,Ao.customElement)("ft-chip-choice")(ft);(0,Ao.customElement)("ft-chip-choice-option")(nt);})();
|
|
1458
1458
|
/*! Bundled license information:
|
|
1459
1459
|
|
|
1460
1460
|
lit-html/lit-html.js:
|
|
@@ -620,7 +620,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
620
620
|
</div>
|
|
621
621
|
</div>
|
|
622
622
|
</div>
|
|
623
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=e,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Kn(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};te.elementDefinitions={"ft-typography":ye};te.styles=Zc;be([A()],te.prototype,"text",void 0);be([A({type:Boolean})],te.prototype,"manual",void 0);be([A({type:Boolean})],te.prototype,"inline",void 0);be([A({type:Number})],te.prototype,"delay",void 0);be([A()],te.prototype,"position",void 0);be([ko()],te.prototype,"slotNodes",void 0);be([ne(".ft-tooltip--container")],te.prototype,"container",void 0);be([ne(".ft-tooltip")],te.prototype,"tooltip",void 0);be([ne(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);be([ce()],te.prototype,"visible",void 0);be([_t({passive:!0})],te.prototype,"onTouch",null);be([_t({passive:!0})],te.prototype,"onHover",null);be([_t({passive:!0})],te.prototype,"onOut",null);be([_t({passive:!0})],te.prototype,"onClick",null);ae("ft-tooltip")(te);var ar;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",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="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR=""})(ar||(ar={}));var _;(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=""})(_||(_={}));var Ov=new Map([...["abw"].map(t=>[t,_.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,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.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,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.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(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.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,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var Ev={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var we;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(we||(we={}));var $r=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},de=class extends j{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=K}render(){let e=this.variant&&Object.values(we).includes(this.variant)?this.variant:we.fluid_topics,o=e!==we.material||!!this.value;return H`
|
|
623
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=e,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Kn(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};te.elementDefinitions={"ft-typography":ye};te.styles=Zc;be([A()],te.prototype,"text",void 0);be([A({type:Boolean})],te.prototype,"manual",void 0);be([A({type:Boolean})],te.prototype,"inline",void 0);be([A({type:Number})],te.prototype,"delay",void 0);be([A()],te.prototype,"position",void 0);be([ko()],te.prototype,"slotNodes",void 0);be([ne(".ft-tooltip--container")],te.prototype,"container",void 0);be([ne(".ft-tooltip")],te.prototype,"tooltip",void 0);be([ne(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);be([ce()],te.prototype,"visible",void 0);be([_t({passive:!0})],te.prototype,"onTouch",null);be([_t({passive:!0})],te.prototype,"onHover",null);be([_t({passive:!0})],te.prototype,"onOut",null);be([_t({passive:!0})],te.prototype,"onClick",null);ae("ft-tooltip")(te);var ar;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",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="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK=""})(ar||(ar={}));var _;(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=""})(_||(_={}));var Ov=new Map([...["abw"].map(t=>[t,_.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,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.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,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.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(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.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,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var Ev={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var we;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(we||(we={}));var $r=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},de=class extends j{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=K}render(){let e=this.variant&&Object.values(we).includes(this.variant)?this.variant:we.fluid_topics,o=e!==we.material||!!this.value;return H`
|
|
624
624
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
625
625
|
${Mo(this.resolvedIcon)}
|
|
626
626
|
<slot ?hidden=${o}></slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-chip-choice",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"description": "Chip-choice is a component used to make single-select or multi-select selections.",
|
|
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-chip": "1.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.3.10",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.3.10",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@fluid-topics/ft-wc-test-utils": "1.3.
|
|
27
|
+
"@fluid-topics/ft-wc-test-utils": "1.3.10"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c46b5f2b1d1764a41879e9ff520a4d3656d6b08f"
|
|
30
30
|
}
|