@fluid-topics/ft-combobox 2.2.25 → 2.2.27
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-combobox.light.js +341 -335
- package/build/ft-combobox.min.js +268 -262
- package/package.json +11 -11
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Co=/'/g,wo=/"/g,Lo=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Po=pn(1),ko=pn(2),Do=pn(3),hr=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),To=new WeakMap,bt=xt.createTreeWalker(xt,129);function No(t,e){if(!dn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Eo!==void 0?Eo.createHTML(e):e}var eu=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pr?u[1]==="!--"?s=Ao:u[1]!==void 0?s=_o:u[2]!==void 0?(Lo.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=yt):u[3]!==void 0&&(s=yt):s===yt?u[0]===">"?(s=n??pr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yt:u[3]==='"'?wo:Co):s===wo||s===Co?s=yt:s===Ao||s===_o?s=pr:(s=yt,n=void 0);let g=s===yt&&t[a+1].startsWith("/>")?" ":"";o+=s===pr?l+Jc:d>=0?(i.push(c),l.slice(0,d)+Oo+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[No(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},mr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,r);if(this.el=t.createElement(c,i),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=bt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Oo)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?sn:x[1]==="?"?an:x[1]==="@"?ln:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Lo.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=jr?jr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Wr()),bt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wr())}}}else if(n.nodeType===8)if(n.data===Ro)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,r){let i=xt.createElement("template");return i.innerHTML=e,i}};function Kt(t,e,r=t,i){if(e===hr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=fr(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Kt(t,n._$AS(t,e.values),n,i)),e}var on=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??xt).importNode(r,!0);bt.currentNode=n;let o=bt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Kr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new cn(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=bt.nextNode(),s++)}return bt.currentNode=xt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Kr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Kt(this,e,r),fr(e)?e===ee||e==null||e===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):e!==this._$AH&&e!==hr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ee&&fr(this._$AH)?this._$AA.nextSibling.data=e:this.T(xt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=mr.createElement(No(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new on(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=To.get(e.strings);return r===void 0&&To.set(e.strings,r=new mr(e)),r}k(e){dn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(Wr()),this.O(Wr()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=So(e).nextSibling;So(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ee}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Kt(this,e,r,0),s=!fr(e)||e!==this._$AH&&e!==hr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Kt(this,a[i+l],r,l),c===hr&&(c=this._$AH[l]),s||=!fr(c)||c!==this._$AH[l],c===ee?e=ee:e!==ee&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ee?void 0:e}},an=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ee)}},ln=class extends Gt{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Kt(this,e,r,0)??ee)===hr)return;let i=this._$AH,n=e===ee&&i!==ee||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ee&&(i===ee||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},cn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var tu=un.litHtmlPolyfillSupport;tu?.(mr,Kr),(un.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??ee;function gr(t,e,r){return t?e(t):r?.(t)}var Pe=f(S());var kc=f(z()),he=f(S());var Wo=f(z()),W=f(S());var De=f(z()),h=f(S()),Io=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Je=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Je,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")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Io),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")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Io),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")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Je),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")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Je),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")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Je),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")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Je),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")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Je),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")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Je),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")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Je),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")},Fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Je),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")},Mo=De.css`
|
|
1
|
+
"use strict";(()=>{var Wc=Object.create;var yo=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var Kt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var Zc=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qc(e))!Xc.call(t,n)&&n!==i&&yo(t,n,{get:()=>e[n],enumerable:!(r=Gc(e,n))||r.enumerable});return t};var f=(t,e,i)=>(i=t!=null?Wc(Yc(t)):{},Zc(e||!t||!t.__esModule?yo(i,"default",{value:t,enumerable:!0}):i,t));var E=Kt((Nd,bo)=>{bo.exports=ftGlobals.wcUtils});var j=Kt((Id,xo)=>{xo.exports=ftGlobals.lit});var re=Kt((Md,vo)=>{vo.exports=ftGlobals.litDecorators});var on=Kt(($d,So)=>{So.exports=ftGlobals.litRepeat});var ot=Kt((Ud,Eo)=>{Eo.exports=ftGlobals.litClassMap});var Es=Kt((qp,Ss)=>{Ss.exports=ftGlobals.litUnsafeHTML});var zc=f(E());var Se=f(j()),B=f(re()),go=f(on()),nn=f(ot());var pn=globalThis,Ao=t=>t,Ki=pn.trustedTypes,_o=Ki?Ki.createPolicy("lit-html",{createHTML:t=>t}):void 0,Lo="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,Po="?"+st,Jc=`<${Po}>`,bt=document,Wi=()=>bt.createComment(""),fi=t=>t===null||typeof t!="object"&&typeof t!="function",fn=Array.isArray,Qc=t=>fn(t)||typeof t?.[Symbol.iterator]=="function",sn=`[
|
|
2
|
+
\f\r]`,pi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Co=/-->/g,wo=/>/g,gt=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),To=/'/g,Oo=/"/g,Do=/^(?:script|style|textarea|title)$/i,hn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ko=hn(1),No=hn(2),Io=hn(3),hi=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Ro=new WeakMap,yt=bt.createTreeWalker(bt,129);function Mo(t,e){if(!fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return _o!==void 0?_o.createHTML(e):e}var eu=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pi?u[1]==="!--"?s=Co:u[1]!==void 0?s=wo:u[2]!==void 0?(Do.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=gt):u[3]!==void 0&&(s=gt):s===gt?u[0]===">"?(s=n??pi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?gt:u[3]==='"'?Oo:To):s===Oo||s===To?s=gt:s===Co||s===wo?s=pi:(s=gt,n=void 0);let g=s===gt&&t[a+1].startsWith("/>")?" ":"";o+=s===pi?l+Jc:d>=0?(r.push(c),l.slice(0,d)+Lo+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[Mo(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},mi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,i);if(this.el=t.createElement(c,r),yt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=yt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Lo)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?ln:x[1]==="?"?cn:x[1]==="@"?un:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Do.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=Ki?Ki.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Wi()),yt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wi())}}}else if(n.nodeType===8)if(n.data===Po)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,i){let r=bt.createElement("template");return r.innerHTML=e,r}};function Wt(t,e,i=t,r){if(e===hi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=fi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Wt(t,n._$AS(t,e.values),n,r)),e}var an=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??bt).importNode(i,!0);yt.currentNode=n;let o=yt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Gi(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new dn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=yt.nextNode(),s++)}return yt.currentNode=bt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Gi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Wt(this,e,i),fi(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==hi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==J&&fi(this._$AH)?this._$AA.nextSibling.data=e:this.T(bt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=mi.createElement(Mo(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new an(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Ro.get(e.strings);return i===void 0&&Ro.set(e.strings,i=new mi(e)),i}k(e){fn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Wi()),this.O(Wi()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Ao(e).nextSibling;Ao(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Wt(this,e,i,0),s=!fi(e)||e!==this._$AH&&e!==hi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Wt(this,a[r+l],i,l),c===hi&&(c=this._$AH[l]),s||=!fi(c)||c!==this._$AH[l],c===J?e=J:e!==J&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ln=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},cn=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},un=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Wt(this,e,i,0)??J)===hi)return;let r=this._$AH,n=e===J&&r!==J||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==J&&(r===J||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},dn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Wt(this,e)}};var tu=pn.litHtmlPolyfillSupport;tu?.(mi,Gi),(pn.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??J;function gi(t,e,i){return t?e(t):i?.(t)}var Pe=f(E());var Dc=f(j()),he=f(E());var Go=f(j()),K=f(E());var ke=f(j()),h=f(E()),$o=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Qe,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")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",$o),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")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",$o),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")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Qe),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")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Qe),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")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Qe),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")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Qe),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")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Qe),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")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Qe),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")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Qe),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")},Fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Qe),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")},Uo=ke.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
|
+
font-family: ${xt.fontFamily};
|
|
6
|
+
font-size: ${xt.fontSize};
|
|
7
|
+
font-weight: ${xt.fontWeight};
|
|
8
|
+
letter-spacing: ${xt.letterSpacing};
|
|
9
|
+
line-height: ${xt.lineHeight};
|
|
10
|
+
text-transform: ${xt.textTransform};
|
|
11
|
+
text-decoration: ${xt.textDecoration};
|
|
12
|
+
}
|
|
13
|
+
`,Fo=ke.css`
|
|
14
|
+
.ft-typography--title-dense {
|
|
5
15
|
font-family: ${vt.fontFamily};
|
|
6
16
|
font-size: ${vt.fontSize};
|
|
7
17
|
font-weight: ${vt.fontWeight};
|
|
@@ -10,8 +20,8 @@
|
|
|
10
20
|
text-transform: ${vt.textTransform};
|
|
11
21
|
text-decoration: ${vt.textDecoration};
|
|
12
22
|
}
|
|
13
|
-
|
|
14
|
-
.ft-typography--
|
|
23
|
+
`,Vo=ke.css`
|
|
24
|
+
.ft-typography--subtitle1 {
|
|
15
25
|
font-family: ${St.fontFamily};
|
|
16
26
|
font-size: ${St.fontSize};
|
|
17
27
|
font-weight: ${St.fontWeight};
|
|
@@ -20,8 +30,8 @@
|
|
|
20
30
|
text-transform: ${St.textTransform};
|
|
21
31
|
text-decoration: ${St.textDecoration};
|
|
22
32
|
}
|
|
23
|
-
`,
|
|
24
|
-
.ft-typography--
|
|
33
|
+
`,Bo=ke.css`
|
|
34
|
+
.ft-typography--subtitle2 {
|
|
25
35
|
font-family: ${Et.fontFamily};
|
|
26
36
|
font-size: ${Et.fontSize};
|
|
27
37
|
font-weight: ${Et.fontWeight};
|
|
@@ -30,18 +40,8 @@
|
|
|
30
40
|
text-transform: ${Et.textTransform};
|
|
31
41
|
text-decoration: ${Et.textDecoration};
|
|
32
42
|
}
|
|
33
|
-
`,Fo=De.css`
|
|
34
|
-
.ft-typography--subtitle2 {
|
|
35
|
-
font-family: ${At.fontFamily};
|
|
36
|
-
font-size: ${At.fontSize};
|
|
37
|
-
font-weight: ${At.fontWeight};
|
|
38
|
-
letter-spacing: ${At.letterSpacing};
|
|
39
|
-
line-height: ${At.lineHeight};
|
|
40
|
-
text-transform: ${At.textTransform};
|
|
41
|
-
text-decoration: ${At.textDecoration};
|
|
42
|
-
}
|
|
43
43
|
|
|
44
|
-
`,qt=
|
|
44
|
+
`,qt=ke.css`
|
|
45
45
|
.ft-typography--body1 {
|
|
46
46
|
font-family: ${We.fontFamily};
|
|
47
47
|
font-size: ${We.fontSize};
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
text-transform: ${We.textTransform};
|
|
52
52
|
text-decoration: ${We.textDecoration};
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,Ho=ke.css`
|
|
55
55
|
.ft-typography--body2 {
|
|
56
56
|
font-family: ${we.fontFamily};
|
|
57
57
|
font-size: ${we.fontSize};
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
text-transform: ${we.textTransform};
|
|
62
62
|
text-decoration: ${we.textDecoration};
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`,qi=ke.css`
|
|
65
65
|
.ft-typography--caption {
|
|
66
66
|
font-family: ${Ee.fontFamily};
|
|
67
67
|
font-size: ${Ee.fontSize};
|
|
@@ -71,8 +71,18 @@
|
|
|
71
71
|
text-transform: ${Ee.textTransform};
|
|
72
72
|
text-decoration: ${Ee.textDecoration};
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`,zo=ke.css`
|
|
75
75
|
.ft-typography--breadcrumb {
|
|
76
|
+
font-family: ${At.fontFamily};
|
|
77
|
+
font-size: ${At.fontSize};
|
|
78
|
+
font-weight: ${At.fontWeight};
|
|
79
|
+
letter-spacing: ${At.letterSpacing};
|
|
80
|
+
line-height: ${At.lineHeight};
|
|
81
|
+
text-transform: ${At.textTransform};
|
|
82
|
+
text-decoration: ${At.textDecoration};
|
|
83
|
+
}
|
|
84
|
+
`,jo=ke.css`
|
|
85
|
+
.ft-typography--overline {
|
|
76
86
|
font-family: ${_t.fontFamily};
|
|
77
87
|
font-size: ${_t.fontSize};
|
|
78
88
|
font-weight: ${_t.fontWeight};
|
|
@@ -81,17 +91,7 @@
|
|
|
81
91
|
text-transform: ${_t.textTransform};
|
|
82
92
|
text-decoration: ${_t.textDecoration};
|
|
83
93
|
}
|
|
84
|
-
`,
|
|
85
|
-
.ft-typography--overline {
|
|
86
|
-
font-family: ${Ct.fontFamily};
|
|
87
|
-
font-size: ${Ct.fontSize};
|
|
88
|
-
font-weight: ${Ct.fontWeight};
|
|
89
|
-
letter-spacing: ${Ct.letterSpacing};
|
|
90
|
-
line-height: ${Ct.lineHeight};
|
|
91
|
-
text-transform: ${Ct.textTransform};
|
|
92
|
-
text-decoration: ${Ct.textDecoration};
|
|
93
|
-
}
|
|
94
|
-
`,zo=De.css`
|
|
94
|
+
`,Ko=ke.css`
|
|
95
95
|
.ft-typography--button {
|
|
96
96
|
font-family: ${Fe.fontFamily};
|
|
97
97
|
font-size: ${Fe.fontSize};
|
|
@@ -101,30 +101,30 @@
|
|
|
101
101
|
text-transform: ${Fe.textTransform};
|
|
102
102
|
text-decoration: ${Fe.textDecoration};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,Wo=ke.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var
|
|
108
|
+
`;var L={fontSize:K.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:K.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:K.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:K.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:K.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:K.FtCssVariableFactory.extend("--ft-input-label-border-color","",K.designSystemVariables.colorOutline),textColor:K.FtCssVariableFactory.extend("--ft-input-label-text-color","",K.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:K.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",K.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:K.FtCssVariableFactory.extend("--ft-input-label-background-color","",K.designSystemVariables.colorSurface),borderRadius:K.FtCssVariableFactory.extend("--ft-input-label-border-radius","",K.designSystemVariables.borderRadiusS),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},qo=Go.css`
|
|
109
109
|
.ft-input-label {
|
|
110
110
|
position: absolute;
|
|
111
111
|
inset: 0;
|
|
112
112
|
display: flex;
|
|
113
|
-
background-color: ${
|
|
114
|
-
border-radius: ${
|
|
115
|
-
border-color: ${
|
|
113
|
+
background-color: ${L.backgroundColor};
|
|
114
|
+
border-radius: ${L.borderRadius} ${L.borderRadius} 0 0;
|
|
115
|
+
border-color: ${L.borderColor};
|
|
116
116
|
border-bottom-width: 1px;
|
|
117
117
|
border-bottom-style: solid;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.ft-input-label--outlined {
|
|
121
|
-
border-radius: ${
|
|
121
|
+
border-radius: ${L.borderRadius};
|
|
122
122
|
border-width: 1px;
|
|
123
123
|
border-style: solid;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.ft-input-label.ft-input-label--in-error {
|
|
127
|
-
border-color: ${
|
|
127
|
+
border-color: ${L.colorError}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ft-input-label:before,
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.ft-input-label:before {
|
|
137
|
-
width: calc(${
|
|
137
|
+
width: calc(${L.horizontalSpacing} - 4px);
|
|
138
138
|
flex-shrink: 0;
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -147,20 +147,20 @@
|
|
|
147
147
|
display: flex;
|
|
148
148
|
flex-shrink: 1;
|
|
149
149
|
position: relative;
|
|
150
|
-
color: ${
|
|
150
|
+
color: ${L.textColor};
|
|
151
151
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
152
|
-
max-width: calc(${
|
|
152
|
+
max-width: calc(${L.labelMaxWidth} - 2 * (${L.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
153
153
|
text-overflow: ellipsis;
|
|
154
|
-
${(0,
|
|
155
|
-
${(0,
|
|
154
|
+
${(0,K.setVariable)(Ee.fontSize,L.fontSize)};
|
|
155
|
+
${(0,K.setVariable)(Ee.lineHeight,L.fontSize)};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ft-input-label--in-error .ft-input-label--text {
|
|
159
|
-
color: ${
|
|
159
|
+
color: ${L.colorError}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.ft-input-label--disabled .ft-input-label--text {
|
|
163
|
-
color: ${
|
|
163
|
+
color: ${L.disabledTextColor};
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.ft-input-label--hidden-text {
|
|
@@ -177,29 +177,29 @@
|
|
|
177
177
|
overflow: hidden;
|
|
178
178
|
white-space: nowrap;
|
|
179
179
|
text-overflow: ellipsis;
|
|
180
|
-
padding: ${
|
|
181
|
-
margin: calc(${
|
|
180
|
+
padding: ${L.verticalSpacing} 4px;
|
|
181
|
+
margin: calc(${L.verticalSpacing} * -1) 0;
|
|
182
182
|
max-width: 100%;
|
|
183
183
|
box-sizing: border-box;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.ft-input-label--raised .ft-input-label--text {
|
|
187
|
-
${(0,
|
|
188
|
-
${(0,
|
|
187
|
+
${(0,K.setVariable)(Ee.fontSize,L.raisedFontSize)};
|
|
188
|
+
${(0,K.setVariable)(Ee.lineHeight,L.raisedFontSize)};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
192
|
-
top: ${
|
|
192
|
+
top: ${L.verticalSpacing};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
196
196
|
padding: 2px 4px;
|
|
197
|
-
z-index: ${
|
|
198
|
-
background-color: ${
|
|
199
|
-
border-radius: ${
|
|
197
|
+
z-index: ${L.raisedZIndex};
|
|
198
|
+
background-color: ${L.backgroundColor};
|
|
199
|
+
border-radius: ${L.borderRadius};
|
|
200
200
|
top: calc((${Ee.lineHeight} / -2) + 2px);
|
|
201
201
|
}
|
|
202
|
-
`;var
|
|
202
|
+
`;var Yi=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Xi=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Zi=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var ns=f(j()),A=f(E());var es=f(j()),ee=f(E()),Yo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorContent),Q={color:Yo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Yo),opacityContentOnSurfacePressed:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Xo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorPrimary),Zo={color:Xo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xo)},Jo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorSecondary),Qo={color:Jo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Jo)},ts=es.css`
|
|
203
203
|
:host {
|
|
204
204
|
display: contents;
|
|
205
205
|
}
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
|
|
213
213
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
214
214
|
overflow: hidden;
|
|
215
|
-
border-radius: ${
|
|
215
|
+
border-radius: ${Q.borderRadius};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.ft-ripple .ft-ripple--background,
|
|
@@ -246,27 +246,27 @@
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
.ft-ripple .ft-ripple--background {
|
|
249
|
-
background-color: ${
|
|
249
|
+
background-color: ${Q.backgroundColor};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-ripple .ft-ripple--effect {
|
|
253
|
-
background-color: ${
|
|
253
|
+
background-color: ${Q.color};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
257
|
-
background-color: ${
|
|
257
|
+
background-color: ${Qo.backgroundColor};
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
261
|
-
background-color: ${
|
|
261
|
+
background-color: ${Qo.color};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
265
|
-
background-color: ${
|
|
265
|
+
background-color: ${Zo.backgroundColor};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
269
|
-
background-color: ${
|
|
269
|
+
background-color: ${Zo.color};
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
.ft-ripple .ft-ripple--background {
|
|
@@ -296,22 +296,22 @@
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
299
|
-
opacity: ${
|
|
299
|
+
opacity: ${Q.opacityContentOnSurfaceHover};
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
303
|
-
opacity: ${
|
|
303
|
+
opacity: ${Q.opacityContentOnSurfaceSelected};
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
307
|
-
opacity: ${
|
|
307
|
+
opacity: ${Q.opacityContentOnSurfaceFocused};
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
311
|
-
opacity: ${
|
|
311
|
+
opacity: ${Q.opacityContentOnSurfacePressed};
|
|
312
312
|
transform: translate(-50%, -50%) scale(1);
|
|
313
313
|
}
|
|
314
|
-
`;var
|
|
314
|
+
`;var is=f(j()),Ve=f(E()),le={size:Ve.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ve.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ve.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ve.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ve.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ve.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ve.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ve.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rs=[is.css`
|
|
315
315
|
:host, i.ft-icon {
|
|
316
316
|
display: inline-flex;
|
|
317
317
|
align-items: center;
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
.ft-icon--material {
|
|
360
360
|
font-family: ${le.materialFontFamily}, "Material Icons", sans-serif;
|
|
361
361
|
}
|
|
362
|
-
`,Ve.noTextSelect];var
|
|
362
|
+
`,Ve.noTextSelect];var C={fontSize:A.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:A.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:A.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:A.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:A.FtCssVariableFactory.extend("--ft-text-field-helper-color","",A.designSystemVariables.colorOnSurfaceMedium),colorPrimary:A.FtCssVariableFactory.external(A.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:A.FtCssVariableFactory.external(A.designSystemVariables.borderRadiusS,"Design system"),colorError:A.FtCssVariableFactory.external(A.designSystemVariables.colorError,"Design system"),prefixColor:A.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",A.designSystemVariables.colorOnSurfaceMedium),iconColor:A.FtCssVariableFactory.extend("--ft-text-field-icon-color","",A.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:A.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:A.FtCssVariableFactory.extend("--ft-text-field-background-color","",A.designSystemVariables.colorSurface),colorOutline:A.FtCssVariableFactory.external(A.designSystemVariables.colorOutline,"Design system"),elevation02:A.FtCssVariableFactory.external(A.designSystemVariables.elevation02,"Design system"),suggestSize:A.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},os=ns.css`
|
|
363
363
|
*:focus {
|
|
364
364
|
outline: none;
|
|
365
365
|
}
|
|
@@ -369,21 +369,21 @@
|
|
|
369
369
|
flex-direction: column;
|
|
370
370
|
align-items: stretch;
|
|
371
371
|
position: relative;
|
|
372
|
-
--text-field-internal-suggest-size: ${
|
|
372
|
+
--text-field-internal-suggest-size: ${C.suggestSize};
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
ft-input-label {
|
|
376
|
-
${(0,
|
|
377
|
-
${(0,
|
|
378
|
-
${(0,
|
|
379
|
-
${(0,
|
|
380
|
-
${(0,
|
|
376
|
+
${(0,A.setVariable)(L.fontSize,C.fontSize)};
|
|
377
|
+
${(0,A.setVariable)(L.raisedFontSize,C.labelSize)};
|
|
378
|
+
${(0,A.setVariable)(L.verticalSpacing,C.verticalSpacing)};
|
|
379
|
+
${(0,A.setVariable)(L.horizontalSpacing,C.horizontalSpacing)};
|
|
380
|
+
${(0,A.setVariable)(L.backgroundColor,C.backgroundColor)};
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
.ft-text-field--main-panel {
|
|
384
384
|
position: relative;
|
|
385
385
|
display: flex;
|
|
386
|
-
height: calc(4 * ${
|
|
386
|
+
height: calc(4 * ${C.verticalSpacing} + ${C.labelSize} + ${C.fontSize});
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
.ft-text-field--input-panel {
|
|
@@ -392,24 +392,24 @@
|
|
|
392
392
|
display: flex;
|
|
393
393
|
align-items: center;
|
|
394
394
|
overflow: hidden;
|
|
395
|
-
padding: 0 ${
|
|
395
|
+
padding: 0 ${C.horizontalSpacing};
|
|
396
396
|
|
|
397
|
-
${(0,
|
|
398
|
-
${(0,
|
|
397
|
+
${(0,A.setVariable)(We.fontSize,C.fontSize)};
|
|
398
|
+
${(0,A.setVariable)(We.lineHeight,C.fontSize)};
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
.ft-text-field--input-panel ft-ripple {
|
|
402
|
-
${(0,
|
|
403
|
-
${(0,
|
|
402
|
+
${(0,A.setVariable)(Q.opacityContentOnSurfaceHover,"0.08")};
|
|
403
|
+
${(0,A.setVariable)(Q.opacityContentOnSurfacePressed,"0.04")};
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
407
407
|
align-items: flex-end;
|
|
408
|
-
padding: 0 ${
|
|
408
|
+
padding: 0 ${C.horizontalSpacing} ${C.verticalSpacing} ${C.horizontalSpacing};
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.ft-text-field--prefix {
|
|
412
|
-
color: ${
|
|
412
|
+
color: ${C.prefixColor};
|
|
413
413
|
margin-right: 2px;
|
|
414
414
|
flex-shrink: 1;
|
|
415
415
|
overflow: hidden;
|
|
@@ -428,22 +428,22 @@
|
|
|
428
428
|
flex-shrink: 1;
|
|
429
429
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
430
430
|
|
|
431
|
-
color: ${
|
|
432
|
-
padding: calc(2 * ${
|
|
431
|
+
color: ${C.colorOnSurface};
|
|
432
|
+
padding: calc(2 * ${C.verticalSpacing}) 0;
|
|
433
433
|
border: none;
|
|
434
434
|
background: none;
|
|
435
435
|
|
|
436
436
|
&:-webkit-autofill,
|
|
437
437
|
&:-webkit-autofill:hover,
|
|
438
438
|
&:-webkit-autofill:focus {
|
|
439
|
-
-webkit-text-fill-color: ${
|
|
439
|
+
-webkit-text-fill-color: ${C.colorOnSurface};
|
|
440
440
|
transition: background-color 50000000s ease-in-out 100000s;
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
445
445
|
padding-bottom: 0;
|
|
446
|
-
padding-top: calc(${
|
|
446
|
+
padding-top: calc(${C.labelSize} + 2 * ${C.verticalSpacing});
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -452,37 +452,37 @@
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
.ft-text-field--disabled .ft-text-field--input {
|
|
455
|
-
color: ${
|
|
455
|
+
color: ${C.colorOnSurfaceDisabled};
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
459
|
-
${(0,
|
|
460
|
-
${(0,
|
|
459
|
+
${(0,A.setVariable)(L.borderColor,C.colorPrimary)};
|
|
460
|
+
${(0,A.setVariable)(L.textColor,C.colorPrimary)};
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
464
|
-
border-radius: ${
|
|
464
|
+
border-radius: ${C.borderRadiusS} ${C.borderRadiusS} 0 0;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
468
|
-
border-radius: ${
|
|
468
|
+
border-radius: ${C.borderRadiusS};
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
.ft-text-field--helper-text {
|
|
472
|
-
padding: 0 12px 0 ${
|
|
473
|
-
color: ${
|
|
472
|
+
padding: 0 12px 0 ${C.horizontalSpacing};
|
|
473
|
+
color: ${C.helperColor};
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-text-field--in-error .ft-text-field--input,
|
|
477
477
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
478
478
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
479
|
-
color: ${
|
|
479
|
+
color: ${C.colorError};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-text-field--icon {
|
|
483
483
|
align-self: center;
|
|
484
484
|
margin-left: 8px;
|
|
485
|
-
color: ${
|
|
485
|
+
color: ${C.iconColor};
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
.ft-text-field--container {
|
|
@@ -493,11 +493,11 @@
|
|
|
493
493
|
display: none;
|
|
494
494
|
flex-direction: column;
|
|
495
495
|
position: absolute;
|
|
496
|
-
z-index: ${
|
|
497
|
-
background: ${
|
|
498
|
-
border: 1px solid ${
|
|
499
|
-
border-radius: 0 0 ${
|
|
500
|
-
box-shadow: ${
|
|
496
|
+
z-index: ${C.floatingZIndex};
|
|
497
|
+
background: ${C.backgroundColor};
|
|
498
|
+
border: 1px solid ${C.colorOutline};
|
|
499
|
+
border-radius: 0 0 ${C.borderRadiusS} ${C.borderRadiusS};
|
|
500
|
+
box-shadow: ${C.elevation02};
|
|
501
501
|
outline: none;
|
|
502
502
|
max-height: var(--text-field-internal-suggest-size);
|
|
503
503
|
overflow-y: auto;
|
|
@@ -512,46 +512,46 @@
|
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
.ft-text-field--with-icon {
|
|
515
|
-
${(0,
|
|
515
|
+
${(0,A.setVariable)(L.labelMaxWidth,`calc(100% - ${le.size} - ${L.horizontalSpacing})`)};
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
.ft-text-field--with-password ft-icon:hover {
|
|
519
519
|
cursor: pointer;
|
|
520
520
|
}
|
|
521
|
-
`;var
|
|
522
|
-
<${
|
|
521
|
+
`;var Z=f(j()),k=f(re()),Oc=f(on()),Rc=f(ot());var ve=f(E());var as=Symbol.for(""),iu=t=>{if(t?.r===as)return t?._$litStatic$},mn=t=>({_$litStatic$:t,r:as});var ss=new Map,gn=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<r;){for(l=e[c];c<r&&(o=i[c],(n=iu(o))!==void 0);)l+=n+e[++c],u=!0;c!==r&&a.push(o),s.push(l),c++}if(c===r&&s.push(e[r]),u){let d=s.join("$$lit$$");(e=ss.get(d))===void 0&&(s.raw=s,ss.set(d,e=s)),i=a}return t(e,...i)},yn=gn(ko),op=gn(No),sp=gn(Io);var bn=f(re()),cs=f(E());var ge;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ge||(ge={}));var ls=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends cs.FtLitElement{constructor(){super(...arguments),this.variant=ge.body1}render(){return this.element?yn`
|
|
522
|
+
<${mn(this.element)}
|
|
523
523
|
part="text"
|
|
524
524
|
class="ft-typography ft-typography--${this.variant}">
|
|
525
525
|
<slot></slot>
|
|
526
|
-
</${
|
|
527
|
-
`:
|
|
526
|
+
</${mn(this.element)}>
|
|
527
|
+
`:yn`
|
|
528
528
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
529
|
-
`}};ne.styles=[
|
|
530
|
-
<div class="${(0,
|
|
531
|
-
${
|
|
529
|
+
`}};ne.styles=[Uo,Fo,Vo,Bo,qt,Ho,qi,zo,jo,Ko,Wo];ls([(0,bn.property)()],ne.prototype,"element",void 0);ls([(0,bn.property)()],ne.prototype,"variant",void 0);var ds=f(E());var us={"ft-typography":ne};(0,ds.customElements)(us);var Ji=f(re());var xn=f(j()),vn=f(re());var fs=f(ot()),hs=f(E()),ps=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ct=class extends hs.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return xn.html`
|
|
530
|
+
<div class="${(0,fs.classMap)(this.inputLabelClasses)}">
|
|
531
|
+
${gi(this.text,()=>xn.html`
|
|
532
532
|
<div class="ft-input-label--text ft-typography--caption">
|
|
533
533
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
534
534
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
535
535
|
</div>
|
|
536
536
|
`)}
|
|
537
537
|
</div>
|
|
538
|
-
`}};
|
|
538
|
+
`}};Ct.elementDefinitions={};ps([(0,vn.property)({type:String})],Ct.prototype,"text",void 0);ps([(0,vn.property)({type:Boolean})],Ct.prototype,"raised",void 0);var Sn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Te=class extends Ct{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}}};Te.elementDefinitions={};Te.styles=[qi,qo];Sn([(0,Ji.property)({type:Boolean})],Te.prototype,"outlined",void 0);Sn([(0,Ji.property)({type:Boolean})],Te.prototype,"error",void 0);Sn([(0,Ji.property)({type:Boolean})],Te.prototype,"disabled",void 0);var gs=f(E());var ms={"ft-input-label":Te};(0,gs.customElements)(ms);var ys=f(j()),ce=f(re()),bs=f(ot()),yi=f(E());var Ae=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},V=class extends yi.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 yi.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new yi.Debouncer(10),this.moveRipple=e=>{var i,r;let{x:n,y:o}=this.getCoordinates(e),s=(r=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&r!==void 0?r:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 ys.html`
|
|
539
539
|
<style>
|
|
540
540
|
.ft-ripple .ft-ripple--effect {
|
|
541
541
|
left: ${this.originX}px;
|
|
542
542
|
top: ${this.originY}px;
|
|
543
543
|
}
|
|
544
544
|
</style>
|
|
545
|
-
<div class="${(0,
|
|
545
|
+
<div class="${(0,bs.classMap)(e)}">
|
|
546
546
|
<div class="ft-ripple--background"></div>
|
|
547
547
|
<div class="ft-ripple--effect"></div>
|
|
548
548
|
</div>
|
|
549
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.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"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.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()}};V.elementDefinitions={};V.styles=Qo;Ae([(0,ce.property)({type:Boolean})],V.prototype,"primary",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"secondary",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"unbounded",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"activated",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"selected",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"disabled",void 0);Ae([(0,ce.state)()],V.prototype,"hovered",void 0);Ae([(0,ce.state)()],V.prototype,"focused",void 0);Ae([(0,ce.state)()],V.prototype,"pressed",void 0);Ae([(0,ce.state)()],V.prototype,"rippling",void 0);Ae([(0,ce.state)()],V.prototype,"originX",void 0);Ae([(0,ce.state)()],V.prototype,"originY",void 0);Ae([(0,ce.query)(".ft-ripple")],V.prototype,"ripple",void 0);Ae([(0,ce.query)(".ft-ripple--effect")],V.prototype,"rippleEffect",void 0);var bs=f(S());var ys={"ft-ripple":V};(0,bs.customElements)(ys);var at;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(at||(at={}));var br=f(z()),lt=f(ie()),Ss=f(S()),Es=f(vs());var Qe;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Qe||(Qe={}));var m;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(m||(m={}));var Yp=new Map([...["abw"].map(t=>[t,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(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Xp={[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 xr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},J=class extends Ss.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=br.nothing}render(){let e=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,r=e!==at.material||!!this.value;return br.html`
|
|
549
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.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 e,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let i=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};V.elementDefinitions={};V.styles=ts;Ae([(0,ce.property)({type:Boolean})],V.prototype,"primary",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"secondary",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"unbounded",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"activated",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"selected",void 0);Ae([(0,ce.property)({type:Boolean})],V.prototype,"disabled",void 0);Ae([(0,ce.state)()],V.prototype,"hovered",void 0);Ae([(0,ce.state)()],V.prototype,"focused",void 0);Ae([(0,ce.state)()],V.prototype,"pressed",void 0);Ae([(0,ce.state)()],V.prototype,"rippling",void 0);Ae([(0,ce.state)()],V.prototype,"originX",void 0);Ae([(0,ce.state)()],V.prototype,"originY",void 0);Ae([(0,ce.query)(".ft-ripple")],V.prototype,"ripple",void 0);Ae([(0,ce.query)(".ft-ripple--effect")],V.prototype,"rippleEffect",void 0);var vs=f(E());var xs={"ft-ripple":V};(0,vs.customElements)(xs);var at;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(at||(at={}));var bi=f(j()),lt=f(re()),As=f(E()),_s=f(Es());var et;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(et||(et={}));var m;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(m||(m={}));var Yp=new Map([...["abw"].map(t=>[t,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(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Xp={[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 xi=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},X=class extends As.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=bi.nothing}render(){let e=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,i=e!==at.material||!!this.value;return bi.html`
|
|
550
550
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
551
|
-
${(0,
|
|
552
|
-
<slot ?hidden=${
|
|
551
|
+
${(0,_s.unsafeHTML)(this.resolvedIcon)}
|
|
552
|
+
<slot ?hidden=${i}></slot>
|
|
553
553
|
</i>
|
|
554
|
-
`}getTextContent(){var e,
|
|
554
|
+
`}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case at.file_format:this.resolvedIcon=(e=m[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case at.material:this.resolvedIcon=this.value||bi.nothing;break;default:this.resolvedIcon=(i=et[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};X.elementDefinitions={};X.styles=rs;xi([(0,lt.property)()],X.prototype,"variant",void 0);xi([(0,lt.property)()],X.prototype,"value",void 0);xi([(0,lt.property)({reflect:!0,attribute:"aria-hidden"})],X.prototype,"ariaHidden",void 0);xi([(0,lt.state)()],X.prototype,"resolvedIcon",void 0);xi([(0,lt.query)("slot")],X.prototype,"slottedContent",void 0);var ws=f(E());var Cs={"ft-icon":X};(0,ws.customElements)(Cs);var wc=f(E()),Bt=f(j()),Je=f(re());var Ts=f(j());var Os=Ts.css`
|
|
555
555
|
.ft-text-field-suggestion--suggestion {
|
|
556
556
|
position: relative;
|
|
557
557
|
padding: 8px 16px;
|
|
@@ -591,13 +591,13 @@
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
.ft-text-field-suggestion--helper-text {
|
|
594
|
-
color: ${
|
|
594
|
+
color: ${C.helperColor};
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
slot {
|
|
598
598
|
pointer-events: none;
|
|
599
599
|
}
|
|
600
|
-
`;var Tc=f(ot());var
|
|
600
|
+
`;var Tc=f(ot());var Ze=f(E());var pc=f(j()),Ue=f(re()),$e=f(E());var Rs=f(j()),ct=f(E()),vi={distance:ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ct.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ct.designSystemVariables.borderRadiusS),maxWidth:ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ls=Rs.css`
|
|
601
601
|
.ft-tooltip--container {
|
|
602
602
|
display: block;
|
|
603
603
|
}
|
|
@@ -615,28 +615,28 @@
|
|
|
615
615
|
box-sizing: border-box;
|
|
616
616
|
overflow: hidden;
|
|
617
617
|
width: max-content;
|
|
618
|
-
max-width: ${
|
|
618
|
+
max-width: ${vi.maxWidth};
|
|
619
619
|
text-align: center;
|
|
620
|
-
padding: ${
|
|
620
|
+
padding: ${vi.distance};
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
.ft-tooltip--content {
|
|
624
624
|
padding: 4px 8px;
|
|
625
|
-
border-radius: ${
|
|
626
|
-
background-color: ${
|
|
627
|
-
color: ${
|
|
625
|
+
border-radius: ${vi.borderRadiusS};
|
|
626
|
+
background-color: ${vi.backgroundColor};
|
|
627
|
+
color: ${vi.color};
|
|
628
628
|
position: relative;
|
|
629
629
|
word-break: break-word;
|
|
630
630
|
}
|
|
631
|
-
`;var Ls=["top","right","bottom","left"],Rs=["start","end"],Sn=Ls.reduce((t,e)=>t.concat(e,e+"-"+Rs[0],e+"-"+Rs[1]),[]),Sr=Math.min,ut=Math.max,Er=Math.round;var Ke=t=>({x:t,y:t}),iu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ps(t,e,r){return ut(t,Sr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function An(t){return t==="y"?"height":"width"}function Qr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function _n(t){return En(Qr(t))}function ks(t,e,r){r===void 0&&(r=!1);let i=dt(t),n=_n(t),o=An(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=vn(s)),[s,vn(s)]}function Ds(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function vn(t){let e=Ar(t);return iu[e]+t.slice(e.length)}function nu(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Ns(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function Tt(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Is(t,e,r){let{reference:i,floating:n}=t,o=Qr(e),s=_n(e),a=An(s),l=Ar(e),c=o==="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 x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function Ms(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Jr(e,t),x=Ns(g),b=a[p?d==="floating"?"reference":"floating":d],T=Tt(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),F=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),P=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},M=Tt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:F,offsetParent:v,strategy:l}):F);return{top:(T.top-M.top+x.top)/P.y,bottom:(M.bottom-T.bottom+x.bottom)/P.y,left:(T.left-M.left+x.left)/P.x,right:(M.right-T.right+x.right)/P.x}}var ou=50,$s=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ms},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Is(c,i,l),p=i,g=0,x={};for(let A=0;A<o.length;A++){let b=o[A];if(!b)continue;let{name:T,fn:F}=b,{x:v,y:P,data:M,reset:X}=await F({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=P??d,x[T]={...x[T],...M},X&&g<ou&&(g++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=Is(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,r){return(t?[...r.filter(n=>dt(n)===t),...r.filter(n=>dt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?dt(n)===t||(e?Ds(n)!==n:!1):!0)}var Us=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Sn,autoAlignment:g=!0,...x}=Jr(t,e),A=d!==void 0||p===Sn?su(d||null,g,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,T=A[b];if(T==null)return{};if(a!==T)return{reset:{placement:A[0]}};let F=await l.detectOverflow(e,x),v=ks(T,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),P=[F[Ar(T)],F[v[0]],F[v[1]]],M=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:P}],X=A[b+1];if(X)return{data:{index:b+1,overflows:M},reset:{placement:X}};let j=M.map(ke=>{let gt=dt(ke.placement);return[ke.placement,gt&&u?ke.overflows.slice(0,2).reduce((jc,Wc)=>jc+Wc,0):ke.overflows[0],ke.overflows]}).sort((ke,gt)=>ke[1]-gt[1]),dr=((n=j.filter(ke=>ke[2].slice(0,dt(ke[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:n[0])||j[0][0];return dr!==a?{data:{index:b+1,overflows:M},reset:{placement:dr}}:{}}}};var Fs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:F=>{let{x:v,y:P}=F;return{x:v,y:P}}},...c}=Jr(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=Qr(n),g=En(p),x=u[g],A=u[p],b=(F,v)=>Ps(v+d[F==="y"?"top":"left"],v,v-d[F==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(A=b(p,A));let T=l.fn({...e,[g]:x,[p]:A});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[g]:s,[p]:a}}}}}};function ti(){return typeof window<"u"}function Rt(t){return Bs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function et(t){var e;return(e=(Bs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Bs(t){return ti()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return ti()?t instanceof Element||t instanceof _e(t).Element:!1}function tt(t){return ti()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Vs(t){return!ti()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _r(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Hs(t){return/^(table|td|th)$/.test(Rt(t))}function Cr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",Cn;function Yt(t){let e=Be(t)?He(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ri()&&(Ot(e.backdropFilter)||Ot(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function zs(t){let e=pt(t);for(;tt(e)&&!Xt(e);){if(Yt(e))return e;if(Cr(e))return null;e=pt(e)}return null}function ri(){return Cn==null&&(Cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cn}function Xt(t){return/^(html|body|#document)$/.test(Rt(t))}function He(t){return _e(t).getComputedStyle(t)}function wr(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Rt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vs(t)&&t.host||et(t);return Vs(e)?e.host:e}function js(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:tt(e)&&_r(e)?e:js(e)}function ei(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=js(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=_e(n);if(o){let a=ii(s);return e.concat(s,s.visualViewport||[],_r(n)?n:[],a&&r?ei(a):[])}else return e.concat(n,ei(n,[],r))}function ii(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Gs(t){let e=He(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=tt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Er(r)!==o||Er(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function qs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=qs(t);if(!tt(e))return Ke(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Gs(e),s=(o?Er(r.width):r.width)/i,a=(o?Er(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ke(0);function Ys(t){let e=_e(t);return!ri()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function Tr(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=qs(t),s=Ke(1);e&&(i?Be(i)&&(s=Zt(i)):s=Zt(t));let a=uu(o,r,i)?Ys(o):Ke(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=_e(o),g=Be(i)?_e(i):i,x=p,A=ii(x);for(;A&&g!==x;){let b=Zt(A),T=A.getBoundingClientRect(),F=He(A),v=T.left+(A.clientLeft+parseFloat(F.paddingLeft))*b.x,P=T.top+(A.clientTop+parseFloat(F.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=P,x=_e(A),A=ii(x)}}return Tt({width:u,height:d,x:l,y:c})}function ni(t,e){let r=wr(t).scrollLeft;return e?e.left+r:Tr(et(t)).left+r}function Xs(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-ni(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function du(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=et(i),a=e?Cr(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ke(1),u=Ke(0),d=tt(i);if((d||!o)&&((Rt(i)!=="body"||_r(s))&&(l=wr(i)),d)){let g=Tr(i);c=Zt(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=s&&!d&&!o?Xs(s,l):Ke(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 pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wr(t),r=t.ownerDocument.body,i=ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+ni(t),s=-e.scrollTop;return He(r).direction==="rtl"&&(o+=ut(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var hu=25;function mu(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),o=et(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ri()||e==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(ni(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-A),T=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;T<=hu&&(a-=T)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let r=Tr(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function Ws(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=mu(t,r,e);else if(e==="document")i=fu(et(t));else if(Be(e))i=gu(e,r);else{let n=Ys(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tt(i)}function yu(t,e){let r=e.get(t);if(r)return r;let i=ei(t,[],!1).filter(a=>Be(a)&&Rt(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,i),i}function bu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Cr(e)?[]:yu(e,this._c):[].concat(r),i],a=Ws(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=Ws(e,s[p],n);l=ut(g.top,l),c=Sr(g.right,c),u=Sr(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:r}=Gs(t);return{width:e,height:r}}function vu(t,e,r){let i=tt(e),n=et(e),o=r==="fixed",s=Tr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ke(0);if((i||!o)&&((Rt(e)!=="body"||_r(n))&&(a=wr(e)),i)){let p=Tr(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!i&&n&&(l.x=ni(n));let c=n&&!i&&!o?Xs(n,a):Ke(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function wn(t){return He(t).position==="static"}function Ks(t,e){if(!tt(t)||He(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return et(t)===r&&(r=r.ownerDocument.body),r}function Zs(t,e){let r=_e(t);if(Cr(t))return r;if(!tt(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!wn(n))return n;n=pt(n)}return r}let i=Ks(t,e);for(;i&&Hs(i)&&wn(i);)i=Ks(i,e);return i&&Xt(i)&&wn(i)&&!Yt(i)?r:i||zs(t)||r}var Su=async function(t){let e=this.getOffsetParent||Zs,r=this.getDimensions,i=await r(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Eu(t){return He(t).direction==="rtl"}var oi={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:et,getClippingRect:bu,getOffsetParent:Zs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var Js=Us,Qs=Fs;var ea=(t,e,r)=>{let i=new Map,n=r??{},o={...oi,...n.platform,_c:i};return $s(t,e,{...n,platform:o})};function ta(t){return Au(t)}function Tn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Tn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tn(t);e;e=Tn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Yt(r)||e.tagName==="BODY"))return e}return null}async function ra(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},ea(t,e,{strategy:i.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,ta)},middleware:[Qs({crossAxis:!0}),Js({allowedPlacements:[i.placement]})]})}var ar=f(S());var Yn=f(ie());var ia=f(ie(),1);var On=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_u=t=>({fromAttribute:e=>{if(e==null)return Or(t);try{return JSON.parse(e)}catch{return Or(t)}},toAttribute:e=>JSON.stringify(e)});function na(t,e){return(0,ia.property)({type:Object,converter:_u(t),hasChanged:Rr,...e??{}})}function Cu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Jt(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Jt(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return Cu(t,e)}catch{return!1}}function Rr(t,e){return!Jt(t,e)}function Or(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function si(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var oa=f(ie(),1);var Rn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Rr,attribute:!1,...e};(0,oa.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var ai=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Lt=f(ie(),1);var li=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ui=f(z(),1);var ci=class extends ui.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,ui.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){On(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function sa(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var er=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ua,aa=Symbol("constructorPrototype"),la=Symbol("constructorName"),da=Symbol("exportpartsDebouncer"),ca=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var Ge=class extends ci{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ua]=new li(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[da].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[la]=this.constructor.name,this[aa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[la]&&Object.setPrototypeOf(this,this[aa])}connectedCallback(){var e;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[ca]||(r[ca]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=sa(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let g=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],A=[...g,...x].filter(l).map(b=>b.trim());for(let b of A)u.add(b)}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(", ")}};ua=da;er([(0,Lt.property)()],Ge.prototype,"exportpartsPrefix",void 0);er([na([])],Ge.prototype,"exportpartsPrefixes",void 0);er([(0,Lt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);er([(0,Lt.property)()],Ge.prototype,"customStylesheet",void 0);er([(0,Lt.property)()],Ge.prototype,"elementToFocus",void 0);er([(0,Lt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function di(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Lr=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),wu=si(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Pt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Lr].set(s,[]),di(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[Lr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Lr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Lr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,r=Pt,i=Lr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),pa=class extends wu(Ge){};function ue(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",fa=Tu,Ln=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Ln()}`,REPLACE:`@@redux/REPLACE${Ln()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ln()}`},pi=Ou;function fi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Pn(t,e,r){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Pn)(t,e)}let i=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,T)=>{s.set(T,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let T=!0;c();let F=a++;return s.set(F,b),function(){if(T){if(l)throw new Error(ue(6));T=!1,c(),s.delete(F),o=null}}}function p(b){if(!fi(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=i(n,b)}finally{l=!1}return(o=s).forEach(F=>{F()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));i=b,p({type:pi.REPLACE})}function x(){let b=d;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(ue(11));function F(){let P=T;P.next&&P.next(u())}return F(),{unsubscribe:b(F)}},[fa](){return this}}}return p({type:pi.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[fa]:x}}function Ru(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:pi.INIT})>"u")throw new Error(ue(12));if(typeof r(void 0,{type:pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ha(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,o;try{Ru(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],x=a[p],A=g(x,l);if(typeof A>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Pr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function ma(...t){return e=>(r,i)=>{let n=e(r,i),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pr(...a)(n.dispatch),{...n,dispatch:o}}}function ga(t){return fi(t)&&"type"in t&&typeof t.type=="string"}var Ca=Symbol.for("immer-nothing"),ya=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,rr=Oe.getPrototypeOf,yi="constructor",Ai="prototype",In="configurable",bi="enumerable",mi="writable",kr="value",qe=t=>!!t&&!!t[fe];function Re(t){return t?wa(t)||Ci(t)||!!t[ya]||!!t[yi]?.[ya]||wi(t)||Ti(t):!1}var Lu=Oe[Ai][yi].toString(),ba=new WeakMap;function wa(t){if(!t||!zn(t))return!1;let e=rr(t);if(e===null||e===Oe[Ai])return!0;let r=Oe.hasOwnProperty.call(e,yi)&&e[yi];if(r===Object)return!0;if(!tr(r))return!1;let i=ba.get(r);return i===void 0&&(i=Function.toString.call(r),ba.set(r,i)),i===Lu}function _i(t,e,r=!0){Ir(t)===0?(r?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Ir(t){let e=t[fe];return e?e.type_:Ci(t)?1:wi(t)?2:Ti(t)?3:0}var kn=(t,e,r=Ir(t))=>r===2?t.has(e):Oe[Ai].hasOwnProperty.call(t,e),Mn=(t,e,r=Ir(t))=>r===2?t.get(e):t[e],xi=(t,e,r,i=Ir(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ci=Array.isArray,wi=t=>t instanceof Map,Ti=t=>t instanceof Set,zn=t=>typeof t=="object",tr=t=>typeof t=="function",Dn=t=>typeof t=="boolean";function ku(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var jn=t=>t.modified_?t.copy_:t.base_;function $n(t,e){if(wi(t))return new Map(t);if(Ti(t))return new Set(t);if(Ci(t))return Array[Ai].slice.call(t);let r=wa(t);if(e===!0||e==="class_only"&&!r){let i=Oe.getOwnPropertyDescriptors(t);delete i[fe];let n=Reflect.ownKeys(i);for(let o=0;o<n.length;o++){let s=n[o],a=i[s];a[mi]===!1&&(a[mi]=!0,a[In]=!0),(a.get||a.set)&&(i[s]={[In]:!0,[mi]:!0,[bi]:a[bi],[kr]:t[s]})}return Oe.create(rr(t),i)}else{let i=rr(t);if(i!==null&&r)return{...t};let n=Oe.create(i);return Oe.assign(n,t)}}function Wn(t,e=!1){return Oi(t)||qe(t)||!Re(t)||(Ir(t)>1&&Oe.defineProperties(t,{set:hi,add:hi,clear:hi,delete:hi}),Oe.freeze(t),e&&_i(t,(r,i)=>{Wn(i,!0)},!1)),t}function Du(){ze(2)}var hi={[kr]:Du};function Oi(t){return t===null||!zn(t)?!0:Oe.isFrozen(t)}var vi="MapSet",Un="Patches",xa="ArrayMethods",Ta={};function kt(t){let e=Ta[t];return e||ze(0,t),e}var va=t=>!!Ta[t];var Dr,Oa=()=>Dr,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:va(vi)?kt(vi):void 0,arrayMethodsPlugin_:va(xa)?kt(xa):void 0});function Sa(t,e){e&&(t.patchPlugin_=kt(Un),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Fn(t){Vn(t),t.drafts_.forEach(Iu),t.drafts_=null}function Vn(t){t===Dr&&(Dr=t.parent_)}var Ea=t=>Dr=Nu(Dr,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Aa(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[fe].modified_&&(Fn(e),ze(4)),Re(t)&&(t=_a(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[fe].base_,t,e)}else t=_a(e,r);return Mu(e,t,!0),Fn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ca?t:void 0}function _a(t,e){if(Oi(e))return e;let r=e[fe];if(!r)return Si(e,t.handledSet_,t);if(!Ri(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Pa(r,t)}return r.copy_}function Mu(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Wn(e,r)}function Ra(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ri=(t,e)=>t.scope_===e,$u=[];function La(t,e,r,i){let n=rt(t),o=t.type_;if(i!==void 0&&Mn(n,i,o)===e){xi(n,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;_i(n,(l,c)=>{if(qe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)xi(n,a,r,o)}function Uu(t,e,r){t.callbacks_.push(function(n){let o=e;if(!o||!Ri(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=jn(o);La(t,o.draft_??o,s,r),Pa(o,n)})}function Pa(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}Ra(t)}}function Fu(t,e,r){let{scope_:i}=t;if(qe(r)){let n=r[fe];Ri(n,i)&&n.callbacks_.push(function(){gi(t);let s=jn(n);La(t,r,s,e)})}else Re(r)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(r)&&Si(r,i.handledSet_,i):Mn(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Si(Mn(t.copy_,e,t.type_),i.handledSet_,i)})}function Si(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||qe(t)||e.has(t)||!Re(t)||Oi(t)||(e.add(t),_i(t,(i,n)=>{if(qe(n)){let o=n[fe];if(Ri(o,r)){let s=jn(o);xi(t,i,s,t.type_),Ra(o)}}else Re(n)&&Si(n,e,r)})),t}function Vu(t,e){let r=Ci(t),i={type_:r?1:0,scope_:e?e.scope_:Oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,o=Ei;r&&(n=[i],o=Nr);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return i.draft_=a,i.revoke_=s,[a,i]}var Ei={get(t,e){if(e===fe)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=rt(t);if(!kn(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&ku(e))return o;if(o===Nn(t.base_,e)||Bu(t,e,o)){gi(t);let s=t.type_===1?+e:e,a=Hn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,r){let i=ka(rt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=Nn(rt(t),e),o=n?.[fe];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Pu(r,n)&&(r!==void 0||kn(t.base_,e,t.type_)))return!0;gi(t),Bn(t)}return t.copy_[e]===r&&(r!==void 0||kn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Fu(t,e,r)),!0},deleteProperty(t,e){return gi(t),Nn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Bn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=rt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[mi]:!0,[In]:t.type_!==1||e!=="length",[bi]:i[bi],[kr]:r[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return rr(t.base_)},setPrototypeOf(){ze(12)}},Nr={};for(let t in Ei){let e=Ei[t];Nr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Nr.deleteProperty=function(t,e){return Nr.set.call(this,t,e,void 0)};Nr.set=function(t,e,r){return Ei.set.call(this,t[0],e,r,t[0])};function Nn(t,e){let r=t[fe];return(r?rt(r):t)[e]}function Bu(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(r)||r[fe]?!1:t.baseRefs_.has(r)}function Hu(t,e,r){let i=ka(e,r);return i?kr in i?i[kr]:i.get?.call(t.draft_):void 0}function ka(t,e){if(!(e in t))return;let r=rr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=rr(r)}}function Bn(t){t.modified_||(t.modified_=!0,t.parent_&&Bn(t.parent_))}function gi(t){t.copy_||(t.assigned_=new Map,t.copy_=$n(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(tr(e)&&!tr(r)){let o=r;r=e;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}tr(r)||ze(6),i!==void 0&&!tr(i)&&ze(7);let n;if(Re(e)){let o=Ea(this),s=Hn(o,e,void 0),a=!0;try{n=r(s),a=!1}finally{a?Fn(o):Vn(o)}return Sa(o,i),Aa(n,o)}else if(!e||!zn(e)){if(n=r(e),n===void 0&&(n=e),n===Ca&&(n=void 0),this.autoFreeze_&&Wn(n,!0),i){let o=[],s=[];kt(Un).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),i(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,r)=>{if(tr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,n;return[this.produce(e,r,(s,a)=>{i=s,n=a}),i,n]},Dn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Dn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Dn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),qe(t)&&(t=Da(t));let e=Ea(this),r=Hn(e,t,void 0);return r[fe].isManual_=!0,Vn(e),r}finishDraft(t,e){let r=t&&t[fe];(!r||!r.isManual_)&&ze(9);let{scope_:i}=r;return Sa(i,e),Aa(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=kt(Un).applyPatches_;return qe(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Hn(t,e,r,i){let[n,o]=wi(e)?kt(vi).proxyMap_(e,r):Ti(e)?kt(vi).proxySet_(e,r):Vu(e,r);return(r?.scope_??Oa()).drafts_.push(n),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?Uu(r,o,i):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Da(t){return qe(t)||ze(10,t),Na(t)}function Na(t){if(!Re(t)||Oi(t))return t;let e=t[fe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=$n(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=$n(t,!0);return _i(r,(n,o)=>{xi(r,n,Na(o))},i),e&&(e.finalized_=!1),r}var ju=globalThis.Iterator,uh=typeof ju?.from=="function";var Wu=new zu,Kn=Wu.produce;function Ia(t){return({dispatch:r,getState:i})=>n=>o=>typeof o=="function"?o(r,i,t):n(o)}var Ma=Ia(),$a=Ia;var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pr:Pr.apply(null,arguments)},yh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Gu=t=>t&&typeof t.match=="function";function ht(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(it(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>ga(i)&&i.type===t,r}var Ha=class Mr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mr.prototype)}static get[Symbol.species](){return Mr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mr(...e[0].concat(this)):new Mr(...e.concat(this))}};function Ua(t){return Re(t)?Kn(t,()=>{}):t}function Li(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new Ha;return r&&(qu(r)?s.push(Ma):s.push($a(r.extraArgument))),s},Xu="RTK_autoBatch";var Fa=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=t(n),s=setTimeout(n,e)},Ju=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Fa(10):t.type==="callback"?t.queueNotification:Fa(t.timeout),c=()=>{s=!1,o&&(o=!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?.[Xu],o=!n,o&&(s||(s=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Qu=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Ha(t);return i&&n.push(Ju(typeof i=="object"?i:void 0)),n};function za(t){let e=Yu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(fi(r))l=ha(r);else throw new Error(it(1));let c;typeof i=="function"?c=i(e):c=e();let u=Pr;n&&(u=Ku({trace:!1,...typeof n=="object"&&n}));let d=ma(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return Pn(l,s,x)}function ja(t){let e={},r=[],i,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(it(28));if(a in e)throw new Error(it(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase(o){return i=o,n}};return t(n),[e,r,i]}function ed(t){return typeof t=="function"}function td(t,e){let[r,i,n]=ja(e),o;if(ed(t))o=()=>Ua(t());else{let a=Ua(t);o=()=>a}function s(a=o(),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(qe(u)){let g=d(u,l);return g===void 0?u:g}else{if(Re(u))return Kn(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 s.getInitialState=o,s}var rd=(t,e)=>Gu(t)?t.match(e):t(e);function id(...t){return e=>t.some(r=>rd(r,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",r=t;for(;r--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Gn=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Va=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of sd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Ba="External signal was aborted",ld=(()=>{function t(e,r,i){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||ad)(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):od(),x=new AbortController,A,b;function T(v){b=v,x.abort()}c&&(c.aborted?T(Ba):c.addEventListener("abort",()=>T(Ba),{once:!0}));let F=(async function(){let v;try{let M=i?.condition?.(l,{getState:d,extra:p});if(ud(M)&&(M=await M),M===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let X=new Promise((j,Z)=>{A=()=>{Z({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(o(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([X,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:T,rejectWithValue:((j,Z)=>new Gn(j,Z)),fulfillWithValue:((j,Z)=>new Va(j,Z))})).then(j=>{if(j instanceof Gn)throw j;return j instanceof Va?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(M){v=M instanceof Gn?s(null,g,l,M.payload,M.meta):s(M,g,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(F,{abort:T,requestId:g,arg:l,unwrap(){return F.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:id(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Wa=Symbol.for("rtk-slice-createasyncthunk"),xh={[Wa]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Wa];return function(i){let{name:n,reducerPath:o=n}=i;if(!n)throw new Error(it(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(hd()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,P){let M=typeof v=="string"?v:v.type;if(!M)throw new Error(it(12));if(M in l.sliceCaseReducersByType)throw new Error(it(13));return l.sliceCaseReducersByType[M]=P,c},addMatcher(v,P){return l.sliceMatchers.push({matcher:v,reducer:P}),c},exposeAction(v,P){return l.actionCreators[v]=P,c},exposeCaseReducer(v,P){return l.sliceCaseReducersByName[v]=P,c}};a.forEach(v=>{let P=s[v],M={reducerName:v,type:dd(n,v),createNotation:typeof i.reducers=="function"};gd(P)?bd(M,P,c,e):md(M,P,c)});function u(){let[v={},P=[],M=void 0]=typeof i.extraReducers=="function"?ja(i.extraReducers):[i.extraReducers],X={...v,...l.sliceCaseReducersByType};return td(i.initialState,j=>{for(let Z in X)j.addCase(Z,X[Z]);for(let Z of l.sliceMatchers)j.addMatcher(Z.matcher,Z.reducer);for(let Z of P)j.addMatcher(Z.matcher,Z.reducer);M&&j.addDefaultCase(M)})}let d=v=>v,p=new Map,g=new WeakMap,x;function A(v,P){return x||(x=u()),x(v,P)}function b(){return x||(x=u()),x.getInitialState()}function T(v,P=!1){function M(j){let Z=j[v];return typeof Z>"u"&&P&&(Z=Li(g,M,b)),Z}function X(j=d){let Z=Li(p,P,()=>new WeakMap);return Li(Z,j,()=>{let dr={};for(let[ke,gt]of Object.entries(i.selectors??{}))dr[ke]=fd(gt,j,()=>Li(g,j,b),P);return dr})}return{reducerPath:v,getSelectors:X,get selectors(){return X(M)},selectSlice:M}}let F={name:n,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...T(o),injectInto(v,{reducerPath:P,...M}={}){let X=P??o;return v.inject({reducerPath:X,reducer:A},M),{...F,...T(X,!0)}}};return F}}function fd(t,e,r,i){function n(o,...s){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return n.unwrapped=t,n}var Ka=pd();function hd(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:r},i,n){let o,s;if("reducer"in i){if(r&&!yd(i))throw new Error(it(17));o=i.reducer,s=i.prepare}else o=i;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},r,i,n){if(!n)throw new Error(it(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=n(t,o,u);i.exposeAction(e,d),s&&i.addCase(d.fulfilled,s),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(e,{fulfilled:s||Pi,pending:a||Pi,rejected:l||Pi,settled:c||Pi})}function Pi(){}var Ga="listener",qa="completed",Ya="cancelled",vh=`task-${Ya}`,Sh=`task-${qa}`,Eh=`${Ga}-${Ya}`,Ah=`${Ga}-${qa}`;var{assign:Xa}=Object;var qn="listenerMiddleware";var xd=Xa(ht(`${qn}/add`),{withTypes:()=>xd}),_h=ht(`${qn}/removeAll`),vd=Xa(ht(`${qn}/remove`),{withTypes:()=>vd});function it(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Sd=si(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),ki=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Za=class t extends ki{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(di(o))return o;if(n==null)return;let s=Ka({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=za({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Or(s.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 s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ai,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Jt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}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 Di=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ni=f(S()),Ed="ft-app-info",Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dt.eventName="authentication-change";var $r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$r.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,Ni.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>R.dispatchEvent(new Dt(e.payload)),0))}},R=Ni.FtReduxStore.get({name:Ed,reducers:Ad,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 Ja=f(S()),Ii=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},em=(0,Ja.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{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,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Di.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ii([(0,Yn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ii([(0,Yn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ii([Rn({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:[]}})],e.prototype,"metadataDescriptors",void 0),Ii([Rn({store:R.name})],e.prototype,"uiLocale",void 0),e});var Qa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Qa||(Qa={}));var el;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(el||(el={}));var tl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(tl||(tl={}));var rl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rl||(rl={}));var il;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(il||(il={}));var nl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(nl||(nl={}));var ol;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(ol||(ol={}));var sl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(sl||(sl={}));var al;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(al||(al={}));var ll;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ll||(ll={}));var cl;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(cl||(cl={}));var ul;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(ul||(ul={}));var dl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(dl||(dl={}));var pl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pl||(pl={}));var fl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fl||(fl={}));var hl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hl||(hl={}));var ml;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ml||(ml={}));var gl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gl||(gl={}));var yl;(function(t){t.ASC="ASC",t.DESC="DESC"})(yl||(yl={}));var bl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bl||(bl={}));var xl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xl||(xl={}));var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var El;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(El||(El={}));var Al;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Al||(Al={}));var _l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(_l||(_l={}));var Cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Cl||(Cl={}));var wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(wl||(wl={}));var re;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var Ne;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Tl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tl||(Tl={}));var Ol;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ol||(Ol={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Ll;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Ll||(Ll={}));var Pl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Pl||(Pl={}));var kl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kl||(kl={}));var Dl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Dl||(Dl={}));var Nl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Nl||(Nl={}));var Il;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Il||(Il={}));var Ml;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ml||(Ml={}));var $l;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})($l||($l={}));var Ul;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ul||(Ul={}));var _d={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.BEHAVIOR_DATA_USER],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function Fl(t,e){return t===e||(_d[t]??[]).some(r=>Fl(r,e))}function Xn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Fl(i,e))}function Vl(t,...e){return t==null?!1:e.some(r=>Xn(t,r))}var Vi=f(S());var Zn=f(S());var Nt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=R.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=R.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ir=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var Le=class extends ir{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Zn.CacheRegistry,this.cache=e?n.commonCache:new Zn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Mi=class extends Le{async listMySearches(){let{session:e}=R.getState();return Xn(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $i=class extends Le{async listMyBookmarks(){let e=R.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ui=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=R.getState().session;return!!e?.sessionAuthenticated}};var Fi=class extends Le{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 e=R.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ne).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Qn(t,r,[...Jn(t,r),n]),Bl(t,r,1,i),Hl(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Qn(t,r,Jn(t,r).map(n=>n.id===i.id?i:n)),Hl(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Qn(t,r,Jn(t,r).filter(o=>o.id!==n)),Bl(t,r,-1,i)}},zl={[Ne.SEARCHES]:"savedSearches",[Ne.BOOKMARKS]:"bookmarks",[Ne.BOOKS]:void 0,[Ne.COLLECTIONS]:void 0},Jn=(t,e)=>{var r;let i=zl[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Qn=(t,e,r)=>{let i=zl[e];i&&(t[i]=r)},Bl=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ne.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Hl=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ge=Vi.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),eo=class{constructor(e=new Ui,r=new Fi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,this.savedSearchesService=new Mi,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=R.getState();(0,Vi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ge.getState().assetCounts.allAsset[e]!==r.count&&ge.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ge.getState().assetCounts.bookmarkByMap[e]!==r.count&&ge.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===Ne.BOOKMARKS&&r&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(r)}}},Td=new eo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var to=class{addCommand(e,r=!1){R.commands.add(e,r)}consumeCommand(e){return R.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new to;var Ie=f(S());var jl,nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),Bi=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=R.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new nr({loadedContexts:e})),this.dispatchEvent(new nr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new nr({loadedContexts:[e]})),this.dispatchEvent(new nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Ie.delay)(0).then(()=>i()).catch(()=>null)))}};jl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var or=window.FluidTopicsI18nService,Hi=window.FluidTopicsCustomI18nService;var Wl=f(S()),ro=class{highlightHtml(e,r,i){(0,Wl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ro;var Kl=f(S());var io=class{isDate(e){var r,i,n,o;return(o=(i=((n=(r=R.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Kl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:R.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new io;var Gl=f(S());var Ur=class{static get(e,r){var i,n,o,s;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 Gl.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var no=class{urlToSearchRequest(e){return Ur.get().parse(e)}searchRequestToUrl(e){return Ur.get().serialize(e)}};window.FluidTopicsUrlService=new no;var nt=f(S());var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};It.eventName="before-location-change";var Mt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mt.eventName="change";var oo=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},ql=new oo;var zi=class t extends nt.WithEventBus{static build(){return new t(window.history,ql,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=new It(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,...o,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(It.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(It.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mt.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,nt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Yl=f(z());var Xl=Yl.css`
|
|
632
|
-
`;var
|
|
631
|
+
`;var Ds=["top","right","bottom","left"],Ps=["start","end"],An=Ds.reduce((t,e)=>t.concat(e,e+"-"+Ps[0],e+"-"+Ps[1]),[]),Si=Math.min,ut=Math.max,Ei=Math.round;var Ge=t=>({x:t,y:t}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ks(t,e,i){return ut(t,Si(e,i))}function Qi(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function _n(t){return t==="x"?"y":"x"}function Cn(t){return t==="y"?"height":"width"}function er(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function wn(t){return _n(er(t))}function Ns(t,e,i){i===void 0&&(i=!1);let r=dt(t),n=wn(t),o=Cn(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=En(s)),[s,En(s)]}function Is(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function En(t){let e=Ai(t);return ru[e]+t.slice(e.length)}function nu(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function Ms(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function wt(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function $s(t,e,i){let{reference:r,floating:n}=t,o=er(e),s=wn(e),a=Cn(s),l=Ai(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Us(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Qi(e,t),x=Ms(g),b=a[p?d==="floating"?"reference":"floating":d],R=wt(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),F=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},H=wt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:F,offsetParent:v,strategy:l}):F);return{top:(R.top-H.top+x.top)/S.y,bottom:(H.bottom-R.bottom+x.bottom)/S.y,left:(R.left-H.left+x.left)/S.x,right:(H.right-R.right+x.right)/S.x}}var ou=50,Fs=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Us},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=$s(c,r,l),p=r,g=0,x={};for(let _=0;_<o.length;_++){let b=o[_];if(!b)continue;let{name:R,fn:F}=b,{x:v,y:S,data:H,reset:U}=await F({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=S??d,x[R]={...x[R],...H},U&&g<ou&&(g++,typeof U=="object"&&(U.placement&&(p=U.placement),U.rects&&(c=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:d}=$s(c,p,l)),_=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,i){return(t?[...i.filter(n=>dt(n)===t),...i.filter(n=>dt(n)!==t)]:i.filter(n=>Ai(n)===n)).filter(n=>t?dt(n)===t||(e?Is(n)!==n:!1):!0)}var Vs=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=An,autoAlignment:g=!0,...x}=Qi(t,e),_=d!==void 0||p===An?su(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,R=_[b];if(R==null)return{};if(a!==R)return{reset:{placement:_[0]}};let F=await l.detectOverflow(e,x),v=Ns(R,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[F[Ai(R)],F[v[0]],F[v[1]]],H=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:R,overflows:S}],U=_[b+1];if(U)return{data:{index:b+1,overflows:H},reset:{placement:U}};let ie=H.map(De=>{let di=dt(De.placement);return[De.placement,di&&u?De.overflows.slice(0,2).reduce((jc,Kc)=>jc+Kc,0):De.overflows[0],De.overflows]}).sort((De,di)=>De[1]-di[1]),ji=((n=ie.filter(De=>De[2].slice(0,dt(De[0])?2:3).every(di=>di<=0))[0])==null?void 0:n[0])||ie[0][0];return ji!==a?{data:{index:b+1,overflows:H},reset:{placement:ji}}:{}}}};var Bs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:F=>{let{x:v,y:S}=F;return{x:v,y:S}}},...c}=Qi(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=er(n),g=_n(p),x=u[g],_=u[p],b=(F,v)=>ks(v+d[F==="y"?"top":"left"],v,v-d[F==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(_=b(p,_));let R=l.fn({...e,[g]:x,[p]:_});return{...R,data:{x:R.x-i,y:R.y-r,enabled:{[g]:s,[p]:a}}}}}};function ir(){return typeof window<"u"}function Ot(t){return zs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){var e;return(e=(zs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function zs(t){return ir()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return ir()?t instanceof Element||t instanceof _e(t).Element:!1}function it(t){return ir()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Hs(t){return!ir()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _i(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function js(t){return/^(table|td|th)$/.test(Ot(t))}function Ci(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Tt=t=>!!t&&t!=="none",Tn;function Yt(t){let e=Be(t)?He(t):t;return Tt(e.transform)||Tt(e.translate)||Tt(e.scale)||Tt(e.rotate)||Tt(e.perspective)||!rr()&&(Tt(e.backdropFilter)||Tt(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function Ks(t){let e=pt(t);for(;it(e)&&!Xt(e);){if(Yt(e))return e;if(Ci(e))return null;e=pt(e)}return null}function rr(){return Tn==null&&(Tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tn}function Xt(t){return/^(html|body|#document)$/.test(Ot(t))}function He(t){return _e(t).getComputedStyle(t)}function wi(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Ot(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Hs(t)&&t.host||tt(t);return Hs(e)?e.host:e}function Ws(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:it(e)&&_i(e)?e:Ws(e)}function tr(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=Ws(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=nr(s);return e.concat(s,s.visualViewport||[],_i(n)?n:[],a&&i?tr(a):[])}else return e.concat(n,tr(n,[],i))}function nr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ys(t){let e=He(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=it(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Ei(i)!==o||Ei(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Xs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=Xs(t);if(!it(e))return Ge(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Ys(e),s=(o?Ei(i.width):i.width)/r,a=(o?Ei(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ge(0);function Zs(t){let e=_e(t);return!rr()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function Ti(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Xs(t),s=Ge(1);e&&(r?Be(r)&&(s=Zt(r)):s=Zt(t));let a=uu(o,i,r)?Zs(o):Ge(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=Be(r)?_e(r):r,x=p,_=nr(x);for(;_&&g!==x;){let b=Zt(_),R=_.getBoundingClientRect(),F=He(_),v=R.left+(_.clientLeft+parseFloat(F.paddingLeft))*b.x,S=R.top+(_.clientTop+parseFloat(F.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=S,x=_e(_),_=nr(x)}}return wt({width:u,height:d,x:l,y:c})}function or(t,e){let i=wi(t).scrollLeft;return e?e.left+i:Ti(tt(t)).left+i}function Js(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-or(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function du(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=tt(r),a=e?Ci(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Ge(1),u=Ge(0),d=it(r);if((d||!o)&&((Ot(r)!=="body"||_i(s))&&(l=wi(r)),d)){let g=Ti(r);c=Zt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?Js(s,l):Ge(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wi(t),i=t.ownerDocument.body,r=ut(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ut(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+or(t),s=-e.scrollTop;return He(i).direction==="rtl"&&(o+=ut(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var hu=25;function mu(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=tt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!rr()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(or(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-_),R=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;R<=hu&&(a-=R)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let i=Ti(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function Gs(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=mu(t,i,e);else if(e==="document")r=fu(tt(t));else if(Be(e))r=gu(e,i);else{let n=Zs(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return wt(r)}function yu(t,e){let i=e.get(t);if(i)return i;let r=tr(t,[],!1).filter(a=>Be(a)&&Ot(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,r),r}function bu(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Ci(e)?[]:yu(e,this._c):[].concat(i),r],a=Gs(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=Gs(e,s[p],n);l=ut(g.top,l),c=Si(g.right,c),u=Si(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:i}=Ys(t);return{width:e,height:i}}function vu(t,e,i){let r=it(e),n=tt(e),o=i==="fixed",s=Ti(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ge(0);if((r||!o)&&((Ot(e)!=="body"||_i(n))&&(a=wi(e)),r)){let p=Ti(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=or(n));let c=n&&!r&&!o?Js(n,a):Ge(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function On(t){return He(t).position==="static"}function qs(t,e){if(!it(t)||He(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return tt(t)===i&&(i=i.ownerDocument.body),i}function Qs(t,e){let i=_e(t);if(Ci(t))return i;if(!it(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!On(n))return n;n=pt(n)}return i}let r=qs(t,e);for(;r&&js(r)&&On(r);)r=qs(r,e);return r&&Xt(r)&&On(r)&&!Yt(r)?i:r||Ks(t)||i}var Su=async function(t){let e=this.getOffsetParent||Qs,i=this.getDimensions,r=await i(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eu(t){return He(t).direction==="rtl"}var sr={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:tt,getClippingRect:bu,getOffsetParent:Qs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var ea=Vs,ta=Bs;var ia=(t,e,i)=>{let r=new Map,n=i??{},o={...sr,...n.platform,_c:r};return Fs(t,e,{...n,platform:o})};function ra(t){return Au(t)}function Rn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Rn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Rn(t);e;e=Rn(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Yt(i)||e.tagName==="BODY"))return e}return null}async function na(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},ia(t,e,{strategy:r.strategy,platform:{...sr,getOffsetParent:n=>sr.getOffsetParent(n,ra)},middleware:[ta({crossAxis:!0}),ea({allowedPlacements:[r.placement]})]})}var ai=f(E());var Zn=f(re());var oa=f(re(),1);var Ln=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_u=t=>({fromAttribute:e=>{if(e==null)return Oi(t);try{return JSON.parse(e)}catch{return Oi(t)}},toAttribute:e=>JSON.stringify(e)});function sa(t,e){return(0,oa.property)({type:Object,converter:_u(t),hasChanged:Ri,...e??{}})}function Cu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Jt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Jt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return Cu(t,e)}catch{return!1}}function Ri(t,e){return!Jt(t,e)}function Oi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ar(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var aa=f(re(),1);var Pn=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ri,attribute:!1,...e};(0,aa.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var lr=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Rt=f(re(),1);var cr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var dr=f(j(),1);var ur=class extends dr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,dr.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){Ln(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function la(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ei=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},pa,ca=Symbol("constructorPrototype"),ua=Symbol("constructorName"),fa=Symbol("exportpartsDebouncer"),da=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var qe=class extends ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[pa]=new cr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[fa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ua]=this.constructor.name,this[ca]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ua]&&Object.setPrototypeOf(this,this[ca])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[da]||(i[da]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=la(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let g=(s=(r=p.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...g,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}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(", ")}};pa=fa;ei([(0,Rt.property)()],qe.prototype,"exportpartsPrefix",void 0);ei([sa([])],qe.prototype,"exportpartsPrefixes",void 0);ei([(0,Rt.property)({reflect:!0})],qe.prototype,"exportparts",void 0);ei([(0,Rt.property)()],qe.prototype,"customStylesheet",void 0);ei([(0,Rt.property)()],qe.prototype,"elementToFocus",void 0);ei([(0,Rt.state)()],qe.prototype,"useAdoptedStyleSheets",void 0);function pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Li=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),wu=ar(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l,c;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Li].set(s,[]),pr(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=g=>this[d](g);a.addEventListener(u.eventName,p),this[Li].get(s).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Li].get(s))===null||a===void 0||a.forEach(l=>l()),this[Li].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,i=Lt,r=Li,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ha=class extends wu(qe){};function ue(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ma=Tu,Dn=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Dn()}`,REPLACE:`@@redux/REPLACE${Dn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dn()}`},fr=Ou;function hr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function kn(t,e,i){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ue(1));return i(kn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,R)=>{s.set(R,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let R=!0;c();let F=a++;return s.set(F,b),function(){if(R){if(l)throw new Error(ue(6));R=!1,c(),s.delete(F),o=null}}}function p(b){if(!hr(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(F=>{F()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));r=b,p({type:fr.REPLACE})}function x(){let b=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(ue(11));function F(){let S=R;S.next&&S.next(u())}return F(),{unsubscribe:b(F)}},[ma](){return this}}}return p({type:fr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[ma]:x}}function Ru(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:fr.INIT})>"u")throw new Error(ue(12));if(typeof i(void 0,{type:fr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Nn(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{Ru(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],_=g(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=_,c=c||_!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function ga(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pi(...a)(n.dispatch),{...n,dispatch:o}}}function ya(t){return hr(t)&&"type"in t&&typeof t.type=="string"}var wa=Symbol.for("immer-nothing"),ba=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,ii=Oe.getPrototypeOf,br="constructor",_r="prototype",Un="configurable",xr="enumerable",gr="writable",Di="value",Ye=t=>!!t&&!!t[fe];function Re(t){return t?Ta(t)||wr(t)||!!t[ba]||!!t[br]?.[ba]||Tr(t)||Or(t):!1}var Lu=Oe[_r][br].toString(),xa=new WeakMap;function Ta(t){if(!t||!Wn(t))return!1;let e=ii(t);if(e===null||e===Oe[_r])return!0;let i=Oe.hasOwnProperty.call(e,br)&&e[br];if(i===Object)return!0;if(!ti(i))return!1;let r=xa.get(i);return r===void 0&&(r=Function.toString.call(i),xa.set(i,r)),r===Lu}function Cr(t,e,i=!0){Ii(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ii(t){let e=t[fe];return e?e.type_:wr(t)?1:Tr(t)?2:Or(t)?3:0}var In=(t,e,i=Ii(t))=>i===2?t.has(e):Oe[_r].hasOwnProperty.call(t,e),Fn=(t,e,i=Ii(t))=>i===2?t.get(e):t[e],vr=(t,e,i,r=Ii(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var wr=Array.isArray,Tr=t=>t instanceof Map,Or=t=>t instanceof Set,Wn=t=>typeof t=="object",ti=t=>typeof t=="function",Mn=t=>typeof t=="boolean";function Du(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var Gn=t=>t.modified_?t.copy_:t.base_;function Vn(t,e){if(Tr(t))return new Map(t);if(Or(t))return new Set(t);if(wr(t))return Array[_r].slice.call(t);let i=Ta(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[fe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[gr]===!1&&(a[gr]=!0,a[Un]=!0),(a.get||a.set)&&(r[s]={[Un]:!0,[gr]:!0,[xr]:a[xr],[Di]:t[s]})}return Oe.create(ii(t),r)}else{let r=ii(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Rr(t,e=!1){return Lr(t)||Ye(t)||!Re(t)||(Ii(t)>1&&Oe.defineProperties(t,{set:mr,add:mr,clear:mr,delete:mr}),Oe.freeze(t),e&&Cr(t,(i,r)=>{Rr(r,!0)},!1)),t}function ku(){ze(2)}var mr={[Di]:ku};function Lr(t){return t===null||!Wn(t)?!0:Oe.isFrozen(t)}var Sr="MapSet",Bn="Patches",va="ArrayMethods",Oa={};function Pt(t){let e=Oa[t];return e||ze(0,t),e}var Sa=t=>!!Oa[t];var ki,Ra=()=>ki,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sa(Sr)?Pt(Sr):void 0,arrayMethodsPlugin_:Sa(va)?Pt(va):void 0});function Ea(t,e){e&&(t.patchPlugin_=Pt(Bn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Hn(t){zn(t),t.drafts_.forEach(Iu),t.drafts_=null}function zn(t){t===ki&&(ki=t.parent_)}var Aa=t=>ki=Nu(ki,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _a(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[fe].modified_&&(Hn(e),ze(4)),Re(t)&&(t=Ca(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[fe].base_,t,e)}else t=Ca(e,i);return Mu(e,t,!0),Hn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==wa?t:void 0}function Ca(t,e){if(Lr(e))return e;let i=e[fe];if(!i)return Er(e,t.handledSet_,t);if(!Pr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Da(i,t)}return i.copy_}function Mu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Rr(e,i)}function La(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Pr=(t,e)=>t.scope_===e,$u=[];function Pa(t,e,i,r){let n=rt(t),o=t.type_;if(r!==void 0&&Fn(n,r,o)===e){vr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Cr(n,(l,c)=>{if(Ye(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)vr(n,a,i,o)}function Uu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Pr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Gn(o);Pa(t,o.draft_??o,s,i),Da(o,n)})}function Da(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}La(t)}}function Fu(t,e,i){let{scope_:r}=t;if(Ye(i)){let n=i[fe];Pr(n,r)&&n.callbacks_.push(function(){yr(t);let s=Gn(n);Pa(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(i)&&Er(i,r.handledSet_,r):Fn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Er(Fn(t.copy_,e,t.type_),r.handledSet_,r)})}function Er(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Ye(t)||e.has(t)||!Re(t)||Lr(t)||(e.add(t),Cr(t,(r,n)=>{if(Ye(n)){let o=n[fe];if(Pr(o,i)){let s=Gn(o);vr(t,r,s,t.type_),La(o)}}else Re(n)&&Er(n,e,i)})),t}function Vu(t,e){let i=wr(t),r={type_:i?1:0,scope_:e?e.scope_:Ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Ar;i&&(n=[r],o=Ni);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Ar={get(t,e){if(e===fe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=rt(t);if(!In(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Du(e))return o;if(o===$n(t.base_,e)||Bu(t,e,o)){yr(t);let s=t.type_===1?+e:e,a=Kn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,i){let r=ka(rt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=$n(rt(t),e),o=n?.[fe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(Pu(i,n)&&(i!==void 0||In(t.base_,e,t.type_)))return!0;yr(t),jn(t)}return t.copy_[e]===i&&(i!==void 0||In(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Fu(t,e,i)),!0},deleteProperty(t,e){return yr(t),$n(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),jn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=rt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[gr]:!0,[Un]:t.type_!==1||e!=="length",[xr]:r[xr],[Di]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return ii(t.base_)},setPrototypeOf(){ze(12)}},Ni={};for(let t in Ar){let e=Ar[t];Ni[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}Ni.deleteProperty=function(t,e){return Ni.set.call(this,t,e,void 0)};Ni.set=function(t,e,i){return Ar.set.call(this,t[0],e,i,t[0])};function $n(t,e){let i=t[fe];return(i?rt(i):t)[e]}function Bu(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(i)||i[fe]?!1:t.baseRefs_.has(i)}function Hu(t,e,i){let r=ka(e,i);return r?Di in r?r[Di]:r.get?.call(t.draft_):void 0}function ka(t,e){if(!(e in t))return;let i=ii(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=ii(i)}}function jn(t){t.modified_||(t.modified_=!0,t.parent_&&jn(t.parent_))}function yr(t){t.copy_||(t.assigned_=new Map,t.copy_=Vn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(ti(e)&&!ti(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}ti(i)||ze(6),r!==void 0&&!ti(r)&&ze(7);let n;if(Re(e)){let o=Aa(this),s=Kn(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?Hn(o):zn(o)}return Ea(o,r),_a(n,o)}else if(!e||!Wn(e)){if(n=i(e),n===void 0&&(n=e),n===wa&&(n=void 0),this.autoFreeze_&&Rr(n,!0),r){let o=[],s=[];Pt(Bn).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(ti(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Mn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Mn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Mn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),Ye(t)&&(t=Na(t));let e=Aa(this),i=Kn(e,t,void 0);return i[fe].isManual_=!0,zn(e),i}finishDraft(t,e){let i=t&&t[fe];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ea(r,e),_a(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Pt(Bn).applyPatches_;return Ye(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Kn(t,e,i,r){let[n,o]=Tr(e)?Pt(Sr).proxyMap_(e,i):Or(e)?Pt(Sr).proxySet_(e,i):Vu(e,i);return(i?.scope_??Ra()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Uu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Na(t){return Ye(t)||ze(10,t),Ia(t)}function Ia(t){if(!Re(t)||Lr(t))return t;let e=t[fe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=Vn(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=Vn(t,!0);return Cr(i,(n,o)=>{vr(i,n,Ia(o))},r),e&&(e.finalized_=!1),i}var ju=globalThis.Iterator,uh=typeof ju?.from=="function";var Ku=new zu,qn=Ku.produce;function Ma(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var $a=Ma(),Ua=Ma;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pi:Pi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Gu=t=>t&&typeof t.match=="function";function ht(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Xe(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>ya(r)&&r.type===t,i}var za=class Mi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mi.prototype)}static get[Symbol.species](){return Mi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mi(...e[0].concat(this)):new Mi(...e.concat(this))}};function Fa(t){return Re(t)?qn(t,()=>{}):t}function Dr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new za;return i&&(qu(i)?s.push($a):s.push(Ua(i.extraArgument))),s},Xu="RTK_autoBatch";var Va=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Ju=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Va(10):t.type==="callback"?t.queueNotification:Va(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Xu],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Qu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new za(t);return r&&n.push(Ju(typeof r=="object"?r:void 0)),n};function ja(t){let e=Yu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(hr(i))l=Nn(i);else throw new Error(Xe(1));let c;typeof r=="function"?c=r(e):c=e();let u=Pi;n&&(u=Wu({trace:!1,...typeof n=="object"&&n}));let d=ga(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return kn(l,s,x)}function Ka(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Xe(28));if(a in e)throw new Error(Xe(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function ed(t){return typeof t=="function"}function td(t,e){let[i,r,n]=Ka(e),o;if(ed(t))o=()=>Fa(t());else{let a=Fa(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.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(Ye(u)){let p=d(u,l);return p===void 0?u:p}else{if(Re(u))return qn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Xe(9))}return p}}return u},a)}return s.getInitialState=o,s}var id=(t,e)=>Gu(t)?t.match(e):t(e);function rd(...t){return e=>t.some(i=>id(i,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",i=t;for(;i--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Yn=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Ba=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of sd)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},Ha="External signal was aborted",ld=(()=>{function t(e,i,r){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||ad)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=r?.idGenerator?r.idGenerator(l):od(),x=new AbortController,_,b;function R(v){b=v,x.abort()}c&&(c.aborted?R(Ha):c.addEventListener("abort",()=>R(Ha),{once:!0}));let F=(async function(){let v;try{let S=r?.condition?.(l,{getState:d,extra:p});if(ud(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let H=new Promise((U,ie)=>{_=()=>{ie({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([H,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:R,rejectWithValue:((U,ie)=>new Yn(U,ie)),fulfillWithValue:((U,ie)=>new Ba(U,ie))})).then(U=>{if(U instanceof Yn)throw U;return U instanceof Ba?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(S){v=S instanceof Yn?s(null,g,l,S.payload,S.meta):s(S,g,l)}finally{_&&x.signal.removeEventListener("abort",_)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(F,{abort:R,requestId:g,arg:l,unwrap(){return F.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:rd(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Wa=Symbol.for("rtk-slice-createasyncthunk"),bh={[Wa]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Wa];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Xe(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(hd()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,S){let H=typeof v=="string"?v:v.type;if(!H)throw new Error(Xe(12));if(H in l.sliceCaseReducersByType)throw new Error(Xe(13));return l.sliceCaseReducersByType[H]=S,c},addMatcher(v,S){return l.sliceMatchers.push({matcher:v,reducer:S}),c},exposeAction(v,S){return l.actionCreators[v]=S,c},exposeCaseReducer(v,S){return l.sliceCaseReducersByName[v]=S,c}};a.forEach(v=>{let S=s[v],H={reducerName:v,type:dd(n,v),createNotation:typeof r.reducers=="function"};gd(S)?bd(H,S,c,e):md(H,S,c)});function u(){let[v={},S=[],H=void 0]=typeof r.extraReducers=="function"?Ka(r.extraReducers):[r.extraReducers],U={...v,...l.sliceCaseReducersByType};return td(r.initialState,ie=>{for(let de in U)ie.addCase(de,U[de]);for(let de of l.sliceMatchers)ie.addMatcher(de.matcher,de.reducer);for(let de of S)ie.addMatcher(de.matcher,de.reducer);H&&ie.addDefaultCase(H)})}let d=v=>v,p=new Map,g=new WeakMap,x;function _(v,S){return x||(x=u()),x(v,S)}function b(){return x||(x=u()),x.getInitialState()}function R(v,S=!1){function H(ie){let de=ie[v];return typeof de>"u"&&S&&(de=Dr(g,H,b)),de}function U(ie=d){return Dr(Dr(p,S,()=>new WeakMap),ie,()=>{let de={};for(let[ji,De]of Object.entries(r.selectors??{}))de[ji]=fd(De,ie,()=>Dr(g,ie,b),S);return de})}return{reducerPath:v,getSelectors:U,get selectors(){return U(H)},selectSlice:H}}let F={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...R(o),injectInto(v,{reducerPath:S,...H}={}){let U=S??o;return v.inject({reducerPath:U,reducer:_},H),{...F,...R(U,!0)}}};return F}}function fd(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var Ga=pd();function hd(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!yd(r))throw new Error(Xe(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Xe(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||kr,pending:a||kr,rejected:l||kr,settled:c||kr})}function kr(){}var qa="listener",Ya="completed",Xa="cancelled",xh=`task-${Xa}`,vh=`task-${Ya}`,Sh=`${qa}-${Xa}`,Eh=`${qa}-${Ya}`;var{assign:Za}=Object;var Xn="listenerMiddleware";var xd=Za(ht(`${Xn}/add`),{withTypes:()=>xd}),Ah=ht(`${Xn}/removeAll`),vd=Za(ht(`${Xn}/remove`),{withTypes:()=>vd});function Xe(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Sd=ar(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),Nr=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ja=class t extends Nr{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(pr(o))return o;if(n==null)return;let s=Ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=ja({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Oi(s.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 s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus,n.deprecatedKeys)}constructor(e,i,r,n){super(),this.reduxSlice=e,this.reduxStore=i,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new lr,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let c=a,u=s[c];return u?(...d)=>{let p=u(...d.map(o));return this.reduxStore.dispatch(p),p}:d=>{let p=c,g=this.getState()[p];Jt(g,d)||this.setState({[p]:o(d)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}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 Ir=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var Mr=f(E()),Ed="ft-app-info",Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dt.eventName="authentication-change";var $i=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$i.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,Mr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Dt(e.payload)),0))}},P=Mr.FtReduxStore.get({name:Ed,reducers:Ad,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 Qa=f(E()),$r=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Qh=(0,Qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Ir.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $r([(0,Zn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$r([(0,Zn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$r([Pn({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),$r([Pn({store:P.name})],e.prototype,"uiLocale",void 0),e});var el;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tl||(tl={}));var il;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(il||(il={}));var rl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rl||(rl={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sl||(sl={}));var al;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(al||(al={}));var ll;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ll||(ll={}));var cl;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(cl||(cl={}));var ul;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(ul||(ul={}));var dl;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(dl||(dl={}));var pl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pl||(pl={}));var fl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(fl||(fl={}));var hl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(hl||(hl={}));var ml;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ml||(ml={}));var gl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(gl||(gl={}));var yl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yl||(yl={}));var bl;(function(t){t.ASC="ASC",t.DESC="DESC"})(bl||(bl={}));var xl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(xl||(xl={}));var vl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vl||(vl={}));var Sl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sl||(Sl={}));var El;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(El||(El={}));var Al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Al||(Al={}));var _l;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_l||(_l={}));var Cl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Cl||(Cl={}));var wl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wl||(wl={}));var Tl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Tl||(Tl={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var Ne;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ne||(Ne={}));var Ol;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ol||(Ol={}));var Rl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Rl||(Rl={}));var Ll;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ll||(Ll={}));var Pl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Pl||(Pl={}));var Dl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Dl||(Dl={}));var kl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kl||(kl={}));var Nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nl||(Nl={}));var Il;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Il||(Il={}));var Ml;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ml||(Ml={}));var $l;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})($l||($l={}));var Ul;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Ul||(Ul={}));var Fl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Fl||(Fl={}));var _d={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Vl(t,e){return t===e||(_d[t]??[]).some(i=>Vl(i,e))}function Jn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(r=>Vl(r,e))}function Bl(t,...e){return t==null?!1:e.some(i=>Jn(t,i))}var Hr=f(E());var Qn=f(E());var kt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ri=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ri{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Qn.CacheRegistry,this.cache=e?n.commonCache:new Qn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var Ur=class extends Le{async listMySearches(){let{session:e}=P.getState();return Jn(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Fr=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Vr=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Br=class extends Le{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 e=P.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(Ne).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;to(t,i,[...eo(t,i),n]),Hl(t,i,1,r),zl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;to(t,i,eo(t,i).map(n=>n.id===r.id?r:n)),zl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;to(t,i,eo(t,i).filter(o=>o.id!==n)),Hl(t,i,-1,r)}},jl={[Ne.SEARCHES]:"savedSearches",[Ne.BOOKMARKS]:"bookmarks",[Ne.BOOKS]:void 0,[Ne.COLLECTIONS]:void 0},eo=(t,e)=>{var i;let r=jl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},to=(t,e,i)=>{let r=jl[e];r&&(t[r]=i)},Hl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===Ne.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},zl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},ye=Hr.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ne).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),io=class{constructor(e=new Vr,i=new Br){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new Ur,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Hr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ye.actions.clearAssetCount(),ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ye.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&ye.getState().assetCounts.allAsset[e]!==i.count&&ye.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&ye.getState().assetCounts.bookmarkByMap[e]!==i.count&&ye.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(ye.getState().assetCounts.bookmarkByMap).length!==0;e===Ne.BOOKMARKS&&i&&ye.actions.clearBookmarkCountByMap(),ye.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ye.actions.bookmarks(i)}}},Td=new io;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var ro=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ro;var Ie=f(E());var Kl,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),zr=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Ie.delay)(0).then(()=>r()).catch(()=>null)))}};Kl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zr{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zr{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oi=window.FluidTopicsI18nService,jr=window.FluidTopicsCustomI18nService;var Wl=f(E()),no=class{highlightHtml(e,i,r){(0,Wl.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new no;var Gl=f(E());var oo=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return Gl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new oo;var ql=f(E());var Ui=class{static get(e,i,{baseUrl:r,localesConfiguration:n,availableContentLocales:o}=P.getState()){var s;if(!i||o.length>0&&!o.some(a=>a.lang===i)){let a=n?.defaultLocales.defaultContentLocale;i=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new ql.SearchPlaceConverter(r,e??20,n?.allLanguagesAllowed,i,o)}};var so=class{urlToSearchRequest(e){return Ui.get().parse(e)}searchRequestToUrl(e){return Ui.get().serialize(e)}};window.FluidTopicsUrlService=new so;var nt=f(E());var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Nt.eventName="before-location-change";var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};It.eventName="change";var ao=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},Yl=new ao;var Kr=class t extends nt.WithEventBus{static build(){return new t(window.history,Yl,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new It(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new Nt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=i(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Nt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Nt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(It.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(It.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Kr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Xl=f(j());var Zl=Xl.css`
|
|
632
|
+
`;var ec=f(j()),be=f(re()),Ut=f(E());var Mt=f(E());function Jl(t,e){let{authenticationRequired:i,session:r}=P.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var Wr=class extends ri{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var lo=class t extends Mt.FtStateManager{static build(e){return new t(P,e)}constructor(e,i){super(),this.store=e,this.cache=new Mt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Wr,this.cleanSessionDebouncer=new Mt.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Mt.Debouncer(500),this.apiProvider=i??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Dt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Dt.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 e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}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 e;let i=await this.cache.get("availableContentLocales",()=>Jl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $i(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return Bl(P.getState().session,...e)}},Ql=lo.build();var $t=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var Fi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new $t(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var se=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},G=class extends Ut.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=Ql,this.contextRoot=new Fi}render(){return ec.html`
|
|
633
633
|
<slot></slot>
|
|
634
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var
|
|
635
|
-
`;var
|
|
634
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>oi.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=Zl;se([(0,be.property)()],G.prototype,"baseUrl",void 0);se([(0,be.property)()],G.prototype,"tenantId",void 0);se([(0,be.property)()],G.prototype,"apiIntegrationIdentifier",void 0);se([(0,be.property)()],G.prototype,"apiIntegrationAppVersion",void 0);se([(0,be.property)()],G.prototype,"uiLocale",void 0);se([(0,Ut.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);se([(0,Ut.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"editorMode",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"noCustom",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);se([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);se([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"withManualResources",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);se([(0,be.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);se([(0,Ut.jsonProperty)([])],G.prototype,"messageContexts",void 0);se([(0,Ut.jsonProperty)(void 0)],G.prototype,"session",void 0);var ic=f(E());var tc={"ft-app-context":G};(0,ic.customElements)(tc);var rc=f(re());var co=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},si=new co;var Pd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Bi=Symbol("i18nAttributes"),nc=Symbol("i18nListAttributes"),oc=Symbol("i18nProperties"),Gr=Symbol("i18nContexts"),Vi=Symbol("i18nUnsubs"),Xr=(0,ai.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?jr:oi}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(si.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Bi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[nc])===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(o){var s;(s=this[oc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Gr].set(l,{isCustomContext:a}),this[Vi].has(l)||this[Vi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Gr].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Gr].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Vi].forEach(o=>o()),this[Vi].clear()}}return e=Gr,i=Vi,Pd([(0,rc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),qr=class extends Xr(ai.FtLitElement){},Yr=class extends Xr(ai.FtLitElementRedux){};var sc=f(E());var uo=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?si.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Dd=new uo;var ac=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:sc.hasChanged,converter:si,...e}),i[Bi]=(n=i[Bi])!==null&&n!==void 0?n:new Map,i[Bi].set(r,t??{})};var Zr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?jr:oi}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var lc=f(j());var cc=lc.css`
|
|
635
|
+
`;var Jr=f(j()),ci=f(re()),Qr=f(E());var li=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Me=class extends Yr{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Jr.nothing:Jr.html`
|
|
636
636
|
<span class="ft-i18n">
|
|
637
637
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
638
638
|
</span>
|
|
639
|
-
`}update(e){var
|
|
639
|
+
`}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};Me.elementDefinitions={};Me.styles=cc;li([(0,Qr.redux)()],Me.prototype,"editorMode",void 0);li([(0,ci.property)()],Me.prototype,"context",void 0);li([(0,ci.property)()],Me.prototype,"key",void 0);li([(0,Qr.jsonProperty)([])],Me.prototype,"args",void 0);li([(0,ci.property)()],Me.prototype,"defaultMessage",void 0);li([(0,ci.state)()],Me.prototype,"editorMessage",void 0);var dc=f(E());var uc={"ft-i18n":Me};(0,dc.customElements)(uc);var je=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},oe=class extends qr{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 $e.Debouncer,this.revealDebouncer=new $e.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return pc.html`
|
|
640
640
|
<div part="container"
|
|
641
641
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
642
642
|
<slot part="slot"></slot>
|
|
@@ -645,13 +645,13 @@
|
|
|
645
645
|
popover="manual">
|
|
646
646
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
647
647
|
<slot name="text"></slot>
|
|
648
|
-
<ft-typography variant="${
|
|
649
|
-
${(
|
|
648
|
+
<ft-typography variant="${ge.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
649
|
+
${(i=this.text)===null||i===void 0?void 0:i.message}
|
|
650
650
|
</ft-typography>
|
|
651
651
|
</div>
|
|
652
652
|
</div>
|
|
653
653
|
</div>
|
|
654
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r
|
|
654
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(i=>i.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&na(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:i})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${i}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${$e.designSystemVariables.transitionDuration}, left ${$e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$e.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};oe.elementDefinitions={"ft-typography":ne};oe.styles=Ls;je([ac()],oe.prototype,"text",void 0);je([(0,Ue.property)({type:Boolean})],oe.prototype,"manual",void 0);je([(0,Ue.property)({type:Boolean})],oe.prototype,"inline",void 0);je([(0,$e.numberProperty)()],oe.prototype,"delay",void 0);je([(0,Ue.property)()],oe.prototype,"position",void 0);je([(0,$e.jsonProperty)([])],oe.prototype,"ignoreMatchingElements",void 0);je([(0,Ue.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);je([(0,Ue.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);je([(0,Ue.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);je([(0,Ue.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);je([(0,Ue.state)()],oe.prototype,"visible",void 0);var hc=f(E());var fc={"ft-tooltip":oe};(0,hc.customElements)(fc);var mc=f(j()),Hi=f(E()),Ft={color:Hi.FtCssVariableFactory.extend("--ft-loader-color","",Hi.designSystemVariables.colorPrimary),size:Hi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},gc=mc.css`
|
|
655
655
|
:host {
|
|
656
656
|
line-height: 0;
|
|
657
657
|
}
|
|
@@ -660,8 +660,8 @@
|
|
|
660
660
|
display: inline-block;
|
|
661
661
|
position: relative;
|
|
662
662
|
|
|
663
|
-
width: ${
|
|
664
|
-
height: ${
|
|
663
|
+
width: ${Ft.size};
|
|
664
|
+
height: ${Ft.size};
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
.ft-loader div {
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
width: 25%;
|
|
671
671
|
height: 25%;
|
|
672
672
|
border-radius: 50%;
|
|
673
|
-
background: ${
|
|
673
|
+
background: ${Ft.color};
|
|
674
674
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
675
675
|
}
|
|
676
676
|
|
|
@@ -717,17 +717,17 @@
|
|
|
717
717
|
transform: translate(0, 0);
|
|
718
718
|
}
|
|
719
719
|
100% {
|
|
720
|
-
transform: translate(calc(0.35 * ${
|
|
720
|
+
transform: translate(calc(0.35 * ${Ft.size}), 0);
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
`;var
|
|
723
|
+
`;var yc=f(j()),bc=f(E());var Vt=class extends bc.FtLitElement{render(){return yc.html`
|
|
724
724
|
<div class="ft-loader">
|
|
725
725
|
<div></div>
|
|
726
726
|
<div></div>
|
|
727
727
|
<div></div>
|
|
728
728
|
<div></div>
|
|
729
729
|
</div>
|
|
730
|
-
`}};
|
|
730
|
+
`}};Vt.styles=gc;var vc=f(E());var xc={"ft-loader":Vt};(0,vc.customElements)(xc);var mt=f(j()),tn=f(ot()),z=f(re());var en=f(j()),w=f(E());var Sc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),q={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Sc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",Fe.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Sc),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)),po={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)},Ke={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")},Ac=en.css`
|
|
731
731
|
:host {
|
|
732
732
|
display: inline-block;
|
|
733
733
|
max-width: 100%;
|
|
@@ -736,33 +736,9 @@
|
|
|
736
736
|
|
|
737
737
|
.ft-button {
|
|
738
738
|
box-shadow: 0px 0px 0px transparent;
|
|
739
|
-
border: 0px solid transparent;
|
|
740
739
|
text-shadow: 0px 0px 0px transparent;
|
|
741
740
|
font-size: ${q.fontSize};
|
|
742
741
|
text-decoration: none;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
.ft-button:hover {
|
|
746
|
-
box-shadow: 0px 0px 0px transparent;
|
|
747
|
-
border: 0px solid transparent;
|
|
748
|
-
text-shadow: 0px 0px 0px transparent;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
.ft-button:active {
|
|
752
|
-
outline: none;
|
|
753
|
-
border: none;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
.ft-button:focus {
|
|
757
|
-
outline: none;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.ft-button:focus-visible {
|
|
761
|
-
outline: 2px solid ${L.designSystemVariables.colorPrimary};
|
|
762
|
-
outline-offset: 2px;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
.ft-button {
|
|
766
742
|
position: relative;
|
|
767
743
|
display: flex;
|
|
768
744
|
justify-content: center;
|
|
@@ -774,105 +750,134 @@
|
|
|
774
750
|
|
|
775
751
|
--button-internal-line-height: max(calc(${q.fontSize} + 2px), ${q.iconSize});
|
|
776
752
|
--button-internal-color: ${q.color};
|
|
777
|
-
${(0,
|
|
778
|
-
${(0,
|
|
779
|
-
${(0,
|
|
753
|
+
${(0,w.setVariable)(le.size,q.iconSize)};
|
|
754
|
+
${(0,w.setVariable)(Q.color,q.rippleColor)};
|
|
755
|
+
${(0,w.setVariable)(Q.borderRadius,q.borderRadius)};
|
|
780
756
|
|
|
781
757
|
border-radius: ${q.borderRadius};
|
|
782
758
|
padding: ${q.verticalPadding} ${q.horizontalPadding};
|
|
783
759
|
background-color: ${q.backgroundColor};
|
|
784
760
|
color: var(--button-internal-color);
|
|
785
|
-
}
|
|
786
761
|
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
762
|
+
.ft-button--label {
|
|
763
|
+
position: relative;
|
|
764
|
+
overflow: hidden;
|
|
765
|
+
white-space: nowrap;
|
|
766
|
+
text-overflow: ellipsis;
|
|
767
|
+
display: block;
|
|
768
|
+
margin: 0 ${q.iconPadding};
|
|
769
|
+
${(0,w.setVariable)(Fe.fontSize,"1em")};
|
|
770
|
+
${(0,w.setVariable)(Fe.lineHeight,"var(--button-internal-line-height)")};
|
|
771
|
+
}
|
|
791
772
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
773
|
+
[part="icon"] {
|
|
774
|
+
flex-shrink: 0;
|
|
775
|
+
position: relative;
|
|
776
|
+
}
|
|
797
777
|
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
778
|
+
&:hover {
|
|
779
|
+
box-shadow: 0px 0px 0px transparent;
|
|
780
|
+
border: 0px solid transparent;
|
|
781
|
+
text-shadow: 0px 0px 0px transparent;
|
|
801
782
|
|
|
802
|
-
.ft-button:not([disabled]):hover {
|
|
803
|
-
cursor: pointer;
|
|
804
|
-
}
|
|
805
783
|
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
784
|
+
&:not([disabled]) {
|
|
785
|
+
cursor: pointer;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
809
788
|
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
789
|
+
&:active {
|
|
790
|
+
outline: none;
|
|
791
|
+
border: none;
|
|
792
|
+
}
|
|
813
793
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
}
|
|
794
|
+
&:focus {
|
|
795
|
+
outline: none;
|
|
796
|
+
}
|
|
818
797
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
}
|
|
798
|
+
&:focus-visible {
|
|
799
|
+
outline: 2px solid ${w.designSystemVariables.colorPrimary};
|
|
800
|
+
outline-offset: 2px;
|
|
801
|
+
}
|
|
824
802
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
text-overflow: ellipsis;
|
|
830
|
-
display: block;
|
|
831
|
-
margin: 0 ${q.iconPadding};
|
|
832
|
-
${(0,L.setVariable)(Fe.fontSize,"1em")};
|
|
833
|
-
${(0,L.setVariable)(Fe.lineHeight,"var(--button-internal-line-height)")};
|
|
834
|
-
}
|
|
803
|
+
&[disabled] {
|
|
804
|
+
filter: grayscale(1);
|
|
805
|
+
opacity: ${q.opacityDisabled};
|
|
806
|
+
}
|
|
835
807
|
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
808
|
+
&.ft-button--primary {
|
|
809
|
+
background-color: ${po.backgroundColor};
|
|
810
|
+
--button-internal-color: ${po.color};
|
|
811
|
+
${(0,w.setVariable)(Q.color,po.rippleColor)};
|
|
812
|
+
}
|
|
839
813
|
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
814
|
+
&.ft-button--outlined {
|
|
815
|
+
border: 1px solid var(--button-internal-color);
|
|
816
|
+
padding: calc(${q.verticalPadding} - 1px) calc(${q.horizontalPadding} - 1px);
|
|
817
|
+
}
|
|
843
818
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
819
|
+
&.ft-button--dense {
|
|
820
|
+
padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
|
|
821
|
+
border-radius: ${Ke.borderRadius};
|
|
822
|
+
${(0,w.setVariable)(Q.borderRadius,Ke.borderRadius)};
|
|
848
823
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
824
|
+
.ft-button--label {
|
|
825
|
+
margin: 0 ${Ke.iconPadding};
|
|
826
|
+
}
|
|
827
|
+
}
|
|
853
828
|
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
829
|
+
&.ft-button--dense.ft-button--outlined {
|
|
830
|
+
padding: calc(${Ke.verticalPadding} - 1px) calc(${Ke.horizontalPadding} - 1px);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
&.ft-button--round {
|
|
834
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${q.verticalPadding});
|
|
835
|
+
${(0,w.setVariable)(Q.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${q.verticalPadding})`)};
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
&.ft-button--round.ft-button--dense {
|
|
839
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding});
|
|
840
|
+
${(0,w.setVariable)(Q.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding})`)};
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
&.ft-button--no-text {
|
|
844
|
+
.ft-button--label {
|
|
845
|
+
margin: 0;
|
|
846
|
+
}
|
|
858
847
|
|
|
859
|
-
|
|
860
|
-
|
|
848
|
+
padding: ${q.verticalPadding};
|
|
849
|
+
|
|
850
|
+
&.ft-button--dense {
|
|
851
|
+
padding: ${Ke.verticalPadding};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
&.ft-button--outlined {
|
|
855
|
+
padding: calc(${q.verticalPadding} - 1px);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
&.ft-button--outlined.ft-button--dense {
|
|
859
|
+
padding: calc(${Ke.verticalPadding} - 1px);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
&:not(.ft-button--trailing-icon) [part="label"] {
|
|
864
|
+
order: 2;
|
|
865
|
+
}
|
|
861
866
|
}
|
|
862
867
|
|
|
863
868
|
ft-loader {
|
|
864
|
-
${(0,
|
|
865
|
-
${(0,
|
|
869
|
+
${(0,w.setVariable)(Ft.size,q.iconSize)};
|
|
870
|
+
${(0,w.setVariable)(Ft.color,"var(--button-internal-color)")};
|
|
866
871
|
}
|
|
867
|
-
`;var
|
|
872
|
+
`;var W=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},I=class t extends(0,Ze.toFtFormComponent)(Ze.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-button--no-text":!this.hasTextContent,"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",e=>{var i;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((i=this.form)===null||i===void 0||i.requestSubmit())})}render(){var e,i,r;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ze.isSafari},o=mt.html`
|
|
868
873
|
<ft-ripple part="ripple"
|
|
869
874
|
?disabled=${this.isDisabled()}
|
|
870
875
|
?activated=${this.activated}
|
|
871
876
|
></ft-ripple>
|
|
872
877
|
<ft-typography part="label"
|
|
873
|
-
variant="${
|
|
878
|
+
variant="${ge.button}"
|
|
874
879
|
element="span"
|
|
875
|
-
class="${(0,
|
|
880
|
+
class="${(0,tn.classMap)(n)}">
|
|
876
881
|
<slot></slot>
|
|
877
882
|
</ft-typography>
|
|
878
883
|
${this.resolveIcon()}
|
|
@@ -880,15 +885,15 @@
|
|
|
880
885
|
<a href="${s}"
|
|
881
886
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
882
887
|
part="button"
|
|
883
|
-
class="${(0,
|
|
884
|
-
aria-label="${pe((
|
|
888
|
+
class="${(0,tn.classMap)(this.buttonClasses)}"
|
|
889
|
+
aria-label="${pe((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
885
890
|
?disabled=${this.isDisabled()}>
|
|
886
891
|
${o}
|
|
887
892
|
</a>
|
|
888
893
|
`:mt.html`
|
|
889
894
|
<button part="button"
|
|
890
|
-
class="${(0,
|
|
891
|
-
aria-label="${pe((
|
|
895
|
+
class="${(0,tn.classMap)(this.buttonClasses)}"
|
|
896
|
+
aria-label="${pe((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
892
897
|
aria-haspopup="${pe(this.ariaHasPopup)}"
|
|
893
898
|
aria-pressed="${pe(this.ariaPressed)}"
|
|
894
899
|
?disabled=${this.isDisabled()}>
|
|
@@ -905,7 +910,7 @@
|
|
|
905
910
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
906
911
|
`:mt.html`
|
|
907
912
|
<slot part="icon" name="icon"></slot>
|
|
908
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,
|
|
913
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":V,"ft-tooltip":oe,"ft-icon":X,"ft-loader":Vt,"ft-typography":ne};I.styles=[Ze.safariEllipsisFix,Ac,Ze.noTextSelect];I.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:I.labelsObserver.unobserve(e.target)}});W([(0,z.property)({type:Boolean})],I.prototype,"primary",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"outlined",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"dense",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"round",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"disabled",void 0);W([(0,z.property)()],I.prototype,"icon",void 0);W([(0,z.property)()],I.prototype,"iconVariant",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);W([(0,z.property)()],I.prototype,"label",void 0);W([(0,z.property)()],I.prototype,"type",void 0);W([(0,z.property)()],I.prototype,"href",void 0);W([(0,z.property)()],I.prototype,"target",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"loading",void 0);W([(0,z.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0);W([(0,z.property)()],I.prototype,"ariaHasPopup",void 0);W([(0,z.property)({attribute:"aria-pressed"})],I.prototype,"ariaPressed",void 0);W([(0,z.property)()],I.prototype,"tooltipPosition",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);W([(0,z.property)({type:Boolean})],I.prototype,"activated",void 0);W([(0,z.query)(".ft-button")],I.prototype,"button",void 0);W([(0,z.query)(".ft-button--label")],I.prototype,"labelContainer",void 0);W([(0,z.state)()],I.prototype,"hasTextContent",void 0);W([(0,z.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);W([(0,z.query)("[part=tooltip]")],I.prototype,"tooltip",void 0);var Cc=f(E());var _c={"ft-button":I};(0,Cc.customElements)(_c);var Ht=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},fo=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},ho=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},xe=class extends wc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Bt.html`
|
|
909
914
|
<div class="${(0,Tc.classMap)(e)}">
|
|
910
915
|
<div
|
|
911
916
|
class="ft-text-field-suggestion--suggestion"
|
|
@@ -914,18 +919,18 @@
|
|
|
914
919
|
@click=${this.selectSuggestion}
|
|
915
920
|
>
|
|
916
921
|
<ft-ripple></ft-ripple>
|
|
917
|
-
${this.helper?
|
|
922
|
+
${this.helper?Bt.html`
|
|
918
923
|
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
919
924
|
${this.helper}
|
|
920
|
-
</ft-typography>`:
|
|
925
|
+
</ft-typography>`:Bt.nothing}
|
|
921
926
|
<ft-typography part="label"
|
|
922
|
-
variant="${
|
|
927
|
+
variant="${ge.body1}"
|
|
923
928
|
class="ft-text-field-suggestion--label">
|
|
924
929
|
<slot></slot>
|
|
925
930
|
</ft-typography>
|
|
926
931
|
</div>
|
|
927
|
-
${this.removable?
|
|
928
|
-
<ft-button icon="${
|
|
932
|
+
${this.removable?Bt.html`
|
|
933
|
+
<ft-button icon="${et.CLOSE}"
|
|
929
934
|
part="remove-button"
|
|
930
935
|
class="ft-text-field-suggestion--remove"
|
|
931
936
|
round
|
|
@@ -935,10 +940,10 @@
|
|
|
935
940
|
@keydown=${this.removeButtonKeyDown}
|
|
936
941
|
@click=${this.removeSuggestion}>
|
|
937
942
|
</ft-button>
|
|
938
|
-
`:
|
|
943
|
+
`:Bt.nothing}
|
|
939
944
|
</div>
|
|
940
|
-
`}focus(e,
|
|
941
|
-
<div class="${(0,Rc.classMap)(
|
|
945
|
+
`}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new fo(this.getValue()))}removeSuggestion(){this.dispatchEvent(new ho(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};xe.elementDefinitions={"ft-ripple":V,"ft-typography":ne,"ft-icon":X,"ft-button":I};xe.styles=Os;Ht([(0,Je.property)()],xe.prototype,"value",void 0);Ht([(0,Je.property)()],xe.prototype,"helper",void 0);Ht([(0,Je.property)({type:Boolean})],xe.prototype,"removable",void 0);Ht([(0,Je.property)()],xe.prototype,"removeButtonLabel",void 0);Ht([(0,Je.query)(".ft-text-field-suggestion--suggestion")],xe.prototype,"suggestion",void 0);Ht([(0,Je.query)(".ft-text-field-suggestion--remove")],xe.prototype,"removeButton",void 0);Ht([(0,Je.queryAssignedNodes)()],xe.prototype,"assignedNodes",void 0);var M=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},T=class extends(0,ve.toFtFormComponent)(ve.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=et.EYE_SLASH,this.passwordRevealedIcon=et.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let i=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",i)}focusWithoutSuggestions(){this.showSuggestionsOnFocus=!1,this.focus(),this.showSuggestionsOnFocus=!0}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let i={"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()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return Z.html`
|
|
946
|
+
<div class="${(0,Rc.classMap)(i)}">
|
|
942
947
|
<div class="ft-text-field--main-panel"
|
|
943
948
|
@keydown=${this.handleKeyboardNavigation}
|
|
944
949
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -948,14 +953,14 @@
|
|
|
948
953
|
?raised=${this.focused||this.value!=""}
|
|
949
954
|
?error=${!this.inputValid||this.error}></ft-input-label>
|
|
950
955
|
<div class="ft-text-field--input-panel">
|
|
951
|
-
${this.outlined?
|
|
956
|
+
${this.outlined?Z.nothing:Z.html`
|
|
952
957
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
953
958
|
`}
|
|
954
|
-
${this.prefix?
|
|
959
|
+
${this.prefix?Z.html`
|
|
955
960
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
956
961
|
${this.prefix}
|
|
957
962
|
</ft-typography>
|
|
958
|
-
`:
|
|
963
|
+
`:Z.nothing}
|
|
959
964
|
<input type="${this.resolveInputType()}"
|
|
960
965
|
name="${pe(this.name)}"
|
|
961
966
|
maxlength="${pe(this.maxLength||void 0)}"
|
|
@@ -980,48 +985,48 @@
|
|
|
980
985
|
@suggestion-removed=${this.onSuggestionRemoved}
|
|
981
986
|
>
|
|
982
987
|
${this.renderSuggestions()}
|
|
983
|
-
${!this.hideCurrentValueSuggestion&&o?
|
|
988
|
+
${!this.hideCurrentValueSuggestion&&o?Z.html`
|
|
984
989
|
<ft-text-field-suggestion
|
|
985
990
|
class="ft-text-field-suggestion--new-value"
|
|
986
991
|
part="suggestion current-value-suggestion"
|
|
987
992
|
helper="${this.suggestionsHelper}">
|
|
988
993
|
${this.value}
|
|
989
994
|
</ft-text-field-suggestion>
|
|
990
|
-
`:
|
|
995
|
+
`:Z.nothing}
|
|
991
996
|
</div>
|
|
992
997
|
</div>
|
|
993
|
-
${s?
|
|
994
|
-
<ft-typography class="ft-text-field--helper-text" variant="${
|
|
998
|
+
${s?Z.html`
|
|
999
|
+
<ft-typography class="ft-text-field--helper-text" variant="${ge.caption}" id="helper" role="alert">
|
|
995
1000
|
${s}
|
|
996
1001
|
</ft-typography>
|
|
997
|
-
`:
|
|
1002
|
+
`:Z.nothing}
|
|
998
1003
|
</div>
|
|
999
|
-
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?
|
|
1000
|
-
${(0,Oc.repeat)(this.providedSuggestions,e=>{var r
|
|
1004
|
+
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?Z.html`
|
|
1005
|
+
${(0,Oc.repeat)(this.providedSuggestions,e=>{var i,r;return Z.html`
|
|
1001
1006
|
<ft-text-field-suggestion part="suggestion"
|
|
1002
1007
|
value="${e.value}"
|
|
1003
1008
|
?removable=${e.removable} }
|
|
1004
|
-
removeButtonLabel="${(
|
|
1005
|
-
@suggestion-selected=${(
|
|
1009
|
+
removeButtonLabel="${(i=e.removeButtonLabel)!==null&&i!==void 0?i:Z.nothing}"
|
|
1010
|
+
@suggestion-selected=${(r=e.selectedHandler)!==null&&r!==void 0?r:Z.nothing}
|
|
1006
1011
|
>
|
|
1007
|
-
${e.icon?
|
|
1008
|
-
<ft-icon .value=${e.icon}></ft-icon>`:
|
|
1012
|
+
${e.icon?Z.html`
|
|
1013
|
+
<ft-icon .value=${e.icon}></ft-icon>`:Z.nothing}
|
|
1009
1014
|
${e.label}
|
|
1010
1015
|
</ft-text-field-suggestion>
|
|
1011
1016
|
`})}
|
|
1012
|
-
`:
|
|
1017
|
+
`:Z.html`
|
|
1013
1018
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1014
|
-
`}renderPasswordIcon(){return
|
|
1019
|
+
`}renderPasswordIcon(){return Z.html`
|
|
1015
1020
|
<ft-icon class="ft-text-field--icon"
|
|
1016
1021
|
.variant=${this.iconVariant}
|
|
1017
1022
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1018
1023
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1019
|
-
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?
|
|
1024
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?Z.html`
|
|
1020
1025
|
<ft-icon class="ft-text-field--icon"
|
|
1021
1026
|
.variant=${this.iconVariant}
|
|
1022
1027
|
.value=${this.icon}
|
|
1023
1028
|
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1024
|
-
`:
|
|
1029
|
+
`:Z.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,ve.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.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(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Yi(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Xi(e))):this.dispatchEvent(new Zi(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){this.setValue(e.detail,!0),this.focusWithoutSuggestions(),this.hideSuggestions=!0}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.showSuggestionsOnFocus&&(this.hideSuggestions=!1)}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.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 e=["bottom","top"];(0,ve.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};T.elementDefinitions={"ft-input-label":Te,"ft-ripple":V,"ft-typography":ne,"ft-icon":X,"ft-text-field-suggestion":xe};T.styles=[qt,ve.noTextInputDefaultClearButton,os];M([(0,k.property)()],T.prototype,"label",void 0);M([(0,k.property)({noAccessor:!0})],T.prototype,"value",null);M([(0,k.state)()],T.prototype,"dispatchedValue",void 0);M([(0,k.property)()],T.prototype,"helper",void 0);M([(0,k.property)()],T.prototype,"suggestionsHelper",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"outlined",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"disabled",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"error",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"fixedMenuPosition",void 0);M([(0,k.property)()],T.prototype,"prefix",void 0);M([(0,k.property)()],T.prototype,"icon",void 0);M([(0,k.property)()],T.prototype,"name",void 0);M([(0,k.property)()],T.prototype,"type",void 0);M([(0,k.property)()],T.prototype,"passwordHiddenIcon",void 0);M([(0,k.property)()],T.prototype,"passwordRevealedIcon",void 0);M([(0,k.property)()],T.prototype,"iconVariant",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"filterSuggestions",void 0);M([(0,ve.numberProperty)()],T.prototype,"maxLength",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"password",void 0);M([(0,k.property)({type:String})],T.prototype,"autocomplete",void 0);M([(0,k.property)({attribute:!1})],T.prototype,"suggestionsProvider",void 0);M([(0,k.property)({type:Boolean})],T.prototype,"hideCurrentValueSuggestion",void 0);M([(0,k.state)()],T.prototype,"focused",void 0);M([(0,k.state)()],T.prototype,"inputValid",void 0);M([(0,k.state)()],T.prototype,"hidePassword",void 0);M([(0,k.state)()],T.prototype,"hideSuggestions",void 0);M([(0,k.state)()],T.prototype,"visibleSuggestions",void 0);M([(0,k.state)()],T.prototype,"providedSuggestions",void 0);M([(0,k.query)(".ft-text-field--main-panel")],T.prototype,"mainPanel",void 0);M([(0,k.query)(".ft-text-field--input")],T.prototype,"input",void 0);M([(0,k.query)(".ft-text-field-suggestion--new-value")],T.prototype,"newValueSuggestion",void 0);M([(0,k.query)(".ft-text-field--suggestions")],T.prototype,"suggestionsContainer",void 0);M([(0,k.queryAll)("ft-text-field-suggestion")],T.prototype,"providedSuggestionsInDom",void 0);M([(0,k.queryAssignedElements)({selector:"ft-text-field-suggestion"})],T.prototype,"slottedSuggestions",void 0);M([(0,ve.ignoreComposingEvents)()],T.prototype,"handleInput",null);M([(0,ve.ignoreComposingEvents)()],T.prototype,"catchComposingEvents",null);var Pc=f(E());var Lc={"ft-text-field":T,"ft-text-field-suggestion":xe};(0,Pc.customElements)(Lc);var O={...C,chipGap:he.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",he.foundation.spacing1),chipsMarginTop:he.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",he.foundation.spacing2),suggestSize:he.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},kc=Dc.css`
|
|
1025
1030
|
*:focus {
|
|
1026
1031
|
outline: none;
|
|
1027
1032
|
}
|
|
@@ -1031,15 +1036,15 @@
|
|
|
1031
1036
|
flex-direction: column;
|
|
1032
1037
|
align-items: stretch;
|
|
1033
1038
|
position: relative;
|
|
1034
|
-
--combobox-internal-suggest-size: ${
|
|
1039
|
+
--combobox-internal-suggest-size: ${O.suggestSize};
|
|
1035
1040
|
}
|
|
1036
1041
|
|
|
1037
1042
|
ft-input-label {
|
|
1038
|
-
${(0,he.setVariable)(
|
|
1039
|
-
${(0,he.setVariable)(
|
|
1040
|
-
${(0,he.setVariable)(
|
|
1041
|
-
${(0,he.setVariable)(
|
|
1042
|
-
${(0,he.setVariable)(
|
|
1043
|
+
${(0,he.setVariable)(L.fontSize,O.fontSize)};
|
|
1044
|
+
${(0,he.setVariable)(L.raisedFontSize,O.labelSize)};
|
|
1045
|
+
${(0,he.setVariable)(L.verticalSpacing,O.verticalSpacing)};
|
|
1046
|
+
${(0,he.setVariable)(L.horizontalSpacing,O.horizontalSpacing)};
|
|
1047
|
+
${(0,he.setVariable)(L.backgroundColor,O.backgroundColor)};
|
|
1043
1048
|
}
|
|
1044
1049
|
|
|
1045
1050
|
/* Ensure the floating label renders above input content and doesn't intercept events */
|
|
@@ -1051,7 +1056,7 @@
|
|
|
1051
1056
|
.ft-combobox--main-panel {
|
|
1052
1057
|
position: relative;
|
|
1053
1058
|
display: flex;
|
|
1054
|
-
height: calc(4 * ${
|
|
1059
|
+
height: calc(4 * ${O.verticalSpacing} + ${O.labelSize} + ${O.fontSize});
|
|
1055
1060
|
}
|
|
1056
1061
|
|
|
1057
1062
|
.ft-combobox--input-panel {
|
|
@@ -1060,32 +1065,32 @@
|
|
|
1060
1065
|
display: flex;
|
|
1061
1066
|
align-items: center;
|
|
1062
1067
|
overflow: hidden;
|
|
1063
|
-
padding: 0 ${
|
|
1068
|
+
padding: 0 ${O.horizontalSpacing};
|
|
1064
1069
|
}
|
|
1065
1070
|
|
|
1066
1071
|
.ft-combobox--outlined .ft-combobox--input-panel {
|
|
1067
|
-
border-radius: ${
|
|
1072
|
+
border-radius: ${O.borderRadiusS};
|
|
1068
1073
|
}
|
|
1069
1074
|
|
|
1070
1075
|
.ft-combobox--filled .ft-combobox--input-panel {
|
|
1071
|
-
border-radius: ${
|
|
1076
|
+
border-radius: ${O.borderRadiusS} ${O.borderRadiusS} 0 0;
|
|
1072
1077
|
}
|
|
1073
1078
|
|
|
1074
1079
|
/* Match text-field filled layout when there is a label: input aligns to bottom and container has bottom padding */
|
|
1075
1080
|
.ft-combobox--filled.ft-combobox--with-label .ft-combobox--input-panel {
|
|
1076
1081
|
align-items: flex-end;
|
|
1077
|
-
padding: 0 ${
|
|
1082
|
+
padding: 0 ${O.horizontalSpacing} ${O.verticalSpacing} ${O.horizontalSpacing};
|
|
1078
1083
|
}
|
|
1079
1084
|
|
|
1080
1085
|
/* Focus color on label when interacting */
|
|
1081
1086
|
.ft-combobox:not(.ft-combobox--disabled):focus-within ft-input-label {
|
|
1082
|
-
${(0,he.setVariable)(
|
|
1083
|
-
${(0,he.setVariable)(
|
|
1087
|
+
${(0,he.setVariable)(L.borderColor,O.colorPrimary)};
|
|
1088
|
+
${(0,he.setVariable)(L.textColor,O.colorPrimary)};
|
|
1084
1089
|
}
|
|
1085
1090
|
|
|
1086
1091
|
.ft-combobox--in-error .ft-combobox--input,
|
|
1087
1092
|
.ft-combobox--in-error .ft-combobox--helper-text {
|
|
1088
|
-
color: ${
|
|
1093
|
+
color: ${C.colorError};
|
|
1089
1094
|
}
|
|
1090
1095
|
|
|
1091
1096
|
.ft-combobox--input {
|
|
@@ -1094,26 +1099,26 @@
|
|
|
1094
1099
|
flex-grow: 1;
|
|
1095
1100
|
flex-shrink: 1;
|
|
1096
1101
|
min-width: 0;
|
|
1097
|
-
font-size: ${
|
|
1098
|
-
color: ${
|
|
1099
|
-
padding: calc(2 * ${
|
|
1102
|
+
font-size: ${O.fontSize};
|
|
1103
|
+
color: ${O.colorOnSurface};
|
|
1104
|
+
padding: calc(2 * ${O.verticalSpacing}) 0;
|
|
1100
1105
|
border: none;
|
|
1101
1106
|
background: none;
|
|
1102
1107
|
}
|
|
1103
1108
|
|
|
1104
1109
|
.ft-combobox--with-label.ft-combobox--filled .ft-combobox--input {
|
|
1105
1110
|
padding-bottom: 0;
|
|
1106
|
-
padding-top: calc(${
|
|
1111
|
+
padding-top: calc(${O.labelSize} + 2 * ${O.verticalSpacing});
|
|
1107
1112
|
}
|
|
1108
1113
|
|
|
1109
1114
|
.ft-combobox--disabled .ft-combobox--input {
|
|
1110
|
-
color: ${
|
|
1115
|
+
color: ${O.colorOnSurfaceDisabled};
|
|
1111
1116
|
cursor: not-allowed;
|
|
1112
1117
|
}
|
|
1113
1118
|
|
|
1114
1119
|
.ft-combobox--helper-text {
|
|
1115
|
-
padding: 0 12px 0 ${
|
|
1116
|
-
color: ${
|
|
1120
|
+
padding: 0 12px 0 ${O.horizontalSpacing};
|
|
1121
|
+
color: ${O.helperColor};
|
|
1117
1122
|
}
|
|
1118
1123
|
|
|
1119
1124
|
.ft-combobox--listbox {
|
|
@@ -1125,16 +1130,16 @@
|
|
|
1125
1130
|
left: -1px;
|
|
1126
1131
|
right: -1px;
|
|
1127
1132
|
list-style: none;
|
|
1128
|
-
z-index: ${
|
|
1129
|
-
background: ${
|
|
1130
|
-
border: 1px solid ${
|
|
1131
|
-
border-radius: 0 0 ${
|
|
1132
|
-
box-shadow: ${
|
|
1133
|
+
z-index: ${O.floatingZIndex};
|
|
1134
|
+
background: ${O.backgroundColor};
|
|
1135
|
+
border: 1px solid ${O.colorOutline};
|
|
1136
|
+
border-radius: 0 0 ${O.borderRadiusS} ${O.borderRadiusS};
|
|
1137
|
+
box-shadow: ${O.elevation02};
|
|
1133
1138
|
outline: none;
|
|
1134
|
-
max-height: ${
|
|
1139
|
+
max-height: ${O.suggestSize};
|
|
1135
1140
|
overflow-y: auto;
|
|
1136
1141
|
overflow-x: hidden;
|
|
1137
|
-
font-size: ${
|
|
1142
|
+
font-size: ${O.fontSize};
|
|
1138
1143
|
cursor: pointer;
|
|
1139
1144
|
}
|
|
1140
1145
|
|
|
@@ -1147,12 +1152,12 @@
|
|
|
1147
1152
|
display: block;
|
|
1148
1153
|
padding: 0; /* Inner suggestion container handles padding */
|
|
1149
1154
|
cursor: pointer;
|
|
1150
|
-
color: ${
|
|
1155
|
+
color: ${O.colorOnSurface};
|
|
1151
1156
|
}
|
|
1152
1157
|
|
|
1153
1158
|
.ft-combobox-suggestion {
|
|
1154
1159
|
position: relative;
|
|
1155
|
-
padding: 8px ${
|
|
1160
|
+
padding: 8px ${O.horizontalSpacing};
|
|
1156
1161
|
cursor: pointer;
|
|
1157
1162
|
min-height: 44px;
|
|
1158
1163
|
box-sizing: border-box;
|
|
@@ -1178,7 +1183,7 @@
|
|
|
1178
1183
|
}
|
|
1179
1184
|
|
|
1180
1185
|
.ft-combobox-suggestion--helper-text {
|
|
1181
|
-
color: ${
|
|
1186
|
+
color: ${O.helperColor};
|
|
1182
1187
|
}
|
|
1183
1188
|
|
|
1184
1189
|
.ft-combobox--option[data-active="true"] .ft-combobox-suggestion,
|
|
@@ -1187,30 +1192,30 @@
|
|
|
1187
1192
|
}
|
|
1188
1193
|
|
|
1189
1194
|
.ft-combobox--option-new-value {
|
|
1190
|
-
border-top: 1px solid ${
|
|
1195
|
+
border-top: 1px solid ${O.colorOutline};
|
|
1191
1196
|
}
|
|
1192
1197
|
|
|
1193
1198
|
.ft-combobox--icon {
|
|
1194
1199
|
align-self: center;
|
|
1195
1200
|
margin-left: 8px;
|
|
1196
|
-
color: ${
|
|
1201
|
+
color: ${O.iconColor};
|
|
1197
1202
|
}
|
|
1198
1203
|
|
|
1199
1204
|
.ft-combobox--with-icon {
|
|
1200
|
-
${(0,he.setVariable)(
|
|
1205
|
+
${(0,he.setVariable)(L.labelMaxWidth,`calc(100% - ${le.size} - ${O.horizontalSpacing})`)};
|
|
1201
1206
|
}
|
|
1202
1207
|
|
|
1203
1208
|
.ft-combobox--chips-container {
|
|
1204
1209
|
display: flex;
|
|
1205
1210
|
flex-wrap: wrap;
|
|
1206
|
-
gap: ${
|
|
1207
|
-
margin-top: ${
|
|
1211
|
+
gap: ${O.chipGap};
|
|
1212
|
+
margin-top: ${O.chipsMarginTop};
|
|
1208
1213
|
}
|
|
1209
1214
|
|
|
1210
1215
|
.ft-combobox--chips-container ft-chip {
|
|
1211
1216
|
flex-shrink: 0;
|
|
1212
1217
|
}
|
|
1213
|
-
`;var
|
|
1218
|
+
`;var zt=f(j()),ae=f(re()),Uc=f(ot()),ui=f(E());var zi=f(j()),D=f(E());var Nc=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),Ce={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:Nc,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Nc),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ic=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),mo={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Ic,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ic)},Mc={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},$c=[D.noTextSelect,zi.css`
|
|
1214
1219
|
:host {
|
|
1215
1220
|
display: inline-block;
|
|
1216
1221
|
max-width: 100%;
|
|
@@ -1229,7 +1234,7 @@
|
|
|
1229
1234
|
--chip-internal-font-size: ${Ce.fontSize};
|
|
1230
1235
|
--chip-internal-font-weight: ${Ce.fontWeight};
|
|
1231
1236
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1232
|
-
${(0,
|
|
1237
|
+
${(0,D.setVariable)(le.size,Ce.iconSize)};
|
|
1233
1238
|
--chip-internal-vertical-padding: ${Ce.verticalPadding};
|
|
1234
1239
|
--chip-internal-horizontal-padding: ${Ce.horizontalPadding};
|
|
1235
1240
|
--chip-internal-icon-padding: 3px;
|
|
@@ -1237,8 +1242,8 @@
|
|
|
1237
1242
|
|
|
1238
1243
|
border: 1px solid ${Ce.borderColor};
|
|
1239
1244
|
color: ${Ce.color};
|
|
1240
|
-
${(0,
|
|
1241
|
-
border-radius: var(${(0,
|
|
1245
|
+
${(0,D.setVariable)(Q.color,Ce.rippleColor)};
|
|
1246
|
+
border-radius: var(${(0,zi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1242
1247
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1243
1248
|
background-color: ${Ce.backgroundColor};
|
|
1244
1249
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1256,7 +1261,7 @@
|
|
|
1256
1261
|
}
|
|
1257
1262
|
|
|
1258
1263
|
.ft-chip--no-content {
|
|
1259
|
-
--chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(
|
|
1264
|
+
--chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(zi.css`var(--chip-internal-vertical-padding)`)};
|
|
1260
1265
|
}
|
|
1261
1266
|
|
|
1262
1267
|
.ft-chip--disabled {
|
|
@@ -1269,9 +1274,9 @@
|
|
|
1269
1274
|
.ft-chip--highlighted {
|
|
1270
1275
|
border: none;
|
|
1271
1276
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1272
|
-
background-color: ${
|
|
1273
|
-
${(0,
|
|
1274
|
-
color: ${
|
|
1277
|
+
background-color: ${mo.backgroundColor};
|
|
1278
|
+
${(0,D.setVariable)(Q.color,mo.rippleColor)};
|
|
1279
|
+
color: ${mo.color};
|
|
1275
1280
|
}
|
|
1276
1281
|
|
|
1277
1282
|
.ft-chip--clickable {
|
|
@@ -1280,7 +1285,7 @@
|
|
|
1280
1285
|
}
|
|
1281
1286
|
|
|
1282
1287
|
.ft-chip:focus {
|
|
1283
|
-
outline: 2px solid ${
|
|
1288
|
+
outline: 2px solid ${D.designSystemVariables.colorPrimary};
|
|
1284
1289
|
outline-offset: 2px;
|
|
1285
1290
|
}
|
|
1286
1291
|
|
|
@@ -1302,9 +1307,9 @@
|
|
|
1302
1307
|
}
|
|
1303
1308
|
|
|
1304
1309
|
.ft-chip--icon-button {
|
|
1305
|
-
${(0,
|
|
1306
|
-
${(0,
|
|
1307
|
-
${(0,
|
|
1310
|
+
${(0,D.setVariable)(q.iconSize,Ce.iconSize)};
|
|
1311
|
+
${(0,D.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1312
|
+
${(0,D.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1308
1313
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1309
1314
|
}
|
|
1310
1315
|
|
|
@@ -1312,9 +1317,9 @@
|
|
|
1312
1317
|
vertical-align: bottom;
|
|
1313
1318
|
display: block;
|
|
1314
1319
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1315
|
-
${(0,
|
|
1316
|
-
${(0,
|
|
1317
|
-
${(0,
|
|
1320
|
+
${(0,D.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
|
|
1321
|
+
${(0,D.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1322
|
+
${(0,D.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
|
|
1318
1323
|
}
|
|
1319
1324
|
|
|
1320
1325
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1350,19 +1355,20 @@
|
|
|
1350
1355
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1351
1356
|
order: -1;
|
|
1352
1357
|
}
|
|
1353
|
-
`];var
|
|
1354
|
-
<div class="${(0,Uc.classMap)(
|
|
1355
|
-
aria-label="${this.getLabel()}"
|
|
1358
|
+
`];var me=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},rn=class extends CustomEvent{constructor(){super("icon-click")}},Y=class extends ui.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let i={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ui.isSafari};return zt.html`
|
|
1359
|
+
<div class="${(0,Uc.classMap)(i)}"
|
|
1360
|
+
aria-label="${this.labelOnIconOnly?zt.nothing:this.getLabel()}"
|
|
1356
1361
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1357
1362
|
@keyup=${this.onKeyUp}
|
|
1358
1363
|
part="chip">
|
|
1359
1364
|
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
1360
|
-
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
1365
|
+
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
1366
|
+
aria-hidden="${this.labelOnIconOnly?"true":zt.nothing}">
|
|
1361
1367
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1362
1368
|
</ft-typography>
|
|
1363
1369
|
${this.internalIcon?this.renderIcon():null}
|
|
1364
1370
|
</div>
|
|
1365
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1371
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?zt.html`
|
|
1366
1372
|
<ft-button round
|
|
1367
1373
|
class="ft-chip--icon-button"
|
|
1368
1374
|
@click=${this.onIconClick}
|
|
@@ -1373,12 +1379,12 @@
|
|
|
1373
1379
|
part="icon-button"
|
|
1374
1380
|
?hideTooltip=${this.hideIconTooltip}
|
|
1375
1381
|
></ft-button>
|
|
1376
|
-
`:
|
|
1382
|
+
`:zt.html`
|
|
1377
1383
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1378
1384
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1379
1385
|
</div>
|
|
1380
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1381
|
-
<div class="${(0,
|
|
1386
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new rn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new rn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ui.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":V,"ft-typography":ne,"ft-icon":X,"ft-button":I};Y.styles=$c;me([(0,ae.property)({type:Boolean})],Y.prototype,"highlighted",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"removable",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"disabled",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"clickable",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"dense",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"multiLine",void 0);me([(0,ae.property)()],Y.prototype,"label",void 0);me([(0,ae.property)()],Y.prototype,"iconLabel",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"accessibleLabelOnIcon",void 0);me([(0,ae.property)()],Y.prototype,"icon",void 0);me([(0,ae.property)()],Y.prototype,"iconVariant",void 0);me([(0,ae.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);me([(0,ae.property)()],Y.prototype,"typographyVariant",void 0);me([(0,ae.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var Vc=f(E());var Fc={"ft-chip":Y};(0,Vc.customElements)(Fc);var jt=Zr.build("ftCombobox"),Bc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var $=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},N=class extends Xr(Pe.FtLitElement){get value(){return this._value||""}set value(e){let i=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",i)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=async()=>{let e=this.input.value,i=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&i&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",await this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var i;e.kind==="new"?this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(jt,Bc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Pe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},i={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return Se.html`
|
|
1387
|
+
<div class="${(0,nn.classMap)(e)}">
|
|
1382
1388
|
<div class="ft-combobox--main-panel"
|
|
1383
1389
|
@focusout=${this.onComboboxBlur}>
|
|
1384
1390
|
<ft-input-label
|
|
@@ -1421,16 +1427,16 @@
|
|
|
1421
1427
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
1422
1428
|
${this.ariaLiveMessage||this.renderLiveText()}
|
|
1423
1429
|
</div>
|
|
1424
|
-
${
|
|
1430
|
+
${gi(this.visibleSuggestions.length>0,()=>Se.html`
|
|
1425
1431
|
<ul
|
|
1426
1432
|
id="combobox-listbox"
|
|
1427
|
-
class="${(0,
|
|
1433
|
+
class="${(0,nn.classMap)(i)}"
|
|
1428
1434
|
role="listbox"
|
|
1429
1435
|
aria-multiselectable="${pe(this.multiValued)}"
|
|
1430
1436
|
aria-label="${this.label||"Options"}"
|
|
1431
1437
|
data-visible="${this.isOpen}"
|
|
1432
1438
|
>
|
|
1433
|
-
${(0,
|
|
1439
|
+
${(0,go.repeat)(this.visibleSuggestions,r=>r.id,(r,n)=>this.renderSuggestion(r,n))}
|
|
1434
1440
|
</ul>`)}
|
|
1435
1441
|
|
|
1436
1442
|
</div>
|
|
@@ -1439,16 +1445,16 @@
|
|
|
1439
1445
|
${this.helper}
|
|
1440
1446
|
</ft-typography>
|
|
1441
1447
|
`:Se.nothing}
|
|
1442
|
-
${
|
|
1448
|
+
${gi(this.multiValued&&this.labels.length>0,()=>Se.html`
|
|
1443
1449
|
<div class="ft-combobox--chips-container" role="group" aria-label="Selected values">
|
|
1444
|
-
${(0,
|
|
1450
|
+
${(0,go.repeat)(this.labels,r=>r,r=>Se.html`
|
|
1445
1451
|
<ft-chip removable
|
|
1446
1452
|
dense
|
|
1447
1453
|
hideIconTooltip
|
|
1448
|
-
label="${
|
|
1449
|
-
iconLabel="${jt.messages.removeValueLabel(
|
|
1450
|
-
@icon-click=${()=>this.removeFromSelection(
|
|
1451
|
-
${
|
|
1454
|
+
label="${r}"
|
|
1455
|
+
iconLabel="${jt.messages.removeValueLabel(r)}"
|
|
1456
|
+
@icon-click=${()=>this.removeFromSelection(r)}>
|
|
1457
|
+
${r}
|
|
1452
1458
|
</ft-chip>
|
|
1453
1459
|
`)}
|
|
1454
1460
|
</div>
|
|
@@ -1458,10 +1464,10 @@
|
|
|
1458
1464
|
<ft-icon class="ft-combobox--icon"
|
|
1459
1465
|
.variant=${this.iconVariant}
|
|
1460
1466
|
.value=${this.icon}
|
|
1461
|
-
@click=${()=>{var e,
|
|
1462
|
-
`:Se.nothing}renderSuggestion(e,
|
|
1467
|
+
@click=${()=>{var e,i;(e=this.input)===null||e===void 0||e.click(),(i=this.input)===null||i===void 0||i.focus()}}></ft-icon>
|
|
1468
|
+
`:Se.nothing}renderSuggestion(e,i){let r=e.kind==="new"&&!!this.suggestionsHelper,n=this.multiValued&&this.labels.includes(e.label),o=i===this.activeIndex,s={"ft-combobox-suggestion":!0,"ft-combobox-suggestion--with-helper":r};return Se.html`
|
|
1463
1469
|
<li
|
|
1464
|
-
id="${e.kind==="new"?"suggestion-new-value":`option-${
|
|
1470
|
+
id="${e.kind==="new"?"suggestion-new-value":`option-${i}`}"
|
|
1465
1471
|
class="ft-combobox--option ${e.kind==="new"?"ft-combobox--option-new-value":""}"
|
|
1466
1472
|
role="option"
|
|
1467
1473
|
aria-selected="${this.multiValued?n:o}"
|
|
@@ -1470,20 +1476,20 @@
|
|
|
1470
1476
|
@pointerdown=${a=>a.preventDefault()}
|
|
1471
1477
|
@click=${()=>this.onSuggestionClick(e)}
|
|
1472
1478
|
>
|
|
1473
|
-
<div class="${(0,
|
|
1479
|
+
<div class="${(0,nn.classMap)(s)}" tabindex="-1">
|
|
1474
1480
|
<ft-ripple ?primary=${n} ?activated=${n}></ft-ripple>
|
|
1475
|
-
${
|
|
1481
|
+
${r?Se.html`
|
|
1476
1482
|
<ft-typography aria-label="${this.suggestionsHelper}," class="ft-combobox-suggestion--helper-text"
|
|
1477
|
-
variant="${
|
|
1483
|
+
variant="${ge.caption}">
|
|
1478
1484
|
${this.suggestionsHelper}
|
|
1479
1485
|
</ft-typography>
|
|
1480
1486
|
`:Se.nothing}
|
|
1481
|
-
<ft-typography part="label" variant="${
|
|
1487
|
+
<ft-typography part="label" variant="${ge.body1}" class="ft-combobox-suggestion--label">
|
|
1482
1488
|
${e.label}
|
|
1483
1489
|
</ft-typography>
|
|
1484
1490
|
</div>
|
|
1485
1491
|
</li>
|
|
1486
|
-
`}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let
|
|
1492
|
+
`}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",r=this.multiValued&&this.labels.includes(i);return i!==""&&!this.providedSuggestions.some(n=>n.label===i)&&!r&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?jt.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let i=(this.filterSuggestions?this.providedSuggestions.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((r,n)=>({id:`regular-${n}`,label:r.label,kind:"regular"}));this.visibleSuggestions=[...i,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,i=!1){var r,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(i){let a=s.kind==="new"?((r=this.input)===null||r===void 0?void 0:r.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var i,r;let n;this.isNewValueSuggestionSelected()?n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector("#option-new-value"):n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,i;let r=(i=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:this._value;this.dispatchEvent(new CustomEvent("change",{detail:r,bubbles:!0,composed:!0}))}addToSelection(e){var i,r;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=jt.messages.maxValuesReached((i=this.maxValues)!==null&&i!==void 0?i:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(r=a?.value)!==null&&r!==void 0?r:e),this.ariaLiveMessage=jt.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(i=>i!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=jt.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(i=>{var r;return(r=this.labelsToValues.get(i))!==null&&r!==void 0?r:i});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,i;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((i=this.input)===null||i===void 0?void 0:i.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let r=this.activeIndex<i-1?this.activeIndex+1:0;this.setActiveSuggestion(r)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0))if(this.listboxHasVisualFocus){let r=this.activeIndex>0?this.activeIndex-1:i-1;this.setActiveSuggestion(r)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(i-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let i=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),i=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),i=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),i=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),i=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),i=!0;break;case"End":{this.moveCaretToEnd(),i=!0;break}}i&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let i=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),i=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":i=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),i=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}i&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};N.styles=[qt,Pe.screenReaderStyles,kc];N.elementDefinitions={"ft-input-label":Te,"ft-ripple":V,"ft-typography":ne,"ft-icon":X,"ft-chip":Y};$([(0,B.property)()],N.prototype,"label",void 0);$([(0,B.property)()],N.prototype,"icon",void 0);$([(0,B.property)()],N.prototype,"iconVariant",void 0);$([(0,B.property)()],N.prototype,"name",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"error",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"filterSuggestions",void 0);$([(0,B.property)()],N.prototype,"helper",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"disabled",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"outlined",void 0);$([(0,B.property)()],N.prototype,"placeholder",void 0);$([(0,B.property)()],N.prototype,"suggestionsHelper",void 0);$([(0,B.property)({attribute:!1})],N.prototype,"suggestionsProvider",void 0);$([(0,Pe.numberProperty)()],N.prototype,"suggestionsProviderDebouncerTimeout",void 0);$([(0,B.property)({noAccessor:!0})],N.prototype,"value",null);$([(0,B.property)({type:Boolean})],N.prototype,"canOfferNewValue",void 0);$([(0,B.property)({type:Boolean})],N.prototype,"multiValued",void 0);$([(0,Pe.numberProperty)()],N.prototype,"maxValues",void 0);$([(0,Pe.numberProperty)()],N.prototype,"maxLength",void 0);$([(0,B.property)()],N.prototype,"labels",void 0);$([(0,B.state)()],N.prototype,"labelsToValues",void 0);$([(0,B.state)()],N.prototype,"filter",void 0);$([(0,B.state)()],N.prototype,"isOpen",void 0);$([(0,B.state)()],N.prototype,"comboboxHasVisualFocus",void 0);$([(0,B.state)()],N.prototype,"listboxHasVisualFocus",void 0);$([(0,B.state)()],N.prototype,"providedSuggestions",void 0);$([(0,B.state)()],N.prototype,"visibleSuggestions",void 0);$([(0,B.state)()],N.prototype,"activeIndex",void 0);$([(0,B.state)()],N.prototype,"ariaLiveMessage",void 0);$([(0,B.query)(".ft-combobox--input")],N.prototype,"input",void 0);$([(0,B.query)(".ft-combobox--listbox")],N.prototype,"listbox",void 0);$([(0,Pe.ignoreComposingEvents)()],N.prototype,"onComboboxKeyDown",null);$([(0,Pe.ignoreComposingEvents)()],N.prototype,"onComboboxKeyUp",null);var Hc={"ft-combobox":N};(0,zc.customElements)(Hc);})();
|
|
1487
1493
|
/*! Bundled license information:
|
|
1488
1494
|
|
|
1489
1495
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|