@fluid-topics/ft-text-field 2.2.8 → 2.2.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.
- package/build/ft-text-field-suggestion.d.ts +14 -5
- package/build/ft-text-field-suggestion.js +104 -29
- package/build/ft-text-field-suggestion.styles.js +9 -3
- package/build/ft-text-field.d.ts +1 -1
- package/build/ft-text-field.js +22 -18
- package/build/ft-text-field.light.js +587 -232
- package/build/ft-text-field.min.js +585 -243
- package/build/models.d.ts +2 -1
- package/package.json +7 -7
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),at=/'/g,pt=/"/g,ut=/^(?:script|style|textarea|title)$/i,ke=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),ct=ke(1),xt=ke(2),gt=ke(3),ge=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),ft=new WeakMap,q=Q.createTreeWalker(Q,129);function mt(e,t){if(!Ve(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return nt!==void 0?nt.createHTML(t):t}var Ei=(e,t)=>{let i=e.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",s=ce;for(let f=0;f<i;f++){let u=e[f],b,E,v=-1,k=0;for(;k<u.length&&(s.lastIndex=k,E=s.exec(u),E!==null);)k=s.lastIndex,s===ce?E[1]==="!--"?s=st:E[1]!==void 0?s=lt:E[2]!==void 0?(ut.test(E[2])&&(r=RegExp("</"+E[2],"g")),s=I):E[3]!==void 0&&(s=I):s===I?E[0]===">"?(s=r??ce,v=-1):E[1]===void 0?v=-2:(v=s.lastIndex-E[2].length,b=E[1],s=E[3]===void 0?I:E[3]==='"'?pt:at):s===pt||s===at?s=I:s===st||s===lt?s=ce:(s=I,r=void 0);let K=s===I&&e[f+1].startsWith("/>")?" ":"";n+=s===ce?u+Ai:v>=0?(o.push(b),u.slice(0,v)+dt+u.slice(v)+Y+K):u+Y+(v===-2?f:K)}return[mt(e,n+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},me=class e{constructor({strings:t,_$litType$:i},o){let r;this.parts=[];let n=0,s=0,f=t.length-1,u=this.parts,[b,E]=Ei(t,i);if(this.el=e.createElement(b,o),q.currentNode=this.el.content,i===2||i===3){let v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(r=q.nextNode())!==null&&u.length<f;){if(r.nodeType===1){if(r.hasAttributes())for(let v of r.getAttributeNames())if(v.endsWith(dt)){let k=E[s++],K=r.getAttribute(v).split(Y),Ae=/([.?@])?(.*)/.exec(k);u.push({type:1,index:n,name:Ae[2],strings:K,ctor:Ae[1]==="."?Me:Ae[1]==="?"?Be:Ae[1]==="@"?ze:de}),r.removeAttribute(v)}else v.startsWith(Y)&&(u.push({type:6,index:n}),r.removeAttribute(v));if(ut.test(r.tagName)){let v=r.textContent.split(Y),k=v.length-1;if(k>0){r.textContent=$e?$e.emptyScript:"";for(let K=0;K<k;K++)r.append(v[K],Ee()),q.nextNode(),u.push({type:2,index:++n});r.append(v[k],Ee())}}}else if(r.nodeType===8)if(r.data===ht)u.push({type:2,index:n});else{let v=-1;for(;(v=r.data.indexOf(Y,v+1))!==-1;)u.push({type:7,index:n}),v+=Y.length-1}n++}}static createElement(t,i){let o=Q.createElement("template");return o.innerHTML=t,o}};function fe(e,t,i=e,o){if(t===ge)return t;let r=o!==void 0?i._$Co?.[o]:i._$Cl,n=xe(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=r:i._$Cl=r),r!==void 0&&(t=fe(e,r._$AS(e,t.values),r,o)),t}var He=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:i},parts:o}=this._$AD,r=(t?.creationScope??Q).importNode(i,!0);q.currentNode=r;let n=q.nextNode(),s=0,f=0,u=o[0];for(;u!==void 0;){if(s===u.index){let b;u.type===2?b=new Ce(n,n.nextSibling,this,t):u.type===1?b=new u.ctor(n,u.name,u.strings,this,t):u.type===6&&(b=new We(n,this,t)),this._$AV.push(b),u=o[++f]}s!==u?.index&&(n=q.nextNode(),s++)}return q.currentNode=Q,r}p(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},Ce=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,r){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=fe(this,t,i),xe(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):$i(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&xe(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=me.createElement(mt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(i);else{let n=new He(r,this),s=n.u(this.options);n.p(i),this.T(s),this._$AH=n}}_$AC(t){let i=ft.get(t.strings);return i===void 0&&ft.set(t.strings,i=new me(t)),i}k(t){Ve(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let n of t)r===i.length?i.push(o=new e(this.O(Ee()),this.O(Ee()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let o=rt(t).nextSibling;rt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},de=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,r,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=A}_$AI(t,i=this,o,r){let n=this.strings,s=!1;if(n===void 0)t=fe(this,t,i,0),s=!xe(t)||t!==this._$AH&&t!==ge,s&&(this._$AH=t);else{let f=t,u,b;for(t=n[0],u=0;u<n.length-1;u++)b=fe(this,f[o+u],i,u),b===ge&&(b=this._$AH[u]),s||=!xe(b)||b!==this._$AH[u],b===A?t=A:t!==A&&(t+=(b??"")+n[u+1]),this._$AH[u]=b}s&&!r&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Me=class extends de{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}},Be=class extends de{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}},ze=class extends de{constructor(t,i,o,r,n){super(t,i,o,r,n),this.type=5}_$AI(t,i=this){if((t=fe(this,t,i,0)??A)===ge)return;let o=this._$AH,r=t===A&&o!==A||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==A&&(o===A||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},We=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){fe(this,t)}};var Ci=Ue.litHtmlPolyfillSupport;Ci?.(me,Ce),(Ue.litHtmlVersions??=[]).push("3.3.3");var ye=e=>e??A;var L=c(T());var bt=Symbol.for(""),Ti=e=>{if(e?.r===bt)return e?._$litStatic$},Ge=e=>({_$litStatic$:e,r:bt});var yt=new Map,Ke=e=>(t,...i)=>{let o=i.length,r,n,s=[],f=[],u,b=0,E=!1;for(;b<o;){for(u=t[b];b<o&&(n=i[b],(r=Ti(n))!==void 0);)u+=r+t[++b],E=!0;b!==o&&f.push(n),s.push(u),b++}if(b===o&&s.push(t[o]),E){let v=s.join("$$lit$$");(t=yt.get(v))===void 0&&(s.raw=s,yt.set(v,t=s)),i=f}return e(t,...i)},je=Ke(ct),Ui=Ke(xt),Vi=Ke(gt);var Ye=c(j()),Nt=c(T());var he;(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"})(he||(he={}));var P=c(D()),l=c(T()),vt=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.titleFont),G=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.contentFont),p={fontFamily:G,fontSize:l.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:l.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:l.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:l.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:l.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:l.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},J={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-font-family","",vt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",p.textDecoration,"inherit")},F={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",vt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",p.textDecoration,"inherit")},ee={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",p.textDecoration,"inherit")},te={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",p.textDecoration,"inherit")},U={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",p.textDecoration,"inherit")},ie={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",p.textDecoration,"inherit")},N={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",p.textDecoration,"inherit")},oe={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",p.textDecoration,"inherit")},re={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",p.textDecoration,"inherit")},ne={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",p.textDecoration,"inherit")},St=P.css`
|
|
1
|
+
"use strict";(()=>{var fc=Object.create;var zn=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,yc=Object.prototype.hasOwnProperty;var Pt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var xc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mc(t))!yc.call(e,n)&&n!==r&&zn(e,n,{get:()=>t[n],enumerable:!(i=hc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?fc(gc(e)):{},xc(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var A=Pt((td,jn)=>{jn.exports=ftGlobals.wcUtils});var V=Pt((rd,Wn)=>{Wn.exports=ftGlobals.lit});var J=Pt((id,Kn)=>{Kn.exports=ftGlobals.litDecorators});var qn=Pt((nd,Gn)=>{Gn.exports=ftGlobals.litRepeat});var Nt=Pt((sd,Yn)=>{Yn.exports=ftGlobals.litClassMap});var qs=Pt((cp,Gs)=>{Gs.exports=ftGlobals.litUnsafeHTML});var uc=f(A());var q=f(V()),L=f(J()),ac=f(qn()),lc=f(Nt());var Hi=globalThis,Xn=e=>e,Tr=Hi.trustedTypes,Zn=Tr?Tr.createPolicy("lit-html",{createHTML:e=>e}):void 0,is="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,ns="?"+Ke,vc=`<${ns}>`,st=document,Or=()=>st.createComment(""),Zt=e=>e===null||typeof e!="object"&&typeof e!="function",Fi=Array.isArray,bc=e=>Fi(e)||typeof e?.[Symbol.iterator]=="function",ki=`[
|
|
2
|
+
\f\r]`,Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jn=/-->/g,Qn=/>/g,it=RegExp(`>|${ki}(?:([^\\s"'>=/]+)(${ki}*=${ki}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),es=/'/g,ts=/"/g,ss=/^(?:script|style|textarea|title)$/i,Vi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),os=Vi(1),as=Vi(2),ls=Vi(3),Jt=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),rs=new WeakMap,nt=st.createTreeWalker(st,129);function cs(e,t){if(!Fi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zn!==void 0?Zn.createHTML(t):t}var Sc=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=Xt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Xt?u[1]==="!--"?o=Jn:u[1]!==void 0?o=Qn:u[2]!==void 0?(ss.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=it):u[3]!==void 0&&(o=it):o===it?u[0]===">"?(o=n??Xt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?it:u[3]==='"'?ts:es):o===ts||o===es?o=it:o===Jn||o===Qn?o=Xt:(o=it,n=void 0);let g=o===it&&e[a+1].startsWith("/>")?" ":"";s+=o===Xt?l+vc:d>=0?(i.push(c),l.slice(0,d)+is+l.slice(d)+Ke+g):l+Ke+(d===-2?a:g)}return[cs(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Qt=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Sc(t,r);if(this.el=e.createElement(c,i),nt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=nt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(is)){let p=u[o++],g=n.getAttribute(d).split(Ke),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:g,ctor:v[1]==="."?Ii:v[1]==="?"?$i:v[1]==="@"?Ui:kt}),n.removeAttribute(d)}else d.startsWith(Ke)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(ss.test(n.tagName)){let d=n.textContent.split(Ke),p=d.length-1;if(p>0){n.textContent=Tr?Tr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Or()),nt.nextNode(),l.push({type:2,index:++s});n.append(d[p],Or())}}}else if(n.nodeType===8)if(n.data===ns)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(Ke,d+1))!==-1;)l.push({type:7,index:s}),d+=Ke.length-1}s++}}static createElement(t,r){let i=st.createElement("template");return i.innerHTML=t,i}};function Dt(e,t,r=e,i){if(t===Jt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Zt(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Dt(e,n._$AS(e,t.values),n,i)),t}var Mi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??st).importNode(r,!0);nt.currentNode=n;let s=nt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Rr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Bi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=nt.nextNode(),o++)}return nt.currentNode=st,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Dt(this,t,r),Zt(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):bc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==W&&Zt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qt.createElement(cs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Mi(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=rs.get(t.strings);return r===void 0&&rs.set(t.strings,r=new Qt(t)),r}k(t){Fi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(Or()),this.O(Or()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=Xn(t).nextSibling;Xn(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},kt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Dt(this,t,r,0),o=!Zt(t)||t!==this._$AH&&t!==Jt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Dt(this,a[i+l],r,l),c===Jt&&(c=this._$AH[l]),o||=!Zt(c)||c!==this._$AH[l],c===W?t=W:t!==W&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ii=class extends kt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}},$i=class extends kt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},Ui=class extends kt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Dt(this,t,r,0)??W)===Jt)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Dt(this,t)}};var Ec=Hi.litHtmlPolyfillSupport;Ec?.(Qt,Rr),(Hi.litHtmlVersions??=[]).push("3.3.3");var Pe=e=>e??W;var le=f(A());var ds=Symbol.for(""),Ac=e=>{if(e?.r===ds)return e?._$litStatic$},zi=e=>({_$litStatic$:e,r:ds});var us=new Map,ji=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=Ac(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=us.get(d))===void 0&&(o.raw=o,us.set(d,t=o)),r=a}return e(t,...r)},Wi=ji(os),pd=ji(as),fd=ji(ls);var Ki=f(J()),As=f(A());var ye;(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"})(ye||(ye={}));var xe=f(V()),h=f(A()),ps=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Be=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Be,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ps),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},at={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ps),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},lt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ut={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},ce={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},dt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},_e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},fs=xe.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
|
-
font-family: ${
|
|
6
|
-
font-size: ${
|
|
7
|
-
font-weight: ${
|
|
8
|
-
letter-spacing: ${
|
|
9
|
-
line-height: ${
|
|
10
|
-
text-transform: ${
|
|
11
|
-
text-decoration: ${
|
|
12
|
-
}
|
|
13
|
-
`,
|
|
5
|
+
font-family: ${ot.fontFamily};
|
|
6
|
+
font-size: ${ot.fontSize};
|
|
7
|
+
font-weight: ${ot.fontWeight};
|
|
8
|
+
letter-spacing: ${ot.letterSpacing};
|
|
9
|
+
line-height: ${ot.lineHeight};
|
|
10
|
+
text-transform: ${ot.textTransform};
|
|
11
|
+
text-decoration: ${ot.textDecoration};
|
|
12
|
+
}
|
|
13
|
+
`,hs=xe.css`
|
|
14
14
|
.ft-typography--title-dense {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
21
|
-
text-decoration: ${
|
|
22
|
-
}
|
|
23
|
-
`,
|
|
15
|
+
font-family: ${at.fontFamily};
|
|
16
|
+
font-size: ${at.fontSize};
|
|
17
|
+
font-weight: ${at.fontWeight};
|
|
18
|
+
letter-spacing: ${at.letterSpacing};
|
|
19
|
+
line-height: ${at.lineHeight};
|
|
20
|
+
text-transform: ${at.textTransform};
|
|
21
|
+
text-decoration: ${at.textDecoration};
|
|
22
|
+
}
|
|
23
|
+
`,ms=xe.css`
|
|
24
24
|
.ft-typography--subtitle1 {
|
|
25
|
-
font-family: ${
|
|
26
|
-
font-size: ${
|
|
27
|
-
font-weight: ${
|
|
28
|
-
letter-spacing: ${
|
|
29
|
-
line-height: ${
|
|
30
|
-
text-transform: ${
|
|
31
|
-
text-decoration: ${
|
|
32
|
-
}
|
|
33
|
-
|
|
25
|
+
font-family: ${lt.fontFamily};
|
|
26
|
+
font-size: ${lt.fontSize};
|
|
27
|
+
font-weight: ${lt.fontWeight};
|
|
28
|
+
letter-spacing: ${lt.letterSpacing};
|
|
29
|
+
line-height: ${lt.lineHeight};
|
|
30
|
+
text-transform: ${lt.textTransform};
|
|
31
|
+
text-decoration: ${lt.textDecoration};
|
|
32
|
+
}
|
|
33
|
+
`,gs=xe.css`
|
|
34
34
|
.ft-typography--subtitle2 {
|
|
35
|
-
font-family: ${
|
|
36
|
-
font-size: ${
|
|
37
|
-
font-weight: ${
|
|
38
|
-
letter-spacing: ${
|
|
39
|
-
line-height: ${
|
|
40
|
-
text-transform: ${
|
|
41
|
-
text-decoration: ${
|
|
35
|
+
font-family: ${ct.fontFamily};
|
|
36
|
+
font-size: ${ct.fontSize};
|
|
37
|
+
font-weight: ${ct.fontWeight};
|
|
38
|
+
letter-spacing: ${ct.letterSpacing};
|
|
39
|
+
line-height: ${ct.lineHeight};
|
|
40
|
+
text-transform: ${ct.textTransform};
|
|
41
|
+
text-decoration: ${ct.textDecoration};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
`,
|
|
44
|
+
`,Lr=xe.css`
|
|
45
45
|
.ft-typography--body1 {
|
|
46
|
-
font-family: ${
|
|
47
|
-
font-size: ${
|
|
48
|
-
font-weight: ${
|
|
49
|
-
letter-spacing: ${
|
|
50
|
-
line-height: ${
|
|
51
|
-
text-transform: ${
|
|
52
|
-
text-decoration: ${
|
|
53
|
-
}
|
|
54
|
-
`,
|
|
46
|
+
font-family: ${Ne.fontFamily};
|
|
47
|
+
font-size: ${Ne.fontSize};
|
|
48
|
+
font-weight: ${Ne.fontWeight};
|
|
49
|
+
letter-spacing: ${Ne.letterSpacing};
|
|
50
|
+
line-height: ${Ne.lineHeight};
|
|
51
|
+
text-transform: ${Ne.textTransform};
|
|
52
|
+
text-decoration: ${Ne.textDecoration};
|
|
53
|
+
}
|
|
54
|
+
`,ys=xe.css`
|
|
55
55
|
.ft-typography--body2 {
|
|
56
|
-
font-family: ${
|
|
57
|
-
font-size: ${
|
|
58
|
-
font-weight: ${
|
|
59
|
-
letter-spacing: ${
|
|
60
|
-
line-height: ${
|
|
61
|
-
text-transform: ${
|
|
62
|
-
text-decoration: ${
|
|
63
|
-
}
|
|
64
|
-
`,
|
|
56
|
+
font-family: ${ut.fontFamily};
|
|
57
|
+
font-size: ${ut.fontSize};
|
|
58
|
+
font-weight: ${ut.fontWeight};
|
|
59
|
+
letter-spacing: ${ut.letterSpacing};
|
|
60
|
+
line-height: ${ut.lineHeight};
|
|
61
|
+
text-transform: ${ut.textTransform};
|
|
62
|
+
text-decoration: ${ut.textDecoration};
|
|
63
|
+
}
|
|
64
|
+
`,Pr=xe.css`
|
|
65
65
|
.ft-typography--caption {
|
|
66
|
-
font-family: ${
|
|
67
|
-
font-size: ${
|
|
68
|
-
font-weight: ${
|
|
69
|
-
letter-spacing: ${
|
|
70
|
-
line-height: ${
|
|
71
|
-
text-transform: ${
|
|
72
|
-
text-decoration: ${
|
|
73
|
-
}
|
|
74
|
-
`,
|
|
66
|
+
font-family: ${ce.fontFamily};
|
|
67
|
+
font-size: ${ce.fontSize};
|
|
68
|
+
font-weight: ${ce.fontWeight};
|
|
69
|
+
letter-spacing: ${ce.letterSpacing};
|
|
70
|
+
line-height: ${ce.lineHeight};
|
|
71
|
+
text-transform: ${ce.textTransform};
|
|
72
|
+
text-decoration: ${ce.textDecoration};
|
|
73
|
+
}
|
|
74
|
+
`,xs=xe.css`
|
|
75
75
|
.ft-typography--breadcrumb {
|
|
76
|
-
font-family: ${
|
|
77
|
-
font-size: ${
|
|
78
|
-
font-weight: ${
|
|
79
|
-
letter-spacing: ${
|
|
80
|
-
line-height: ${
|
|
81
|
-
text-transform: ${
|
|
82
|
-
text-decoration: ${
|
|
83
|
-
}
|
|
84
|
-
`,
|
|
76
|
+
font-family: ${dt.fontFamily};
|
|
77
|
+
font-size: ${dt.fontSize};
|
|
78
|
+
font-weight: ${dt.fontWeight};
|
|
79
|
+
letter-spacing: ${dt.letterSpacing};
|
|
80
|
+
line-height: ${dt.lineHeight};
|
|
81
|
+
text-transform: ${dt.textTransform};
|
|
82
|
+
text-decoration: ${dt.textDecoration};
|
|
83
|
+
}
|
|
84
|
+
`,vs=xe.css`
|
|
85
85
|
.ft-typography--overline {
|
|
86
|
-
font-family: ${
|
|
87
|
-
font-size: ${
|
|
88
|
-
font-weight: ${
|
|
89
|
-
letter-spacing: ${
|
|
90
|
-
line-height: ${
|
|
91
|
-
text-transform: ${
|
|
92
|
-
text-decoration: ${
|
|
93
|
-
}
|
|
94
|
-
`,
|
|
86
|
+
font-family: ${pt.fontFamily};
|
|
87
|
+
font-size: ${pt.fontSize};
|
|
88
|
+
font-weight: ${pt.fontWeight};
|
|
89
|
+
letter-spacing: ${pt.letterSpacing};
|
|
90
|
+
line-height: ${pt.lineHeight};
|
|
91
|
+
text-transform: ${pt.textTransform};
|
|
92
|
+
text-decoration: ${pt.textDecoration};
|
|
93
|
+
}
|
|
94
|
+
`,bs=xe.css`
|
|
95
95
|
.ft-typography--button {
|
|
96
|
-
font-family: ${
|
|
97
|
-
font-size: ${
|
|
98
|
-
font-weight: ${
|
|
99
|
-
letter-spacing: ${
|
|
100
|
-
line-height: ${
|
|
101
|
-
text-transform: ${
|
|
102
|
-
text-decoration: ${
|
|
103
|
-
}
|
|
104
|
-
`,
|
|
96
|
+
font-family: ${_e.fontFamily};
|
|
97
|
+
font-size: ${_e.fontSize};
|
|
98
|
+
font-weight: ${_e.fontWeight};
|
|
99
|
+
letter-spacing: ${_e.letterSpacing};
|
|
100
|
+
line-height: ${_e.lineHeight};
|
|
101
|
+
text-transform: ${_e.textTransform};
|
|
102
|
+
text-decoration: ${_e.textDecoration};
|
|
103
|
+
}
|
|
104
|
+
`,Ss=xe.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var
|
|
109
|
-
<${
|
|
108
|
+
`;var Es=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ie=class extends As.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?Wi`
|
|
109
|
+
<${zi(this.element)}
|
|
110
110
|
part="text"
|
|
111
111
|
class="ft-typography ft-typography--${this.variant}">
|
|
112
112
|
<slot></slot>
|
|
113
|
-
</${
|
|
114
|
-
`:
|
|
113
|
+
</${zi(this.element)}>
|
|
114
|
+
`:Wi`
|
|
115
115
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
116
|
-
`}};
|
|
116
|
+
`}};ie.styles=[fs,hs,ms,gs,Lr,ys,Pr,xs,vs,bs,Ss];Es([(0,Ki.property)()],ie.prototype,"element",void 0);Es([(0,Ki.property)()],ie.prototype,"variant",void 0);var Cs=f(A());var _s={"ft-typography":ie};(0,Cs.customElements)(_s);var Nr=f(J());var ws=f(V()),B=f(A());var N={fontSize:B.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:B.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:B.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:B.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:B.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:B.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:B.FtCssVariableFactory.extend("--ft-input-label-border-color","",B.designSystemVariables.colorOutline),textColor:B.FtCssVariableFactory.extend("--ft-input-label-text-color","",B.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:B.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",B.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:B.FtCssVariableFactory.extend("--ft-input-label-background-color","",B.designSystemVariables.colorSurface),borderRadius:B.FtCssVariableFactory.extend("--ft-input-label-border-radius","",B.designSystemVariables.borderRadiusS),colorError:B.FtCssVariableFactory.external(B.designSystemVariables.colorError,"Design system")},Ts=ws.css`
|
|
117
117
|
.ft-input-label {
|
|
118
118
|
position: absolute;
|
|
119
119
|
inset: 0;
|
|
120
120
|
display: flex;
|
|
121
|
-
background-color: ${
|
|
122
|
-
border-radius: ${
|
|
121
|
+
background-color: ${N.backgroundColor};
|
|
122
|
+
border-radius: ${N.borderRadius} ${N.borderRadius} 0 0;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.ft-input-label--outlined {
|
|
126
|
-
border-radius: ${
|
|
126
|
+
border-radius: ${N.borderRadius};
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.ft-input-label {
|
|
130
|
-
border-color: ${
|
|
130
|
+
border-color: ${N.borderColor};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.ft-input-label.ft-input-label--in-error {
|
|
134
|
-
border-color: ${
|
|
134
|
+
border-color: ${N.colorError}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.ft-input-label:before,
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-input-label:before {
|
|
147
|
-
width: calc(${
|
|
147
|
+
width: calc(${N.horizontalSpacing} - 4px);
|
|
148
148
|
flex-shrink: 0;
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -160,20 +160,20 @@
|
|
|
160
160
|
border-bottom-width: 1px;
|
|
161
161
|
border-bottom-style: solid;
|
|
162
162
|
border-color: inherit;
|
|
163
|
-
color: ${
|
|
163
|
+
color: ${N.textColor};
|
|
164
164
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
165
|
-
max-width: calc(${
|
|
165
|
+
max-width: calc(${N.labelMaxWidth} - 2 * (${N.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
166
166
|
text-overflow: ellipsis;
|
|
167
|
-
${(0,
|
|
168
|
-
${(0,
|
|
167
|
+
${(0,B.setVariable)(ce.fontSize,N.fontSize)};
|
|
168
|
+
${(0,B.setVariable)(ce.lineHeight,N.fontSize)};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.ft-input-label--in-error .ft-input-label--text {
|
|
172
|
-
color: ${
|
|
172
|
+
color: ${N.colorError}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-input-label--disabled .ft-input-label--text {
|
|
176
|
-
color: ${
|
|
176
|
+
color: ${N.disabledTextColor};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-input-label--hidden-text {
|
|
@@ -185,24 +185,24 @@
|
|
|
185
185
|
|
|
186
186
|
.ft-input-label--floating-text {
|
|
187
187
|
position: absolute;
|
|
188
|
-
top: calc(50% - ${
|
|
188
|
+
top: calc(50% - ${ce.lineHeight} / 2);
|
|
189
189
|
transition: top 250ms;
|
|
190
190
|
overflow: hidden;
|
|
191
191
|
white-space: nowrap;
|
|
192
192
|
text-overflow: ellipsis;
|
|
193
|
-
padding: ${
|
|
194
|
-
margin: calc(${
|
|
193
|
+
padding: ${N.verticalSpacing} 4px;
|
|
194
|
+
margin: calc(${N.verticalSpacing} * -1) 0;
|
|
195
195
|
max-width: 100%;
|
|
196
196
|
box-sizing: border-box;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.ft-input-label--raised .ft-input-label--text {
|
|
200
|
-
${(0,
|
|
201
|
-
${(0,
|
|
200
|
+
${(0,B.setVariable)(ce.fontSize,N.raisedFontSize)};
|
|
201
|
+
${(0,B.setVariable)(ce.lineHeight,N.raisedFontSize)};
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
205
|
-
top: ${
|
|
205
|
+
top: ${N.verticalSpacing};
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -215,36 +215,36 @@
|
|
|
215
215
|
.ft-input-label--outlined:before {
|
|
216
216
|
border-left-width: 1px;
|
|
217
217
|
border-left-style: solid;
|
|
218
|
-
border-radius: ${
|
|
218
|
+
border-radius: ${N.borderRadius} 0 0 ${N.borderRadius};
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.ft-input-label--outlined:after {
|
|
222
222
|
border-right-width: 1px;
|
|
223
223
|
border-right-style: solid;
|
|
224
|
-
border-radius: 0 ${
|
|
224
|
+
border-radius: 0 ${N.borderRadius} ${N.borderRadius} 0;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
228
228
|
padding: 2px 4px;
|
|
229
|
-
z-index: ${
|
|
230
|
-
background-color: ${
|
|
231
|
-
border-radius: ${
|
|
232
|
-
top: calc((${
|
|
229
|
+
z-index: ${N.raisedZIndex};
|
|
230
|
+
background-color: ${N.backgroundColor};
|
|
231
|
+
border-radius: ${N.borderRadius};
|
|
232
|
+
top: calc((${ce.lineHeight} / -2) + 2px);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
236
236
|
border-top: none;
|
|
237
237
|
}
|
|
238
|
-
`;var
|
|
239
|
-
<div class="${(0,
|
|
240
|
-
${
|
|
238
|
+
`;var Gi=f(V()),qi=f(J());function Os(e,t,r){return e?t(e):r?.(e)}var Ls=f(Nt()),Ps=f(A()),Rs=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ft=class extends Ps.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Gi.html`
|
|
239
|
+
<div class="${(0,Ls.classMap)(this.inputLabelClasses)}">
|
|
240
|
+
${Os(this.text,()=>Gi.html`
|
|
241
241
|
<div class="ft-input-label--text ft-typography--caption">
|
|
242
242
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
243
243
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
244
244
|
</div>
|
|
245
245
|
`)}
|
|
246
246
|
</div>
|
|
247
|
-
`}};
|
|
247
|
+
`}};ft.elementDefinitions={};Rs([(0,qi.property)({type:String})],ft.prototype,"text",void 0);Rs([(0,qi.property)({type:Boolean})],ft.prototype,"raised",void 0);var Yi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Ce=class extends ft{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Ce.elementDefinitions={};Ce.styles=[Pr,Ts];Yi([(0,Nr.property)({type:Boolean})],Ce.prototype,"outlined",void 0);Yi([(0,Nr.property)({type:Boolean})],Ce.prototype,"error",void 0);Yi([(0,Nr.property)({type:Boolean})],Ce.prototype,"disabled",void 0);var Ds=f(A());var Ns={"ft-input-label":Ce};(0,Ds.customElements)(Ns);var Fs=f(V()),Q=f(J()),Vs=f(Nt()),er=f(A());var Bs=f(V()),K=f(A()),ks=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ne={color:ks,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",ks),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ms=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Is={color:Ms,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ms)},$s=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),Us={color:$s,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",$s)},Hs=Bs.css`
|
|
248
248
|
:host {
|
|
249
249
|
display: contents;
|
|
250
250
|
}
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
|
|
258
258
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
259
259
|
overflow: hidden;
|
|
260
|
-
border-radius: ${
|
|
260
|
+
border-radius: ${ne.borderRadius};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.ft-ripple .ft-ripple--background,
|
|
@@ -291,27 +291,27 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.ft-ripple .ft-ripple--background {
|
|
294
|
-
background-color: ${
|
|
294
|
+
background-color: ${ne.backgroundColor};
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.ft-ripple .ft-ripple--effect {
|
|
298
|
-
background-color: ${
|
|
298
|
+
background-color: ${ne.color};
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
302
|
-
background-color: ${
|
|
302
|
+
background-color: ${Us.backgroundColor};
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
306
|
-
background-color: ${
|
|
306
|
+
background-color: ${Us.color};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
310
|
-
background-color: ${
|
|
310
|
+
background-color: ${Is.backgroundColor};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
314
|
-
background-color: ${
|
|
314
|
+
background-color: ${Is.color};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-ripple .ft-ripple--background {
|
|
@@ -341,33 +341,33 @@
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
344
|
-
opacity: ${
|
|
344
|
+
opacity: ${ne.opacityContentOnSurfaceHover};
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
348
|
-
opacity: ${
|
|
348
|
+
opacity: ${ne.opacityContentOnSurfaceSelected};
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
352
|
-
opacity: ${
|
|
352
|
+
opacity: ${ne.opacityContentOnSurfaceFocused};
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
356
|
-
opacity: ${
|
|
356
|
+
opacity: ${ne.opacityContentOnSurfacePressed};
|
|
357
357
|
transform: translate(-50%, -50%) scale(1);
|
|
358
358
|
}
|
|
359
|
-
`;var
|
|
359
|
+
`;var ue=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},$=class extends er.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new er.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new er.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:s}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Fs.html`
|
|
360
360
|
<style>
|
|
361
361
|
.ft-ripple .ft-ripple--effect {
|
|
362
362
|
left: ${this.originX}px;
|
|
363
363
|
top: ${this.originY}px;
|
|
364
364
|
}
|
|
365
365
|
</style>
|
|
366
|
-
<div class="${(0,
|
|
366
|
+
<div class="${(0,Vs.classMap)(t)}">
|
|
367
367
|
<div class="ft-ripple--background"></div>
|
|
368
368
|
<div class="ft-ripple--effect"></div>
|
|
369
369
|
</div>
|
|
370
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i
|
|
370
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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 t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",i,o),t.addEventListener("touchstart",n,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",i,o),t.removeEventListener("touchstart",n,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=Hs;ue([(0,Q.property)({type:Boolean})],$.prototype,"primary",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"secondary",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"unbounded",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"activated",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"selected",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"disabled",void 0);ue([(0,Q.state)()],$.prototype,"hovered",void 0);ue([(0,Q.state)()],$.prototype,"focused",void 0);ue([(0,Q.state)()],$.prototype,"pressed",void 0);ue([(0,Q.state)()],$.prototype,"rippling",void 0);ue([(0,Q.state)()],$.prototype,"originX",void 0);ue([(0,Q.state)()],$.prototype,"originY",void 0);ue([(0,Q.query)(".ft-ripple")],$.prototype,"ripple",void 0);ue([(0,Q.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);var js=f(A());var zs={"ft-ripple":$};(0,js.customElements)(zs);var Ws=f(V()),we=f(A()),pe={size:we.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:we.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:we.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:we.FtCssVariableFactory.extend("--ft-icon-material-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:we.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ks=[Ws.css`
|
|
371
371
|
:host, i.ft-icon {
|
|
372
372
|
display: inline-flex;
|
|
373
373
|
align-items: center;
|
|
@@ -376,14 +376,14 @@
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
:host {
|
|
379
|
-
width: ${
|
|
380
|
-
height: ${
|
|
379
|
+
width: ${pe.size};
|
|
380
|
+
height: ${pe.size};
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
i.ft-icon {
|
|
384
384
|
width: 100%;
|
|
385
385
|
height: 100%;
|
|
386
|
-
font-size: ${
|
|
386
|
+
font-size: ${pe.size};
|
|
387
387
|
line-height: 1;
|
|
388
388
|
font-weight: normal;
|
|
389
389
|
text-transform: none;
|
|
@@ -394,33 +394,33 @@
|
|
|
394
394
|
text-rendering: auto;
|
|
395
395
|
-webkit-font-smoothing: antialiased;
|
|
396
396
|
-moz-osx-font-smoothing: grayscale;
|
|
397
|
-
vertical-align: ${
|
|
397
|
+
vertical-align: ${pe.verticalAlign};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
i.ft-icon.ft-icon--fluid-topics {
|
|
401
|
-
font-family: ${
|
|
401
|
+
font-family: ${pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
402
402
|
|
|
403
403
|
/* Ugly fix because font is broken */
|
|
404
|
-
font-size: calc(0.75 * ${
|
|
405
|
-
line-height: ${
|
|
404
|
+
font-size: calc(0.75 * ${pe.size});
|
|
405
|
+
line-height: ${pe.size};
|
|
406
406
|
position: relative;
|
|
407
407
|
top: -4%;
|
|
408
408
|
justify-content: center;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.ft-icon--file-format {
|
|
412
|
-
font-family: ${
|
|
412
|
+
font-family: ${pe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
.ft-icon--material {
|
|
416
|
-
font-family: ${
|
|
416
|
+
font-family: ${pe.materialFontFamily}, "Material Icons", sans-serif;
|
|
417
417
|
}
|
|
418
|
-
`,
|
|
418
|
+
`,we.noTextSelect];var Ge;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ge||(Ge={}));var tr=f(V()),qe=f(J()),Ys=f(A()),Xs=f(qs());var He;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(He||(He={}));var m;(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=""})(m||(m={}));var up=new Map([...["abw"].map(e=>[e,m.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,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.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,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.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,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.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,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var dp={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var rr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ee=class extends Ys.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=tr.nothing}render(){let t=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,r=t!==Ge.material||!!this.value;return tr.html`
|
|
419
419
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
420
|
-
${(0,
|
|
421
|
-
<slot ?hidden=${
|
|
420
|
+
${(0,Xs.unsafeHTML)(this.resolvedIcon)}
|
|
421
|
+
<slot ?hidden=${r}></slot>
|
|
422
422
|
</i>
|
|
423
|
-
`}getTextContent(){var t,
|
|
423
|
+
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case Ge.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Ge.material:this.resolvedIcon=this.value||tr.nothing;break;default:this.resolvedIcon=(r=He[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Ks;rr([(0,qe.property)()],ee.prototype,"variant",void 0);rr([(0,qe.property)()],ee.prototype,"value",void 0);rr([(0,qe.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);rr([(0,qe.state)()],ee.prototype,"resolvedIcon",void 0);rr([(0,qe.query)("slot")],ee.prototype,"slottedContent",void 0);var Js=f(A());var Zs={"ft-icon":ee};(0,Js.customElements)(Zs);var Qs=f(V()),S=f(A());var O={fontSize:S.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:S.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:S.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:S.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:S.FtCssVariableFactory.extend("--ft-text-field-helper-color","",S.designSystemVariables.colorOnSurfaceMedium),colorPrimary:S.FtCssVariableFactory.external(S.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:S.FtCssVariableFactory.external(S.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:S.FtCssVariableFactory.external(S.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:S.FtCssVariableFactory.external(S.designSystemVariables.borderRadiusS,"Design system"),colorError:S.FtCssVariableFactory.external(S.designSystemVariables.colorError,"Design system"),prefixColor:S.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",S.designSystemVariables.colorOnSurfaceMedium),iconColor:S.FtCssVariableFactory.extend("--ft-text-field-icon-color","",S.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:S.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:S.FtCssVariableFactory.extend("--ft-text-field-background-color","",S.designSystemVariables.colorSurface),colorOutline:S.FtCssVariableFactory.external(S.designSystemVariables.colorOutline,"Design system"),elevation02:S.FtCssVariableFactory.external(S.designSystemVariables.elevation02,"Design system"),suggestSize:S.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},eo=Qs.css`
|
|
424
424
|
*:focus {
|
|
425
425
|
outline: none;
|
|
426
426
|
}
|
|
@@ -430,21 +430,21 @@
|
|
|
430
430
|
flex-direction: column;
|
|
431
431
|
align-items: stretch;
|
|
432
432
|
position: relative;
|
|
433
|
-
--text-field-internal-suggest-size: ${
|
|
433
|
+
--text-field-internal-suggest-size: ${O.suggestSize};
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
ft-input-label {
|
|
437
|
-
${(0,
|
|
438
|
-
${(0,
|
|
439
|
-
${(0,
|
|
440
|
-
${(0,
|
|
441
|
-
${(0,
|
|
437
|
+
${(0,S.setVariable)(N.fontSize,O.fontSize)};
|
|
438
|
+
${(0,S.setVariable)(N.raisedFontSize,O.labelSize)};
|
|
439
|
+
${(0,S.setVariable)(N.verticalSpacing,O.verticalSpacing)};
|
|
440
|
+
${(0,S.setVariable)(N.horizontalSpacing,O.horizontalSpacing)};
|
|
441
|
+
${(0,S.setVariable)(N.backgroundColor,O.backgroundColor)};
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
.ft-text-field--main-panel {
|
|
445
445
|
position: relative;
|
|
446
446
|
display: flex;
|
|
447
|
-
height: calc(4 * ${
|
|
447
|
+
height: calc(4 * ${O.verticalSpacing} + ${O.labelSize} + ${O.fontSize});
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
.ft-text-field--input-panel {
|
|
@@ -453,24 +453,24 @@
|
|
|
453
453
|
display: flex;
|
|
454
454
|
align-items: center;
|
|
455
455
|
overflow: hidden;
|
|
456
|
-
padding: 0 ${
|
|
456
|
+
padding: 0 ${O.horizontalSpacing};
|
|
457
457
|
|
|
458
|
-
${(0,
|
|
459
|
-
${(0,
|
|
458
|
+
${(0,S.setVariable)(Ne.fontSize,O.fontSize)};
|
|
459
|
+
${(0,S.setVariable)(Ne.lineHeight,O.fontSize)};
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ft-text-field--input-panel ft-ripple {
|
|
463
|
-
${(0,
|
|
464
|
-
${(0,
|
|
463
|
+
${(0,S.setVariable)(ne.opacityContentOnSurfaceHover,"0.08")};
|
|
464
|
+
${(0,S.setVariable)(ne.opacityContentOnSurfacePressed,"0.04")};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
468
468
|
align-items: flex-end;
|
|
469
|
-
padding: 0 ${
|
|
469
|
+
padding: 0 ${O.horizontalSpacing} ${O.verticalSpacing} ${O.horizontalSpacing};
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.ft-text-field--prefix {
|
|
473
|
-
color: ${
|
|
473
|
+
color: ${O.prefixColor};
|
|
474
474
|
margin-right: 2px;
|
|
475
475
|
flex-shrink: 1;
|
|
476
476
|
overflow: hidden;
|
|
@@ -489,22 +489,22 @@
|
|
|
489
489
|
flex-shrink: 1;
|
|
490
490
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
491
491
|
|
|
492
|
-
color: ${
|
|
493
|
-
padding: calc(2 * ${
|
|
492
|
+
color: ${O.colorOnSurface};
|
|
493
|
+
padding: calc(2 * ${O.verticalSpacing}) 0;
|
|
494
494
|
border: none;
|
|
495
495
|
background: none;
|
|
496
496
|
|
|
497
497
|
&:-webkit-autofill,
|
|
498
498
|
&:-webkit-autofill:hover,
|
|
499
499
|
&:-webkit-autofill:focus {
|
|
500
|
-
-webkit-text-fill-color: ${
|
|
500
|
+
-webkit-text-fill-color: ${O.colorOnSurface};
|
|
501
501
|
transition: background-color 50000000s ease-in-out 100000s;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
506
506
|
padding-bottom: 0;
|
|
507
|
-
padding-top: calc(${
|
|
507
|
+
padding-top: calc(${O.labelSize} + 2 * ${O.verticalSpacing});
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -513,37 +513,37 @@
|
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
.ft-text-field--disabled .ft-text-field--input {
|
|
516
|
-
color: ${
|
|
516
|
+
color: ${O.colorOnSurfaceDisabled};
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
520
|
-
${(0,
|
|
521
|
-
${(0,
|
|
520
|
+
${(0,S.setVariable)(N.borderColor,O.colorPrimary)};
|
|
521
|
+
${(0,S.setVariable)(N.textColor,O.colorPrimary)};
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
525
|
-
border-radius: ${
|
|
525
|
+
border-radius: ${O.borderRadiusS} ${O.borderRadiusS} 0 0;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
529
|
-
border-radius: ${
|
|
529
|
+
border-radius: ${O.borderRadiusS};
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
.ft-text-field--helper-text {
|
|
533
|
-
padding: 0 12px 0 ${
|
|
534
|
-
color: ${
|
|
533
|
+
padding: 0 12px 0 ${O.horizontalSpacing};
|
|
534
|
+
color: ${O.helperColor};
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
.ft-text-field--in-error .ft-text-field--input,
|
|
538
538
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
539
539
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
540
|
-
color: ${
|
|
540
|
+
color: ${O.colorError};
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-text-field--icon {
|
|
544
544
|
align-self: center;
|
|
545
545
|
margin-left: 8px;
|
|
546
|
-
color: ${
|
|
546
|
+
color: ${O.iconColor};
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
.ft-text-field--container {
|
|
@@ -554,11 +554,11 @@
|
|
|
554
554
|
display: none;
|
|
555
555
|
flex-direction: column;
|
|
556
556
|
position: absolute;
|
|
557
|
-
z-index: ${
|
|
558
|
-
background: ${
|
|
559
|
-
border: 1px solid ${
|
|
560
|
-
border-radius: 0 0 ${
|
|
561
|
-
box-shadow: ${
|
|
557
|
+
z-index: ${O.floatingZIndex};
|
|
558
|
+
background: ${O.backgroundColor};
|
|
559
|
+
border: 1px solid ${O.colorOutline};
|
|
560
|
+
border-radius: 0 0 ${O.borderRadiusS} ${O.borderRadiusS};
|
|
561
|
+
box-shadow: ${O.elevation02};
|
|
562
562
|
outline: none;
|
|
563
563
|
max-height: var(--text-field-internal-suggest-size);
|
|
564
564
|
overflow-y: auto;
|
|
@@ -573,35 +573,41 @@
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
.ft-text-field--with-icon {
|
|
576
|
-
${(0,
|
|
576
|
+
${(0,S.setVariable)(N.labelMaxWidth,`calc(100% - ${pe.size} - ${N.horizontalSpacing})`)};
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
.ft-text-field--with-password ft-icon:hover {
|
|
580
580
|
cursor: pointer;
|
|
581
581
|
}
|
|
582
|
-
`;var
|
|
583
|
-
.ft-text-field-suggestion {
|
|
582
|
+
`;var sc=f(A()),Rt=f(V()),Ue=f(J());var to=f(V());var ro=to.css`
|
|
583
|
+
.ft-text-field-suggestion--suggestion {
|
|
584
584
|
position: relative;
|
|
585
585
|
padding: 8px 16px;
|
|
586
586
|
cursor: pointer;
|
|
587
587
|
min-height: 44px;
|
|
588
588
|
box-sizing: border-box;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.ft-text-field-suggestion--suggestion,
|
|
592
|
+
.ft-text-field-suggestion--remove {
|
|
589
593
|
outline: none;
|
|
590
594
|
}
|
|
591
595
|
|
|
592
596
|
.ft-text-field-suggestion,
|
|
597
|
+
.ft-text-field-suggestion--suggestion,
|
|
593
598
|
.ft-text-field-suggestion--label {
|
|
594
599
|
display: flex;
|
|
595
600
|
align-items: center;
|
|
596
|
-
gap: 8px;
|
|
597
601
|
}
|
|
598
602
|
|
|
603
|
+
.ft-text-field-suggestion--suggestion,
|
|
599
604
|
.ft-text-field-suggestion--label {
|
|
600
605
|
flex-grow: 1;
|
|
601
606
|
flex-shrink: 1;
|
|
607
|
+
gap: 8px;
|
|
602
608
|
}
|
|
603
609
|
|
|
604
|
-
.ft-text-field-suggestion--with-helper {
|
|
610
|
+
.ft-text-field-suggestion--with-helper > .ft-text-field-suggestion--suggestion {
|
|
605
611
|
display: flex;
|
|
606
612
|
flex-direction: column;
|
|
607
613
|
align-items: flex-start;
|
|
@@ -609,30 +615,354 @@
|
|
|
609
615
|
}
|
|
610
616
|
|
|
611
617
|
.ft-text-field-suggestion--helper-text {
|
|
612
|
-
color: ${
|
|
618
|
+
color: ${O.helperColor};
|
|
613
619
|
}
|
|
614
620
|
|
|
615
621
|
slot {
|
|
616
622
|
pointer-events: none;
|
|
617
623
|
}
|
|
618
|
-
`;var
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
624
|
+
`;var oc=f(Nt());var $e=f(A());var jl=f(V()),Ae=f(J()),Ee=f(A());var io=f(V()),Ye=f(A()),ir={distance:Ye.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ye.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ye.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ye.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ye.designSystemVariables.borderRadiusS),maxWidth:Ye.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},no=io.css`
|
|
625
|
+
.ft-tooltip--container {
|
|
626
|
+
display: block;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.ft-tooltip--inline {
|
|
630
|
+
display: inline-block;
|
|
631
|
+
max-width: 100%;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.ft-tooltip {
|
|
635
|
+
inset: 0;
|
|
636
|
+
margin: 0;
|
|
637
|
+
border: none;
|
|
638
|
+
background: transparent;
|
|
639
|
+
box-sizing: border-box;
|
|
640
|
+
overflow: hidden;
|
|
641
|
+
width: max-content;
|
|
642
|
+
max-width: ${ir.maxWidth};
|
|
643
|
+
text-align: center;
|
|
644
|
+
padding: ${ir.distance};
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.ft-tooltip--content {
|
|
648
|
+
padding: 4px 8px;
|
|
649
|
+
border-radius: ${ir.borderRadiusS};
|
|
650
|
+
background-color: ${ir.backgroundColor};
|
|
651
|
+
color: ${ir.color};
|
|
652
|
+
position: relative;
|
|
653
|
+
word-break: break-word;
|
|
654
|
+
}
|
|
655
|
+
`;var oo=["top","right","bottom","left"],so=["start","end"],Zi=oo.reduce((e,t)=>e.concat(t,t+"-"+so[0],t+"-"+so[1]),[]),nr=Math.min,Xe=Math.max,sr=Math.round;var De=e=>({x:e,y:e}),_c={left:"right",right:"left",bottom:"top",top:"bottom"};function ao(e,t,r){return Xe(e,nr(t,r))}function Dr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function Qi(e){return e==="y"?"height":"width"}function kr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function en(e){return Ji(kr(e))}function lo(e,t,r){r===void 0&&(r=!1);let i=Ze(e),n=en(e),s=Qi(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Xi(o)),[o,Xi(o)]}function co(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Xi(e){let t=or(e);return _c[t]+e.slice(t.length)}function Cc(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function uo(e){return typeof e!="number"?Cc(e):{top:e,right:e,bottom:e,left:e}}function ht(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function po(e,t,r){let{reference:i,floating:n}=e,s=kr(t),o=en(t),a=Qi(o),l=or(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let v=Ze(t);return v&&(g[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),g}async function fo(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Dr(t,e),v=uo(g),x=a[p?d==="floating"?"reference":"floating":d],C=ht(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),M=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},P=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:b,strategy:l}):M);return{top:(C.top-P.top+v.top)/T.y,bottom:(P.bottom-C.bottom+v.bottom)/T.y,left:(C.left-P.left+v.left)/T.x,right:(P.right-C.right+v.right)/T.x}}var wc=50,ho=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:fo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=po(c,i,l),p=i,g=0,v={};for(let E=0;E<s.length;E++){let x=s[E];if(!x)continue;let{name:C,fn:M}=x,{x:b,y:T,data:P,reset:z}=await M({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=T??d,v[C]={...v[C],...P},z&&g<wc&&(g++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):z.rects),{x:u,y:d}=po(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:v}};function Tc(e,t,r){return(e?[...r.filter(n=>Ze(n)===e),...r.filter(n=>Ze(n)!==e)]:r.filter(n=>or(n)===n)).filter(n=>e?Ze(n)===e||(t?co(n)!==n:!1):!0)}var mo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Zi,autoAlignment:g=!0,...v}=Dr(e,t),E=d!==void 0||p===Zi?Tc(d||null,g,p):p,x=((r=o.autoPlacement)==null?void 0:r.index)||0,C=E[x];if(C==null)return{};if(a!==C)return{reset:{placement:E[0]}};let M=await l.detectOverflow(t,v),b=lo(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),T=[M[or(C)],M[b[0]],M[b[1]]],P=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:T}],z=E[x+1];if(z)return{data:{index:x+1,overflows:P},reset:{placement:z}};let U=P.map(ge=>{let rt=Ze(ge.placement);return[ge.placement,rt&&u?ge.overflows.slice(0,2).reduce((dc,pc)=>dc+pc,0):ge.overflows[0],ge.overflows]}).sort((ge,rt)=>ge[1]-rt[1]),Yt=((n=U.filter(ge=>ge[2].slice(0,Ze(ge[0])?2:3).every(rt=>rt<=0))[0])==null?void 0:n[0])||U[0][0];return Yt!==a?{data:{index:x+1,overflows:P},reset:{placement:Yt}}:{}}}};var go=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:M=>{let{x:b,y:T}=M;return{x:b,y:T}}},...c}=Dr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=kr(n),g=Ji(p),v=u[g],E=u[p],x=(M,b)=>ao(b+d[M==="y"?"top":"left"],b,b-d[M==="y"?"bottom":"right"]);o&&(v=x(g,v)),a&&(E=x(p,E));let C=l.fn({...t,[g]:v,[p]:E});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[g]:o,[p]:a}}}}}};function Ir(){return typeof window<"u"}function gt(e){return xo(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(xo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xo(e){return Ir()?e instanceof Node||e instanceof de(e).Node:!1}function Te(e){return Ir()?e instanceof Element||e instanceof de(e).Element:!1}function Ve(e){return Ir()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function yo(e){return!Ir()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function ar(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function vo(e){return/^(table|td|th)$/.test(gt(e))}function lr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Oc=/transform|translate|scale|rotate|perspective|filter/,Rc=/paint|layout|strict|content/,mt=e=>!!e&&e!=="none",tn;function Mt(e){let t=Te(e)?Oe(e):e;return mt(t.transform)||mt(t.translate)||mt(t.scale)||mt(t.rotate)||mt(t.perspective)||!$r()&&(mt(t.backdropFilter)||mt(t.filter))||Oc.test(t.willChange||"")||Rc.test(t.contain||"")}function bo(e){let t=Je(e);for(;Ve(t)&&!It(t);){if(Mt(t))return t;if(lr(t))return null;t=Je(t)}return null}function $r(){return tn==null&&(tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tn}function It(e){return/^(html|body|#document)$/.test(gt(e))}function Oe(e){return de(e).getComputedStyle(e)}function cr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||Fe(e);return yo(t)?t.host:t}function So(e){let t=Je(e);return It(t)?(e.ownerDocument||e).body:Ve(t)&&ar(t)?t:So(t)}function Mr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=So(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=de(n);if(s){let a=Ur(o);return t.concat(o,o.visualViewport||[],ar(n)?n:[],a&&r?Mr(a):[])}else return t.concat(n,Mr(n,[],r))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _o(e){let t=Oe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Ve(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=sr(r)!==s||sr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function Co(e){return Te(e)?e:e.contextElement}function $t(e){let t=Co(e);if(!Ve(t))return De(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=_o(t),o=(s?sr(r.width):r.width)/i,a=(s?sr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Lc=De(0);function wo(e){let t=de(e);return!$r()||!t.visualViewport?Lc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===de(e)}function ur(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=Co(e),o=De(1);t&&(i?Te(i)&&(o=$t(i)):o=$t(e));let a=Pc(s,r,i)?wo(s):De(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=de(s),g=Te(i)?de(i):i,v=p,E=Ur(v);for(;E&&g!==v;){let x=$t(E),C=E.getBoundingClientRect(),M=Oe(E),b=C.left+(E.clientLeft+parseFloat(M.paddingLeft))*x.x,T=C.top+(E.clientTop+parseFloat(M.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=T,v=de(E),E=Ur(v)}}return ht({width:u,height:d,x:l,y:c})}function Br(e,t){let r=cr(e).scrollLeft;return t?t.left+r:ur(Fe(e)).left+r}function To(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Br(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function Nc(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=Fe(i),a=t?lr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=De(1),u=De(0),d=Ve(i);if((d||!s)&&((gt(i)!=="body"||ar(o))&&(l=cr(i)),d)){let g=ur(i);c=$t(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=o&&!d&&!s?To(o,l):De(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Dc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function kc(e){let t=cr(e),r=e.ownerDocument.body,i=Xe(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Xe(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Br(e),o=-t.scrollTop;return Oe(r).direction==="rtl"&&(s+=Xe(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var Mc=25;function Ic(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=de(e),s=Fe(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!$r()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Br(s)<=0){let p=s.ownerDocument,g=p.body,v=getComputedStyle(g),E=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-E),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;C<=Mc&&(a-=C)}return{width:a,height:l,x:c,y:u}}function $c(e,t){let r=ur(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=$t(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Eo(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=Ic(e,r,t);else if(t==="document")i=kc(Fe(e));else if(Te(t))i=$c(t,r);else{let n=wo(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ht(i)}function Uc(e,t){let r=t.get(e);if(r)return r;let i=Mr(e,[],!1).filter(a=>Te(a)&>(a)!=="body"),n=null,s=Oe(e).position==="fixed",o=s?Je(e):e;for(;Te(o)&&!It(o);){let a=Oe(o),l=Mt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Je(o)}return t.set(e,i),i}function Bc(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?lr(t)?[]:Uc(t,this._c):[].concat(r),i],a=Eo(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let g=Eo(t,o[p],n);l=Xe(g.top,l),c=nr(g.right,c),u=nr(g.bottom,u),d=Xe(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Hc(e){let{width:t,height:r}=_o(e);return{width:t,height:r}}function Fc(e,t,r){let i=Ve(t),n=Fe(t),s=r==="fixed",o=ur(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=De(0);if((i||!s)&&((gt(t)!=="body"||ar(n))&&(a=cr(t)),i)){let p=ur(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=Br(n));let c=n&&!i&&!s?To(n,a):De(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function rn(e){return Oe(e).position==="static"}function Ao(e,t){if(!Ve(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Fe(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){let r=de(e);if(lr(e))return r;if(!Ve(e)){let n=Je(e);for(;n&&!It(n);){if(Te(n)&&!rn(n))return n;n=Je(n)}return r}let i=Ao(e,t);for(;i&&vo(i)&&rn(i);)i=Ao(i,t);return i&&It(i)&&rn(i)&&!Mt(i)?r:i||bo(e)||r}var Vc=async function(e){let t=this.getOffsetParent||Oo,r=this.getDimensions,i=await r(e.floating);return{reference:Fc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zc(e){return Oe(e).direction==="rtl"}var Hr={convertOffsetParentRelativeRectToViewportRelativeRect:Nc,getDocumentElement:Fe,getClippingRect:Bc,getOffsetParent:Oo,getElementRects:Vc,getClientRects:Dc,getDimensions:Hc,getScale:$t,isElement:Te,isRTL:zc};var Ro=mo,Lo=go;var Po=(e,t,r)=>{let i=new Map,n=r??{},s={...Hr,...n.platform,_c:i};return ho(e,t,{...n,platform:s})};function No(e){return jc(e)}function nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function jc(e){for(let t=e;t;t=nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=nn(e);t;t=nn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Mt(r)||t.tagName==="BODY"))return t}return null}async function Do(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},Po(e,t,{strategy:i.strategy,platform:{...Hr,getOffsetParent:n=>Hr.getOffsetParent(n,No)},middleware:[Lo({crossAxis:!0}),Ro({allowedPlacements:[i.placement]})]})}var Kt=f(A());var wn=f(J());var ko=f(J(),1);var sn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Mo(e,t){return(0,ko.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return dr(e);try{return JSON.parse(r)}catch{return dr(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:pr,...t??{}})}function Wc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Ut(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Ut(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Ut(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ut(e,t){try{return Wc(e,t)}catch{return!1}}function pr(e,t){return!Ut(e,t)}function dr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Fr(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var Io=f(J(),1);var on=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:pr,attribute:!1,...t};(0,Io.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Vr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var yt=f(J(),1);var zr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Uo=f(V(),1);var jr=globalThis,Kc=jr.ShadowRoot&&(jr.ShadyCSS===void 0||jr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var $o=(e,t)=>{if(Kc)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=jr.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}};var Wr=class extends Uo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return $o(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){sn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Bo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var Ht=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},zo,Ho=Symbol("constructorPrototype"),Fo=Symbol("constructorName"),jo=Symbol("exportpartsDebouncer"),Vo=Symbol("dynamicDependenciesLoaded"),Bt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Bt.eventName="exportparts-updated";var ke=class extends Wr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zo]=new zr(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[jo].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Fo]=this.constructor.name,this[Ho]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fo]&&Object.setPrototypeOf(this,this[Ho])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Vo]||(r[Vo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Bt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Bt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Bt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Bo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,i,n,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(s=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],v=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],E=[...g,...v].filter(l).map(x=>x.trim());for(let x of E)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};zo=jo;Ht([(0,yt.property)()],ke.prototype,"exportpartsPrefix",void 0);Ht([Mo([])],ke.prototype,"exportpartsPrefixes",void 0);Ht([(0,yt.property)({reflect:!0})],ke.prototype,"exportparts",void 0);Ht([(0,yt.property)()],ke.prototype,"customStylesheet",void 0);Ht([(0,yt.property)()],ke.prototype,"elementToFocus",void 0);Ht([(0,yt.state)()],ke.prototype,"useAdoptedStyleSheets",void 0);function Kr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var fr=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),xt=Symbol("internalStores"),Gc=Fr(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[xt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[xt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[xt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Qe].has(o.store):this[Qe].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[Qe].set(o,a.subscribe(()=>this.updateFromStores())),this[fr].set(o,[]),Kr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[fr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Qe].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Qe].has(o)&&this[Qe].get(o)(),this[Qe].delete(o),(a=this[fr].get(o))===null||a===void 0||a.forEach(l=>l()),this[fr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Qe,r=xt,i=fr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Wo=class extends Gc(ke){};function te(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var qc=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ko=qc,an=()=>Math.random().toString(36).substring(7).split("").join("."),Yc={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},Gr=Yc;function qr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ln(e,t,r){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(te(1));return r(ln)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((x,C)=>{o.set(C,x)}))}function u(){if(l)throw new Error(te(3));return n}function d(x){if(typeof x!="function")throw new Error(te(4));if(l)throw new Error(te(5));let C=!0;c();let M=a++;return o.set(M,x),function(){if(C){if(l)throw new Error(te(6));C=!1,c(),o.delete(M),s=null}}}function p(x){if(!qr(x))throw new Error(te(7));if(typeof x.type>"u")throw new Error(te(8));if(typeof x.type!="string")throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(M=>{M()}),x}function g(x){if(typeof x!="function")throw new Error(te(10));i=x,p({type:Gr.REPLACE})}function v(){let x=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(te(11));function M(){let T=C;T.next&&T.next(u())}return M(),{unsubscribe:x(M)}},[Ko](){return this}}}return p({type:Gr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Ko]:v}}function Xc(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Gr.INIT})>"u")throw new Error(te(12));if(typeof r(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Go(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{Xc(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],v=a[p],E=g(v,l);if(typeof E>"u"){let x=l&&l.type;throw new Error(te(14))}u[p]=E,c=c||E!==v}return c=c||i.length!==Object.keys(a).length,c?u:a}}function hr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function qo(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(te(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=hr(...a)(n.dispatch),{...n,dispatch:s}}}function Yo(e){return qr(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Xo=Symbol.for("immer-draftable"),re=Symbol.for("immer-state");function Re(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fe=Object,Vt=fe.getPrototypeOf,Jr="constructor",ni="prototype",pn="configurable",Qr="enumerable",Xr="writable",mr="value",Me=e=>!!e&&!!e[re];function he(e){return e?sa(e)||oi(e)||!!e[Xo]||!!e[Jr]?.[Xo]||ai(e)||li(e):!1}var Zc=fe[ni][Jr].toString(),Zo=new WeakMap;function sa(e){if(!e||!bn(e))return!1;let t=Vt(e);if(t===null||t===fe[ni])return!0;let r=fe.hasOwnProperty.call(t,Jr)&&t[Jr];if(r===Object)return!0;if(!Ft(r))return!1;let i=Zo.get(r);return i===void 0&&(i=Function.toString.call(r),Zo.set(r,i)),i===Zc}function si(e,t,r=!0){xr(e)===0?(r?Reflect.ownKeys(e):fe.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function xr(e){let t=e[re];return t?t.type_:oi(e)?1:ai(e)?2:li(e)?3:0}var cn=(e,t,r=xr(e))=>r===2?e.has(t):fe[ni].hasOwnProperty.call(e,t),fn=(e,t,r=xr(e))=>r===2?e.get(t):e[t],ei=(e,t,r,i=xr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Jc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var oi=Array.isArray,ai=e=>e instanceof Map,li=e=>e instanceof Set,bn=e=>typeof e=="object",Ft=e=>typeof e=="function",un=e=>typeof e=="boolean";function Qc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ze=e=>e.copy_||e.base_;var Sn=e=>e.modified_?e.copy_:e.base_;function hn(e,t){if(ai(e))return new Map(e);if(li(e))return new Set(e);if(oi(e))return Array[ni].slice.call(e);let r=sa(e);if(t===!0||t==="class_only"&&!r){let i=fe.getOwnPropertyDescriptors(e);delete i[re];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Xr]===!1&&(a[Xr]=!0,a[pn]=!0),(a.get||a.set)&&(i[o]={[pn]:!0,[Xr]:!0,[Qr]:a[Qr],[mr]:e[o]})}return fe.create(Vt(e),i)}else{let i=Vt(e);if(i!==null&&r)return{...e};let n=fe.create(i);return fe.assign(n,e)}}function En(e,t=!1){return ci(e)||Me(e)||!he(e)||(xr(e)>1&&fe.defineProperties(e,{set:Yr,add:Yr,clear:Yr,delete:Yr}),fe.freeze(e),t&&si(e,(r,i)=>{En(i,!0)},!1)),e}function eu(){Re(2)}var Yr={[mr]:eu};function ci(e){return e===null||!bn(e)?!0:fe.isFrozen(e)}var ti="MapSet",mn="Patches",Jo="ArrayMethods",oa={};function vt(e){let t=oa[e];return t||Re(0,e),t}var Qo=e=>!!oa[e];var gr,aa=()=>gr,tu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qo(ti)?vt(ti):void 0,arrayMethodsPlugin_:Qo(Jo)?vt(Jo):void 0});function ea(e,t){t&&(e.patchPlugin_=vt(mn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gn(e){yn(e),e.drafts_.forEach(ru),e.drafts_=null}function yn(e){e===gr&&(gr=e.parent_)}var ta=e=>gr=tu(gr,e);function ru(e){let t=e[re];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[re].modified_&&(gn(t),Re(4)),he(e)&&(e=ia(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[re].base_,e,t)}else e=ia(t,r);return iu(t,e,!0),gn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ia(e,t){if(ci(t))return t;let r=t[re];if(!r)return ri(t,e.handledSet_,e);if(!ui(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);ua(r,e)}return r.copy_}function iu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&En(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ui=(e,t)=>e.scope_===t,nu=[];function ca(e,t,r,i){let n=ze(e),s=e.type_;if(i!==void 0&&fn(n,i,s)===t){ei(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;si(n,(l,c)=>{if(Me(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??nu;for(let a of o)ei(n,a,r,s)}function su(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!ui(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=Sn(s);ca(e,s.draft_??s,o,r),ua(s,n)})}function ua(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}la(e)}}function ou(e,t,r){let{scope_:i}=e;if(Me(r)){let n=r[re];ui(n,i)&&n.callbacks_.push(function(){Zr(e);let o=Sn(n);ca(e,r,o,t)})}else he(r)&&e.callbacks_.push(function(){let s=ze(e);e.type_===3?s.has(r)&&ri(r,i.handledSet_,i):fn(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ri(fn(e.copy_,t,e.type_),i.handledSet_,i)})}function ri(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Me(e)||t.has(e)||!he(e)||ci(e)||(t.add(e),si(e,(i,n)=>{if(Me(n)){let s=n[re];if(ui(s,r)){let o=Sn(s);ei(e,i,o,e.type_),la(s)}}else he(n)&&ri(n,t,r)})),e}function au(e,t){let r=oi(e),i={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=ii;r&&(n=[i],s=yr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var ii={get(e,t){if(t===re)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=ze(e);if(!cn(n,t,e.type_))return cu(e,n,t);let s=n[t];if(e.finalized_||!he(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Qc(t))return s;if(s===dn(e.base_,t)||lu(e,t,s)){Zr(e);let o=e.type_===1?+t:t,a=vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in ze(e)},ownKeys(e){return Reflect.ownKeys(ze(e))},set(e,t,r){let i=da(ze(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=dn(ze(e),t),s=n?.[re];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Jc(r,n)&&(r!==void 0||cn(e.base_,t,e.type_)))return!0;Zr(e),xn(e)}return e.copy_[t]===r&&(r!==void 0||cn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),ou(e,t,r)),!0},deleteProperty(e,t){return Zr(e),dn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),xn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ze(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[Xr]:!0,[pn]:e.type_!==1||t!=="length",[Qr]:i[Qr],[mr]:r[t]}},defineProperty(){Re(11)},getPrototypeOf(e){return Vt(e.base_)},setPrototypeOf(){Re(12)}},yr={};for(let e in ii){let t=ii[e];yr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}yr.deleteProperty=function(e,t){return yr.set.call(this,e,t,void 0)};yr.set=function(e,t,r){return ii.set.call(this,e[0],t,r,e[0])};function dn(e,t){let r=e[re];return(r?ze(r):e)[t]}function lu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!he(r)||r[re]?!1:e.baseRefs_.has(r)}function cu(e,t,r){let i=da(t,r);return i?mr in i?i[mr]:i.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=Vt(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Vt(r)}}function xn(e){e.modified_||(e.modified_=!0,e.parent_&&xn(e.parent_))}function Zr(e){e.copy_||(e.assigned_=new Map,e.copy_=hn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(Ft(t)&&!Ft(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Ft(r)||Re(6),i!==void 0&&!Ft(i)&&Re(7);let n;if(he(t)){let s=ta(this),o=vn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?gn(s):yn(s)}return ea(s,i),ra(n,s)}else if(!t||!bn(t)){if(n=r(t),n===void 0&&(n=t),n===na&&(n=void 0),this.autoFreeze_&&En(n,!0),i){let s=[],o=[];vt(mn).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Re(1,t)},this.produceWithPatches=(t,r)=>{if(Ft(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},un(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),un(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),un(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){he(e)||Re(8),Me(e)&&(e=pa(e));let t=ta(this),r=vn(t,e,void 0);return r[re].isManual_=!0,yn(t),r}finishDraft(e,t){let r=e&&e[re];(!r||!r.isManual_)&&Re(9);let{scope_:i}=r;return ea(i,t),ra(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=vt(mn).applyPatches_;return Me(e)?i(e,t):this.produce(e,n=>i(n,t))}};function vn(e,t,r,i){let[n,s]=ai(t)?vt(ti).proxyMap_(t,r):li(t)?vt(ti).proxySet_(t,r):au(t,r);return(r?.scope_??aa()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?su(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function pa(e){return Me(e)||Re(10,e),fa(e)}function fa(e){if(!he(e)||ci(e))return e;let t=e[re],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=hn(e,!0);return si(r,(n,s)=>{ei(r,n,fa(s))},i),t&&(t.finalized_=!1),r}var du=globalThis.Iterator,Nf=typeof du?.from=="function";var pu=new uu,An=pu.produce;function ha(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ma=ha(),ga=ha;var fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},Bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},hu=e=>e&&typeof e.match=="function";function et(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(je(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Yo(i)&&i.type===e,r}var Sa=class vr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vr.prototype)}static get[Symbol.species](){return vr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vr(...t[0].concat(this)):new vr(...t.concat(this))}};function ya(e){return he(e)?An(e,()=>{}):e}function di(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function mu(e){return typeof e=="boolean"}var gu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new Sa;return r&&(mu(r)?o.push(ma):o.push(ga(r.extraArgument))),o},yu="RTK_autoBatch";var xa=e=>t=>{setTimeout(t,e)},xu=(e,t)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(n),o=setTimeout(n,t)},vu=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?xu(window.requestAnimationFrame,100):xa(10):e.type==="callback"?e.queueNotification:xa(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[yu],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},bu=e=>function(r){let{autoBatch:i=!0}=r??{},n=new Sa(e);return i&&n.push(vu(typeof i=="object"?i:void 0)),n};function Ea(e){let t=gu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(qr(r))l=Go(r);else throw new Error(je(1));let c;typeof i=="function"?c=i(t):c=t();let u=hr;n&&(u=fu({trace:!1,...typeof n=="object"&&n}));let d=qo(...c),p=bu(d),g=typeof a=="function"?a(p):p(),v=u(...g);return ln(l,o,v)}function Aa(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(je(28));if(a in t)throw new Error(je(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function Su(e){return typeof e=="function"}function Eu(e,t){let[r,i,n]=Aa(t),s;if(Su(e))s=()=>ya(e());else{let a=ya(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Me(u)){let g=d(u,l);return g===void 0?u:g}else{if(he(u))return An(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=s,o}var Au=(e,t)=>hu(e)?e.match(t):e(t);function _u(...e){return t=>e.some(r=>Au(r,t))}var Cu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wu=(e=21)=>{let t="",r=e;for(;r--;)t+=Cu[Math.random()*64|0];return t},Tu=["name","message","stack","code"],_n=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},va=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Ou=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Tu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",Ru=(()=>{function e(t,r,i){let n=et(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=et(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=et(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||Ou)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):wu(),v=new AbortController,E,x;function C(b){x=b,v.abort()}c&&(c.aborted?C(ba):c.addEventListener("abort",()=>C(ba),{once:!0}));let M=(async function(){let b;try{let P=i?.condition?.(l,{getState:d,extra:p});if(Pu(P)&&(P=await P),P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise((U,j)=>{E=()=>{j({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",E,{once:!0})});u(s(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),b=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:v.signal,abort:C,rejectWithValue:((U,j)=>new _n(U,j)),fulfillWithValue:((U,j)=>new va(U,j))})).then(U=>{if(U instanceof _n)throw U;return U instanceof va?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(P){b=P instanceof _n?o(null,g,l,P.payload,P.meta):o(P,g,l)}finally{E&&v.signal.removeEventListener("abort",E)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(M,{abort:C,requestId:g,arg:l,unwrap(){return M.then(Lu)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:_u(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function Lu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Pu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),Ff={[_a]:Ru};function Nu(e,t){return`${e}/${t}`}function Du({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(je(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(Mu()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,T){let P=typeof b=="string"?b:b.type;if(!P)throw new Error(je(12));if(P in l.sliceCaseReducersByType)throw new Error(je(13));return l.sliceCaseReducersByType[P]=T,c},addMatcher(b,T){return l.sliceMatchers.push({matcher:b,reducer:T}),c},exposeAction(b,T){return l.actionCreators[b]=T,c},exposeCaseReducer(b,T){return l.sliceCaseReducersByName[b]=T,c}};a.forEach(b=>{let T=o[b],P={reducerName:b,type:Nu(n,b),createNotation:typeof i.reducers=="function"};$u(T)?Bu(P,T,c,t):Iu(P,T,c)});function u(){let[b={},T=[],P=void 0]=typeof i.extraReducers=="function"?Aa(i.extraReducers):[i.extraReducers],z={...b,...l.sliceCaseReducersByType};return Eu(i.initialState,U=>{for(let j in z)U.addCase(j,z[j]);for(let j of l.sliceMatchers)U.addMatcher(j.matcher,j.reducer);for(let j of T)U.addMatcher(j.matcher,j.reducer);P&&U.addDefaultCase(P)})}let d=b=>b,p=new Map,g=new WeakMap,v;function E(b,T){return v||(v=u()),v(b,T)}function x(){return v||(v=u()),v.getInitialState()}function C(b,T=!1){function P(U){let j=U[b];return typeof j>"u"&&T&&(j=di(g,P,x)),j}function z(U=d){let j=di(p,T,()=>new WeakMap);return di(j,U,()=>{let Yt={};for(let[ge,rt]of Object.entries(i.selectors??{}))Yt[ge]=ku(rt,U,()=>di(g,U,x),T);return Yt})}return{reducerPath:b,getSelectors:z,get selectors(){return z(P)},selectSlice:P}}let M={name:n,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...C(s),injectInto(b,{reducerPath:T,...P}={}){let z=T??s;return b.inject({reducerPath:z,reducer:E},P),{...M,...C(z,!0)}}};return M}}function ku(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var Ca=Du();function Mu(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Iu({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Uu(i))throw new Error(je(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?et(e,o):et(e))}function $u(e){return e._reducerDefinitionType==="asyncThunk"}function Uu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bu({type:e,reducerName:t},r,i,n){if(!n)throw new Error(je(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||pi,pending:a||pi,rejected:l||pi,settled:c||pi})}function pi(){}var wa="listener",Ta="completed",Oa="cancelled",Vf=`task-${Oa}`,zf=`task-${Ta}`,jf=`${wa}-${Oa}`,Wf=`${wa}-${Ta}`;var{assign:Ra}=Object;var Cn="listenerMiddleware";var Hu=Ra(et(`${Cn}/add`),{withTypes:()=>Hu}),Kf=et(`${Cn}/removeAll`),Fu=Ra(et(`${Cn}/remove`),{withTypes:()=>Fu});function je(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vu=Fr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),fi=class extends Vu(Object){};window.ftReduxStores||(window.ftReduxStores={});var La=class e extends fi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(Kr(s))return s;if(n==null)return;let o=Ca({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ea({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=dr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(o,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Vr,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Ut(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var hi=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var mi=f(A()),zu="ft-app-info",bt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};bt.eventName="authentication-change";var br=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};br.eventName="ui-locale-changed";var ju={session:(e,t)=>{(0,mi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>R.dispatchEvent(new bt(t.payload)),0))}},R=mi.FtReduxStore.get({name:zu,reducers:ju,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Pa=f(A()),gi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Eh=(0,Pa.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>hi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return gi([(0,wn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),gi([(0,wn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),gi([on({store:R.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),gi([on({store:R.name})],t.prototype,"uiLocale",void 0),t});var Na;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Na||(Na={}));var Da;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Da||(Da={}));var ka;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ka||(ka={}));var Ma;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ma||(Ma={}));var Ia;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ia||(Ia={}));var $a;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($a||($a={}));var Ua;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ua||(Ua={}));var Ba;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ba||(Ba={}));var Ha;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ha||(Ha={}));var Fa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Fa||(Fa={}));var Va;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Va||(Va={}));var za;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(za||(za={}));var ja;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ja||(ja={}));var Wa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Wa||(Wa={}));var Ka;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ka||(Ka={}));var Ga;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ga||(Ga={}));var qa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(qa||(qa={}));var Ya;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ya||(Ya={}));var Xa;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Xa||(Xa={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var Ja;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var Qa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Qa||(Qa={}));var el;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(el||(el={}));var tl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(tl||(tl={}));var rl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(rl||(rl={}));var il;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(il||(il={}));var nl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nl||(nl={}));var G;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(G||(G={}));var ve;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ve||(ve={}));var sl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(sl||(sl={}));var ol;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ol||(ol={}));var al;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(al||(al={}));var ll;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(ll||(ll={}));var cl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(pl||(pl={}));var fl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(fl||(fl={}));var hl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(hl||(hl={}));var ml;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(ml||(ml={}));var gl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gl||(gl={}));var Wu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function yl(e,t){return e===t||(Wu[e]??[]).some(r=>yl(r,t))}function xl(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>yl(i,t))}var Si=f(A());var Tn=f(A());var St=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=R.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=R.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var zt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}};var me=class extends zt{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Tn.CacheRegistry,this.cache=t?n.commonCache:new Tn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var yi=class extends me{async listMySearches(){let{session:t}=R.getState();return xl(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var xi=class extends me{async listMyBookmarks(){let t=R.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var vi=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var bi=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var Ku="ft-user-assets",Gu={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(ve).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;Rn(e,r,[...On(e,r),n]),vl(e,r,1,i),bl(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Rn(e,r,On(e,r).map(n=>n.id===i.id?i:n)),bl(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Rn(e,r,On(e,r).filter(s=>s.id!==n)),vl(e,r,-1,i)}},Sl={[ve.SEARCHES]:"savedSearches",[ve.BOOKMARKS]:"bookmarks",[ve.BOOKS]:void 0,[ve.COLLECTIONS]:void 0},On=(e,t)=>{var r;let i=Sl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Rn=(e,t,r)=>{let i=Sl[t];i&&(e[i]=r)},vl=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===ve.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},bl=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},se=Si.FtReduxStore.get({name:Ku,reducers:Gu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ve).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ln=class{constructor(t=new vi,r=new bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xi,this.savedSearchesService=new yi,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=R.getState();(0,Si.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&se.getState().assetCounts.allAsset[t]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&se.getState().assetCounts.bookmarkByMap[t]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;t===ve.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;se.actions.bookmarks(r)}}},qu=new Ln;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=qu);var Pn=class{addCommand(t,r=!1){R.commands.add(t,r)}consumeCommand(t){return R.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Pn;var be=f(A());var El,jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Yu=Symbol("clearAfterUnitTest"),Ei=class extends(0,be.withEventBus)(me){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[El]=()=>{this.defaultMessages={},this.cache=new be.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=R.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,be.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new jt({loadedContexts:t})),this.dispatchEvent(new jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new jt({loadedContexts:[t]})),this.dispatchEvent(new jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,be.delay)(0).then(()=>i()).catch(()=>null)))}};El=Yu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ei{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ei{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Sr=window.FluidTopicsI18nService,Nn=window.FluidTopicsCustomI18nService;var Al=f(A()),Dn=class{highlightHtml(t,r,i){(0,Al.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Dn;var _l=f(A());var kn=class{isDate(t){var r,i,n,s;return(s=(n=((i=(r=R.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var i,n,s,o;if(t==null)return"";try{return _l.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:R.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new kn;var Cl=f(A());var Er=class{static get(t,r){var i,n,s,o;let a=R.getState(),{lang:l,region:c}=(s=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Cl.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Mn=class{urlToSearchRequest(t){return Er.get().parse(t)}searchRequestToUrl(t){return Er.get().serialize(t)}};window.FluidTopicsUrlService=new Mn;var We=f(A());var Et=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Et.eventName="before-location-change";var At=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};At.eventName="change";var In=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},wl=new In;var Ai=class e extends We.WithEventBus{static build(){return new e(window.history,wl,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,We.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new At(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[s,o,a])=>{let l=new Et(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(Et.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Et.eventName,t)}addHistoryChangeListener(t){this.addEventListener(At.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(At.eventName,t)}currentItem(){return(0,We.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,We.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,We.deepCopy)(r.find(i=>t(i)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,We.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ai.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Tl=f(V());var Ol=Tl.css`
|
|
656
|
+
`;var Pl=f(V()),oe=f(J()),wt=f(A());var _t=f(A());function Rl(e,t){let{authenticationRequired:r,session:i}=R.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var _i=class extends zt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var $n=class e extends _t.FtStateManager{static build(t){return new e(R,t)}constructor(t,r){super(),this.store=t,this.cache=new _t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new _i,this.cleanSessionDebouncer=new _t.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new _t.Debouncer(500),this.apiProvider=r??(()=>St.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(bt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(bt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Rl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new br(i)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Ll=$n.build();var Ct=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Ar=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ct(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var Z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},F=class extends wt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ll,this.contextRoot=new Ar}render(){return Pl.html`
|
|
657
|
+
<slot></slot>
|
|
658
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Sr.addContext(i)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};F.elementDefinitions={};F.styles=Ol;Z([(0,oe.property)()],F.prototype,"baseUrl",void 0);Z([(0,oe.property)()],F.prototype,"tenantId",void 0);Z([(0,oe.property)()],F.prototype,"apiIntegrationIdentifier",void 0);Z([(0,oe.property)()],F.prototype,"apiIntegrationAppVersion",void 0);Z([(0,oe.property)()],F.prototype,"uiLocale",void 0);Z([(0,wt.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);Z([(0,wt.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"editorMode",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"noCustom",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomCode",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"withManualResources",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);Z([(0,wt.jsonProperty)([])],F.prototype,"messageContexts",void 0);Z([(0,wt.jsonProperty)(void 0)],F.prototype,"session",void 0);var Dl=f(A());var Nl={"ft-app-context":F};(0,Dl.customElements)(Nl);var kl=f(J());var Un=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Wt=new Un;var Ju=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Cr=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),Il=Symbol("i18nProperties"),Ci=Symbol("i18nContexts"),_r=Symbol("i18nUnsubs"),$l=(0,Kt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Nn:Sr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Wt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Cr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Ml])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(s){var o;(o=this[Il])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ci].set(l,{isCustomContext:a}),this[_r].has(l)||this[_r].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Ci].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ci].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[_r].forEach(s=>s()),this[_r].clear()}}return t=Ci,r=_r,Ju([(0,kl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),wi=class extends $l(Kt.FtLitElement){},Ti=class extends $l(Kt.FtLitElementRedux){};var Ul=f(A());var Bn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Wt.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Qu=new Bn;var Bl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Ul.hasChanged,converter:Wt,...t}),r[Cr]=(n=r[Cr])!==null&&n!==void 0?n:new Map,r[Cr].set(i,e??{})};var Hl=f(V());var Fl=Hl.css`
|
|
659
|
+
`;var Oi=f(V()),qt=f(J()),Ri=f(A());var Gt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Se=class extends Ti{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Oi.nothing:Oi.html`
|
|
660
|
+
<span class="ft-i18n">
|
|
661
|
+
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
662
|
+
</span>
|
|
663
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Se.elementDefinitions={};Se.styles=Fl;Gt([(0,Ri.redux)()],Se.prototype,"editorMode",void 0);Gt([(0,qt.property)()],Se.prototype,"context",void 0);Gt([(0,qt.property)()],Se.prototype,"key",void 0);Gt([(0,Ri.jsonProperty)([])],Se.prototype,"args",void 0);Gt([(0,qt.property)()],Se.prototype,"defaultMessage",void 0);Gt([(0,qt.state)()],Se.prototype,"editorMessage",void 0);var zl=f(A());var Vl={"ft-i18n":Se};(0,zl.customElements)(Vl);var Le=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Y=class extends wi{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ee.Debouncer,this.revealDebouncer=new Ee.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return jl.html`
|
|
664
|
+
<div part="container"
|
|
665
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
666
|
+
<slot part="slot"></slot>
|
|
667
|
+
<div part="tooltip" role="tooltip" inert
|
|
668
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
669
|
+
popover="manual">
|
|
670
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
671
|
+
<slot name="text"></slot>
|
|
672
|
+
<ft-typography variant="${ye.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
|
|
673
|
+
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
674
|
+
</ft-typography>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Do(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ee.designSystemVariables.transitionDuration}, left ${Ee.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Ee.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":ie};Y.styles=no;Le([Bl()],Y.prototype,"text",void 0);Le([(0,Ae.property)({type:Boolean})],Y.prototype,"manual",void 0);Le([(0,Ae.property)({type:Boolean})],Y.prototype,"inline",void 0);Le([(0,Ee.numberProperty)()],Y.prototype,"delay",void 0);Le([(0,Ae.property)()],Y.prototype,"position",void 0);Le([(0,Ee.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);Le([(0,Ae.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);Le([(0,Ae.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);Le([(0,Ae.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);Le([(0,Ae.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);Le([(0,Ae.state)()],Y.prototype,"visible",void 0);var Kl=f(A());var Wl={"ft-tooltip":Y};(0,Kl.customElements)(Wl);var Gl=f(V()),wr=f(A()),Tt={color:wr.FtCssVariableFactory.extend("--ft-loader-color","",wr.designSystemVariables.colorPrimary),size:wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ql=Gl.css`
|
|
679
|
+
:host {
|
|
680
|
+
line-height: 0;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.ft-loader {
|
|
684
|
+
display: inline-block;
|
|
685
|
+
position: relative;
|
|
686
|
+
|
|
687
|
+
width: ${Tt.size};
|
|
688
|
+
height: ${Tt.size};
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.ft-loader div {
|
|
692
|
+
position: absolute;
|
|
693
|
+
top: 37.5%;
|
|
694
|
+
width: 25%;
|
|
695
|
+
height: 25%;
|
|
696
|
+
border-radius: 50%;
|
|
697
|
+
background: ${Tt.color};
|
|
698
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.ft-loader div:nth-child(1) {
|
|
702
|
+
left: 2.5%;
|
|
703
|
+
animation: appear 0.6s infinite;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.ft-loader div:nth-child(2) {
|
|
707
|
+
left: 2.5%;
|
|
708
|
+
animation: move 0.6s infinite;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.ft-loader div:nth-child(3) {
|
|
712
|
+
left: 37.5%;
|
|
713
|
+
animation: move 0.6s infinite;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.ft-loader div:nth-child(4) {
|
|
717
|
+
left: 72.5%;
|
|
718
|
+
animation: disappear 0.6s infinite;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
@keyframes appear {
|
|
722
|
+
0% {
|
|
723
|
+
transform: scale(0);
|
|
724
|
+
}
|
|
725
|
+
100% {
|
|
726
|
+
transform: scale(1);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
@keyframes disappear {
|
|
731
|
+
0% {
|
|
732
|
+
transform: scale(1);
|
|
733
|
+
}
|
|
734
|
+
100% {
|
|
735
|
+
transform: scale(0);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
@keyframes move {
|
|
740
|
+
0% {
|
|
741
|
+
transform: translate(0, 0);
|
|
742
|
+
}
|
|
743
|
+
100% {
|
|
744
|
+
transform: translate(calc(0.35 * ${Tt.size}), 0);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
`;var Yl=f(V()),Xl=f(A());var Ot=class extends Xl.FtLitElement{render(){return Yl.html`
|
|
748
|
+
<div class="ft-loader">
|
|
749
|
+
<div></div>
|
|
750
|
+
<div></div>
|
|
751
|
+
<div></div>
|
|
752
|
+
<div></div>
|
|
753
|
+
</div>
|
|
754
|
+
`}};Ot.styles=ql;var Jl=f(A());var Zl={"ft-loader":Ot};(0,Jl.customElements)(Zl);var tt=f(V()),Li=f(Nt()),I=f(J());var tc=f(V()),w=f(A());var Ql=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),X={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Ql,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",_e.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ql),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},ec=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Hn={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:ec,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ec)},Ie={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},rc=tc.css`
|
|
755
|
+
:host {
|
|
756
|
+
display: inline-block;
|
|
757
|
+
max-width: 100%;
|
|
758
|
+
pointer-events: none;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.ft-button {
|
|
762
|
+
box-shadow: 0px 0px 0px transparent;
|
|
763
|
+
border: 0px solid transparent;
|
|
764
|
+
text-shadow: 0px 0px 0px transparent;
|
|
765
|
+
font-size: ${X.fontSize};
|
|
766
|
+
text-decoration: none;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ft-button:hover {
|
|
770
|
+
box-shadow: 0px 0px 0px transparent;
|
|
771
|
+
border: 0px solid transparent;
|
|
772
|
+
text-shadow: 0px 0px 0px transparent;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.ft-button:active {
|
|
776
|
+
outline: none;
|
|
777
|
+
border: none;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.ft-button:focus {
|
|
781
|
+
outline: none;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.ft-button:focus-visible {
|
|
785
|
+
outline: 2px solid ${w.designSystemVariables.colorPrimary};
|
|
786
|
+
outline-offset: 2px;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.ft-button {
|
|
790
|
+
position: relative;
|
|
791
|
+
display: flex;
|
|
792
|
+
justify-content: center;
|
|
793
|
+
align-items: center;
|
|
794
|
+
width: 100%;
|
|
795
|
+
box-sizing: border-box;
|
|
796
|
+
border: none;
|
|
797
|
+
pointer-events: auto;
|
|
798
|
+
|
|
799
|
+
--button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
|
|
800
|
+
--button-internal-color: ${X.color};
|
|
801
|
+
${(0,w.setVariable)(pe.size,X.iconSize)};
|
|
802
|
+
${(0,w.setVariable)(ne.color,X.rippleColor)};
|
|
803
|
+
${(0,w.setVariable)(ne.borderRadius,X.borderRadius)};
|
|
804
|
+
|
|
805
|
+
border-radius: ${X.borderRadius};
|
|
806
|
+
padding: ${X.verticalPadding} ${X.horizontalPadding};
|
|
807
|
+
background-color: ${X.backgroundColor};
|
|
808
|
+
color: var(--button-internal-color);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.ft-button.ft-button--outlined {
|
|
812
|
+
border: 1px solid var(--button-internal-color);
|
|
813
|
+
padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.ft-button.ft-button--dense {
|
|
817
|
+
padding: ${Ie.verticalPadding} ${Ie.horizontalPadding};
|
|
818
|
+
border-radius: ${Ie.borderRadius};
|
|
819
|
+
${(0,w.setVariable)(ne.borderRadius,Ie.borderRadius)};
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
823
|
+
padding: calc(${Ie.verticalPadding} - 1px) calc(${Ie.horizontalPadding} - 1px);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.ft-button:not([disabled]):hover {
|
|
827
|
+
cursor: pointer;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.ft-button--round {
|
|
831
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${X.verticalPadding});
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.ft-button--round.ft-button--dense {
|
|
835
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Ie.verticalPadding});
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.ft-button[disabled] {
|
|
839
|
+
filter: grayscale(1);
|
|
840
|
+
opacity: ${X.opacityDisabled};
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.ft-button.ft-button--primary {
|
|
844
|
+
background-color: ${Hn.backgroundColor};
|
|
845
|
+
--button-internal-color: ${Hn.color};
|
|
846
|
+
${(0,w.setVariable)(ne.color,Hn.rippleColor)};
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.ft-button--label {
|
|
850
|
+
position: relative;
|
|
851
|
+
overflow: hidden;
|
|
852
|
+
white-space: nowrap;
|
|
853
|
+
text-overflow: ellipsis;
|
|
854
|
+
display: block;
|
|
855
|
+
margin: 0 ${X.iconPadding};
|
|
856
|
+
${(0,w.setVariable)(_e.fontSize,"1em")};
|
|
857
|
+
${(0,w.setVariable)(_e.lineHeight,"var(--button-internal-line-height)")};
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.ft-button--dense .ft-button--label {
|
|
861
|
+
margin: 0 ${Ie.iconPadding};
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.ft-button--label.ft-button--label-no-text {
|
|
865
|
+
margin: 0;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
[part="icon"] {
|
|
869
|
+
flex-shrink: 0;
|
|
870
|
+
position: relative;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.ft-button--label[hidden] + [part="icon"] {
|
|
874
|
+
margin: 0 calc(${X.horizontalPadding} * -1);
|
|
875
|
+
padding: 0 ${X.verticalPadding};
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
879
|
+
margin: 0 calc(${Ie.horizontalPadding} * -1);
|
|
880
|
+
padding: 0 ${Ie.verticalPadding};
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
884
|
+
order: 2;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
ft-loader {
|
|
888
|
+
${(0,w.setVariable)(Tt.size,X.iconSize)};
|
|
889
|
+
${(0,w.setVariable)(Tt.color,"var(--button-internal-color)")};
|
|
890
|
+
}
|
|
891
|
+
`;var H=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},k=class e extends(0,$e.toFtFormComponent)($e.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":$e.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=tt.html`
|
|
892
|
+
<ft-ripple part="ripple"
|
|
893
|
+
?disabled=${this.isDisabled()}
|
|
894
|
+
?activated=${this.activated}
|
|
895
|
+
></ft-ripple>
|
|
896
|
+
<ft-typography part="label"
|
|
897
|
+
variant="${ye.button}"
|
|
898
|
+
element="span"
|
|
899
|
+
class="${(0,Li.classMap)(n)}">
|
|
900
|
+
<slot></slot>
|
|
901
|
+
</ft-typography>
|
|
902
|
+
${this.resolveIcon()}
|
|
903
|
+
`,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?tt.html`
|
|
904
|
+
<a href="${o}"
|
|
905
|
+
target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
|
|
906
|
+
part="button"
|
|
907
|
+
class="${(0,Li.classMap)(this.buttonClasses)}"
|
|
908
|
+
aria-label="${Pe((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
909
|
+
?disabled=${this.isDisabled()}>
|
|
910
|
+
${s}
|
|
911
|
+
</a>
|
|
912
|
+
`:tt.html`
|
|
913
|
+
<button part="button"
|
|
914
|
+
class="${(0,Li.classMap)(this.buttonClasses)}"
|
|
915
|
+
aria-label="${Pe((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
916
|
+
aria-haspopup="${Pe(this.ariaHasPopup)}"
|
|
917
|
+
aria-pressed="${Pe(this.ariaPressed)}"
|
|
918
|
+
?disabled=${this.isDisabled()}>
|
|
919
|
+
${s}
|
|
920
|
+
</button>
|
|
921
|
+
`)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?tt.html`
|
|
922
|
+
<ft-tooltip part="tooltip"
|
|
923
|
+
text="${this.label}"
|
|
924
|
+
position="${this.tooltipPosition}">
|
|
925
|
+
${t}
|
|
926
|
+
</ft-tooltip>
|
|
927
|
+
`:t}resolveIcon(){return this.loading?tt.html`
|
|
928
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?tt.html`
|
|
929
|
+
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
930
|
+
`:tt.html`
|
|
931
|
+
<slot part="icon" name="icon"></slot>
|
|
932
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};k.elementDefinitions={"ft-ripple":$,"ft-tooltip":Y,"ft-icon":ee,"ft-loader":Ot,"ft-typography":ie};k.styles=[$e.safariEllipsisFix,rc,$e.noTextSelect];k.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:k.labelsObserver.unobserve(t.target)}});H([(0,I.property)({type:Boolean})],k.prototype,"primary",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"outlined",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"dense",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"round",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"disabled",void 0);H([(0,I.property)()],k.prototype,"icon",void 0);H([(0,I.property)()],k.prototype,"iconVariant",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"trailingIcon",void 0);H([(0,I.property)()],k.prototype,"label",void 0);H([(0,I.property)()],k.prototype,"type",void 0);H([(0,I.property)()],k.prototype,"href",void 0);H([(0,I.property)()],k.prototype,"target",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"loading",void 0);H([(0,I.property)({attribute:"aria-label"})],k.prototype,"ariaLabel",void 0);H([(0,I.property)()],k.prototype,"ariaHasPopup",void 0);H([(0,I.property)({attribute:"aria-pressed"})],k.prototype,"ariaPressed",void 0);H([(0,I.property)()],k.prototype,"tooltipPosition",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"hideTooltip",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"forceTooltip",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"activated",void 0);H([(0,I.query)(".ft-button")],k.prototype,"button",void 0);H([(0,I.query)(".ft-button--label")],k.prototype,"labelContainer",void 0);H([(0,I.state)()],k.prototype,"hasTextContent",void 0);H([(0,I.query)(".ft-button--label slot")],k.prototype,"slottedContent",void 0);H([(0,I.query)("[part=tooltip]")],k.prototype,"tooltip",void 0);var nc=f(A());var ic={"ft-button":k};(0,nc.customElements)(ic);var Lt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Fn=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Vn=class extends CustomEvent{constructor(t){super("suggestion-removed",{detail:t,bubbles:!0,composed:!0})}},ae=class extends sc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Rt.html`
|
|
933
|
+
<div class="${(0,oc.classMap)(t)}">
|
|
934
|
+
<div
|
|
935
|
+
class="ft-text-field-suggestion--suggestion"
|
|
936
|
+
tabindex="-1"
|
|
937
|
+
@keydown=${this.suggestionKeyDown}
|
|
938
|
+
@click=${this.selectSuggestion}
|
|
939
|
+
>
|
|
940
|
+
<ft-ripple></ft-ripple>
|
|
941
|
+
${this.helper?Rt.html`
|
|
942
|
+
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
943
|
+
${this.helper}
|
|
944
|
+
</ft-typography>`:Rt.nothing}
|
|
945
|
+
<ft-typography part="label"
|
|
946
|
+
variant="${ye.body1}"
|
|
947
|
+
class="ft-text-field-suggestion--label">
|
|
948
|
+
<slot></slot>
|
|
949
|
+
</ft-typography>
|
|
950
|
+
</div>
|
|
951
|
+
${this.removable?Rt.html`
|
|
952
|
+
<ft-button icon="${He.CLOSE}"
|
|
953
|
+
part="remove-button"
|
|
954
|
+
class="ft-text-field-suggestion--remove"
|
|
955
|
+
round
|
|
956
|
+
label="${this.removeButtonLabel}"
|
|
957
|
+
tooltipPosition="left"
|
|
958
|
+
tabindex="-1"
|
|
959
|
+
@keydown=${this.removeButtonKeyDown}
|
|
960
|
+
@click=${this.removeSuggestion}>
|
|
961
|
+
</ft-button>
|
|
962
|
+
`:Rt.nothing}
|
|
633
963
|
</div>
|
|
634
|
-
`}focus(t){var i;(i=this.
|
|
635
|
-
<div class="${(0,
|
|
964
|
+
`}focus(t,r){var i,n;r&&this.removable?(i=this.removeButton)===null||i===void 0||i.focus():(n=this.suggestion)===null||n===void 0||n.focus(t)}click(t){var r;(r=t?this.removeButton:this.suggestion)===null||r===void 0||r.click()}isRemoveButtonFocused(){var t,r;return(r=(t=this.removeButton)===null||t===void 0?void 0:t.matches(":focus-within"))!==null&&r!==void 0?r:!1}selectSuggestion(){this.dispatchEvent(new Fn(this.getValue()))}removeSuggestion(){this.dispatchEvent(new Vn(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}suggestionKeyDown(t){var r;switch(t.key){case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(t.preventDefault(),t.stopPropagation(),(r=this.removeButton)===null||r===void 0||r.focus());break}}removeButtonKeyDown(t){var r;switch(t.key){case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),(r=this.suggestion)===null||r===void 0||r.focus();break}}};ae.elementDefinitions={"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-button":k};ae.styles=ro;Lt([(0,Ue.property)()],ae.prototype,"value",void 0);Lt([(0,Ue.property)()],ae.prototype,"helper",void 0);Lt([(0,Ue.property)({type:Boolean})],ae.prototype,"removable",void 0);Lt([(0,Ue.property)()],ae.prototype,"removeButtonLabel",void 0);Lt([(0,Ue.query)(".ft-text-field-suggestion--suggestion")],ae.prototype,"suggestion",void 0);Lt([(0,Ue.query)(".ft-text-field-suggestion--remove")],ae.prototype,"removeButton",void 0);Lt([(0,Ue.queryAssignedNodes)()],ae.prototype,"assignedNodes",void 0);var Pi=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},Ni=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Di=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var D=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},_=class extends(0,le.toFtFormComponent)(le.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=He.EYE_SLASH,this.passwordRevealedIcon=He.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),s=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,o=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return q.html`
|
|
965
|
+
<div class="${(0,lc.classMap)(r)}">
|
|
636
966
|
<div class="ft-text-field--main-panel"
|
|
637
967
|
@keydown=${this.handleKeyboardNavigation}
|
|
638
968
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -642,21 +972,21 @@
|
|
|
642
972
|
?raised=${this.focused||this.value!=""}
|
|
643
973
|
?error=${!this.inputValid||this.error}></ft-input-label>
|
|
644
974
|
<div class="ft-text-field--input-panel">
|
|
645
|
-
${this.outlined?
|
|
975
|
+
${this.outlined?q.nothing:q.html`
|
|
646
976
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
647
977
|
`}
|
|
648
|
-
${this.prefix?
|
|
978
|
+
${this.prefix?q.html`
|
|
649
979
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
650
980
|
${this.prefix}
|
|
651
981
|
</ft-typography>
|
|
652
|
-
`:
|
|
982
|
+
`:q.nothing}
|
|
653
983
|
<input type="${this.resolveInputType()}"
|
|
654
|
-
name="${
|
|
655
|
-
maxlength="${
|
|
984
|
+
name="${Pe(this.name)}"
|
|
985
|
+
maxlength="${Pe(this.maxLength||void 0)}"
|
|
656
986
|
aria-label="${this.label}"
|
|
657
|
-
aria-describedby="${
|
|
987
|
+
aria-describedby="${Pe(this.helper?"helper":void 0)}"
|
|
658
988
|
aria-invalid="${this.error}"
|
|
659
|
-
autocomplete="${
|
|
989
|
+
autocomplete="${Pe(this.autocomplete)}"
|
|
660
990
|
class="ft-typography--body1 ft-text-field--input"
|
|
661
991
|
part="input"
|
|
662
992
|
?disabled=${this.disabled}
|
|
@@ -670,49 +1000,54 @@
|
|
|
670
1000
|
</div>
|
|
671
1001
|
<div class="ft-text-field--suggestions"
|
|
672
1002
|
part="suggestions"
|
|
673
|
-
@suggestion-selected=${this.onSuggestionSelected}
|
|
1003
|
+
@suggestion-selected=${this.onSuggestionSelected}
|
|
1004
|
+
@suggestion-removed=${this.onSuggestionRemoved}
|
|
1005
|
+
>
|
|
674
1006
|
${this.renderSuggestions()}
|
|
675
|
-
${!this.hideCurrentValueSuggestion&&
|
|
1007
|
+
${!this.hideCurrentValueSuggestion&&s?q.html`
|
|
676
1008
|
<ft-text-field-suggestion
|
|
677
1009
|
class="ft-text-field-suggestion--new-value"
|
|
678
1010
|
part="suggestion current-value-suggestion"
|
|
679
1011
|
helper="${this.suggestionsHelper}">
|
|
680
1012
|
${this.value}
|
|
681
1013
|
</ft-text-field-suggestion>
|
|
682
|
-
`:
|
|
1014
|
+
`:q.nothing}
|
|
683
1015
|
</div>
|
|
684
1016
|
</div>
|
|
685
|
-
${
|
|
686
|
-
<ft-typography class="ft-text-field--helper-text" variant="${
|
|
687
|
-
${
|
|
1017
|
+
${o?q.html`
|
|
1018
|
+
<ft-typography class="ft-text-field--helper-text" variant="${ye.caption}" id="helper" role="alert">
|
|
1019
|
+
${o}
|
|
688
1020
|
</ft-typography>
|
|
689
|
-
`:
|
|
1021
|
+
`:q.nothing}
|
|
690
1022
|
</div>
|
|
691
|
-
`}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?
|
|
692
|
-
${(0,
|
|
693
|
-
<ft-text-field-suggestion part="suggestion"
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
1023
|
+
`}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?q.html`
|
|
1024
|
+
${(0,ac.repeat)(this.providedSuggestions,t=>{var r;return q.html`
|
|
1025
|
+
<ft-text-field-suggestion part="suggestion"
|
|
1026
|
+
value="${t.value}"
|
|
1027
|
+
?removable=${t.removable} }
|
|
1028
|
+
removeButtonLabel="${(r=t.removeButtonLabel)!==null&&r!==void 0?r:q.nothing}"
|
|
1029
|
+
>
|
|
1030
|
+
${t.icon?q.html`<ft-icon .value=${t.icon}></ft-icon>`:q.nothing}
|
|
697
1031
|
${t.label}
|
|
698
1032
|
</ft-text-field-suggestion>
|
|
699
|
-
`)}
|
|
700
|
-
`:
|
|
1033
|
+
`})}
|
|
1034
|
+
`:q.html`
|
|
701
1035
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
702
|
-
`}
|
|
1036
|
+
`}renderPasswordIcon(){return q.html`
|
|
703
1037
|
<ft-icon class="ft-text-field--icon"
|
|
704
1038
|
.variant=${this.iconVariant}
|
|
705
1039
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
706
1040
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
707
|
-
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?
|
|
1041
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?q.html`
|
|
708
1042
|
<ft-icon class="ft-text-field--icon"
|
|
709
1043
|
.variant=${this.iconVariant}
|
|
710
1044
|
.value=${this.icon}
|
|
711
1045
|
@click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
|
|
712
|
-
`:
|
|
1046
|
+
`:q.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var t;if(this.suggestionsProvider){(t=this.cancelableSuggest)===null||t===void 0||t.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=(0,le.cancelable)(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("providedSuggestions")&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new Pi(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new Ni(t))):this.dispatchEvent(new Di(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r,i;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),s;t.key==="ArrowDown"?s=n<this.visibleSuggestions.length-1?n+1:0:s=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[s])===null||r===void 0||r.focus(void 0,(i=this.visibleSuggestions[n])===null||i===void 0?void 0:i.isRemoveButtonFocused())}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,le.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};_.elementDefinitions={"ft-input-label":Ce,"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-text-field-suggestion":ae};_.styles=[Lr,le.noTextInputDefaultClearButton,eo];D([(0,L.property)()],_.prototype,"label",void 0);D([(0,L.property)({noAccessor:!0})],_.prototype,"value",null);D([(0,L.state)()],_.prototype,"dispatchedValue",void 0);D([(0,L.property)()],_.prototype,"helper",void 0);D([(0,L.property)()],_.prototype,"suggestionsHelper",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"outlined",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"disabled",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"error",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"fixedMenuPosition",void 0);D([(0,L.property)()],_.prototype,"prefix",void 0);D([(0,L.property)()],_.prototype,"icon",void 0);D([(0,L.property)()],_.prototype,"name",void 0);D([(0,L.property)()],_.prototype,"type",void 0);D([(0,L.property)()],_.prototype,"passwordHiddenIcon",void 0);D([(0,L.property)()],_.prototype,"passwordRevealedIcon",void 0);D([(0,L.property)()],_.prototype,"iconVariant",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"filterSuggestions",void 0);D([(0,le.numberProperty)()],_.prototype,"maxLength",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"password",void 0);D([(0,L.property)({type:String})],_.prototype,"autocomplete",void 0);D([(0,L.property)({attribute:!1})],_.prototype,"suggestionsProvider",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"hideCurrentValueSuggestion",void 0);D([(0,L.state)()],_.prototype,"focused",void 0);D([(0,L.state)()],_.prototype,"inputValid",void 0);D([(0,L.state)()],_.prototype,"hidePassword",void 0);D([(0,L.state)()],_.prototype,"hideSuggestions",void 0);D([(0,L.state)()],_.prototype,"visibleSuggestions",void 0);D([(0,L.state)()],_.prototype,"providedSuggestions",void 0);D([(0,L.query)(".ft-text-field--main-panel")],_.prototype,"mainPanel",void 0);D([(0,L.query)(".ft-text-field--input")],_.prototype,"input",void 0);D([(0,L.query)(".ft-text-field-suggestion--new-value")],_.prototype,"newValueSuggestion",void 0);D([(0,L.query)(".ft-text-field--suggestions")],_.prototype,"suggestionsContainer",void 0);D([(0,L.queryAll)("ft-text-field-suggestion")],_.prototype,"providedSuggestionsInDom",void 0);D([(0,L.queryAssignedElements)({selector:"ft-text-field-suggestion"})],_.prototype,"slottedSuggestions",void 0);D([(0,le.ignoreComposingEvents)()],_.prototype,"handleInput",null);D([(0,le.ignoreComposingEvents)()],_.prototype,"catchComposingEvents",null);var cc={"ft-text-field":_,"ft-text-field-suggestion":ae};(0,uc.customElements)(cc);})();
|
|
713
1047
|
/*! Bundled license information:
|
|
714
1048
|
|
|
715
1049
|
lit-html/lit-html.js:
|
|
1050
|
+
@lit/context/lib/decorators/provide.js:
|
|
716
1051
|
(**
|
|
717
1052
|
* @license
|
|
718
1053
|
* Copyright 2017 Google LLC
|
|
@@ -734,9 +1069,29 @@ lit-html/static.js:
|
|
|
734
1069
|
*)
|
|
735
1070
|
|
|
736
1071
|
lit-html/directives/when.js:
|
|
1072
|
+
@lit/context/lib/context-request-event.js:
|
|
1073
|
+
@lit/context/lib/create-context.js:
|
|
1074
|
+
@lit/context/lib/controllers/context-consumer.js:
|
|
1075
|
+
@lit/context/lib/value-notifier.js:
|
|
1076
|
+
@lit/context/lib/controllers/context-provider.js:
|
|
1077
|
+
@lit/context/lib/context-root.js:
|
|
737
1078
|
(**
|
|
738
1079
|
* @license
|
|
739
1080
|
* Copyright 2021 Google LLC
|
|
740
1081
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
741
1082
|
*)
|
|
1083
|
+
|
|
1084
|
+
@lit/reactive-element/css-tag.js:
|
|
1085
|
+
(**
|
|
1086
|
+
* @license
|
|
1087
|
+
* Copyright 2019 Google LLC
|
|
1088
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1089
|
+
*)
|
|
1090
|
+
|
|
1091
|
+
@lit/context/lib/decorators/consume.js:
|
|
1092
|
+
(**
|
|
1093
|
+
* @license
|
|
1094
|
+
* Copyright 2022 Google LLC
|
|
1095
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1096
|
+
*)
|
|
742
1097
|
*/
|