@fluid-topics/ft-confirm-button 1.2.61 → 1.2.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var Wc=Object.create;var Dn=Object.defineProperty;var Hc=Object.getOwnPropertyDescriptor;var Fc=Object.getOwnPropertyNames;var zc=Object.getPrototypeOf,Gc=Object.prototype.hasOwnProperty;var Ae=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var jc=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Fc(r))!Gc.call(t,a)&&a!==o&&Dn(t,a,{get:()=>r[a],enumerable:!(n=Hc(r,a))||n.enumerable});return t};var C=(t,r,o)=>(o=t!=null?Wc(zc(t)):{},jc(r||!t||!t.__esModule?Dn(o,"default",{value:t,enumerable:!0}):o,t));var
|
|
2
|
-
`)===0?M.substr(1,M.length):M}).forEach(function(M){var
|
|
1
|
+
"use strict";(()=>{var Wc=Object.create;var Dn=Object.defineProperty;var Hc=Object.getOwnPropertyDescriptor;var Fc=Object.getOwnPropertyNames;var zc=Object.getPrototypeOf,Gc=Object.prototype.hasOwnProperty;var Ae=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var jc=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Fc(r))!Gc.call(t,a)&&a!==o&&Dn(t,a,{get:()=>r[a],enumerable:!(n=Hc(r,a))||n.enumerable});return t};var C=(t,r,o)=>(o=t!=null?Wc(zc(t)):{},jc(r||!t||!t.__esModule?Dn(o,"default",{value:t,enumerable:!0}):o,t));var rt=Ae((hd,Bn)=>{Bn.exports=ftGlobals.litDecorators});var k=Ae((yd,$n)=>{$n.exports=ftGlobals.wcUtils});var W=Ae((md,Un)=>{Un.exports=ftGlobals.lit});var Ir=Ae((Dh,Ma)=>{Ma.exports=ftGlobals.litClassMap});var $i=Ae((My,Bi)=>{Bi.exports=ftGlobals.litUnsafeHTML});var Zs=Ae((ue,Vs)=>{var ao=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,io=function(){function t(){this.fetch=!1,this.DOMException=ao.DOMException}return t.prototype=ao,new t}();(function(t){var r=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function m(h){var b={next:function(){var I=h.shift();return{done:I===void 0,value:I}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function y(h){this.map={},h instanceof y?h.forEach(function(b,I){this.append(I,b)},this):Array.isArray(h)?h.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(b){this.append(b,h[b])},this)}y.prototype.append=function(h,b){h=u(h),b=p(b);var I=this.map[h];this.map[h]=I?I+", "+b:b},y.prototype.delete=function(h){delete this.map[u(h)]},y.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},y.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},y.prototype.set=function(h,b){this.map[u(h)]=p(b)},y.prototype.forEach=function(h,b){for(var I in this.map)this.map.hasOwnProperty(I)&&h.call(b,this.map[I],I,this)},y.prototype.keys=function(){var h=[];return this.forEach(function(b,I){h.push(I)}),m(h)},y.prototype.values=function(){var h=[];return this.forEach(function(b){h.push(b)}),m(h)},y.prototype.entries=function(){var h=[];return this.forEach(function(b,I){h.push([I,b])}),m(h)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function v(h){return new Promise(function(b,I){h.onload=function(){b(h.result)},h.onerror=function(){I(h.error)}})}function x(h){var b=new FileReader,I=v(b);return b.readAsArrayBuffer(h),I}function S(h){var b=new FileReader,I=v(b),M=/charset=([A-Za-z0-9_-]+)/.exec(h.type),j=M?M[1]:"utf-8";return b.readAsText(h,j),I}function T(h){for(var b=new Uint8Array(h),I=new Array(b.length),M=0;M<b.length;M++)I[M]=String.fromCharCode(b[M]);return I.join("")}function R(h){if(h.slice)return h.slice(0);var b=new Uint8Array(h.byteLength);return b.set(new Uint8Array(h)),b.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&i(h)?(this._bodyArrayBuffer=R(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||l(h))?this._bodyArrayBuffer=R(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=g(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var h=g(this);return h||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var h=g(this);if(h)return h;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(gt)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(h){var b=h.toUpperCase();return P.indexOf(b)>-1?b:h}function $(h,b){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var I=b.body;if(h instanceof $){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,b.headers||(this.headers=new y(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!I&&h._bodyInit!=null&&(I=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new y(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var M=/([?&])_=[^&]*/;if(M.test(this.url))this.url=this.url.replace(M,"$1_="+new Date().getTime());else{var j=/\?/;this.url+=(j.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function gt(h){var b=new FormData;return h.trim().split("&").forEach(function(I){if(I){var M=I.split("="),j=M.shift().replace(/\+/g," "),U=M.join("=").replace(/\+/g," ");b.append(decodeURIComponent(j),decodeURIComponent(U))}}),b}function Dt(h){var b=new y,I=h.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function(M){return M.indexOf(`
|
|
2
|
+
`)===0?M.substr(1,M.length):M}).forEach(function(M){var j=M.split(":"),U=j.shift().trim();if(U){var Nr=j.join(":").trim();try{b.append(U,Nr)}catch(Co){console.warn("Response "+Co.message)}}}),b}N.call($.prototype);function ut(h,b){if(!(this instanceof ut))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new y(b.headers),this.url=b.url||"",this._initBody(h)}N.call(ut.prototype),ut.prototype.clone=function(){return new ut(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},ut.error=function(){var h=new ut(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Bt=[301,302,303,307,308];ut.redirect=function(h,b){if(Bt.indexOf(b)===-1)throw new RangeError("Invalid status code");return new ut(null,{status:b,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,I){this.message=b,this.name=I;var M=Error(b);this.stack=M.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function at(h,b){return new Promise(function(I,M){var j=new $(h,b);if(j.signal&&j.signal.aborted)return M(new o.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Nr(){U.abort()}U.onload=function(){var it={statusText:U.statusText,headers:Dt(U.getAllResponseHeaders()||"")};j.url.indexOf("file://")===0&&(U.status<200||U.status>599)?it.status=200:it.status=U.status,it.url="responseURL"in U?U.responseURL:it.headers.get("X-Request-URL");var fe="response"in U?U.response:U.responseText;setTimeout(function(){I(new ut(fe,it))},0)},U.onerror=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){M(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){M(new o.DOMException("Aborted","AbortError"))},0)};function Co(it){try{return it===""&&n.location.href?n.location.href:it}catch{return it}}if(U.open(j.method,Co(j.url),!0),j.credentials==="include"?U.withCredentials=!0:j.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(a.blob?U.responseType="blob":a.arrayBuffer&&(U.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof y||n.Headers&&b.headers instanceof n.Headers)){var kn=[];Object.getOwnPropertyNames(b.headers).forEach(function(it){kn.push(u(it)),U.setRequestHeader(it,p(b.headers[it]))}),j.headers.forEach(function(it,fe){kn.indexOf(fe)===-1&&U.setRequestHeader(fe,it)})}else j.headers.forEach(function(it,fe){U.setRequestHeader(fe,it)});j.signal&&(j.signal.addEventListener("abort",Nr),U.onreadystatechange=function(){U.readyState===4&&j.signal.removeEventListener("abort",Nr)}),U.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return at.polyfill=!0,n.fetch||(n.fetch=at,n.Headers=y,n.Request=$,n.Response=ut),o.Headers=y,o.Request=$,o.Response=ut,o.fetch=at,o}({})})(io);io.fetch.ponyfill=!0;delete io.fetch.polyfill;var Xe=ao.fetch?ao:io;ue=Xe.fetch;ue.default=Xe.fetch;ue.fetch=Xe.fetch;ue.Headers=Xe.Headers;ue.Request=Xe.Request;ue.Response=Xe.Response;Vs.exports=ue});var V=C(rt()),Uc=C(k()),Qe=C(W());var Yo=C(k());var pr=C(rt()),Gi=C(k());var $a=C(W()),D=C(k());var Gn=C(W()),X=C(k()),Mn=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorContent),E={color:Mn,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mn),opacityContentOnSurfacePressed:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:X.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Wn=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorPrimary),Hn={color:Wn,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wn)},Fn=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorSecondary),zn={color:Fn,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fn)},jn=Gn.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
5
5
|
}
|
|
@@ -121,7 +121,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
121
121
|
line-height: ${r.lineHeight};
|
|
122
122
|
text-transform: ${r.textCase};
|
|
123
123
|
}
|
|
124
|
-
`}var ba=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),Gt=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),L={fontFamily:Gt,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ne={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ba),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Te={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ba),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Le={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Ie={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},_e={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Pe={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},ke={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},De={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Be={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")}
|
|
124
|
+
`}var ba=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),Gt=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),L={fontFamily:Gt,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ne={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ba),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Te={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ba),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Le={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Ie={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},_e={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Pe={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},ke={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},De={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Be={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},$t={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Gt),fontSize:A.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},xa=At.css`
|
|
125
125
|
.ft-typography--title {
|
|
126
126
|
font-family: ${Ne.fontFamily};
|
|
127
127
|
font-size: ${Ne.fontSize};
|
|
@@ -205,12 +205,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
205
205
|
}
|
|
206
206
|
`,Na=At.css`
|
|
207
207
|
.ft-typography--button {
|
|
208
|
-
font-family: ${
|
|
209
|
-
font-size: ${
|
|
210
|
-
font-weight: ${
|
|
211
|
-
letter-spacing: ${
|
|
212
|
-
line-height: ${
|
|
213
|
-
text-transform: ${
|
|
208
|
+
font-family: ${$t.fontFamily};
|
|
209
|
+
font-size: ${$t.fontSize};
|
|
210
|
+
font-weight: ${$t.fontWeight};
|
|
211
|
+
letter-spacing: ${$t.letterSpacing};
|
|
212
|
+
line-height: ${$t.lineHeight};
|
|
213
|
+
text-transform: ${$t.textTransform};
|
|
214
214
|
}
|
|
215
215
|
`,Ta=At.css`
|
|
216
216
|
.ft-typography {
|
|
@@ -333,7 +333,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
333
333
|
.ft-icon--material {
|
|
334
334
|
font-family: ${ft.materialFontFamily}, "Material Icons", sans-serif;
|
|
335
335
|
}
|
|
336
|
-
`,Tt.noTextSelect];var Da=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),
|
|
336
|
+
`,Tt.noTextSelect];var Da=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),ot={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Da,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",$t.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Da),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ba=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),Eo={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ba,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ba)},Ut={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ua=[$a.css`
|
|
337
337
|
:host {
|
|
338
338
|
display: inline-block;
|
|
339
339
|
max-width: 100%;
|
|
@@ -344,7 +344,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
344
344
|
box-shadow: 0px 0px 0px transparent;
|
|
345
345
|
border: 0px solid transparent;
|
|
346
346
|
text-shadow: 0px 0px 0px transparent;
|
|
347
|
-
font-size: ${
|
|
347
|
+
font-size: ${ot.fontSize};
|
|
348
348
|
text-decoration: none;
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -374,31 +374,31 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
374
374
|
border: none;
|
|
375
375
|
pointer-events: auto;
|
|
376
376
|
|
|
377
|
-
--ft-button-internal-line-height: max(calc(${
|
|
378
|
-
--ft-button-internal-color: ${
|
|
379
|
-
${(0,D.setVariable)(ft.size,
|
|
380
|
-
${(0,D.setVariable)(E.color,
|
|
377
|
+
--ft-button-internal-line-height: max(calc(${ot.fontSize} + 2px), ${ot.iconSize});
|
|
378
|
+
--ft-button-internal-color: ${ot.color};
|
|
379
|
+
${(0,D.setVariable)(ft.size,ot.iconSize)};
|
|
380
|
+
${(0,D.setVariable)(E.color,ot.rippleColor)};
|
|
381
381
|
|
|
382
|
-
border-radius: ${
|
|
383
|
-
padding: ${
|
|
384
|
-
background-color: ${
|
|
382
|
+
border-radius: ${ot.borderRadius};
|
|
383
|
+
padding: ${ot.verticalPadding} ${ot.horizontalPadding};
|
|
384
|
+
background-color: ${ot.backgroundColor};
|
|
385
385
|
color: var(--ft-button-internal-color);
|
|
386
386
|
-webkit-mask-image: radial-gradient(white, black);
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
.ft-button.ft-button--outlined {
|
|
390
390
|
border: 1px solid var(--ft-button-internal-color);
|
|
391
|
-
padding: calc(${
|
|
391
|
+
padding: calc(${ot.verticalPadding} - 1px) calc(${ot.horizontalPadding} - 1px);
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
.ft-button.ft-button--dense {
|
|
395
|
-
padding: ${
|
|
396
|
-
border-radius: ${
|
|
397
|
-
gap: ${
|
|
395
|
+
padding: ${Ut.verticalPadding} ${Ut.horizontalPadding};
|
|
396
|
+
border-radius: ${Ut.borderRadius};
|
|
397
|
+
gap: ${Ut.iconPadding};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
401
|
-
padding: calc(${
|
|
401
|
+
padding: calc(${Ut.verticalPadding} - 1px) calc(${Ut.horizontalPadding} - 1px);
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
.ft-button:not([disabled]):hover {
|
|
@@ -406,16 +406,16 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.ft-button--round {
|
|
409
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
409
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ot.verticalPadding});
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
.ft-button--round.ft-button--dense {
|
|
413
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
413
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ut.verticalPadding});
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.ft-button[disabled] {
|
|
417
417
|
filter: grayscale(1);
|
|
418
|
-
opacity: ${
|
|
418
|
+
opacity: ${ot.opacityDisabled};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.ft-button.ft-button--primary {
|
|
@@ -434,13 +434,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
434
434
|
white-space: nowrap;
|
|
435
435
|
text-overflow: ellipsis;
|
|
436
436
|
display: block;
|
|
437
|
-
margin: 0 ${
|
|
438
|
-
${(0,D.setVariable)(
|
|
439
|
-
${(0,D.setVariable)(
|
|
437
|
+
margin: 0 ${ot.iconPadding};
|
|
438
|
+
${(0,D.setVariable)($t.fontSize,"1em")};
|
|
439
|
+
${(0,D.setVariable)($t.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.ft-button--dense .ft-button--label {
|
|
443
|
-
margin: 0 ${
|
|
443
|
+
margin: 0 ${Ut.iconPadding};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
.ft-button--label[hidden] {
|
|
@@ -453,13 +453,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
.ft-button--label[hidden] + [part="icon"] {
|
|
456
|
-
margin: 0 calc(${
|
|
457
|
-
padding: 0 ${
|
|
456
|
+
margin: 0 calc(${ot.horizontalPadding} * -1);
|
|
457
|
+
padding: 0 ${ot.verticalPadding};
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
461
|
-
margin: 0 calc(${
|
|
462
|
-
padding: 0 ${
|
|
461
|
+
margin: 0 calc(${Ut.horizontalPadding} * -1);
|
|
462
|
+
padding: 0 ${Ut.verticalPadding};
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -467,10 +467,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
ft-loader {
|
|
470
|
-
${(0,D.setVariable)(F.size,
|
|
470
|
+
${(0,D.setVariable)(F.size,ot.iconSize)};
|
|
471
471
|
${(0,D.setVariable)(F.color,"var(--ft-button-internal-color)")};
|
|
472
472
|
}
|
|
473
|
-
`,D.noTextSelect];var ne=C(k());var Fa=C(k());var Wa=C(W()),st=C(
|
|
473
|
+
`,D.noTextSelect];var ne=C(k());var Fa=C(k());var Wa=C(W()),st=C(rt()),Ha=C(Ir()),tr=C(k());var bt=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Z=class extends tr.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 tr.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new tr.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"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 Wa.html`
|
|
474
474
|
<style>
|
|
475
475
|
.ft-ripple .ft-ripple--effect {
|
|
476
476
|
left: ${this.originX}px;
|
|
@@ -481,9 +481,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
481
481
|
<div class="ft-ripple--background"></div>
|
|
482
482
|
<div class="ft-ripple--effect"></div>
|
|
483
483
|
</div>
|
|
484
|
-
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=jn;bt([(0,st.property)({type:Boolean})],Z.prototype,"primary",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"secondary",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"unbounded",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"activated",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"selected",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"disabled",void 0);bt([(0,st.state)()],Z.prototype,"hovered",void 0);bt([(0,st.state)()],Z.prototype,"focused",void 0);bt([(0,st.state)()],Z.prototype,"pressed",void 0);bt([(0,st.state)()],Z.prototype,"rippling",void 0);bt([(0,st.state)()],Z.prototype,"originX",void 0);bt([(0,st.state)()],Z.prototype,"originY",void 0);bt([(0,st.query)(".ft-ripple")],Z.prototype,"ripple",void 0);bt([(0,st.query)(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);(0,Fa.customElement)("ft-ripple")(Z);var Di=C(k());var ki=C(W()),J=C(
|
|
484
|
+
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=jn;bt([(0,st.property)({type:Boolean})],Z.prototype,"primary",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"secondary",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"unbounded",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"activated",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"selected",void 0);bt([(0,st.property)({type:Boolean})],Z.prototype,"disabled",void 0);bt([(0,st.state)()],Z.prototype,"hovered",void 0);bt([(0,st.state)()],Z.prototype,"focused",void 0);bt([(0,st.state)()],Z.prototype,"pressed",void 0);bt([(0,st.state)()],Z.prototype,"rippling",void 0);bt([(0,st.state)()],Z.prototype,"originX",void 0);bt([(0,st.state)()],Z.prototype,"originY",void 0);bt([(0,st.query)(".ft-ripple")],Z.prototype,"ripple",void 0);bt([(0,st.query)(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);(0,Fa.customElement)("ft-ripple")(Z);var Di=C(k());var ki=C(W()),J=C(rt()),lr=C(k());var ii=C(k());var Io=globalThis,_r=Io.trustedTypes,za=_r?_r.createPolicy("lit-html",{createHTML:t=>t}):void 0,qa="$lit$",te=`lit$${Math.random().toFixed(9).slice(2)}$`,Ya="?"+te,Vc=`<${Ya}>`,me=document,Pr=()=>me.createComment(""),rr=t=>t===null||typeof t!="object"&&typeof t!="function",_o=Array.isArray,Zc=t=>_o(t)||typeof t?.[Symbol.iterator]=="function",wo=`[
|
|
485
485
|
\f\r]`,er=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ga=/-->/g,ja=/>/g,he=RegExp(`>|${wo}(?:([^\\s"'>=/]+)(${wo}*=${wo}*(?:[^
|
|
486
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ka=/'/g,Va=/"/g,Xa=/^(?:script|style|textarea|title)$/i,Po=t=>(r,...o)=>({_$litType$:t,strings:r,values:o}),Qa=Po(1),Ja=Po(2),ti=Po(3),or=Symbol.for("lit-noChange"),
|
|
486
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ka=/'/g,Va=/"/g,Xa=/^(?:script|style|textarea|title)$/i,Po=t=>(r,...o)=>({_$litType$:t,strings:r,values:o}),Qa=Po(1),Ja=Po(2),ti=Po(3),or=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),Za=new WeakMap,ye=me.createTreeWalker(me,129);function ei(t,r){if(!_o(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return za!==void 0?za.createHTML(r):r}var qc=(t,r)=>{let o=t.length-1,n=[],a,i=r===2?"<svg>":r===3?"<math>":"",c=er;for(let l=0;l<o;l++){let u=t[l],p,m,y=-1,g=0;for(;g<u.length&&(c.lastIndex=g,m=c.exec(u),m!==null);)g=c.lastIndex,c===er?m[1]==="!--"?c=Ga:m[1]!==void 0?c=ja:m[2]!==void 0?(Xa.test(m[2])&&(a=RegExp("</"+m[2],"g")),c=he):m[3]!==void 0&&(c=he):c===he?m[0]===">"?(c=a??er,y=-1):m[1]===void 0?y=-2:(y=c.lastIndex-m[2].length,p=m[1],c=m[3]===void 0?he:m[3]==='"'?Va:Ka):c===Va||c===Ka?c=he:c===Ga||c===ja?c=er:(c=he,a=void 0);let v=c===he&&t[l+1].startsWith("/>")?" ":"";i+=c===er?u+Vc:y>=0?(n.push(p),u.slice(0,y)+qa+u.slice(y)+te+v):u+te+(y===-2?l:v)}return[ei(t,i+(t[o]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),n]},nr=class t{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=r.length-1,u=this.parts,[p,m]=qc(r,o);if(this.el=t.createElement(p,n),ye.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=ye.nextNode())!==null&&u.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(qa)){let g=m[c++],v=a.getAttribute(y).split(te),x=/([.?@])?(.*)/.exec(g);u.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?Ro:x[1]==="?"?No:x[1]==="@"?To:Ue}),a.removeAttribute(y)}else y.startsWith(te)&&(u.push({type:6,index:i}),a.removeAttribute(y));if(Xa.test(a.tagName)){let y=a.textContent.split(te),g=y.length-1;if(g>0){a.textContent=_r?_r.emptyScript:"";for(let v=0;v<g;v++)a.append(y[v],Pr()),ye.nextNode(),u.push({type:2,index:++i});a.append(y[g],Pr())}}}else if(a.nodeType===8)if(a.data===Ya)u.push({type:2,index:i});else{let y=-1;for(;(y=a.data.indexOf(te,y+1))!==-1;)u.push({type:7,index:i}),y+=te.length-1}i++}}static createElement(r,o){let n=me.createElement("template");return n.innerHTML=r,n}};function $e(t,r,o=t,n){if(r===or)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=rr(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=$e(t,a._$AS(t,r.values),a,n)),r}var Ao=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??me).importNode(o,!0);ye.currentNode=a;let i=ye.nextNode(),c=0,l=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new kr(i,i.nextSibling,this,r):u.type===1?p=new u.ctor(i,u.name,u.strings,this,r):u.type===6&&(p=new Lo(i,this,r)),this._$AV.push(p),u=n[++l]}c!==u?.index&&(i=ye.nextNode(),c++)}return ye.currentNode=me,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},kr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=$e(this,r,o),rr(r)?r===nt||r==null||r===""?(this._$AH!==nt&&this._$AR(),this._$AH=nt):r!==this._$AH&&r!==or&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Zc(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==nt&&rr(this._$AH)?this._$AA.nextSibling.data=r:this.T(me.createTextNode(r)),this._$AH=r}$(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=nr.createElement(ei(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Ao(a,this),c=i.u(this.options);i.p(o),this.T(c),this._$AH=i}}_$AC(r){let o=Za.get(r.strings);return o===void 0&&Za.set(r.strings,o=new nr(r)),o}k(r){_o(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new t(this.O(Pr()),this.O(Pr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Ue=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=r,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=nt}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=$e(this,r,o,0),c=!rr(r)||r!==this._$AH&&r!==or,c&&(this._$AH=r);else{let l=r,u,p;for(r=i[0],u=0;u<i.length-1;u++)p=$e(this,l[n+u],o,u),p===or&&(p=this._$AH[u]),c||=!rr(p)||p!==this._$AH[u],p===nt?r=nt:r!==nt&&(r+=(p??"")+i[u+1]),this._$AH[u]=p}c&&!a&&this.j(r)}j(r){r===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Ro=class extends Ue{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===nt?void 0:r}},No=class extends Ue{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==nt)}},To=class extends Ue{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=$e(this,r,o,0)??nt)===or)return;let n=this._$AH,a=r===nt&&n!==nt||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==nt&&(n===nt||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Lo=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){$e(this,r)}};var Yc=Io.litHtmlPolyfillSupport;Yc?.(nr,kr),(Io.litHtmlVersions??=[]).push("3.3.0");var oi=Symbol.for(""),Xc=t=>{if(t?.r===oi)return t?._$litStatic$},ko=t=>({_$litStatic$:t,r:oi});var ri=new Map,Do=t=>(r,...o)=>{let n=o.length,a,i,c=[],l=[],u,p=0,m=!1;for(;p<n;){for(u=r[p];p<n&&(i=o[p],(a=Xc(i))!==void 0);)u+=a+r[++p],m=!0;p!==n&&l.push(i),c.push(u),p++}if(p===n&&c.push(r[n]),m){let y=c.join("$$lit$$");(r=ri.get(y))===void 0&&(c.raw=c,ri.set(y,r=c)),o=l}return t(r,...o)},Bo=Do(Qa),jh=Do(Ja),Kh=Do(ti);var $o=C(rt()),ai=C(k());var Rt;(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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Rt||(Rt={}));var ni=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ht=class extends ai.FtLitElement{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?Bo`
|
|
487
487
|
<${ko(this.element)}
|
|
488
488
|
part="text"
|
|
489
489
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -491,7 +491,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
491
491
|
</${ko(this.element)}>
|
|
492
492
|
`:Bo`
|
|
493
493
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
494
|
-
`}};ht.styles=[xa,va,Sa,Oa,Ca,Ea,wa,Aa,Ra,Na,Ta,...La];ni([(0
|
|
494
|
+
`}};ht.styles=[xa,va,Sa,Oa,Ca,Ea,wa,Aa,Ra,Na,Ta,...La];ni([(0,$o.property)()],ht.prototype,"element",void 0);ni([(0,$o.property)()],ht.prototype,"variant",void 0);(0,ii.customElement)("ft-typography")(ht);var si=C(W()),jt=C(k()),Me={distance:jt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:jt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:jt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:jt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:jt.FtCssVariableFactory.external(jt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:jt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ci=si.css`
|
|
495
495
|
.ft-tooltip--container {
|
|
496
496
|
display: block;
|
|
497
497
|
}
|
|
@@ -520,7 +520,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
520
520
|
position: relative;
|
|
521
521
|
word-break: break-word;
|
|
522
522
|
}
|
|
523
|
-
`;var di=["top","right","bottom","left"],li=["start","end"],Mo=di.reduce((t,r)=>t.concat(r,r+"-"+li[0],r+"-"+li[1]),[]),ui=Math.min,pi=Math.max;var Qc={left:"right",right:"left",bottom:"top",top:"bottom"},Jc={start:"end",end:"start"};function Wo(t,r,o){return pi(t,ui(r,o))}function Dr(t,r){return typeof t=="function"?t(r):t}function We(t){return t.split("-")[0]}function ee(t){return t.split("-")[1]}function Ho(t){return t==="x"?"y":"x"}function Fo(t){return t==="y"?"height":"width"}function Br(t){return["top","bottom"].includes(We(t))?"y":"x"}function zo(t){return Ho(Br(t))}function fi(t,r,o){o===void 0&&(o=!1);let n=ee(t),a=zo(t),i=Fo(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=$o(c)),[c,$o(c)]}function hi(t){return t.replace(/start|end/g,r=>Jc[r])}function $o(t){return t.replace(/left|right|bottom|top/g,r=>Qc[r])}function tl(t){return{top:0,right:0,bottom:0,left:0,...t}}function yi(t){return typeof t!="number"?tl(t):{top:t,right:t,bottom:t,left:t}}function ge(t){let{x:r,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function mi(t,r,o){let{reference:n,floating:a}=t,i=Br(r),c=zo(r),l=Fo(c),u=We(r),p=i==="y",m=n.x+n.width/2-a.width/2,y=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,v;switch(u){case"top":v={x:m,y:n.y-a.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y};break;case"left":v={x:n.x-a.width,y};break;default:v={x:n.x,y:n.y}}switch(ee(r)){case"start":v[c]-=g*(o&&p?-1:1);break;case"end":v[c]+=g*(o&&p?-1:1);break}return v}var gi=async(t,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=i.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(r)),p=await c.getElementRects({reference:t,floating:r,strategy:a}),{x:m,y}=mi(p,n,u),g=n,v={},x=0;for(let S=0;S<l.length;S++){let{name:T,fn:R}=l[S],{x:N,y:P,data:B,reset:U}=await R({x:m,y,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:p,platform:c,elements:{reference:t,floating:r}});m=N??m,y=P??y,v={...v,[T]:{...v[T],...B}},U&&x<=50&&(x++,typeof U=="object"&&(U.placement&&(g=U.placement),U.rects&&(p=U.rects===!0?await c.getElementRects({reference:t,floating:r,strategy:a}):U.rects),{x:m,y}=mi(p,g,u)),S=-1)}return{x:m,y,placement:g,strategy:a,middlewareData:v}};async function Go(t,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:g=!1,padding:v=0}=Dr(r,t),x=yi(v),T=l[g?y==="floating"?"reference":"floating":y],R=ge(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:u})),N=y==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),B=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},U=ge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:P,strategy:u}):N);return{top:(R.top-U.top+x.top)/B.y,bottom:(U.bottom-R.bottom+x.bottom)/B.y,left:(R.left-U.left+x.left)/B.x,right:(U.right-R.right+x.right)/B.x}}function el(t,r,o){return(t?[...o.filter(a=>ee(a)===t),...o.filter(a=>ee(a)!==t)]:o.filter(a=>We(a)===a)).filter(a=>t?ee(a)===t||(r?hi(a)!==a:!1):!0)}var jo=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=r,{crossAxis:m=!1,alignment:y,allowedPlacements:g=Mo,autoAlignment:v=!0,...x}=Dr(t,r),S=y!==void 0||g===Mo?el(y||null,v,g):g,T=await Go(r,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,N=S[R];if(N==null)return{};let P=fi(N,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==N)return{reset:{placement:S[0]}};let B=[T[We(N)],T[P[0]],T[P[1]]],U=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],gt=S[R+1];if(gt)return{data:{index:R+1,overflows:U},reset:{placement:gt}};let Dt=U.map(at=>{let h=ee(at.placement);return[at.placement,h&&m?at.overflows.slice(0,2).reduce((b,I)=>b+I,0):at.overflows[0],at.overflows]}).sort((at,h)=>at[1]-h[1]),Bt=((a=Dt.filter(at=>at[2].slice(0,ee(at[0])?2:3).every(h=>h<=0))[0])==null?void 0:a[0])||Dt[0][0];return Bt!==l?{data:{index:R+1,overflows:U},reset:{placement:Bt}}:{}}}};var Ko=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...u}=Dr(t,r),p={x:o,y:n},m=await Go(r,u),y=Br(We(a)),g=Ho(y),v=p[g],x=p[y];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=v+m[T],P=v-m[R];v=Wo(N,v,P)}if(c){let T=y==="y"?"top":"left",R=y==="y"?"bottom":"right",N=x+m[T],P=x-m[R];x=Wo(N,x,P)}let S=l.fn({...r,[g]:v,[y]:x});return{...S,data:{x:S.x-o,y:S.y-n,enabled:{[g]:i,[y]:c}}}}}};var Vo=Math.min,He=Math.max,ar=Math.round;var Kt=t=>({x:t,y:t});function Vt(t){return xi(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Zt(t){var r;return(r=(xi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function xi(t){return t instanceof Node||t instanceof xt(t).Node}function Mt(t){return t instanceof Element||t instanceof xt(t).Element}function Lt(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function bi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function Fe(t){let{overflow:r,overflowX:o,overflowY:n,display:a}=Ct(t);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function vi(t){return["table","td","th"].includes(Vt(t))}function $r(t){let r=Mr(),o=Ct(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Si(t){let r=be(t);for(;Lt(r)&&!ir(r);){if($r(r))return r;r=be(r)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ir(t){return["html","body","#document"].includes(Vt(t))}function Ct(t){return xt(t).getComputedStyle(t)}function sr(t){return Mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function be(t){if(Vt(t)==="html")return t;let r=t.assignedSlot||t.parentNode||bi(t)&&t.host||Zt(t);return bi(r)?r.host:r}function Oi(t){let r=be(t);return ir(r)?t.ownerDocument?t.ownerDocument.body:t.body:Lt(r)&&Fe(r)?r:Oi(r)}function Ur(t,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=Oi(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),c=xt(a);return i?r.concat(c,c.visualViewport||[],Fe(a)?a:[],c.frameElement&&o?Ur(c.frameElement):[]):r.concat(a,Ur(a,[],o))}function wi(t){let r=Ct(t),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=Lt(t),i=a?t.offsetWidth:o,c=a?t.offsetHeight:n,l=ar(o)!==i||ar(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function Ai(t){return Mt(t)?t:t.contextElement}function ze(t){let r=Ai(t);if(!Lt(r))return Kt(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=wi(r),c=(i?ar(o.width):o.width)/n,l=(i?ar(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var nl=Kt(0);function Ri(t){let r=xt(t);return!Mr()||!r.visualViewport?nl:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function al(t,r,o){return r===void 0&&(r=!1),!o||r&&o!==xt(t)?!1:r}function cr(t,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=Ai(t),c=Kt(1);r&&(n?Mt(n)&&(c=ze(n)):c=ze(t));let l=al(i,o,n)?Ri(i):Kt(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,m=a.width/c.x,y=a.height/c.y;if(i){let g=xt(i),v=n&&Mt(n)?xt(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let S=ze(x),T=x.getBoundingClientRect(),R=Ct(x),N=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*S.x,P=T.top+(x.clientTop+parseFloat(R.paddingTop))*S.y;u*=S.x,p*=S.y,m*=S.x,y*=S.y,u+=N,p+=P,x=xt(x).frameElement}}return ge({width:m,height:y,x:u,y:p})}function il(t){let{rect:r,offsetParent:o,strategy:n}=t,a=Lt(o),i=Zt(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},l=Kt(1),u=Kt(0);if((a||!a&&n!=="fixed")&&((Vt(o)!=="body"||Fe(i))&&(c=sr(o)),Lt(o))){let p=cr(o);l=ze(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function sl(t){return Array.from(t.getClientRects())}function Ni(t){return cr(Zt(t)).left+sr(t).scrollLeft}function cl(t){let r=Zt(t),o=sr(t),n=t.ownerDocument.body,a=He(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=He(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+Ni(t),l=-o.scrollTop;return Ct(n).direction==="rtl"&&(c+=He(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}function ll(t,r){let o=xt(t),n=Zt(t),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let p=Mr();(!p||p&&r==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:c,x:l,y:u}}function dl(t,r){let o=cr(t,!0,r==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=Lt(t)?ze(t):Kt(1),c=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function Ci(t,r,o){let n;if(r==="viewport")n=ll(t,o);else if(r==="document")n=cl(Zt(t));else if(Mt(r))n=dl(r,o);else{let a=Ri(t);n={...r,x:r.x-a.x,y:r.y-a.y}}return ge(n)}function Ti(t,r){let o=be(t);return o===r||!Mt(o)||ir(o)?!1:Ct(o).position==="fixed"||Ti(o,r)}function ul(t,r){let o=r.get(t);if(o)return o;let n=Ur(t,[],!1).filter(l=>Mt(l)&&Vt(l)!=="body"),a=null,i=Ct(t).position==="fixed",c=i?be(t):t;for(;Mt(c)&&!ir(c);){let l=Ct(c),u=$r(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Fe(c)&&!u&&Ti(t,c))?n=n.filter(m=>m!==c):a=l,c=be(c)}return r.set(t,n),n}function pl(t){let{element:r,boundary:o,rootBoundary:n,strategy:a}=t,c=[...o==="clippingAncestors"?ul(r,this._c):[].concat(o),n],l=c[0],u=c.reduce((p,m)=>{let y=Ci(r,m,a);return p.top=He(y.top,p.top),p.right=Vo(y.right,p.right),p.bottom=Vo(y.bottom,p.bottom),p.left=He(y.left,p.left),p},Ci(r,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function fl(t){return wi(t)}function hl(t,r,o){let n=Lt(r),a=Zt(r),i=o==="fixed",c=cr(t,!0,i,r),l={scrollLeft:0,scrollTop:0},u=Kt(0);if(n||!n&&!i)if((Vt(r)!=="body"||Fe(a))&&(l=sr(r)),n){let p=cr(r,!0,i,r);u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}else a&&(u.x=Ni(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Ei(t,r){return!Lt(t)||Ct(t).position==="fixed"?null:r?r(t):t.offsetParent}function Li(t,r){let o=xt(t);if(!Lt(t))return o;let n=Ei(t,r);for(;n&&vi(n)&&Ct(n).position==="static";)n=Ei(n,r);return n&&(Vt(n)==="html"||Vt(n)==="body"&&Ct(n).position==="static"&&!$r(n))?o:n||Si(t)||o}var yl=async function(t){let{reference:r,floating:o,strategy:n}=t,a=this.getOffsetParent||Li,i=this.getDimensions;return{reference:hl(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function ml(t){return Ct(t).direction==="rtl"}var Wr={convertOffsetParentRelativeRectToViewportRelativeRect:il,getDocumentElement:Zt,getClippingRect:pl,getOffsetParent:Li,getElementRects:yl,getClientRects:sl,getDimensions:fl,getScale:ze,isElement:Mt,isRTL:ml};var Ii=(t,r,o)=>{let n=new Map,a={platform:Wr,...o},i={...a.platform,_c:n};return gi(t,r,{...a,platform:i})};function _i(t){return gl(t)}function Zo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function gl(t){for(let r=t;r;r=Zo(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=Zo(t);r;r=Zo(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Pi(t,r,o){return Ii(t,r,{platform:{...Wr,getOffsetParent:n=>Wr.getOffsetParent(n,_i)},middleware:[Ko({crossAxis:!0}),jo({allowedPlacements:[o]})]})}var vt=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},q=class extends lr.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new lr.Debouncer,this.revealDebouncer=new lr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ki.html`
|
|
523
|
+
`;var di=["top","right","bottom","left"],li=["start","end"],Mo=di.reduce((t,r)=>t.concat(r,r+"-"+li[0],r+"-"+li[1]),[]),ui=Math.min,pi=Math.max;var Qc={left:"right",right:"left",bottom:"top",top:"bottom"},Jc={start:"end",end:"start"};function Wo(t,r,o){return pi(t,ui(r,o))}function Dr(t,r){return typeof t=="function"?t(r):t}function We(t){return t.split("-")[0]}function ee(t){return t.split("-")[1]}function Ho(t){return t==="x"?"y":"x"}function Fo(t){return t==="y"?"height":"width"}function Br(t){return["top","bottom"].includes(We(t))?"y":"x"}function zo(t){return Ho(Br(t))}function fi(t,r,o){o===void 0&&(o=!1);let n=ee(t),a=zo(t),i=Fo(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(c=Uo(c)),[c,Uo(c)]}function hi(t){return t.replace(/start|end/g,r=>Jc[r])}function Uo(t){return t.replace(/left|right|bottom|top/g,r=>Qc[r])}function tl(t){return{top:0,right:0,bottom:0,left:0,...t}}function yi(t){return typeof t!="number"?tl(t):{top:t,right:t,bottom:t,left:t}}function ge(t){let{x:r,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function mi(t,r,o){let{reference:n,floating:a}=t,i=Br(r),c=zo(r),l=Fo(c),u=We(r),p=i==="y",m=n.x+n.width/2-a.width/2,y=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,v;switch(u){case"top":v={x:m,y:n.y-a.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y};break;case"left":v={x:n.x-a.width,y};break;default:v={x:n.x,y:n.y}}switch(ee(r)){case"start":v[c]-=g*(o&&p?-1:1);break;case"end":v[c]+=g*(o&&p?-1:1);break}return v}var gi=async(t,r,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=i.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(r)),p=await c.getElementRects({reference:t,floating:r,strategy:a}),{x:m,y}=mi(p,n,u),g=n,v={},x=0;for(let S=0;S<l.length;S++){let{name:T,fn:R}=l[S],{x:N,y:P,data:B,reset:$}=await R({x:m,y,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:p,platform:c,elements:{reference:t,floating:r}});m=N??m,y=P??y,v={...v,[T]:{...v[T],...B}},$&&x<=50&&(x++,typeof $=="object"&&($.placement&&(g=$.placement),$.rects&&(p=$.rects===!0?await c.getElementRects({reference:t,floating:r,strategy:a}):$.rects),{x:m,y}=mi(p,g,u)),S=-1)}return{x:m,y,placement:g,strategy:a,middlewareData:v}};async function Go(t,r){var o;r===void 0&&(r={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:g=!1,padding:v=0}=Dr(r,t),x=yi(v),T=l[g?y==="floating"?"reference":"floating":y],R=ge(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:u})),N=y==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),B=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},$=ge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:P,strategy:u}):N);return{top:(R.top-$.top+x.top)/B.y,bottom:($.bottom-R.bottom+x.bottom)/B.y,left:(R.left-$.left+x.left)/B.x,right:($.right-R.right+x.right)/B.x}}function el(t,r,o){return(t?[...o.filter(a=>ee(a)===t),...o.filter(a=>ee(a)!==t)]:o.filter(a=>We(a)===a)).filter(a=>t?ee(a)===t||(r?hi(a)!==a:!1):!0)}var jo=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:u,elements:p}=r,{crossAxis:m=!1,alignment:y,allowedPlacements:g=Mo,autoAlignment:v=!0,...x}=Dr(t,r),S=y!==void 0||g===Mo?el(y||null,v,g):g,T=await Go(r,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,N=S[R];if(N==null)return{};let P=fi(N,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==N)return{reset:{placement:S[0]}};let B=[T[We(N)],T[P[0]],T[P[1]]],$=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],gt=S[R+1];if(gt)return{data:{index:R+1,overflows:$},reset:{placement:gt}};let Dt=$.map(at=>{let h=ee(at.placement);return[at.placement,h&&m?at.overflows.slice(0,2).reduce((b,I)=>b+I,0):at.overflows[0],at.overflows]}).sort((at,h)=>at[1]-h[1]),Bt=((a=Dt.filter(at=>at[2].slice(0,ee(at[0])?2:3).every(h=>h<=0))[0])==null?void 0:a[0])||Dt[0][0];return Bt!==l?{data:{index:R+1,overflows:$},reset:{placement:Bt}}:{}}}};var Ko=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){let{x:o,y:n,placement:a}=r,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...u}=Dr(t,r),p={x:o,y:n},m=await Go(r,u),y=Br(We(a)),g=Ho(y),v=p[g],x=p[y];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=v+m[T],P=v-m[R];v=Wo(N,v,P)}if(c){let T=y==="y"?"top":"left",R=y==="y"?"bottom":"right",N=x+m[T],P=x-m[R];x=Wo(N,x,P)}let S=l.fn({...r,[g]:v,[y]:x});return{...S,data:{x:S.x-o,y:S.y-n,enabled:{[g]:i,[y]:c}}}}}};var Vo=Math.min,He=Math.max,ar=Math.round;var Kt=t=>({x:t,y:t});function Vt(t){return xi(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Zt(t){var r;return(r=(xi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function xi(t){return t instanceof Node||t instanceof xt(t).Node}function Mt(t){return t instanceof Element||t instanceof xt(t).Element}function Lt(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function bi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function Fe(t){let{overflow:r,overflowX:o,overflowY:n,display:a}=Ct(t);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function vi(t){return["table","td","th"].includes(Vt(t))}function Ur(t){let r=Mr(),o=Ct(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Si(t){let r=be(t);for(;Lt(r)&&!ir(r);){if(Ur(r))return r;r=be(r)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ir(t){return["html","body","#document"].includes(Vt(t))}function Ct(t){return xt(t).getComputedStyle(t)}function sr(t){return Mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function be(t){if(Vt(t)==="html")return t;let r=t.assignedSlot||t.parentNode||bi(t)&&t.host||Zt(t);return bi(r)?r.host:r}function Oi(t){let r=be(t);return ir(r)?t.ownerDocument?t.ownerDocument.body:t.body:Lt(r)&&Fe(r)?r:Oi(r)}function $r(t,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);let a=Oi(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),c=xt(a);return i?r.concat(c,c.visualViewport||[],Fe(a)?a:[],c.frameElement&&o?$r(c.frameElement):[]):r.concat(a,$r(a,[],o))}function wi(t){let r=Ct(t),o=parseFloat(r.width)||0,n=parseFloat(r.height)||0,a=Lt(t),i=a?t.offsetWidth:o,c=a?t.offsetHeight:n,l=ar(o)!==i||ar(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function Ai(t){return Mt(t)?t:t.contextElement}function ze(t){let r=Ai(t);if(!Lt(r))return Kt(1);let o=r.getBoundingClientRect(),{width:n,height:a,$:i}=wi(r),c=(i?ar(o.width):o.width)/n,l=(i?ar(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var nl=Kt(0);function Ri(t){let r=xt(t);return!Mr()||!r.visualViewport?nl:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function al(t,r,o){return r===void 0&&(r=!1),!o||r&&o!==xt(t)?!1:r}function cr(t,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=Ai(t),c=Kt(1);r&&(n?Mt(n)&&(c=ze(n)):c=ze(t));let l=al(i,o,n)?Ri(i):Kt(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,m=a.width/c.x,y=a.height/c.y;if(i){let g=xt(i),v=n&&Mt(n)?xt(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let S=ze(x),T=x.getBoundingClientRect(),R=Ct(x),N=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*S.x,P=T.top+(x.clientTop+parseFloat(R.paddingTop))*S.y;u*=S.x,p*=S.y,m*=S.x,y*=S.y,u+=N,p+=P,x=xt(x).frameElement}}return ge({width:m,height:y,x:u,y:p})}function il(t){let{rect:r,offsetParent:o,strategy:n}=t,a=Lt(o),i=Zt(o);if(o===i)return r;let c={scrollLeft:0,scrollTop:0},l=Kt(1),u=Kt(0);if((a||!a&&n!=="fixed")&&((Vt(o)!=="body"||Fe(i))&&(c=sr(o)),Lt(o))){let p=cr(o);l=ze(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function sl(t){return Array.from(t.getClientRects())}function Ni(t){return cr(Zt(t)).left+sr(t).scrollLeft}function cl(t){let r=Zt(t),o=sr(t),n=t.ownerDocument.body,a=He(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=He(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+Ni(t),l=-o.scrollTop;return Ct(n).direction==="rtl"&&(c+=He(r.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}function ll(t,r){let o=xt(t),n=Zt(t),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){i=a.width,c=a.height;let p=Mr();(!p||p&&r==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:c,x:l,y:u}}function dl(t,r){let o=cr(t,!0,r==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=Lt(t)?ze(t):Kt(1),c=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:c,height:l,x:u,y:p}}function Ci(t,r,o){let n;if(r==="viewport")n=ll(t,o);else if(r==="document")n=cl(Zt(t));else if(Mt(r))n=dl(r,o);else{let a=Ri(t);n={...r,x:r.x-a.x,y:r.y-a.y}}return ge(n)}function Ti(t,r){let o=be(t);return o===r||!Mt(o)||ir(o)?!1:Ct(o).position==="fixed"||Ti(o,r)}function ul(t,r){let o=r.get(t);if(o)return o;let n=$r(t,[],!1).filter(l=>Mt(l)&&Vt(l)!=="body"),a=null,i=Ct(t).position==="fixed",c=i?be(t):t;for(;Mt(c)&&!ir(c);){let l=Ct(c),u=Ur(c);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Fe(c)&&!u&&Ti(t,c))?n=n.filter(m=>m!==c):a=l,c=be(c)}return r.set(t,n),n}function pl(t){let{element:r,boundary:o,rootBoundary:n,strategy:a}=t,c=[...o==="clippingAncestors"?ul(r,this._c):[].concat(o),n],l=c[0],u=c.reduce((p,m)=>{let y=Ci(r,m,a);return p.top=He(y.top,p.top),p.right=Vo(y.right,p.right),p.bottom=Vo(y.bottom,p.bottom),p.left=He(y.left,p.left),p},Ci(r,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function fl(t){return wi(t)}function hl(t,r,o){let n=Lt(r),a=Zt(r),i=o==="fixed",c=cr(t,!0,i,r),l={scrollLeft:0,scrollTop:0},u=Kt(0);if(n||!n&&!i)if((Vt(r)!=="body"||Fe(a))&&(l=sr(r)),n){let p=cr(r,!0,i,r);u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}else a&&(u.x=Ni(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Ei(t,r){return!Lt(t)||Ct(t).position==="fixed"?null:r?r(t):t.offsetParent}function Li(t,r){let o=xt(t);if(!Lt(t))return o;let n=Ei(t,r);for(;n&&vi(n)&&Ct(n).position==="static";)n=Ei(n,r);return n&&(Vt(n)==="html"||Vt(n)==="body"&&Ct(n).position==="static"&&!Ur(n))?o:n||Si(t)||o}var yl=async function(t){let{reference:r,floating:o,strategy:n}=t,a=this.getOffsetParent||Li,i=this.getDimensions;return{reference:hl(r,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function ml(t){return Ct(t).direction==="rtl"}var Wr={convertOffsetParentRelativeRectToViewportRelativeRect:il,getDocumentElement:Zt,getClippingRect:pl,getOffsetParent:Li,getElementRects:yl,getClientRects:sl,getDimensions:fl,getScale:ze,isElement:Mt,isRTL:ml};var Ii=(t,r,o)=>{let n=new Map,a={platform:Wr,...o},i={...a.platform,_c:n};return gi(t,r,{...a,platform:i})};function _i(t){return gl(t)}function Zo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function gl(t){for(let r=t;r;r=Zo(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=Zo(t);r;r=Zo(r)){if(!(r instanceof Element))continue;let o=getComputedStyle(r);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||r.tagName==="BODY"))return r}return null}async function Pi(t,r,o){return Ii(t,r,{platform:{...Wr,getOffsetParent:n=>Wr.getOffsetParent(n,_i)},middleware:[Ko({crossAxis:!0}),jo({allowedPlacements:[o]})]})}var vt=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},q=class extends lr.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new lr.Debouncer,this.revealDebouncer=new lr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ki.html`
|
|
524
524
|
<div part="container"
|
|
525
525
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
526
526
|
@mouseenter=${this.onHover}
|
|
@@ -538,7 +538,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
538
538
|
</div>
|
|
539
539
|
</div>
|
|
540
540
|
</div>
|
|
541
|
-
`}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}async showTemporaryText(r,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=r,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Pi(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(r,o){return Math.max(r,Math.min(0,-o))}};q.elementDefinitions={"ft-typography":ht};q.styles=ci;vt([(0,J.property)()],q.prototype,"text",void 0);vt([(0,J.property)({type:Boolean})],q.prototype,"manual",void 0);vt([(0,J.property)({type:Boolean})],q.prototype,"inline",void 0);vt([(0,J.property)({type:Number})],q.prototype,"delay",void 0);vt([(0,J.property)()],q.prototype,"position",void 0);vt([(0,J.queryAssignedNodes)()],q.prototype,"slotNodes",void 0);vt([(0,J.query)(".ft-tooltip--container")],q.prototype,"container",void 0);vt([(0,J.query)(".ft-tooltip")],q.prototype,"tooltip",void 0);vt([(0,J.query)(".ft-tooltip--content")],q.prototype,"tooltipContent",void 0);vt([(0,J.state)()],q.prototype,"visible",void 0);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onTouch",null);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onHover",null);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onOut",null);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onClick",null);(0,Di.customElement)("ft-tooltip")(q);var Wi=C(k());var dr=C(W()),re=C(et()),$i=C(k()),Mi=C(Ui());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.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID=""})(Et||(Et={}));var w;(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=""})(w||(w={}));var Wy=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Hy={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Wt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Wt||(Wt={}));var ur=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yt=class extends $i.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=dr.nothing}render(){let r=this.variant&&Object.values(Wt).includes(this.variant)?this.variant:Wt.fluid_topics,o=r!==Wt.material||!!this.value;return dr.html`
|
|
541
|
+
`}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}async showTemporaryText(r,o){let n=this.manual;this.manual=!0;let a=this.text;this.text=r,await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Pi(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(r,o){return Math.max(r,Math.min(0,-o))}};q.elementDefinitions={"ft-typography":ht};q.styles=ci;vt([(0,J.property)()],q.prototype,"text",void 0);vt([(0,J.property)({type:Boolean})],q.prototype,"manual",void 0);vt([(0,J.property)({type:Boolean})],q.prototype,"inline",void 0);vt([(0,J.property)({type:Number})],q.prototype,"delay",void 0);vt([(0,J.property)()],q.prototype,"position",void 0);vt([(0,J.queryAssignedNodes)()],q.prototype,"slotNodes",void 0);vt([(0,J.query)(".ft-tooltip--container")],q.prototype,"container",void 0);vt([(0,J.query)(".ft-tooltip")],q.prototype,"tooltip",void 0);vt([(0,J.query)(".ft-tooltip--content")],q.prototype,"tooltipContent",void 0);vt([(0,J.state)()],q.prototype,"visible",void 0);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onTouch",null);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onHover",null);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onOut",null);vt([(0,J.eventOptions)({passive:!0})],q.prototype,"onClick",null);(0,Di.customElement)("ft-tooltip")(q);var Wi=C(k());var dr=C(W()),re=C(rt()),Ui=C(k()),Mi=C($i());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.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID=""})(Et||(Et={}));var w;(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=""})(w||(w={}));var Wy=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Hy={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Wt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Wt||(Wt={}));var ur=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yt=class extends Ui.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=dr.nothing}render(){let r=this.variant&&Object.values(Wt).includes(this.variant)?this.variant:Wt.fluid_topics,o=r!==Wt.material||!!this.value;return dr.html`
|
|
542
542
|
<i class="ft-icon ft-icon--${r} ft-no-text-select" part="icon icon-${r}">
|
|
543
543
|
${(0,Mi.unsafeHTML)(this.resolvedIcon)}
|
|
544
544
|
<slot ?hidden=${o}></slot>
|
|
@@ -550,8 +550,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
550
550
|
<div></div>
|
|
551
551
|
<div></div>
|
|
552
552
|
</div>
|
|
553
|
-
`}};xe.styles=_a;(0,zi.customElement)("ft-loader")(xe);var oe=C(W()),qo=C(Ir()),
|
|
554
|
-
<ft-ripple part="ripple"
|
|
553
|
+
`}};xe.styles=_a;(0,zi.customElement)("ft-loader")(xe);var oe=C(W()),qo=C(Ir()),tt=C(rt()),ct=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},z=class extends(0,ne.toFtFormComponent)(ne.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=oe.html`
|
|
554
|
+
<ft-ripple part="ripple"
|
|
555
|
+
?disabled=${this.isDisabled()}
|
|
556
|
+
?activated=${this.activated}
|
|
557
|
+
></ft-ripple>
|
|
555
558
|
<ft-typography part="label"
|
|
556
559
|
variant=${this.typographyVariant}
|
|
557
560
|
element="span"
|
|
@@ -587,7 +590,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
587
590
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
588
591
|
`:oe.html`
|
|
589
592
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(r,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(r,o)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,ne.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
593
|
+
`}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(r,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(r,o)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,ne.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};z.elementDefinitions={"ft-ripple":Z,"ft-tooltip":q,"ft-typography":ht,"ft-icon":yt,"ft-loader":xe};ct([(0,tt.property)()],z.prototype,"href",void 0);ct([(0,tt.property)()],z.prototype,"target",void 0);ct([(0,tt.property)()],z.prototype,"type",void 0);ct([(0,tt.property)({type:Boolean})],z.prototype,"disabled",void 0);ct([(0,tt.property)()],z.prototype,"label",void 0);ct([(0,tt.property)()],z.prototype,"icon",void 0);ct([(0,tt.property)()],z.prototype,"iconVariant",void 0);ct([(0,tt.property)({type:Boolean})],z.prototype,"trailingIcon",void 0);ct([(0,tt.property)({type:Boolean})],z.prototype,"loading",void 0);ct([(0,tt.property)({attribute:"aria-label"})],z.prototype,"ariaLabel",void 0);ct([(0,tt.property)()],z.prototype,"tooltipPosition",void 0);ct([(0,tt.property)({type:Boolean})],z.prototype,"hideTooltip",void 0);ct([(0,tt.property)({type:Boolean})],z.prototype,"forceTooltip",void 0);ct([(0,tt.property)({type:Boolean})],z.prototype,"activated",void 0);ct([(0,tt.query)(".ft-button")],z.prototype,"button",void 0);ct([(0,tt.query)(".ft-button--label slot")],z.prototype,"slottedContent",void 0);ct([(0,tt.query)("[part=tooltip]")],z.prototype,"tooltip",void 0);var Hr=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},qt=class extends z{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};qt.styles=[Gi.safariEllipsisFix,Ua];Hr([(0,pr.property)({type:Boolean})],qt.prototype,"primary",void 0);Hr([(0,pr.property)({type:Boolean})],qt.prototype,"outlined",void 0);Hr([(0,pr.property)({type:Boolean})],qt.prototype,"dense",void 0);Hr([(0,pr.property)({type:Boolean})],qt.prototype,"round",void 0);var fr=C(rt());var zr=C(k());var ji=C(W()),O=C(k());var Ki=[ji.css`
|
|
591
594
|
:host {
|
|
592
595
|
display: inline-block;
|
|
593
596
|
max-width: 100%;
|
|
@@ -1053,7 +1056,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1053
1056
|
.ftds--size-small.ft-button--icon-only {
|
|
1054
1057
|
width: ${f.smallIconOnlyWidth};
|
|
1055
1058
|
}
|
|
1056
|
-
`,O.noTextSelect];var Fr=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mt=class extends(0,zr.toFtdsBase)(
|
|
1059
|
+
`,O.noTextSelect];var Fr=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mt=class extends(0,zr.toFtdsBase)(z){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Re.brand,this.iconVariant=Wt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case pt.large:return Rt.body2medium;case pt.medium:return Rt.caption1medium;case pt.small:return Rt.caption2medium}}};mt.styles=[zr.safariEllipsisFix,Ki];Fr([(0,fr.property)({type:Boolean})],mt.prototype,"primary",void 0);Fr([(0,fr.property)({type:Boolean})],mt.prototype,"secondary",void 0);Fr([(0,fr.property)({type:Boolean})],mt.prototype,"tertiary",void 0);Fr([(0,fr.property)({type:Boolean})],mt.prototype,"round",void 0);(0,Yo.customElement)("ft-button")(qt);(0,Yo.customElement)("ftds-button")(mt);var Pn=C(k());var wr=C(W()),Ar=C(rt()),So=C(k()),Dc=C(Ir());var Vi=C(W());var Xo=C(k());var Zi=[Vi.css`
|
|
1057
1060
|
.ftds--size-small [part=dialog] {
|
|
1058
1061
|
--ftds-modal--target-width: ${H.smallContainerTargetWidth};
|
|
1059
1062
|
}
|
|
@@ -1138,11 +1141,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1138
1141
|
display: flex;
|
|
1139
1142
|
gap: ${Xo.foundation.spacing3}
|
|
1140
1143
|
}
|
|
1141
|
-
`];var Pc=C(k());var go=C(W()),bo=C(
|
|
1142
|
-
`;var yo=C(k());var Ac=C(k());var ts=C(W()),St=C(
|
|
1144
|
+
`];var Pc=C(k());var go=C(W()),bo=C(rt()),xo=C(k());var qi=C(W());var Yi=qi.css`
|
|
1145
|
+
`;var yo=C(k());var Ac=C(k());var ts=C(W()),St=C(rt()),It=C(k());var Xi=C(W());var Qi=Xi.css`
|
|
1143
1146
|
`;var Gr=C(k()),bl="ft-app-info",Qo=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},xl={session:(t,r)=>{(0,Gr.deepEqual)(t.session,r.payload)||(t.session=r.payload,setTimeout(()=>_.dispatchEvent(new Qo(r.payload)),0))}},_=Gr.FtReduxStore.get({name:bl,reducers:xl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ht=C(k());var Jo=C(k());var ve=class t{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=t.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=t.get(r),n&&(a(),o(n))})}})}};var hr=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:ve.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ve.await()}};var ae=class extends hr{constructor(r=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Jo.CacheRegistry,this.cache=r?a.commonCache:new Jo.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ji,vl=Symbol("clearAfterUnitTest"),jr=class extends ae{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ji]=()=>{this.defaultMessages={},this.cache=new Ht.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ht.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ht.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r))}catch(a){!(a instanceof Ht.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(r),n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ht.delay)(0).then(()=>o()).catch(()=>null)))}};Ji=vl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends jr{constructor(){super(async(t,r)=>(await this.awaitApi).getFluidTopicsMessageContext(t,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends jr{constructor(){super(async(t,r)=>(await this.awaitApi).getCustomMessageContext(t,r))}});var Ge=window.FluidTopicsI18nService,Kr=window.FluidTopicsCustomI18nService;var lt=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Y=class extends It.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ve.get(),this.messageContexts=[],this.cache=new It.CacheRegistry,this.cleanSessionDebouncer=new It.Debouncer}render(){return ts.html`
|
|
1144
1147
|
<slot></slot>
|
|
1145
|
-
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ge.addContext(l)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};Y.elementDefinitions={};Y.styles=Qi;lt([(0,St.property)()],Y.prototype,"baseUrl",void 0);lt([(0,St.property)()],Y.prototype,"apiIntegrationIdentifier",void 0);lt([(0,St.property)()],Y.prototype,"uiLocale",void 0);lt([(0,It.jsonProperty)(null)],Y.prototype,"availableUiLocales",void 0);lt([(0,It.jsonProperty)(null)],Y.prototype,"metadataConfiguration",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"editorMode",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"noCustom",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"openExternalDocumentInNewTab",void 0);lt([(0,St.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Y.prototype,"noCustomComponent",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"withManualResources",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"navigatorOnline",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"forcedOffline",void 0);lt([(0,St.property)({type:Object})],Y.prototype,"apiProvider",void 0);lt([(0,It.jsonProperty)([])],Y.prototype,"messageContexts",void 0);lt([(0,It.jsonProperty)(void 0)],Y.prototype,"session",void 0);lt([(0,St.state)()],Y.prototype,"localesConfiguration",void 0);var sd=C(et());function Sl(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Vr(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!Vr(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(t),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Vr(t[c],r[c]))return!1}return!0}return t!==t&&r!==r||t==null&&r==null}function Vr(t,r){try{return Sl(t,r)}catch{return!1}}function Zr(t,r){return!Vr(t,r)}var Ol=C(et(),1);var qr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var je=C(et(),1);var es=C(et(),1);function rs(t,r){let o=()=>JSON.parse(JSON.stringify(t));return(0,es.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Zr,...r??{}})}var Yr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ns=C(W(),1);var Xr=globalThis,Cl=Xr.ShadowRoot&&(Xr.ShadyCSS===void 0||Xr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ug=Symbol();var os=(t,r)=>{if(Cl)t.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Xr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Qr=class extends ns.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return os(n,r.elementStyles),n}};function as(t,r,...o){var n;let a=t.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var yr=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ls,is=Symbol("constructorPrototype"),ss=Symbol("constructorName"),ds=Symbol("exportpartsDebouncer"),cs=Symbol("dynamicDependenciesLoaded"),Yt=class extends Qr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ls]=new Yr(5),this[ss]=this.constructor.name,this[is]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ss]&&Object.setPrototypeOf(this,this[is])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[cs]||(r[cs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=as(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ds].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=r.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};ls=ds;yr([(0,je.property)()],Yt.prototype,"exportpartsPrefix",void 0);yr([rs([])],Yt.prototype,"exportpartsPrefixes",void 0);yr([(0,je.property)()],Yt.prototype,"customStylesheet",void 0);yr([(0,je.property)()],Yt.prototype,"elementToFocus",void 0);yr([(0,je.state)()],Yt.prototype,"useAdoptedStyleSheets",void 0);function mr(t){var r;return(r=t?.isFtReduxStore)!==null&&r!==void 0?r:!1}var us,ps,fs,gr=Symbol("internalReduxEventsUnsubscribers"),ie=Symbol("internalStoresUnsubscribers"),Se=Symbol("internalStores"),br=class extends Yt{constructor(){super(...arguments),this[us]=new Map,this[ps]=new Map,this[fs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Se].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[Se].get(r)}addStore(r,o){var n;o=(n=o??(mr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Se].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[Se].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Se].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[ie].has(r.store):this[ie].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[ie].set(r,o.subscribe(()=>this.updateFromStores())),this[gr].set(r,[]),mr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[gr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[ie].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[ie].has(r)&&this[ie].get(r)(),this[ie].delete(r),(o=this[gr].get(r))===null||o===void 0||o.forEach(n=>n()),this[gr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};us=ie,ps=Se,fs=gr;br.reduxProperties=new Map;br.reduxReactiveProperties=new Set;br.reduxEventListeners=new Map;function Nt(t){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xt(t){return!!t&&!!t[z]}function _t(t){var r;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Il}(t)||Array.isArray(t)||!!t[vs]||!!(!((r=t.constructor)===null||r===void 0)&&r[vs])||ln(t)||dn(t))}function Oe(t,r,o){o===void 0&&(o=!1),Ze(t)===0?(o?Object.keys:Ve)(t).forEach(function(n){o&&typeof n=="symbol"||r(n,t[n],t)}):t.forEach(function(n,a){return r(a,n,t)})}function Ze(t){var r=t[z];return r?r.i>3?r.i-4:r.i:Array.isArray(t)?1:ln(t)?2:dn(t)?3:0}function Ke(t,r){return Ze(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function El(t,r){return Ze(t)===2?t.get(r):t[r]}function Ss(t,r,o){var n=Ze(t);n===2?t.set(r,o):n===3?t.add(o):t[r]=o}function Os(t,r){return t===r?t!==0||1/t==1/r:t!=t&&r!=r}function ln(t){return Tl&&t instanceof Map}function dn(t){return Ll&&t instanceof Set}function se(t){return t.o||t.t}function un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var r=ws(t);delete r[z];for(var o=Ve(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),r)}function pn(t,r){return r===void 0&&(r=!1),fn(t)||Xt(t)||!_t(t)||(Ze(t)>1&&(t.set=t.add=t.clear=t.delete=wl),Object.freeze(t),r&&Oe(t,function(o,n){return pn(n,!0)},!0)),t}function wl(){Nt(2)}function fn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ft(t){var r=cn[t];return r||Nt(18,t),r}function Al(t,r){cn[t]||(cn[t]=r)}function nn(){return vr}function tn(t,r){r&&(Ft("Patches"),t.u=[],t.s=[],t.v=r)}function Jr(t){an(t),t.p.forEach(Rl),t.p=null}function an(t){t===vr&&(vr=t.l)}function hs(t){return vr={p:[],l:vr,h:t,m:!0,_:0}}function Rl(t){var r=t[z];r.i===0||r.i===1?r.j():r.g=!0}function en(t,r){r._=r.p.length;var o=r.p[0],n=t!==void 0&&t!==o;return r.h.O||Ft("ES5").S(r,t,n),n?(o[z].P&&(Jr(r),Nt(4)),_t(t)&&(t=to(r,t),r.l||eo(r,t)),r.u&&Ft("Patches").M(o[z].t,t,r.u,r.s)):t=to(r,o,[]),Jr(r),r.u&&r.v(r.u,r.s),t!==Es?t:void 0}function to(t,r,o){if(fn(r))return r;var n=r[z];if(!n)return Oe(r,function(l,u){return ys(t,n,r,l,u,o)},!0),r;if(n.A!==t)return r;if(!n.P)return eo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=un(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Oe(i,function(l,u){return ys(t,n,a,l,u,o,c)}),eo(t,a,!1),o&&t.u&&Ft("Patches").N(n,o,t.u,t.s)}return n.o}function ys(t,r,o,n,a,i,c){if(Xt(a)){var l=to(t,a,i&&r&&r.i!==3&&!Ke(r.R,n)?i.concat(n):void 0);if(Ss(o,n,l),!Xt(l))return;t.m=!1}else c&&o.add(a);if(_t(a)&&!fn(a)){if(!t.h.D&&t._<1)return;to(t,a),r&&r.A.l||eo(t,a)}}function eo(t,r,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pn(r,o)}function rn(t,r){var o=t[z];return(o?se(o):t)[r]}function ms(t,r){if(r in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function on(t){t.o||(t.o=un(t.t))}function sn(t,r,o){var n=ln(r)?Ft("MapSet").F(r,o):dn(r)?Ft("MapSet").T(r,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:nn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Sr;c&&(u=[l],p=xr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(r,o):Ft("ES5").J(r,o);return(o?o.A:nn()).p.push(n),n}function Nl(t){return Xt(t)||Nt(22,t),function r(o){if(!_t(o))return o;var n,a=o[z],i=Ze(o);if(a){if(!a.P&&(a.i<4||!Ft("ES5").K(a)))return a.t;a.I=!0,n=gs(o,i),a.I=!1}else n=gs(o,i);return Oe(n,function(c,l){a&&El(a.t,c)===l||Ss(n,c,r(l))}),i===3?new Set(n):n}(t)}function gs(t,r){switch(r){case 2:return new Map(t);case 3:return Array.from(t)}return un(t)}function Cs(){function t(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[z];return Sr.get(p,c)},set:function(p){var m=this[z];Sr.set(m,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][z];if(!u.P)switch(u.i){case 5:n(u)&&ce(u);break;case 4:o(u)&&ce(u)}}}function o(c){for(var l=c.t,u=c.k,p=Ve(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==z){var g=l[y];if(g===void 0&&!Ke(l,y))return!0;var v=u[y],x=v&&v[z];if(x?x.t!==g:!Os(v,g))return!0}}var S=!!l[z];return p.length!==Ve(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Nt(3,JSON.stringify(se(c)))}var i={};Al("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=ws(g);delete S[z];for(var T=Ve(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(u,c),m={i:u?5:4,A:l?l.A:nn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,z,{value:m,writable:!0}),p},S:function(c,l,u){u?Xt(l)&&l[z].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[z];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)Oe(v,function(B){B!==z&&(g[B]!==void 0||Ke(g,B)?x[B]||p(v[B]):(x[B]=!0,ce(y)))}),Oe(g,function(B){v[B]!==void 0||Ke(v,B)||(x[B]=!1,ce(y))});else if(S===5){if(n(y)&&(ce(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var bs,vr,hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Tl=typeof Map<"u",Ll=typeof Set<"u",xs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Es=hn?Symbol.for("immer-nothing"):((bs={})["immer-nothing"]=!0,bs),vs=hn?Symbol.for("immer-draftable"):"__$immer_draftable",z=hn?Symbol.for("immer-state"):"__$immer_state";var Il=""+Object.prototype.constructor,Ve=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ws=Object.getOwnPropertyDescriptors||function(t){var r={};return Ve(t).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(t,o)}),r},cn={},Sr={get:function(t,r){if(r===z)return t;var o=se(t);if(!Ke(o,r))return function(a,i,c){var l,u=ms(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,r);var n=o[r];return t.I||!_t(n)?n:n===rn(t.t,r)?(on(t),t.o[r]=sn(t.A.h,n,t)):n},has:function(t,r){return r in se(t)},ownKeys:function(t){return Reflect.ownKeys(se(t))},set:function(t,r,o){var n=ms(se(t),r);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=rn(se(t),r),i=a?.[z];if(i&&i.t===o)return t.o[r]=o,t.R[r]=!1,!0;if(Os(o,a)&&(o!==void 0||Ke(t.t,r)))return!0;on(t),ce(t)}return t.o[r]===o&&(o!==void 0||r in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[r])||(t.o[r]=o,t.R[r]=!0),!0},deleteProperty:function(t,r){return rn(t.t,r)!==void 0||r in t.t?(t.R[r]=!1,on(t),ce(t)):delete t.R[r],t.o&&delete t.o[r],!0},getOwnPropertyDescriptor:function(t,r){var o=se(t),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:t.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Nt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Nt(12)}},xr={};Oe(Sr,function(t,r){xr[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),xr.deleteProperty=function(t,r){return xr.set.call(this,t,r,void 0)},xr.set=function(t,r,o){return Sr.set.call(this,t[0],r,o,t[0])};var _l=function(){function t(o){var n=this;this.O=xs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(S,function(B){var U;return(U=i).call.apply(U,[T,B].concat(N))})}}var p;if(typeof i!="function"&&Nt(6),c!==void 0&&typeof c!="function"&&Nt(7),_t(a)){var m=hs(n),y=sn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Jr(m):an(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return tn(m,c),en(S,m)},function(S){throw Jr(m),S}):(tn(m,c),en(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Es&&(p=void 0),n.D&&pn(p,!0),c){var v=[],x=[];Ft("Patches").M(a,p,v,x),c(v,x)}return p}Nt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=t.prototype;return r.createDraft=function(o){_t(o)||Nt(8),Xt(o)&&(o=Nl(o));var n=hs(this),a=sn(this,o,void 0);return a[z].C=!0,an(n),a},r.finishDraft=function(o,n){var a=o&&o[z],i=a.A;return tn(i,n),en(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!xs&&Nt(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ft("Patches").$;return Xt(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),wt=new _l,Pl=wt.produce,wg=wt.produceWithPatches.bind(wt),Ag=wt.setAutoFreeze.bind(wt),Rg=wt.setUseProxies.bind(wt),Ng=wt.applyPatches.bind(wt),Tg=wt.createDraft.bind(wt),Lg=wt.finishDraft.bind(wt),ro=Pl;function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ce(t)}function As(t,r){if(Ce(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,r||"default");if(Ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Rs(t){var r=As(t,"string");return Ce(r)=="symbol"?r:r+""}function Ns(t,r,o){return(r=Rs(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function Ts(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function yn(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ts(Object(o),!0).forEach(function(n){Ns(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ts(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function dt(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 Ls=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),mn=function(){return Math.random().toString(36).substring(7).split("").join(".")},oo={INIT:"@@redux/INIT"+mn(),REPLACE:"@@redux/REPLACE"+mn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mn()}};function kl(t){if(typeof t!="object"||t===null)return!1;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}function gn(t,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(dt(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(dt(1));return o(gn)(t,r)}if(typeof t!="function")throw new Error(dt(2));var a=t,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(dt(3));return i}function y(S){if(typeof S!="function")throw new Error(dt(4));if(u)throw new Error(dt(5));var T=!0;return p(),l.push(S),function(){if(T){if(u)throw new Error(dt(6));T=!1,p();var N=l.indexOf(S);l.splice(N,1),c=null}}}function g(S){if(!kl(S))throw new Error(dt(7));if(typeof S.type>"u")throw new Error(dt(8));if(u)throw new Error(dt(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(dt(10));a=S,g({type:oo.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(dt(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},S[Ls]=function(){return this},S}return g({type:oo.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[Ls]=x,n}function Dl(t){Object.keys(t).forEach(function(r){var o=t[r],n=o(void 0,{type:oo.INIT});if(typeof n>"u")throw new Error(dt(12));if(typeof o(void 0,{type:oo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(dt(13))})}function Is(t){for(var r=Object.keys(t),o={},n=0;n<r.length;n++){var a=r[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),c,l;try{Dl(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],T=o[S],R=p[S],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(dt(14))}v[S]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function qe(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function _s(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(dt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=qe.apply(void 0,l)(a.dispatch),yn(yn({},a),{},{dispatch:i})}}}function Ps(t){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return r}var ks=Ps();ks.withExtraArgument=Ps;var bn=ks;var Ms=function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bl=function(t,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ye=function(t,r){for(var o=0,n=r.length,a=t.length;o<n;o++,a++)t[a]=r[o];return t},Ul=Object.defineProperty,$l=Object.defineProperties,Ml=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Bs=function(t,r,o){return r in t?Ul(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o},le=function(t,r){for(var o in r||(r={}))Wl.call(r,o)&&Bs(t,o,r[o]);if(Ds)for(var n=0,a=Ds(r);n<a.length;n++){var o=a[n];Hl.call(r,o)&&Bs(t,o,r[o])}return t},xn=function(t,r){return $l(t,Ml(r))},Fl=function(t,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(t,r)).next())})};var zl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qe:qe.apply(null,arguments)},Zg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Gl(t){if(typeof t!="object"||t===null)return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var jl=function(t){Ms(r,t);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ye([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ye([void 0],o.concat(this))))},r}(Array),Kl=function(t){Ms(r,t);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ye([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ye([void 0],o.concat(this))))},r}(Array);function On(t){return _t(t)?ro(t,function(){}):t}function Vl(t){return typeof t=="boolean"}function Zl(){return function(r){return ql(r)}}function ql(t){t===void 0&&(t={});var r=t.thunk,o=r===void 0?!0:r,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,c=i===void 0?!0:i,l=new jl;if(o&&(Vl(o)?l.push(bn):l.push(bn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var vn=!0;function Ws(t){var r=Zl(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(Gl(a))v=Is(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!vn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!vn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=_s.apply(void 0,x),T=qe;u&&(T=zl(le({trace:!vn},typeof u=="object"&&u)));var R=new Kl(S),N=R;Array.isArray(g)?N=Ye([S],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return gn(v,m,P)}function de(t,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return le(le({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Hs(t){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[r,o,n]}function Yl(t){return typeof t=="function"}function Xl(t,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Hs(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(Yl(t))u=function(){return On(t())};else{var p=On(t);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var v=Ye([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Xt(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(_t(x))return ro(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=u,m}function Ql(t,r){return t+"/"+r}function Fs(t){var r=t.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:On(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var y=n[m],g=Ql(r,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[m]=v,c[g]=v,l[m]=x?de(g,x):de(g)});function u(){var m=typeof t.extraReducers=="function"?Hs(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=le(le({},g),c);return Xl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,U=x;B<U.length;B++){var gt=U[B];N.addMatcher(gt.matcher,gt.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Jl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",td=function(t){t===void 0&&(t=21);for(var r="",o=t;o--;)r+=Jl[Math.random()*64|0];return r},ed=["name","message","stack","code"],Sn=function(){function t(r,o){this.payload=r,this.meta=o}return t}(),Us=function(){function t(r,o){this.payload=r,this.meta=o}return t}(),rd=function(t){if(typeof t=="object"&&t!==null){for(var r={},o=0,n=ed;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(r[a]=t[a])}return r}return{message:String(t)}},Qg=function(){function t(r,o,n){var a=de(r+"/fulfilled",function(m,y,g,v){return{payload:m,meta:xn(le({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=de(r+"/pending",function(m,y,g){return{payload:void 0,meta:xn(le({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=de(r+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||rd)(m||"Rejected"),meta:xn(le({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):td(),S=new u,T,R=!1;function N(B){T=B,S.abort()}var P=function(){return Fl(this,null,function(){var B,U,gt,Dt,ut,Bt,at;return Bl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Dt=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),nd(Dt)?[4,Dt]:[3,2];case 1:Dt=h.sent(),h.label=2;case 2:if(Dt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ut=new Promise(function(b,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:T||"Aborted"})})}),y(i(x,m,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([ut,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,I){return new Sn(b,I)},fulfillWithValue:function(b,I){return new Us(b,I)}})).then(function(b){if(b instanceof Sn)throw b;return b instanceof Us?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return gt=h.sent(),[3,5];case 4:return Bt=h.sent(),gt=Bt instanceof Sn?c(null,x,m,Bt.payload,Bt.meta):c(Bt,x,m),[3,5];case 5:return at=n&&!n.dispatchConditionRejection&&c.match(gt)&>.meta.condition,at||y(gt),[2,gt]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(od)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return t.withTypes=function(){return t},t}();function od(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function nd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var zs="listener",Gs="completed",js="cancelled",Jg="task-"+js,tb="task-"+Gs,eb=zs+"-"+js,rb=zs+"-"+Gs;var Cn="listenerMiddleware";var ob=de(Cn+"/add"),nb=de(Cn+"/removeAll"),ab=de(Cn+"/remove");var $s,ib=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return($s||($s=Promise.resolve())).then(t).catch(function(r){return setTimeout(function(){throw r},0)})},ad=function(t){return function(r){setTimeout(r,t)}},sb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ad(10);Cs();function id(t,r){return class extends t{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var no=class extends id(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class t extends no{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(mr(i))return i;if(a==null)return;let c=Fs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ws({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new t(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new qr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var uo=C(k());var ld=C(Zs(),1);var qs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qs||(qs={}));var Ys;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ys||(Ys={}));var Xs;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Xs||(Xs={}));var Qs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qs||(Qs={}));var Js;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Js||(Js={}));var tc;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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__DISPLAY="TOPIC__DISPLAY",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"})(tc||(tc={}));var ec;(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"})(ec||(ec={}));var rc;(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"})(rc||(rc={}));var oc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(oc||(oc={}));var nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nc||(nc={}));var ac;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ac||(ac={}));var ic;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ic||(ic={}));var sc;(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"})(sc||(sc={}));var cc;(function(t){t.ASC="ASC",t.DESC="DESC"})(cc||(cc={}));var lc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(lc||(lc={}));var dc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(dc||(dc={}));var uc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(uc||(uc={}));var pc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(pc||(pc={}));var fc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(fc||(fc={}));var hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hc||(hc={}));var yc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yc||(yc={}));var mc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(mc||(mc={}));var tt;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(tt||(tt={}));var gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(gc||(gc={}));var bc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(bc||(bc={}));var xc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(xc||(xc={}));var cd={[tt.PERSONAL_BOOK_SHARE_USER]:[tt.PERSONAL_BOOK_USER],[tt.HTML_EXPORT_USER]:[tt.PERSONAL_BOOK_USER],[tt.PDF_EXPORT_USER]:[tt.PERSONAL_BOOK_USER],[tt.KHUB_ADMIN]:[tt.CONTENT_PUBLISHER],[tt.ADMIN]:[tt.KHUB_ADMIN,tt.USERS_ADMIN,tt.PORTAL_ADMIN],[tt.GENERATIVE_AI_EXPORT_USER]:[tt.GENERATIVE_AI_USER]};function vc(t,r){return t===r||(cd[t]??[]).some(o=>vc(o,r))}function Sc(t,r){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>vc(n,r))}var so=class extends ae{async listMySearches(){let{session:r}=_.getState();return Sc(r,tt.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var co=class extends ae{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var dd="ft-user-assets",lo=uo.FtReduxStore.get({name:dd,initialState:{savedSearches:void 0,bookmarks:void 0}}),En=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new co,this.savedSearchesService=new so,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,uo.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),lo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),lo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();lo.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;lo.actions.bookmarks(o)}}},ox=new En;var wn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new wn;var Oc=C(k()),An=class{highlightHtml(r,o,n){(0,Oc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new An;var Cc=C(k());var Rn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Cc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Rn;var Ec=C(k());var Or=class{static get(r,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ec.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Nn=class{urlToSearchRequest(r){return Or.get().parse(r)}searchRequestToUrl(r){return Or.get().serialize(r)}};window.FluidTopicsUrlService=new Nn;var pe=C(k());var Ee=class t extends CustomEvent{constructor(r){super(t.eventName,{detail:{currentItem:r}})}};Ee.eventName="change";var Tn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},wc=new Tn;var po=class t extends pe.WithEventBus{static build(){return new t(window.history,wc,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ee(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r,o=!1){var n,a,i;let c={...this.buildCurrentState(),...r,index:this.currentIndex,title:(n=r?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=r?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:r?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(r){this.addEventListener(Ee.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(Ee.eventName,r)}currentItem(){return(0,pe.deepCopy)(this.currentState)}back(){let r=this.previousMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pe.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let r=this.currentIndex;for(;r>0&&!this.isMajorState(r);)r--;return this.previousExistingPosition(r)}forward(){let r=this.nextMajorPosition();r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){return(0,pe.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let r=this.currentIndex;do r++;while(r<this.states.length&&!this.isMajorState(r));do r++;while(r<this.states.length&&!this.isMajorState(r));return this.previousExistingPosition(r)}previousExistingPosition(r){let o=r;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isMajorState(r){var o,n;return this.hasState(r)&&((n=(o=this.states[r])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=po.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});(0,Ac.customElement)("ft-app-context")(Y);var Ic=C(et());var ud=C(k());function Rc(t){return t.match(/^[\w-]+\.[\w-]+$/)}var pd=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Nc=Symbol("i18nAttributes"),Tc=Symbol("i18nListAttributes"),_c=Symbol("i18nProperties"),fo=Symbol("i18nContexts"),Cr=Symbol("i18nUnsubs");function mo(t){var r,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Kr:Ge}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(Rc(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[Nc])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(l=this[Tc])===null||l===void 0||l.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(v=>p(m,y,v))})}updateI18nProperties(i){var c;(c=this[_c])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[fo].set(u,{isCustomContext:l}),this[Cr].has(u)||this[Cr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[fo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[fo].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Cr].forEach(i=>i()),this[Cr].clear()}}return r=fo,o=Cr,pd([(0,Ic.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Lc=class extends mo(yo.FtLitElement){},ho=class extends mo(yo.FtLitElementRedux){};var Er=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Pt=class extends ho{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":go.nothing:go.html`
|
|
1148
|
+
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ge.addContext(l)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};Y.elementDefinitions={};Y.styles=Qi;lt([(0,St.property)()],Y.prototype,"baseUrl",void 0);lt([(0,St.property)()],Y.prototype,"apiIntegrationIdentifier",void 0);lt([(0,St.property)()],Y.prototype,"uiLocale",void 0);lt([(0,It.jsonProperty)(null)],Y.prototype,"availableUiLocales",void 0);lt([(0,It.jsonProperty)(null)],Y.prototype,"metadataConfiguration",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"editorMode",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"noCustom",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"openExternalDocumentInNewTab",void 0);lt([(0,St.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Y.prototype,"noCustomComponent",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"withManualResources",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"navigatorOnline",void 0);lt([(0,St.property)({type:Boolean})],Y.prototype,"forcedOffline",void 0);lt([(0,St.property)({type:Object})],Y.prototype,"apiProvider",void 0);lt([(0,It.jsonProperty)([])],Y.prototype,"messageContexts",void 0);lt([(0,It.jsonProperty)(void 0)],Y.prototype,"session",void 0);lt([(0,St.state)()],Y.prototype,"localesConfiguration",void 0);var sd=C(rt());function Sl(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Vr(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!Vr(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(t),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Vr(t[c],r[c]))return!1}return!0}return t!==t&&r!==r||t==null&&r==null}function Vr(t,r){try{return Sl(t,r)}catch{return!1}}function Zr(t,r){return!Vr(t,r)}var Ol=C(rt(),1);var qr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var je=C(rt(),1);var es=C(rt(),1);function rs(t,r){let o=()=>JSON.parse(JSON.stringify(t));return(0,es.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Zr,...r??{}})}var Yr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ns=C(W(),1);var Xr=globalThis,Cl=Xr.ShadowRoot&&(Xr.ShadyCSS===void 0||Xr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ug=Symbol();var os=(t,r)=>{if(Cl)t.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Xr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Qr=class extends ns.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return os(n,r.elementStyles),n}};function as(t,r,...o){var n;let a=t.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var yr=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ls,is=Symbol("constructorPrototype"),ss=Symbol("constructorName"),ds=Symbol("exportpartsDebouncer"),cs=Symbol("dynamicDependenciesLoaded"),Yt=class extends Qr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ls]=new Yr(5),this[ss]=this.constructor.name,this[is]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ss]&&Object.setPrototypeOf(this,this[is])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[cs]||(r[cs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=as(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ds].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=r.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(u).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};ls=ds;yr([(0,je.property)()],Yt.prototype,"exportpartsPrefix",void 0);yr([rs([])],Yt.prototype,"exportpartsPrefixes",void 0);yr([(0,je.property)()],Yt.prototype,"customStylesheet",void 0);yr([(0,je.property)()],Yt.prototype,"elementToFocus",void 0);yr([(0,je.state)()],Yt.prototype,"useAdoptedStyleSheets",void 0);function mr(t){var r;return(r=t?.isFtReduxStore)!==null&&r!==void 0?r:!1}var us,ps,fs,gr=Symbol("internalReduxEventsUnsubscribers"),ie=Symbol("internalStoresUnsubscribers"),Se=Symbol("internalStores"),br=class extends Yt{constructor(){super(...arguments),this[us]=new Map,this[ps]=new Map,this[fs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Se].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[Se].get(r)}addStore(r,o){var n;o=(n=o??(mr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Se].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[Se].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Se].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[ie].has(r.store):this[ie].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[ie].set(r,o.subscribe(()=>this.updateFromStores())),this[gr].set(r,[]),mr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[gr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[ie].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[ie].has(r)&&this[ie].get(r)(),this[ie].delete(r),(o=this[gr].get(r))===null||o===void 0||o.forEach(n=>n()),this[gr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};us=ie,ps=Se,fs=gr;br.reduxProperties=new Map;br.reduxReactiveProperties=new Set;br.reduxEventListeners=new Map;function Nt(t){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xt(t){return!!t&&!!t[G]}function _t(t){var r;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Il}(t)||Array.isArray(t)||!!t[vs]||!!(!((r=t.constructor)===null||r===void 0)&&r[vs])||ln(t)||dn(t))}function Oe(t,r,o){o===void 0&&(o=!1),Ze(t)===0?(o?Object.keys:Ve)(t).forEach(function(n){o&&typeof n=="symbol"||r(n,t[n],t)}):t.forEach(function(n,a){return r(a,n,t)})}function Ze(t){var r=t[G];return r?r.i>3?r.i-4:r.i:Array.isArray(t)?1:ln(t)?2:dn(t)?3:0}function Ke(t,r){return Ze(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function El(t,r){return Ze(t)===2?t.get(r):t[r]}function Ss(t,r,o){var n=Ze(t);n===2?t.set(r,o):n===3?t.add(o):t[r]=o}function Os(t,r){return t===r?t!==0||1/t==1/r:t!=t&&r!=r}function ln(t){return Tl&&t instanceof Map}function dn(t){return Ll&&t instanceof Set}function se(t){return t.o||t.t}function un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var r=ws(t);delete r[G];for(var o=Ve(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),r)}function pn(t,r){return r===void 0&&(r=!1),fn(t)||Xt(t)||!_t(t)||(Ze(t)>1&&(t.set=t.add=t.clear=t.delete=wl),Object.freeze(t),r&&Oe(t,function(o,n){return pn(n,!0)},!0)),t}function wl(){Nt(2)}function fn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ft(t){var r=cn[t];return r||Nt(18,t),r}function Al(t,r){cn[t]||(cn[t]=r)}function nn(){return vr}function tn(t,r){r&&(Ft("Patches"),t.u=[],t.s=[],t.v=r)}function Jr(t){an(t),t.p.forEach(Rl),t.p=null}function an(t){t===vr&&(vr=t.l)}function hs(t){return vr={p:[],l:vr,h:t,m:!0,_:0}}function Rl(t){var r=t[G];r.i===0||r.i===1?r.j():r.g=!0}function en(t,r){r._=r.p.length;var o=r.p[0],n=t!==void 0&&t!==o;return r.h.O||Ft("ES5").S(r,t,n),n?(o[G].P&&(Jr(r),Nt(4)),_t(t)&&(t=to(r,t),r.l||eo(r,t)),r.u&&Ft("Patches").M(o[G].t,t,r.u,r.s)):t=to(r,o,[]),Jr(r),r.u&&r.v(r.u,r.s),t!==Es?t:void 0}function to(t,r,o){if(fn(r))return r;var n=r[G];if(!n)return Oe(r,function(l,u){return ys(t,n,r,l,u,o)},!0),r;if(n.A!==t)return r;if(!n.P)return eo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=un(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Oe(i,function(l,u){return ys(t,n,a,l,u,o,c)}),eo(t,a,!1),o&&t.u&&Ft("Patches").N(n,o,t.u,t.s)}return n.o}function ys(t,r,o,n,a,i,c){if(Xt(a)){var l=to(t,a,i&&r&&r.i!==3&&!Ke(r.R,n)?i.concat(n):void 0);if(Ss(o,n,l),!Xt(l))return;t.m=!1}else c&&o.add(a);if(_t(a)&&!fn(a)){if(!t.h.D&&t._<1)return;to(t,a),r&&r.A.l||eo(t,a)}}function eo(t,r,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pn(r,o)}function rn(t,r){var o=t[G];return(o?se(o):t)[r]}function ms(t,r){if(r in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function on(t){t.o||(t.o=un(t.t))}function sn(t,r,o){var n=ln(r)?Ft("MapSet").F(r,o):dn(r)?Ft("MapSet").T(r,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:nn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Sr;c&&(u=[l],p=xr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(r,o):Ft("ES5").J(r,o);return(o?o.A:nn()).p.push(n),n}function Nl(t){return Xt(t)||Nt(22,t),function r(o){if(!_t(o))return o;var n,a=o[G],i=Ze(o);if(a){if(!a.P&&(a.i<4||!Ft("ES5").K(a)))return a.t;a.I=!0,n=gs(o,i),a.I=!1}else n=gs(o,i);return Oe(n,function(c,l){a&&El(a.t,c)===l||Ss(n,c,r(l))}),i===3?new Set(n):n}(t)}function gs(t,r){switch(r){case 2:return new Map(t);case 3:return Array.from(t)}return un(t)}function Cs(){function t(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[G];return Sr.get(p,c)},set:function(p){var m=this[G];Sr.set(m,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][G];if(!u.P)switch(u.i){case 5:n(u)&&ce(u);break;case 4:o(u)&&ce(u)}}}function o(c){for(var l=c.t,u=c.k,p=Ve(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==G){var g=l[y];if(g===void 0&&!Ke(l,y))return!0;var v=u[y],x=v&&v[G];if(x?x.t!==g:!Os(v,g))return!0}}var S=!!l[G];return p.length!==Ve(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Nt(3,JSON.stringify(se(c)))}var i={};Al("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=ws(g);delete S[G];for(var T=Ve(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(u,c),m={i:u?5:4,A:l?l.A:nn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,G,{value:m,writable:!0}),p},S:function(c,l,u){u?Xt(l)&&l[G].A===c&&r(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[G];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)Oe(v,function(B){B!==G&&(g[B]!==void 0||Ke(g,B)?x[B]||p(v[B]):(x[B]=!0,ce(y)))}),Oe(g,function(B){v[B]!==void 0||Ke(v,B)||(x[B]=!1,ce(y))});else if(S===5){if(n(y)&&(ce(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),P=0;P<N;P++)v.hasOwnProperty(P)||(x[P]=!0),x[P]===void 0&&p(v[P])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var bs,vr,hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Tl=typeof Map<"u",Ll=typeof Set<"u",xs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Es=hn?Symbol.for("immer-nothing"):((bs={})["immer-nothing"]=!0,bs),vs=hn?Symbol.for("immer-draftable"):"__$immer_draftable",G=hn?Symbol.for("immer-state"):"__$immer_state";var Il=""+Object.prototype.constructor,Ve=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ws=Object.getOwnPropertyDescriptors||function(t){var r={};return Ve(t).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(t,o)}),r},cn={},Sr={get:function(t,r){if(r===G)return t;var o=se(t);if(!Ke(o,r))return function(a,i,c){var l,u=ms(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,r);var n=o[r];return t.I||!_t(n)?n:n===rn(t.t,r)?(on(t),t.o[r]=sn(t.A.h,n,t)):n},has:function(t,r){return r in se(t)},ownKeys:function(t){return Reflect.ownKeys(se(t))},set:function(t,r,o){var n=ms(se(t),r);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=rn(se(t),r),i=a?.[G];if(i&&i.t===o)return t.o[r]=o,t.R[r]=!1,!0;if(Os(o,a)&&(o!==void 0||Ke(t.t,r)))return!0;on(t),ce(t)}return t.o[r]===o&&(o!==void 0||r in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[r])||(t.o[r]=o,t.R[r]=!0),!0},deleteProperty:function(t,r){return rn(t.t,r)!==void 0||r in t.t?(t.R[r]=!1,on(t),ce(t)):delete t.R[r],t.o&&delete t.o[r],!0},getOwnPropertyDescriptor:function(t,r){var o=se(t),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:t.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Nt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Nt(12)}},xr={};Oe(Sr,function(t,r){xr[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),xr.deleteProperty=function(t,r){return xr.set.call(this,t,r,void 0)},xr.set=function(t,r,o){return Sr.set.call(this,t[0],r,o,t[0])};var _l=function(){function t(o){var n=this;this.O=xs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),P=1;P<R;P++)N[P-1]=arguments[P];return u.produce(S,function(B){var $;return($=i).call.apply($,[T,B].concat(N))})}}var p;if(typeof i!="function"&&Nt(6),c!==void 0&&typeof c!="function"&&Nt(7),_t(a)){var m=hs(n),y=sn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Jr(m):an(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return tn(m,c),en(S,m)},function(S){throw Jr(m),S}):(tn(m,c),en(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Es&&(p=void 0),n.D&&pn(p,!0),c){var v=[],x=[];Ft("Patches").M(a,p,v,x),c(v,x)}return p}Nt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=t.prototype;return r.createDraft=function(o){_t(o)||Nt(8),Xt(o)&&(o=Nl(o));var n=hs(this),a=sn(this,o,void 0);return a[G].C=!0,an(n),a},r.finishDraft=function(o,n){var a=o&&o[G],i=a.A;return tn(i,n),en(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!xs&&Nt(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ft("Patches").$;return Xt(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),wt=new _l,Pl=wt.produce,wg=wt.produceWithPatches.bind(wt),Ag=wt.setAutoFreeze.bind(wt),Rg=wt.setUseProxies.bind(wt),Ng=wt.applyPatches.bind(wt),Tg=wt.createDraft.bind(wt),Lg=wt.finishDraft.bind(wt),ro=Pl;function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ce(t)}function As(t,r){if(Ce(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,r||"default");if(Ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Rs(t){var r=As(t,"string");return Ce(r)=="symbol"?r:r+""}function Ns(t,r,o){return(r=Rs(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function Ts(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function yn(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ts(Object(o),!0).forEach(function(n){Ns(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ts(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function dt(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 Ls=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),mn=function(){return Math.random().toString(36).substring(7).split("").join(".")},oo={INIT:"@@redux/INIT"+mn(),REPLACE:"@@redux/REPLACE"+mn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mn()}};function kl(t){if(typeof t!="object"||t===null)return!1;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}function gn(t,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(dt(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(dt(1));return o(gn)(t,r)}if(typeof t!="function")throw new Error(dt(2));var a=t,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(dt(3));return i}function y(S){if(typeof S!="function")throw new Error(dt(4));if(u)throw new Error(dt(5));var T=!0;return p(),l.push(S),function(){if(T){if(u)throw new Error(dt(6));T=!1,p();var N=l.indexOf(S);l.splice(N,1),c=null}}}function g(S){if(!kl(S))throw new Error(dt(7));if(typeof S.type>"u")throw new Error(dt(8));if(u)throw new Error(dt(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(dt(10));a=S,g({type:oo.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(dt(11));function P(){N.next&&N.next(m())}P();var B=T(P);return{unsubscribe:B}}},S[Ls]=function(){return this},S}return g({type:oo.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[Ls]=x,n}function Dl(t){Object.keys(t).forEach(function(r){var o=t[r],n=o(void 0,{type:oo.INIT});if(typeof n>"u")throw new Error(dt(12));if(typeof o(void 0,{type:oo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(dt(13))})}function Is(t){for(var r=Object.keys(t),o={},n=0;n<r.length;n++){var a=r[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),c,l;try{Dl(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],T=o[S],R=p[S],N=T(R,m);if(typeof N>"u"){var P=m&&m.type;throw new Error(dt(14))}v[S]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?v:p}}function qe(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function _s(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(dt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=qe.apply(void 0,l)(a.dispatch),yn(yn({},a),{},{dispatch:i})}}}function Ps(t){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return r}var ks=Ps();ks.withExtraArgument=Ps;var bn=ks;var Ms=function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bl=function(t,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(t,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ye=function(t,r){for(var o=0,n=r.length,a=t.length;o<n;o++,a++)t[a]=r[o];return t},$l=Object.defineProperty,Ul=Object.defineProperties,Ml=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Bs=function(t,r,o){return r in t?$l(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o},le=function(t,r){for(var o in r||(r={}))Wl.call(r,o)&&Bs(t,o,r[o]);if(Ds)for(var n=0,a=Ds(r);n<a.length;n++){var o=a[n];Hl.call(r,o)&&Bs(t,o,r[o])}return t},xn=function(t,r){return Ul(t,Ml(r))},Fl=function(t,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(t,r)).next())})};var zl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qe:qe.apply(null,arguments)},Zg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Gl(t){if(typeof t!="object"||t===null)return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var jl=function(t){Ms(r,t);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ye([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ye([void 0],o.concat(this))))},r}(Array),Kl=function(t){Ms(r,t);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ye([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ye([void 0],o.concat(this))))},r}(Array);function On(t){return _t(t)?ro(t,function(){}):t}function Vl(t){return typeof t=="boolean"}function Zl(){return function(r){return ql(r)}}function ql(t){t===void 0&&(t={});var r=t.thunk,o=r===void 0?!0:r,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,c=i===void 0?!0:i,l=new jl;if(o&&(Vl(o)?l.push(bn):l.push(bn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var vn=!0;function Ws(t){var r=Zl(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(Gl(a))v=Is(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!vn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!vn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=_s.apply(void 0,x),T=qe;u&&(T=zl(le({trace:!vn},typeof u=="object"&&u)));var R=new Kl(S),N=R;Array.isArray(g)?N=Ye([S],g):typeof g=="function"&&(N=g(R));var P=T.apply(void 0,N);return gn(v,m,P)}function de(t,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return le(le({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Hs(t){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[r,o,n]}function Yl(t){return typeof t=="function"}function Xl(t,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Hs(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(Yl(t))u=function(){return On(t())};else{var p=On(t);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var v=Ye([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Xt(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(_t(x))return ro(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=u,m}function Ql(t,r){return t+"/"+r}function Fs(t){var r=t.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:On(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var y=n[m],g=Ql(r,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,i[m]=v,c[g]=v,l[m]=x?de(g,x):de(g)});function u(){var m=typeof t.extraReducers=="function"?Hs(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=le(le({},g),c);return Xl(o,function(N){for(var P in R)N.addCase(P,R[P]);for(var B=0,$=x;B<$.length;B++){var gt=$[B];N.addMatcher(gt.matcher,gt.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:r,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Jl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",td=function(t){t===void 0&&(t=21);for(var r="",o=t;o--;)r+=Jl[Math.random()*64|0];return r},ed=["name","message","stack","code"],Sn=function(){function t(r,o){this.payload=r,this.meta=o}return t}(),$s=function(){function t(r,o){this.payload=r,this.meta=o}return t}(),rd=function(t){if(typeof t=="object"&&t!==null){for(var r={},o=0,n=ed;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(r[a]=t[a])}return r}return{message:String(t)}},Qg=function(){function t(r,o,n){var a=de(r+"/fulfilled",function(m,y,g,v){return{payload:m,meta:xn(le({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=de(r+"/pending",function(m,y,g){return{payload:void 0,meta:xn(le({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=de(r+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||rd)(m||"Rejected"),meta:xn(le({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):td(),S=new u,T,R=!1;function N(B){T=B,S.abort()}var P=function(){return Fl(this,null,function(){var B,$,gt,Dt,ut,Bt,at;return Bl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Dt=(B=n?.condition)==null?void 0:B.call(n,m,{getState:g,extra:v}),nd(Dt)?[4,Dt]:[3,2];case 1:Dt=h.sent(),h.label=2;case 2:if(Dt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ut=new Promise(function(b,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:T||"Aborted"})})}),y(i(x,m,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([ut,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,I){return new Sn(b,I)},fulfillWithValue:function(b,I){return new $s(b,I)}})).then(function(b){if(b instanceof Sn)throw b;return b instanceof $s?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return gt=h.sent(),[3,5];case 4:return Bt=h.sent(),gt=Bt instanceof Sn?c(null,x,m,Bt.payload,Bt.meta):c(Bt,x,m),[3,5];case 5:return at=n&&!n.dispatchConditionRejection&&c.match(gt)&>.meta.condition,at||y(gt),[2,gt]}})})}();return Object.assign(P,{abort:N,requestId:x,arg:m,unwrap:function(){return P.then(od)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return t.withTypes=function(){return t},t}();function od(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function nd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var zs="listener",Gs="completed",js="cancelled",Jg="task-"+js,tb="task-"+Gs,eb=zs+"-"+js,rb=zs+"-"+Gs;var Cn="listenerMiddleware";var ob=de(Cn+"/add"),nb=de(Cn+"/removeAll"),ab=de(Cn+"/remove");var Us,ib=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Us||(Us=Promise.resolve())).then(t).catch(function(r){return setTimeout(function(){throw r},0)})},ad=function(t){return function(r){setTimeout(r,t)}},sb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ad(10);Cs();function id(t,r){return class extends t{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var no=class extends id(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class t extends no{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(mr(i))return i;if(a==null)return;let c=Fs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ws({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new t(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new qr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var uo=C(k());var ld=C(Zs(),1);var qs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qs||(qs={}));var Ys;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ys||(Ys={}));var Xs;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Xs||(Xs={}));var Qs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qs||(Qs={}));var Js;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Js||(Js={}));var tc;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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__DISPLAY="TOPIC__DISPLAY",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"})(tc||(tc={}));var ec;(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"})(ec||(ec={}));var rc;(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"})(rc||(rc={}));var oc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(oc||(oc={}));var nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nc||(nc={}));var ac;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ac||(ac={}));var ic;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ic||(ic={}));var sc;(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"})(sc||(sc={}));var cc;(function(t){t.ASC="ASC",t.DESC="DESC"})(cc||(cc={}));var lc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(lc||(lc={}));var dc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(dc||(dc={}));var uc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(uc||(uc={}));var pc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(pc||(pc={}));var fc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(fc||(fc={}));var hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hc||(hc={}));var yc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yc||(yc={}));var mc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(mc||(mc={}));var et;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(et||(et={}));var gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(gc||(gc={}));var bc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(bc||(bc={}));var xc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(xc||(xc={}));var cd={[et.PERSONAL_BOOK_SHARE_USER]:[et.PERSONAL_BOOK_USER],[et.HTML_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.PDF_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.KHUB_ADMIN]:[et.CONTENT_PUBLISHER],[et.ADMIN]:[et.KHUB_ADMIN,et.USERS_ADMIN,et.PORTAL_ADMIN],[et.GENERATIVE_AI_EXPORT_USER]:[et.GENERATIVE_AI_USER]};function vc(t,r){return t===r||(cd[t]??[]).some(o=>vc(o,r))}function Sc(t,r){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>vc(n,r))}var so=class extends ae{async listMySearches(){let{session:r}=_.getState();return Sc(r,et.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var co=class extends ae{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var dd="ft-user-assets",lo=uo.FtReduxStore.get({name:dd,initialState:{savedSearches:void 0,bookmarks:void 0}}),En=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new co,this.savedSearchesService=new so,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,uo.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),lo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),lo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();lo.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;lo.actions.bookmarks(o)}}},ox=new En;var wn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new wn;var Oc=C(k()),An=class{highlightHtml(r,o,n){(0,Oc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new An;var Cc=C(k());var Rn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Cc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Rn;var Ec=C(k());var Or=class{static get(r,o){var n,a,i,c;let l=_.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ec.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Nn=class{urlToSearchRequest(r){return Or.get().parse(r)}searchRequestToUrl(r){return Or.get().serialize(r)}};window.FluidTopicsUrlService=new Nn;var pe=C(k());var Ee=class t extends CustomEvent{constructor(r){super(t.eventName,{detail:{currentItem:r}})}};Ee.eventName="change";var Tn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},wc=new Tn;var po=class t extends pe.WithEventBus{static build(){return new t(window.history,wc,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ee(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r,o=!1){var n,a,i;let c={...this.buildCurrentState(),...r,index:this.currentIndex,title:(n=r?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=r?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:r?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(r){this.addEventListener(Ee.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(Ee.eventName,r)}currentItem(){return(0,pe.deepCopy)(this.currentState)}back(){let r=this.previousMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pe.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let r=this.currentIndex;for(;r>0&&!this.isMajorState(r);)r--;return this.previousExistingPosition(r)}forward(){let r=this.nextMajorPosition();r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){return(0,pe.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let r=this.currentIndex;do r++;while(r<this.states.length&&!this.isMajorState(r));do r++;while(r<this.states.length&&!this.isMajorState(r));return this.previousExistingPosition(r)}previousExistingPosition(r){let o=r;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isMajorState(r){var o,n;return this.hasState(r)&&((n=(o=this.states[r])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=po.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});(0,Ac.customElement)("ft-app-context")(Y);var Ic=C(rt());var ud=C(k());function Rc(t){return t.match(/^[\w-]+\.[\w-]+$/)}var pd=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Nc=Symbol("i18nAttributes"),Tc=Symbol("i18nListAttributes"),_c=Symbol("i18nProperties"),fo=Symbol("i18nContexts"),Cr=Symbol("i18nUnsubs");function mo(t){var r,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Kr:Ge}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(Rc(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[Nc])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(l=this[Tc])===null||l===void 0||l.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(v=>p(m,y,v))})}updateI18nProperties(i){var c;(c=this[_c])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[fo].set(u,{isCustomContext:l}),this[Cr].has(u)||this[Cr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[fo].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[fo].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Cr].forEach(i=>i()),this[Cr].clear()}}return r=fo,o=Cr,pd([(0,Ic.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Lc=class extends mo(yo.FtLitElement){},ho=class extends mo(yo.FtLitElementRedux){};var Er=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Pt=class extends ho{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":go.nothing:go.html`
|
|
1146
1149
|
<span class="ft-i18n">
|
|
1147
1150
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1148
1151
|
</span>
|
|
@@ -1179,7 +1182,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1179
1182
|
</div>
|
|
1180
1183
|
</dialog>
|
|
1181
1184
|
</div>
|
|
1182
|
-
`}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(r){this.close()}};kt.elementDefinitions={"ftds-button":mt,"ft-typography":ht,"ft-icon":yt};kt.styles=Zi;_n([(0,Ar.property)({type:String})],kt.prototype,"heading",void 0);_n([(0,Ar.property)({type:String})],kt.prototype,"icon",void 0);_n([(0,Ar.query)("dialog")],kt.prototype,"dialog",void 0);var Oo=C(k())
|
|
1185
|
+
`}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(r){this.close()}};kt.elementDefinitions={"ftds-button":mt,"ft-typography":ht,"ft-icon":yt};kt.styles=Zi;_n([(0,Ar.property)({type:String})],kt.prototype,"heading",void 0);_n([(0,Ar.property)({type:String})],kt.prototype,"icon",void 0);_n([(0,Ar.query)("dialog")],kt.prototype,"dialog",void 0);var Oo=C(k()),$c=C(W());var Bc=Rt.body2regular;var Qt=C(rt());var we=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ot=class extends Oo.FtLitElement{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=Et.CHECK,this.cancelIcon=Et.CLOSE}render(){return $c.html`
|
|
1183
1186
|
<ftds-modal
|
|
1184
1187
|
heading="${this.heading}"
|
|
1185
1188
|
size="${pt.small}"
|
|
@@ -1205,7 +1208,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1205
1208
|
${this.confirmText}
|
|
1206
1209
|
</ftds-button>
|
|
1207
1210
|
</ftds-modal>
|
|
1208
|
-
`}async askConfirmation(){this.modal.open();let r=await new Promise(o=>{this.promiseResolve=o});return this.modal.close(),r}onConfirm(){var r;(r=this.promiseResolve)===null||r===void 0||r.call(this,!0),this.promiseResolve=void 0}onCancel(){var r;(r=this.promiseResolve)===null||r===void 0||r.call(this,!1),this.promiseResolve=void 0}};Ot.elementDefinitions={"ftds-modal":kt,"ft-typography":ht,"ftds-button":mt};we([(0,Qt.property)({type:String})],Ot.prototype,"heading",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"text",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"confirmText",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"cancelText",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"confirmIcon",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"cancelIcon",void 0);we([(0,Qt.query)("ftds-modal")],Ot.prototype,"modal",void 0);(0,Pn.customElement)("ftds-modal")(kt);(0,Pn.customElement)("ftds-modal-confirm")(Ot);var Q=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Rr=class extends CustomEvent{constructor(){super("confirm")}},K=class extends
|
|
1211
|
+
`}async askConfirmation(){this.modal.open();let r=await new Promise(o=>{this.promiseResolve=o});return this.modal.close(),r}onConfirm(){var r;(r=this.promiseResolve)===null||r===void 0||r.call(this,!0),this.promiseResolve=void 0}onCancel(){var r;(r=this.promiseResolve)===null||r===void 0||r.call(this,!1),this.promiseResolve=void 0}};Ot.elementDefinitions={"ftds-modal":kt,"ft-typography":ht,"ftds-button":mt};we([(0,Qt.property)({type:String})],Ot.prototype,"heading",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"text",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"confirmText",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"cancelText",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"confirmIcon",void 0);we([(0,Qt.property)({type:String})],Ot.prototype,"cancelIcon",void 0);we([(0,Qt.query)("ftds-modal")],Ot.prototype,"modal",void 0);(0,Pn.customElement)("ftds-modal")(kt);(0,Pn.customElement)("ftds-modal-confirm")(Ot);var Q=function(t,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Rr=class extends CustomEvent{constructor(){super("confirm")}},K=class extends Uc.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.buttonIcon=Et.CLOSE,this.buttonSize=pt.medium,this.buttonFamily=Re.brand,this.buttonForceTooltip=!1,this.buttonTooltipPosition="bottom",this.buttonLabel="",this.heading="",this.text="",this.confirmText="",this.cancelText="",this.confirmIcon=Et.CHECK,this.cancelIcon=Et.CLOSE,this.loading=!1,this.disabled=!1,this.hasSlottedContent=!1}render(){return Qe.html`
|
|
1209
1212
|
<ftds-button icon=${this.buttonIcon}
|
|
1210
1213
|
?primary=${this.primary}
|
|
1211
1214
|
?secondary=${this.secondary}
|