@fluid-topics/ft-search-input 1.2.63 → 1.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-input.light.js +116 -114
- package/build/ft-search-input.min.js +98 -96
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var vu=Object.create;var Ya=Object.defineProperty;var Su=Object.getOwnPropertyDescriptor;var Ou=Object.getOwnPropertyNames;var Cu=Object.getPrototypeOf,wu=Object.prototype.hasOwnProperty;var Br=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Eu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ou(e))!wu.call(t,n)&&n!==r&&Ya(t,n,{get:()=>e[n],enumerable:!(i=Su(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?vu(Cu(t)):{},Eu(e||!t||!t.__esModule?Ya(r,"default",{value:t,enumerable:!0}):r,t));var E=Br((eh,Xa)=>{Xa.exports=ftGlobals.wcUtils});var k=Br((th,Qa)=>{Qa.exports=ftGlobals.lit});var Q=Br((rh,Ja)=>{Ja.exports=ftGlobals.litDecorators});var dt=Br((vb,Qs)=>{Qs.exports=ftGlobals.litClassMap});var Yl=Br((wx,ql)=>{ql.exports=ftGlobals.litUnsafeHTML});var dc=Br((vr,cc)=>{var Li=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ki=function(){function t(){this.fetch=!1,this.DOMException=Li.DOMException}return t.prototype=Li,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var N=y.shift();return{done:N===void 0,value:N}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function g(y){this.map={},y instanceof g?y.forEach(function(x,N){this.append(N,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}g.prototype.append=function(y,x){y=p(y),x=u(x);var N=this.map[y];this.map[y]=N?N+", "+x:x},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,x){this.map[p(y)]=u(x)},g.prototype.forEach=function(y,x){for(var N in this.map)this.map.hasOwnProperty(N)&&y.call(x,this.map[N],N,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(x,N){y.push(N)}),m(y)},g.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(x,N){y.push([N,x])}),m(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,N){y.onload=function(){x(y.result)},y.onerror=function(){N(y.error)}})}function v(y){var x=new FileReader,N=S(x);return x.readAsArrayBuffer(y),N}function C(y){var x=new FileReader,N=S(x),
|
|
2
|
-
`)===0?
|
|
1
|
+
"use strict";(()=>{var vu=Object.create;var Ya=Object.defineProperty;var Su=Object.getOwnPropertyDescriptor;var Ou=Object.getOwnPropertyNames;var Cu=Object.getPrototypeOf,wu=Object.prototype.hasOwnProperty;var Br=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Eu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ou(e))!wu.call(t,n)&&n!==r&&Ya(t,n,{get:()=>e[n],enumerable:!(i=Su(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?vu(Cu(t)):{},Eu(e||!t||!t.__esModule?Ya(r,"default",{value:t,enumerable:!0}):r,t));var E=Br((eh,Xa)=>{Xa.exports=ftGlobals.wcUtils});var k=Br((th,Qa)=>{Qa.exports=ftGlobals.lit});var Q=Br((rh,Ja)=>{Ja.exports=ftGlobals.litDecorators});var dt=Br((vb,Qs)=>{Qs.exports=ftGlobals.litClassMap});var Yl=Br((wx,ql)=>{ql.exports=ftGlobals.litUnsafeHTML});var dc=Br((vr,cc)=>{var Li=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ki=function(){function t(){this.fetch=!1,this.DOMException=Li.DOMException}return t.prototype=Li,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function m(y){var x={next:function(){var N=y.shift();return{done:N===void 0,value:N}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function g(y){this.map={},y instanceof g?y.forEach(function(x,N){this.append(N,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}g.prototype.append=function(y,x){y=p(y),x=u(x);var N=this.map[y];this.map[y]=N?N+", "+x:x},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,x){this.map[p(y)]=u(x)},g.prototype.forEach=function(y,x){for(var N in this.map)this.map.hasOwnProperty(N)&&y.call(x,this.map[N],N,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(x,N){y.push(N)}),m(y)},g.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),m(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(x,N){y.push([N,x])}),m(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,N){y.onload=function(){x(y.result)},y.onerror=function(){N(y.error)}})}function v(y){var x=new FileReader,N=S(x);return x.readAsArrayBuffer(y),N}function C(y){var x=new FileReader,N=S(x),ie=/charset=([A-Za-z0-9_-]+)/.exec(y.type),be=ie?ie[1]:"utf-8";return x.readAsText(y,be),N}function P(y){for(var x=new Uint8Array(y),N=new Array(x.length),ie=0;ie<x.length;ie++)N[ie]=String.fromCharCode(x[ie]);return N.join("")}function I(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;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 y=b(this);return y||(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(n.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(et)}),this.json=function(){return this.text().then(JSON.parse)},this}var F=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Z(y){var x=y.toUpperCase();return F.indexOf(x)>-1?x:y}function Y(y,x){if(!(this instanceof Y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var N=x.body;if(y instanceof Y){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!N&&y._bodyInit!=null&&(N=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new g(x.headers)),this.method=Z(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in i){var X=new AbortController;return X.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var ie=/([?&])_=[^&]*/;if(ie.test(this.url))this.url=this.url.replace(ie,"$1_="+new Date().getTime());else{var be=/\?/;this.url+=(be.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Y.prototype.clone=function(){return new Y(this,{body:this._bodyInit})};function et(y){var x=new FormData;return y.trim().split("&").forEach(function(N){if(N){var ie=N.split("="),be=ie.shift().replace(/\+/g," "),X=ie.join("=").replace(/\+/g," ");x.append(decodeURIComponent(be),decodeURIComponent(X))}}),x}function Ft(y){var x=new g,N=y.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(ie){return ie.indexOf(`
|
|
2
|
+
`)===0?ie.substr(1,ie.length):ie}).forEach(function(ie){var be=ie.split(":"),X=be.shift().trim();if(X){var pi=be.join(":").trim();try{x.append(X,pi)}catch(xn){console.warn("Response "+xn.message)}}}),x}$.call(Y.prototype);function Ze(y,x){if(!(this instanceof Ze))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new g(x.headers),this.url=x.url||"",this._initBody(y)}$.call(Ze.prototype),Ze.prototype.clone=function(){return new Ze(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ze.error=function(){var y=new Ze(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Mt=[301,302,303,307,308];Ze.redirect=function(y,x){if(Mt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Ze(null,{status:x,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,N){this.message=x,this.name=N;var ie=Error(x);this.stack=ie.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function _e(y,x){return new Promise(function(N,ie){var be=new Y(y,x);if(be.signal&&be.signal.aborted)return ie(new r.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function pi(){X.abort()}X.onload=function(){var Be={statusText:X.statusText,headers:Ft(X.getAllResponseHeaders()||"")};be.url.indexOf("file://")===0&&(X.status<200||X.status>599)?Be.status=200:Be.status=X.status,Be.url="responseURL"in X?X.responseURL:Be.headers.get("X-Request-URL");var _r="response"in X?X.response:X.responseText;setTimeout(function(){N(new Ze(_r,Be))},0)},X.onerror=function(){setTimeout(function(){ie(new TypeError("Network request failed"))},0)},X.ontimeout=function(){setTimeout(function(){ie(new TypeError("Network request timed out"))},0)},X.onabort=function(){setTimeout(function(){ie(new r.DOMException("Aborted","AbortError"))},0)};function xn(Be){try{return Be===""&&i.location.href?i.location.href:Be}catch{return Be}}if(X.open(be.method,xn(be.url),!0),be.credentials==="include"?X.withCredentials=!0:be.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&(n.blob?X.responseType="blob":n.arrayBuffer&&(X.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof g||i.Headers&&x.headers instanceof i.Headers)){var qa=[];Object.getOwnPropertyNames(x.headers).forEach(function(Be){qa.push(p(Be)),X.setRequestHeader(Be,u(x.headers[Be]))}),be.headers.forEach(function(Be,_r){qa.indexOf(_r)===-1&&X.setRequestHeader(_r,Be)})}else be.headers.forEach(function(Be,_r){X.setRequestHeader(_r,Be)});be.signal&&(be.signal.addEventListener("abort",pi),X.onreadystatechange=function(){X.readyState===4&&be.signal.removeEventListener("abort",pi)}),X.send(typeof be._bodyInit>"u"?null:be._bodyInit)})}return _e.polyfill=!0,i.fetch||(i.fetch=_e,i.Headers=g,i.Request=Y,i.Response=Ze),r.Headers=g,r.Request=Y,r.Response=Ze,r.fetch=_e,r}({})})(ki);ki.fetch.ponyfill=!0;delete ki.fetch.polyfill;var go=Li.fetch?Li:ki;vr=go.fetch;vr.default=go.fetch;vr.fetch=go.fetch;vr.Headers=go.Headers;vr.Request=go.Request;vr.Response=go.Response;cc.exports=vr});var Lr=Br((pC,qd)=>{qd.exports=ftGlobals.litRepeat});var xu=f(E());var ro=f(k()),$o=f(E());var ac=f(k()),oe=f(E());var Kn=f(E());var jo=f(Q()),oc=f(E());var Ys=f(k()),U=f(E());var ns=f(k()),we=f(E()),es=we.FtCssVariableFactory.extend("--ft-ripple-color","",we.designSystemVariables.colorContent),O={color:es,backgroundColor:we.FtCssVariableFactory.extend("--ft-ripple-background-color","",es),opacityContentOnSurfacePressed:we.FtCssVariableFactory.external(we.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:we.FtCssVariableFactory.external(we.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:we.FtCssVariableFactory.external(we.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:we.FtCssVariableFactory.external(we.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:we.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ts=we.FtCssVariableFactory.extend("--ft-ripple-color","",we.designSystemVariables.colorPrimary),rs={color:ts,backgroundColor:we.FtCssVariableFactory.extend("--ft-ripple-background-color","",ts)},os=we.FtCssVariableFactory.extend("--ft-ripple-color","",we.designSystemVariables.colorSecondary),is={color:os,backgroundColor:we.FtCssVariableFactory.extend("--ft-ripple-background-color","",os)},as=ns.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
5
5
|
}
|
|
@@ -121,17 +121,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
121
121
|
line-height: ${e.lineHeight};
|
|
122
122
|
text-transform: ${e.textCase};
|
|
123
123
|
}
|
|
124
|
-
`}var Ts=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),tr=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:tr,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},
|
|
124
|
+
`}var Ts=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),tr=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:tr,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},oo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ts),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},io={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ts),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},no={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},ao={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},er={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Re={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},Et={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},so={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},lo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},zt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",tr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},Ns=xt.css`
|
|
125
125
|
.ft-typography--title {
|
|
126
|
-
font-family: ${ro.fontFamily};
|
|
127
|
-
font-size: ${ro.fontSize};
|
|
128
|
-
font-weight: ${ro.fontWeight};
|
|
129
|
-
letter-spacing: ${ro.letterSpacing};
|
|
130
|
-
line-height: ${ro.lineHeight};
|
|
131
|
-
text-transform: ${ro.textTransform};
|
|
132
|
-
}
|
|
133
|
-
`,_s=xt.css`
|
|
134
|
-
.ft-typography--title-dense {
|
|
135
126
|
font-family: ${oo.fontFamily};
|
|
136
127
|
font-size: ${oo.fontSize};
|
|
137
128
|
font-weight: ${oo.fontWeight};
|
|
@@ -139,8 +130,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
139
130
|
line-height: ${oo.lineHeight};
|
|
140
131
|
text-transform: ${oo.textTransform};
|
|
141
132
|
}
|
|
142
|
-
`,
|
|
143
|
-
.ft-typography--
|
|
133
|
+
`,_s=xt.css`
|
|
134
|
+
.ft-typography--title-dense {
|
|
144
135
|
font-family: ${io.fontFamily};
|
|
145
136
|
font-size: ${io.fontSize};
|
|
146
137
|
font-weight: ${io.fontWeight};
|
|
@@ -148,8 +139,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
148
139
|
line-height: ${io.lineHeight};
|
|
149
140
|
text-transform: ${io.textTransform};
|
|
150
141
|
}
|
|
151
|
-
`,
|
|
152
|
-
.ft-typography--
|
|
142
|
+
`,Bs=xt.css`
|
|
143
|
+
.ft-typography--subtitle1 {
|
|
153
144
|
font-family: ${no.fontFamily};
|
|
154
145
|
font-size: ${no.fontSize};
|
|
155
146
|
font-weight: ${no.fontWeight};
|
|
@@ -157,6 +148,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
157
148
|
line-height: ${no.lineHeight};
|
|
158
149
|
text-transform: ${no.textTransform};
|
|
159
150
|
}
|
|
151
|
+
`,Ds=xt.css`
|
|
152
|
+
.ft-typography--subtitle2 {
|
|
153
|
+
font-family: ${ao.fontFamily};
|
|
154
|
+
font-size: ${ao.fontSize};
|
|
155
|
+
font-weight: ${ao.fontWeight};
|
|
156
|
+
letter-spacing: ${ao.letterSpacing};
|
|
157
|
+
line-height: ${ao.lineHeight};
|
|
158
|
+
text-transform: ${ao.textTransform};
|
|
159
|
+
}
|
|
160
160
|
|
|
161
161
|
`,Fs=xt.css`
|
|
162
162
|
.ft-typography--body1 {
|
|
@@ -187,15 +187,6 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
187
187
|
}
|
|
188
188
|
`,Ms=xt.css`
|
|
189
189
|
.ft-typography--breadcrumb {
|
|
190
|
-
font-family: ${ao.fontFamily};
|
|
191
|
-
font-size: ${ao.fontSize};
|
|
192
|
-
font-weight: ${ao.fontWeight};
|
|
193
|
-
letter-spacing: ${ao.letterSpacing};
|
|
194
|
-
line-height: ${ao.lineHeight};
|
|
195
|
-
text-transform: ${ao.textTransform};
|
|
196
|
-
}
|
|
197
|
-
`,zs=xt.css`
|
|
198
|
-
.ft-typography--overline {
|
|
199
190
|
font-family: ${so.fontFamily};
|
|
200
191
|
font-size: ${so.fontSize};
|
|
201
192
|
font-weight: ${so.fontWeight};
|
|
@@ -203,6 +194,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
203
194
|
line-height: ${so.lineHeight};
|
|
204
195
|
text-transform: ${so.textTransform};
|
|
205
196
|
}
|
|
197
|
+
`,zs=xt.css`
|
|
198
|
+
.ft-typography--overline {
|
|
199
|
+
font-family: ${lo.fontFamily};
|
|
200
|
+
font-size: ${lo.fontSize};
|
|
201
|
+
font-weight: ${lo.fontWeight};
|
|
202
|
+
letter-spacing: ${lo.letterSpacing};
|
|
203
|
+
line-height: ${lo.lineHeight};
|
|
204
|
+
text-transform: ${lo.textTransform};
|
|
205
|
+
}
|
|
206
206
|
`,Us=xt.css`
|
|
207
207
|
.ft-typography--button {
|
|
208
208
|
font-family: ${zt.fontFamily};
|
|
@@ -216,7 +216,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
216
216
|
.ft-typography {
|
|
217
217
|
vertical-align: inherit;
|
|
218
218
|
}
|
|
219
|
-
`,Hs=[Object.keys(ui).map(t=>Ps(t))];var Vs=f(k())
|
|
219
|
+
`,Hs=[Object.keys(ui).map(t=>Ps(t))];var Vs=f(k()),Po=f(E()),ue={color:Po.FtCssVariableFactory.extend("--ft-loader-color","",Po.designSystemVariables.colorPrimary),size:Po.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},js=Vs.css`
|
|
220
220
|
:host {
|
|
221
221
|
line-height: 0;
|
|
222
222
|
}
|
|
@@ -285,7 +285,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
285
285
|
transform: translate(calc(0.35 * ${ue.size}), 0);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
`;var Gs=f(k()),At=f(E()),
|
|
288
|
+
`;var Gs=f(k()),At=f(E()),xe={size:At.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:At.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:At.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:At.FtCssVariableFactory.extend("--ft-icon-material-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:At.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ks=[Gs.css`
|
|
289
289
|
:host, i.ft-icon {
|
|
290
290
|
display: inline-flex;
|
|
291
291
|
align-items: center;
|
|
@@ -294,14 +294,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
:host {
|
|
297
|
-
width: ${
|
|
298
|
-
height: ${
|
|
297
|
+
width: ${xe.size};
|
|
298
|
+
height: ${xe.size};
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
i.ft-icon {
|
|
302
302
|
width: 100%;
|
|
303
303
|
height: 100%;
|
|
304
|
-
font-size: ${
|
|
304
|
+
font-size: ${xe.size};
|
|
305
305
|
line-height: 1;
|
|
306
306
|
font-weight: normal;
|
|
307
307
|
text-transform: none;
|
|
@@ -312,26 +312,26 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
312
312
|
text-rendering: auto;
|
|
313
313
|
-webkit-font-smoothing: antialiased;
|
|
314
314
|
-moz-osx-font-smoothing: grayscale;
|
|
315
|
-
vertical-align: ${
|
|
315
|
+
vertical-align: ${xe.verticalAlign};
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
i.ft-icon.ft-icon--fluid-topics {
|
|
319
|
-
font-family: ${
|
|
319
|
+
font-family: ${xe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
320
320
|
|
|
321
321
|
/* Ugly fix because font is broken */
|
|
322
|
-
font-size: calc(0.75 * ${
|
|
323
|
-
line-height: ${
|
|
322
|
+
font-size: calc(0.75 * ${xe.size});
|
|
323
|
+
line-height: ${xe.size};
|
|
324
324
|
position: relative;
|
|
325
325
|
top: -4%;
|
|
326
326
|
justify-content: center;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.ft-icon--file-format {
|
|
330
|
-
font-family: ${
|
|
330
|
+
font-family: ${xe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
.ft-icon--material {
|
|
334
|
-
font-family: ${
|
|
334
|
+
font-family: ${xe.materialFontFamily}, "Material Icons", sans-serif;
|
|
335
335
|
}
|
|
336
336
|
`,At.noTextSelect];var Zs=U.FtCssVariableFactory.extend("--ft-button-color","",U.designSystemVariables.colorPrimary),M={backgroundColor:U.FtCssVariableFactory.extend("--ft-button-background-color","",U.designSystemVariables.colorSurface),borderRadius:U.FtCssVariableFactory.extend("--ft-button-border-radius","",U.designSystemVariables.borderRadiusL),color:Zs,fontSize:U.FtCssVariableFactory.extend("--ft-button-font-size","",zt.fontSize),iconSize:U.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:U.FtCssVariableFactory.extend("--ft-button-ripple-color","",Zs),verticalPadding:U.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:U.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:U.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOpacityDisabled,"Design system")},qs=U.FtCssVariableFactory.extend("--ft-button-primary-color","",U.FtCssVariableFactory.extend("--ft-button-color","",U.designSystemVariables.colorOnPrimary)),vn={backgroundColor:U.FtCssVariableFactory.extend("--ft-button-primary-background-color","",U.FtCssVariableFactory.extend("--ft-button-background-color","",U.designSystemVariables.colorPrimary)),color:qs,rippleColor:U.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",qs)},Ut={borderRadius:U.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",U.FtCssVariableFactory.extend("--ft-button-border-radius","",U.designSystemVariables.borderRadiusM)),verticalPadding:U.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:U.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:U.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xs=[Ys.css`
|
|
337
337
|
:host {
|
|
@@ -376,7 +376,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
376
376
|
|
|
377
377
|
--ft-button-internal-line-height: max(calc(${M.fontSize} + 2px), ${M.iconSize});
|
|
378
378
|
--ft-button-internal-color: ${M.color};
|
|
379
|
-
${(0,U.setVariable)(
|
|
379
|
+
${(0,U.setVariable)(xe.size,M.iconSize)};
|
|
380
380
|
${(0,U.setVariable)(O.color,M.rippleColor)};
|
|
381
381
|
|
|
382
382
|
border-radius: ${M.borderRadius};
|
|
@@ -470,7 +470,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
470
470
|
${(0,U.setVariable)(ue.size,M.iconSize)};
|
|
471
471
|
${(0,U.setVariable)(ue.color,"var(--ft-button-internal-color)")};
|
|
472
472
|
}
|
|
473
|
-
`,U.noTextSelect];var xr=f(E());var tl=f(E());var Js=f(k()),De=f(Q()),el=f(dt()),
|
|
473
|
+
`,U.noTextSelect];var xr=f(E());var tl=f(E());var Js=f(k()),De=f(Q()),el=f(dt()),To=f(E());var tt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},W=class extends To.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 To.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new To.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Js.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.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
481
481
|
<div class="ft-ripple--background"></div>
|
|
482
482
|
<div class="ft-ripple--effect"></div>
|
|
483
483
|
</div>
|
|
484
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};W.elementDefinitions={};W.styles=as;tt([(0,De.property)({type:Boolean})],W.prototype,"primary",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"secondary",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"unbounded",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"activated",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"selected",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"disabled",void 0);tt([(0,De.state)()],W.prototype,"hovered",void 0);tt([(0,De.state)()],W.prototype,"focused",void 0);tt([(0,De.state)()],W.prototype,"pressed",void 0);tt([(0,De.state)()],W.prototype,"rippling",void 0);tt([(0,De.state)()],W.prototype,"originX",void 0);tt([(0,De.state)()],W.prototype,"originY",void 0);tt([(0,De.query)(".ft-ripple")],W.prototype,"ripple",void 0);tt([(0,De.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,tl.customElement)("ft-ripple")(W);var Zl=f(E());var Kl=f(k()),Le=f(Q()),
|
|
485
|
-
\f\r]`,
|
|
486
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),nl=/'/g,al=/"/g,dl=/^(?:script|style|textarea|title)$/i,kn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),pl=kn(1),ul=kn(2),fl=kn(3),
|
|
484
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};W.elementDefinitions={};W.styles=as;tt([(0,De.property)({type:Boolean})],W.prototype,"primary",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"secondary",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"unbounded",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"activated",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"selected",void 0);tt([(0,De.property)({type:Boolean})],W.prototype,"disabled",void 0);tt([(0,De.state)()],W.prototype,"hovered",void 0);tt([(0,De.state)()],W.prototype,"focused",void 0);tt([(0,De.state)()],W.prototype,"pressed",void 0);tt([(0,De.state)()],W.prototype,"rippling",void 0);tt([(0,De.state)()],W.prototype,"originX",void 0);tt([(0,De.state)()],W.prototype,"originY",void 0);tt([(0,De.query)(".ft-ripple")],W.prototype,"ripple",void 0);tt([(0,De.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,tl.customElement)("ft-ripple")(W);var Zl=f(E());var Kl=f(k()),Le=f(Q()),Wo=f(E());var xl=f(E());var Rn=globalThis,yi=Rn.trustedTypes,rl=yi?yi.createPolicy("lit-html",{createHTML:t=>t}):void 0,ll="$lit$",yr=`lit$${Math.random().toFixed(9).slice(2)}$`,cl="?"+yr,Ru=`<${cl}>`,Mr=document,gi=()=>Mr.createComment(""),_o=t=>t===null||typeof t!="object"&&typeof t!="function",Ln=Array.isArray,Lu=t=>Ln(t)||typeof t?.[Symbol.iterator]=="function",Sn=`[
|
|
485
|
+
\f\r]`,No=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ol=/-->/g,il=/>/g,Dr=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
|
|
486
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),nl=/'/g,al=/"/g,dl=/^(?:script|style|textarea|title)$/i,kn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),pl=kn(1),ul=kn(2),fl=kn(3),Bo=Symbol.for("lit-noChange"),Pe=Symbol.for("lit-nothing"),sl=new WeakMap,Fr=Mr.createTreeWalker(Mr,129);function hl(t,e){if(!Ln(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return rl!==void 0?rl.createHTML(e):e}var ku=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=No;for(let c=0;c<r;c++){let p=t[c],u,m,g=-1,b=0;for(;b<p.length&&(s.lastIndex=b,m=s.exec(p),m!==null);)b=s.lastIndex,s===No?m[1]==="!--"?s=ol:m[1]!==void 0?s=il:m[2]!==void 0?(dl.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Dr):m[3]!==void 0&&(s=Dr):s===Dr?m[0]===">"?(s=n??No,g=-1):m[1]===void 0?g=-2:(g=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?Dr:m[3]==='"'?al:nl):s===al||s===nl?s=Dr:s===ol||s===il?s=No:(s=Dr,n=void 0);let S=s===Dr&&t[c+1].startsWith("/>")?" ":"";a+=s===No?p+Ru:g>=0?(i.push(u),p.slice(0,g)+ll+p.slice(g)+yr+S):p+yr+(g===-2?c:S)}return[hl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Do=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,m]=ku(e,r);if(this.el=t.createElement(u,i),Fr.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Fr.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(ll)){let b=m[s++],S=n.getAttribute(g).split(yr),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:v[2],strings:S,ctor:v[1]==="."?Cn:v[1]==="?"?wn:v[1]==="@"?En:po}),n.removeAttribute(g)}else g.startsWith(yr)&&(p.push({type:6,index:a}),n.removeAttribute(g));if(dl.test(n.tagName)){let g=n.textContent.split(yr),b=g.length-1;if(b>0){n.textContent=yi?yi.emptyScript:"";for(let S=0;S<b;S++)n.append(g[S],gi()),Fr.nextNode(),p.push({type:2,index:++a});n.append(g[b],gi())}}}else if(n.nodeType===8)if(n.data===cl)p.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(yr,g+1))!==-1;)p.push({type:7,index:a}),g+=yr.length-1}a++}}static createElement(e,r){let i=Mr.createElement("template");return i.innerHTML=e,i}};function co(t,e,r=t,i){if(e===Bo)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=_o(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=co(t,n._$AS(t,e.values),n,i)),e}var On=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Mr).importNode(r,!0);Fr.currentNode=n;let a=Fr.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new mi(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new An(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=Fr.nextNode(),s++)}return Fr.currentNode=Mr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},mi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Pe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=co(this,e,r),_o(e)?e===Pe||e==null||e===""?(this._$AH!==Pe&&this._$AR(),this._$AH=Pe):e!==this._$AH&&e!==Bo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Lu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Pe&&_o(this._$AH)?this._$AA.nextSibling.data=e:this.T(Mr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Do.createElement(hl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new On(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=sl.get(e.strings);return r===void 0&&sl.set(e.strings,r=new Do(e)),r}k(e){Ln(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(gi()),this.O(gi()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},po=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Pe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Pe}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=co(this,e,r,0),s=!_o(e)||e!==this._$AH&&e!==Bo,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=co(this,c[i+p],r,p),u===Bo&&(u=this._$AH[p]),s||=!_o(u)||u!==this._$AH[p],u===Pe?e=Pe:e!==Pe&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===Pe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Cn=class extends po{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Pe?void 0:e}},wn=class extends po{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Pe)}},En=class extends po{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=co(this,e,r,0)??Pe)===Bo)return;let i=this._$AH,n=e===Pe&&i!==Pe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Pe&&(i===Pe||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},An=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){co(this,e)}};var Iu=Rn.litHtmlPolyfillSupport;Iu?.(Do,mi),(Rn.litHtmlVersions??=[]).push("3.3.0");var gl=Symbol.for(""),$u=t=>{if(t?.r===gl)return t?._$litStatic$},In=t=>({_$litStatic$:t,r:gl});var yl=new Map,$n=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],p,u=0,m=!1;for(;u<i;){for(p=e[u];u<i&&(a=r[u],(n=$u(a))!==void 0);)p+=n+e[++u],m=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),m){let g=s.join("$$lit$$");(e=yl.get(g))===void 0&&(s.raw=s,yl.set(g,e=s)),r=c}return t(e,...r)},Pn=$n(pl),Ib=$n(ul),$b=$n(fl);var Tn=f(Q()),bl=f(E());var vt;(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"})(vt||(vt={}));var ml=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ee=class extends bl.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?Pn`
|
|
487
487
|
<${In(this.element)}
|
|
488
488
|
part="text"
|
|
489
489
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -520,7 +520,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
520
520
|
position: relative;
|
|
521
521
|
word-break: break-word;
|
|
522
522
|
}
|
|
523
|
-
`;var Cl=["top","right","bottom","left"],Ol=["start","end"],_n=Cl.reduce((t,e)=>t.concat(e,e+"-"+Ol[0],e+"-"+Ol[1]),[]),wl=Math.min,El=Math.max;var Pu={left:"right",right:"left",bottom:"top",top:"bottom"},Tu={start:"end",end:"start"};function Bn(t,e,r){return El(t,wl(e,r))}function bi(t,e){return typeof t=="function"?t(e):t}function po(t){return t.split("-")[0]}function gr(t){return t.split("-")[1]}function Dn(t){return t==="x"?"y":"x"}function Fn(t){return t==="y"?"height":"width"}function xi(t){return["top","bottom"].includes(po(t))?"y":"x"}function Mn(t){return Dn(xi(t))}function Al(t,e,r){r===void 0&&(r=!1);let i=gr(t),n=Mn(t),a=Fn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Nn(s)),[s,Nn(s)]}function Rl(t){return t.replace(/start|end/g,e=>Tu[e])}function Nn(t){return t.replace(/left|right|bottom|top/g,e=>Pu[e])}function Nu(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ll(t){return typeof t!="number"?Nu(t):{top:t,right:t,bottom:t,left:t}}function zr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function kl(t,e,r){let{reference:i,floating:n}=t,a=xi(e),s=Mn(e),c=Fn(s),p=po(e),u=a==="y",m=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,S;switch(p){case"top":S={x:m,y:i.y-n.height};break;case"bottom":S={x:m,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:g};break;case"left":S={x:i.x-n.width,y:g};break;default:S={x:i.x,y:i.y}}switch(gr(e)){case"start":S[s]-=b*(r&&u?-1:1);break;case"end":S[s]+=b*(r&&u?-1:1);break}return S}var Il=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:g}=kl(u,i,p),b=i,S={},v=0;for(let C=0;C<c.length;C++){let{name:P,fn:I}=c[C],{x:$,y:F,data:Z,reset:Y}=await I({x:m,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:S,rects:u,platform:s,elements:{reference:t,floating:e}});m=$??m,g=F??g,S={...S,[P]:{...S[P],...Z}},Y&&v<=50&&(v++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(u=Y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):Y.rects),{x:m,y:g}=kl(u,b,p)),C=-1)}return{x:m,y:g,placement:b,strategy:n,middlewareData:S}};async function zn(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=bi(e,t),v=Ll(S),P=c[b?g==="floating"?"reference":"floating":g],I=zr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(P)))==null||r?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:p})),$=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Z=await(a.isElement==null?void 0:a.isElement(F))?await(a.getScale==null?void 0:a.getScale(F))||{x:1,y:1}:{x:1,y:1},Y=zr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:$,offsetParent:F,strategy:p}):$);return{top:(I.top-Y.top+v.top)/Z.y,bottom:(Y.bottom-I.bottom+v.bottom)/Z.y,left:(I.left-Y.left+v.left)/Z.x,right:(Y.right-I.right+v.right)/Z.x}}function _u(t,e,r){return(t?[...r.filter(n=>gr(n)===t),...r.filter(n=>gr(n)!==t)]:r.filter(n=>po(n)===n)).filter(n=>t?gr(n)===t||(e?Rl(n)!==n:!1):!0)}var Un=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:m=!1,alignment:g,allowedPlacements:b=_n,autoAlignment:S=!0,...v}=bi(t,e),C=g!==void 0||b===_n?_u(g||null,S,b):b,P=await zn(e,v),I=((r=s.autoPlacement)==null?void 0:r.index)||0,$=C[I];if($==null)return{};let F=Al($,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==$)return{reset:{placement:C[0]}};let Z=[P[po($)],P[F[0]],P[F[1]]],Y=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:Z}],et=C[I+1];if(et)return{data:{index:I+1,overflows:Y},reset:{placement:et}};let Ft=Y.map(_e=>{let y=gr(_e.placement);return[_e.placement,y&&m?_e.overflows.slice(0,2).reduce((x,N)=>x+N,0):_e.overflows[0],_e.overflows]}).sort((_e,y)=>_e[1]-y[1]),Mt=((n=Ft.filter(_e=>_e[2].slice(0,gr(_e[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Ft[0][0];return Mt!==c?{data:{index:I+1,overflows:Y},reset:{placement:Mt}}:{}}}};var Wn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:P=>{let{x:I,y:$}=P;return{x:I,y:$}}},...p}=bi(t,e),u={x:r,y:i},m=await zn(e,p),g=xi(po(n)),b=Dn(g),S=u[b],v=u[g];if(a){let P=b==="y"?"top":"left",I=b==="y"?"bottom":"right",$=S+m[P],F=S-m[I];S=Bn($,S,F)}if(s){let P=g==="y"?"top":"left",I=g==="y"?"bottom":"right",$=v+m[P],F=v-m[I];v=Bn($,v,F)}let C=c.fn({...e,[b]:S,[g]:v});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[b]:a,[g]:s}}}}}};var Hn=Math.min,uo=Math.max,Do=Math.round;var or=t=>({x:t,y:t});function ir(t){return Pl(t)?(t.nodeName||"").toLowerCase():"#document"}function rt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function nr(t){var e;return(e=(Pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pl(t){return t instanceof Node||t instanceof rt(t).Node}function Ht(t){return t instanceof Element||t instanceof rt(t).Element}function Rt(t){return t instanceof HTMLElement||t instanceof rt(t).HTMLElement}function $l(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rt(t).ShadowRoot}function fo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=pt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Tl(t){return["table","td","th"].includes(ir(t))}function Si(t){let e=Oi(),r=pt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Nl(t){let e=Ur(t);for(;Rt(e)&&!Fo(e);){if(Si(e))return e;e=Ur(e)}return null}function Oi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fo(t){return["html","body","#document"].includes(ir(t))}function pt(t){return rt(t).getComputedStyle(t)}function Mo(t){return Ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ur(t){if(ir(t)==="html")return t;let e=t.assignedSlot||t.parentNode||$l(t)&&t.host||nr(t);return $l(e)?e.host:e}function _l(t){let e=Ur(t);return Fo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Rt(e)&&fo(e)?e:_l(e)}function vi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=_l(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=rt(n);return a?e.concat(s,s.visualViewport||[],fo(n)?n:[],s.frameElement&&r?vi(s.frameElement):[]):e.concat(n,vi(n,[],r))}function Fl(t){let e=pt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Rt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Do(r)!==a||Do(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Ml(t){return Ht(t)?t:t.contextElement}function ho(t){let e=Ml(t);if(!Rt(e))return or(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Fl(e),s=(a?Do(r.width):r.width)/i,c=(a?Do(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Fu=or(0);function zl(t){let e=rt(t);return!Oi()||!e.visualViewport?Fu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==rt(t)?!1:e}function zo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Ml(t),s=or(1);e&&(i?Ht(i)&&(s=ho(i)):s=ho(t));let c=Mu(a,r,i)?zl(a):or(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,m=n.width/s.x,g=n.height/s.y;if(a){let b=rt(a),S=i&&Ht(i)?rt(i):i,v=b.frameElement;for(;v&&i&&S!==b;){let C=ho(v),P=v.getBoundingClientRect(),I=pt(v),$=P.left+(v.clientLeft+parseFloat(I.paddingLeft))*C.x,F=P.top+(v.clientTop+parseFloat(I.paddingTop))*C.y;p*=C.x,u*=C.y,m*=C.x,g*=C.y,p+=$,u+=F,v=rt(v).frameElement}}return zr({width:m,height:g,x:p,y:u})}function zu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=Rt(r),a=nr(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=or(1),p=or(0);if((n||!n&&i!=="fixed")&&((ir(r)!=="body"||fo(a))&&(s=Mo(r)),Rt(r))){let u=zo(r);c=ho(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Uu(t){return Array.from(t.getClientRects())}function Ul(t){return zo(nr(t)).left+Mo(t).scrollLeft}function Wu(t){let e=nr(t),r=Mo(t),i=t.ownerDocument.body,n=uo(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=uo(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Ul(t),c=-r.scrollTop;return pt(i).direction==="rtl"&&(s+=uo(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Hu(t,e){let r=rt(t),i=nr(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Oi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Vu(t,e){let r=zo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=Rt(t)?ho(t):or(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function Bl(t,e,r){let i;if(e==="viewport")i=Hu(t,r);else if(e==="document")i=Wu(nr(t));else if(Ht(e))i=Vu(e,r);else{let n=zl(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return zr(i)}function Wl(t,e){let r=Ur(t);return r===e||!Ht(r)||Fo(r)?!1:pt(r).position==="fixed"||Wl(r,e)}function ju(t,e){let r=e.get(t);if(r)return r;let i=vi(t,[],!1).filter(c=>Ht(c)&&ir(c)!=="body"),n=null,a=pt(t).position==="fixed",s=a?Ur(t):t;for(;Ht(s)&&!Fo(s);){let c=pt(s),p=Si(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||fo(s)&&!p&&Wl(t,s))?i=i.filter(m=>m!==s):n=c,s=Ur(s)}return e.set(t,i),i}function Gu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?ju(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,m)=>{let g=Bl(e,m,n);return u.top=uo(g.top,u.top),u.right=Hn(g.right,u.right),u.bottom=Hn(g.bottom,u.bottom),u.left=uo(g.left,u.left),u},Bl(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Ku(t){return Fl(t)}function Zu(t,e,r){let i=Rt(e),n=nr(e),a=r==="fixed",s=zo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=or(0);if(i||!i&&!a)if((ir(e)!=="body"||fo(n))&&(c=Mo(e)),i){let u=zo(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=Ul(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Dl(t,e){return!Rt(t)||pt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Hl(t,e){let r=rt(t);if(!Rt(t))return r;let i=Dl(t,e);for(;i&&Tl(i)&&pt(i).position==="static";)i=Dl(i,e);return i&&(ir(i)==="html"||ir(i)==="body"&&pt(i).position==="static"&&!Si(i))?r:i||Nl(t)||r}var qu=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Hl,a=this.getDimensions;return{reference:Zu(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Yu(t){return pt(t).direction==="rtl"}var Ci={convertOffsetParentRelativeRectToViewportRelativeRect:zu,getDocumentElement:nr,getClippingRect:Gu,getOffsetParent:Hl,getElementRects:qu,getClientRects:Uu,getDimensions:Ku,getScale:ho,isElement:Ht,isRTL:Yu};var Vl=(t,e,r)=>{let i=new Map,n={platform:Ci,...r},a={...n.platform,_c:i};return Il(t,e,{...n,platform:a})};function jl(t){return Xu(t)}function Vn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xu(t){for(let e=t;e;e=Vn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vn(t);e;e=Vn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Gl(t,e,r){return Vl(t,e,{platform:{...Ci,getOffsetParent:i=>Ci.getOffsetParent(i,jl)},middleware:[Wn({crossAxis:!0}),Un({allowedPlacements:[r]})]})}var ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fe=class extends Uo.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 Uo.Debouncer,this.revealDebouncer=new Uo.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Kl.html`
|
|
523
|
+
`;var Cl=["top","right","bottom","left"],Ol=["start","end"],_n=Cl.reduce((t,e)=>t.concat(e,e+"-"+Ol[0],e+"-"+Ol[1]),[]),wl=Math.min,El=Math.max;var Pu={left:"right",right:"left",bottom:"top",top:"bottom"},Tu={start:"end",end:"start"};function Bn(t,e,r){return El(t,wl(e,r))}function bi(t,e){return typeof t=="function"?t(e):t}function uo(t){return t.split("-")[0]}function gr(t){return t.split("-")[1]}function Dn(t){return t==="x"?"y":"x"}function Fn(t){return t==="y"?"height":"width"}function xi(t){return["top","bottom"].includes(uo(t))?"y":"x"}function Mn(t){return Dn(xi(t))}function Al(t,e,r){r===void 0&&(r=!1);let i=gr(t),n=Mn(t),a=Fn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Nn(s)),[s,Nn(s)]}function Rl(t){return t.replace(/start|end/g,e=>Tu[e])}function Nn(t){return t.replace(/left|right|bottom|top/g,e=>Pu[e])}function Nu(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ll(t){return typeof t!="number"?Nu(t):{top:t,right:t,bottom:t,left:t}}function zr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function kl(t,e,r){let{reference:i,floating:n}=t,a=xi(e),s=Mn(e),c=Fn(s),p=uo(e),u=a==="y",m=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,S;switch(p){case"top":S={x:m,y:i.y-n.height};break;case"bottom":S={x:m,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:g};break;case"left":S={x:i.x-n.width,y:g};break;default:S={x:i.x,y:i.y}}switch(gr(e)){case"start":S[s]-=b*(r&&u?-1:1);break;case"end":S[s]+=b*(r&&u?-1:1);break}return S}var Il=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:g}=kl(u,i,p),b=i,S={},v=0;for(let C=0;C<c.length;C++){let{name:P,fn:I}=c[C],{x:$,y:F,data:Z,reset:Y}=await I({x:m,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:S,rects:u,platform:s,elements:{reference:t,floating:e}});m=$??m,g=F??g,S={...S,[P]:{...S[P],...Z}},Y&&v<=50&&(v++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(u=Y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):Y.rects),{x:m,y:g}=kl(u,b,p)),C=-1)}return{x:m,y:g,placement:b,strategy:n,middlewareData:S}};async function zn(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=bi(e,t),v=Ll(S),P=c[b?g==="floating"?"reference":"floating":g],I=zr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(P)))==null||r?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:p})),$=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Z=await(a.isElement==null?void 0:a.isElement(F))?await(a.getScale==null?void 0:a.getScale(F))||{x:1,y:1}:{x:1,y:1},Y=zr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:$,offsetParent:F,strategy:p}):$);return{top:(I.top-Y.top+v.top)/Z.y,bottom:(Y.bottom-I.bottom+v.bottom)/Z.y,left:(I.left-Y.left+v.left)/Z.x,right:(Y.right-I.right+v.right)/Z.x}}function _u(t,e,r){return(t?[...r.filter(n=>gr(n)===t),...r.filter(n=>gr(n)!==t)]:r.filter(n=>uo(n)===n)).filter(n=>t?gr(n)===t||(e?Rl(n)!==n:!1):!0)}var Un=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:m=!1,alignment:g,allowedPlacements:b=_n,autoAlignment:S=!0,...v}=bi(t,e),C=g!==void 0||b===_n?_u(g||null,S,b):b,P=await zn(e,v),I=((r=s.autoPlacement)==null?void 0:r.index)||0,$=C[I];if($==null)return{};let F=Al($,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==$)return{reset:{placement:C[0]}};let Z=[P[uo($)],P[F[0]],P[F[1]]],Y=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:Z}],et=C[I+1];if(et)return{data:{index:I+1,overflows:Y},reset:{placement:et}};let Ft=Y.map(_e=>{let y=gr(_e.placement);return[_e.placement,y&&m?_e.overflows.slice(0,2).reduce((x,N)=>x+N,0):_e.overflows[0],_e.overflows]}).sort((_e,y)=>_e[1]-y[1]),Mt=((n=Ft.filter(_e=>_e[2].slice(0,gr(_e[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Ft[0][0];return Mt!==c?{data:{index:I+1,overflows:Y},reset:{placement:Mt}}:{}}}};var Wn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:P=>{let{x:I,y:$}=P;return{x:I,y:$}}},...p}=bi(t,e),u={x:r,y:i},m=await zn(e,p),g=xi(uo(n)),b=Dn(g),S=u[b],v=u[g];if(a){let P=b==="y"?"top":"left",I=b==="y"?"bottom":"right",$=S+m[P],F=S-m[I];S=Bn($,S,F)}if(s){let P=g==="y"?"top":"left",I=g==="y"?"bottom":"right",$=v+m[P],F=v-m[I];v=Bn($,v,F)}let C=c.fn({...e,[b]:S,[g]:v});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[b]:a,[g]:s}}}}}};var Hn=Math.min,fo=Math.max,Fo=Math.round;var or=t=>({x:t,y:t});function ir(t){return Pl(t)?(t.nodeName||"").toLowerCase():"#document"}function rt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function nr(t){var e;return(e=(Pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pl(t){return t instanceof Node||t instanceof rt(t).Node}function Ht(t){return t instanceof Element||t instanceof rt(t).Element}function Rt(t){return t instanceof HTMLElement||t instanceof rt(t).HTMLElement}function $l(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rt(t).ShadowRoot}function ho(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=pt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Tl(t){return["table","td","th"].includes(ir(t))}function Si(t){let e=Oi(),r=pt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Nl(t){let e=Ur(t);for(;Rt(e)&&!Mo(e);){if(Si(e))return e;e=Ur(e)}return null}function Oi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mo(t){return["html","body","#document"].includes(ir(t))}function pt(t){return rt(t).getComputedStyle(t)}function zo(t){return Ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ur(t){if(ir(t)==="html")return t;let e=t.assignedSlot||t.parentNode||$l(t)&&t.host||nr(t);return $l(e)?e.host:e}function _l(t){let e=Ur(t);return Mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Rt(e)&&ho(e)?e:_l(e)}function vi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=_l(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=rt(n);return a?e.concat(s,s.visualViewport||[],ho(n)?n:[],s.frameElement&&r?vi(s.frameElement):[]):e.concat(n,vi(n,[],r))}function Fl(t){let e=pt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Rt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Fo(r)!==a||Fo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Ml(t){return Ht(t)?t:t.contextElement}function yo(t){let e=Ml(t);if(!Rt(e))return or(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Fl(e),s=(a?Fo(r.width):r.width)/i,c=(a?Fo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Fu=or(0);function zl(t){let e=rt(t);return!Oi()||!e.visualViewport?Fu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==rt(t)?!1:e}function Uo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Ml(t),s=or(1);e&&(i?Ht(i)&&(s=yo(i)):s=yo(t));let c=Mu(a,r,i)?zl(a):or(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,m=n.width/s.x,g=n.height/s.y;if(a){let b=rt(a),S=i&&Ht(i)?rt(i):i,v=b.frameElement;for(;v&&i&&S!==b;){let C=yo(v),P=v.getBoundingClientRect(),I=pt(v),$=P.left+(v.clientLeft+parseFloat(I.paddingLeft))*C.x,F=P.top+(v.clientTop+parseFloat(I.paddingTop))*C.y;p*=C.x,u*=C.y,m*=C.x,g*=C.y,p+=$,u+=F,v=rt(v).frameElement}}return zr({width:m,height:g,x:p,y:u})}function zu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=Rt(r),a=nr(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=or(1),p=or(0);if((n||!n&&i!=="fixed")&&((ir(r)!=="body"||ho(a))&&(s=zo(r)),Rt(r))){let u=Uo(r);c=yo(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Uu(t){return Array.from(t.getClientRects())}function Ul(t){return Uo(nr(t)).left+zo(t).scrollLeft}function Wu(t){let e=nr(t),r=zo(t),i=t.ownerDocument.body,n=fo(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=fo(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Ul(t),c=-r.scrollTop;return pt(i).direction==="rtl"&&(s+=fo(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Hu(t,e){let r=rt(t),i=nr(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Oi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Vu(t,e){let r=Uo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=Rt(t)?yo(t):or(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function Bl(t,e,r){let i;if(e==="viewport")i=Hu(t,r);else if(e==="document")i=Wu(nr(t));else if(Ht(e))i=Vu(e,r);else{let n=zl(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return zr(i)}function Wl(t,e){let r=Ur(t);return r===e||!Ht(r)||Mo(r)?!1:pt(r).position==="fixed"||Wl(r,e)}function ju(t,e){let r=e.get(t);if(r)return r;let i=vi(t,[],!1).filter(c=>Ht(c)&&ir(c)!=="body"),n=null,a=pt(t).position==="fixed",s=a?Ur(t):t;for(;Ht(s)&&!Mo(s);){let c=pt(s),p=Si(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||ho(s)&&!p&&Wl(t,s))?i=i.filter(m=>m!==s):n=c,s=Ur(s)}return e.set(t,i),i}function Gu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?ju(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,m)=>{let g=Bl(e,m,n);return u.top=fo(g.top,u.top),u.right=Hn(g.right,u.right),u.bottom=Hn(g.bottom,u.bottom),u.left=fo(g.left,u.left),u},Bl(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Ku(t){return Fl(t)}function Zu(t,e,r){let i=Rt(e),n=nr(e),a=r==="fixed",s=Uo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=or(0);if(i||!i&&!a)if((ir(e)!=="body"||ho(n))&&(c=zo(e)),i){let u=Uo(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=Ul(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Dl(t,e){return!Rt(t)||pt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Hl(t,e){let r=rt(t);if(!Rt(t))return r;let i=Dl(t,e);for(;i&&Tl(i)&&pt(i).position==="static";)i=Dl(i,e);return i&&(ir(i)==="html"||ir(i)==="body"&&pt(i).position==="static"&&!Si(i))?r:i||Nl(t)||r}var qu=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Hl,a=this.getDimensions;return{reference:Zu(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Yu(t){return pt(t).direction==="rtl"}var Ci={convertOffsetParentRelativeRectToViewportRelativeRect:zu,getDocumentElement:nr,getClippingRect:Gu,getOffsetParent:Hl,getElementRects:qu,getClientRects:Uu,getDimensions:Ku,getScale:yo,isElement:Ht,isRTL:Yu};var Vl=(t,e,r)=>{let i=new Map,n={platform:Ci,...r},a={...n.platform,_c:i};return Il(t,e,{...n,platform:a})};function jl(t){return Xu(t)}function Vn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xu(t){for(let e=t;e;e=Vn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vn(t);e;e=Vn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Gl(t,e,r){return Vl(t,e,{platform:{...Ci,getOffsetParent:i=>Ci.getOffsetParent(i,jl)},middleware:[Wn({crossAxis:!0}),Un({allowedPlacements:[r]})]})}var ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fe=class extends Wo.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 Wo.Debouncer,this.revealDebouncer=new Wo.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Kl.html`
|
|
524
524
|
<div part="container"
|
|
525
525
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
526
526
|
@mouseenter=${this.onHover}
|
|
@@ -538,12 +538,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
538
538
|
</div>
|
|
539
539
|
</div>
|
|
540
540
|
</div>
|
|
541
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Gl(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};fe.elementDefinitions={"ft-typography":ee};fe.styles=Sl;ot([(0,Le.property)()],fe.prototype,"text",void 0);ot([(0,Le.property)({type:Boolean})],fe.prototype,"manual",void 0);ot([(0,Le.property)({type:Boolean})],fe.prototype,"inline",void 0);ot([(0,Le.property)({type:Number})],fe.prototype,"delay",void 0);ot([(0,Le.property)()],fe.prototype,"position",void 0);ot([(0,Le.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);ot([(0,Le.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);ot([(0,Le.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);ot([(0,Le.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);ot([(0,Le.state)()],fe.prototype,"visible",void 0);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onTouch",null);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onHover",null);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onOut",null);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onClick",null);(0,Zl.customElement)("ft-tooltip")(fe);var Jl=f(E());var Wo=f(k()),mr=f(Q()),Xl=f(E()),Ql=f(Yl());var it;(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=""})(it||(it={}));var A;(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=""})(A||(A={}));var jn=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),Qu=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function wi(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((r=Qu.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=jn.get(c))!==null&&i!==void 0?i:jn.get(e))!==null&&n!==void 0?n:jn.get(s))!==null&&a!==void 0?a:A.UNKNOWN}var Ex={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Te;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Te||(Te={}));var Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ie=class extends Xl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Wo.nothing}render(){let e=this.variant&&Object.values(Te).includes(this.variant)?this.variant:Te.fluid_topics,r=e!==Te.material||!!this.value;return Wo.html`
|
|
541
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Gl(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};fe.elementDefinitions={"ft-typography":ee};fe.styles=Sl;ot([(0,Le.property)()],fe.prototype,"text",void 0);ot([(0,Le.property)({type:Boolean})],fe.prototype,"manual",void 0);ot([(0,Le.property)({type:Boolean})],fe.prototype,"inline",void 0);ot([(0,Le.property)({type:Number})],fe.prototype,"delay",void 0);ot([(0,Le.property)()],fe.prototype,"position",void 0);ot([(0,Le.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);ot([(0,Le.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);ot([(0,Le.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);ot([(0,Le.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);ot([(0,Le.state)()],fe.prototype,"visible",void 0);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onTouch",null);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onHover",null);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onOut",null);ot([(0,Le.eventOptions)({passive:!0})],fe.prototype,"onClick",null);(0,Zl.customElement)("ft-tooltip")(fe);var Jl=f(E());var Ho=f(k()),mr=f(Q()),Xl=f(E()),Ql=f(Yl());var it;(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=""})(it||(it={}));var A;(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=""})(A||(A={}));var jn=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),Qu=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function wi(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((r=Qu.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=jn.get(c))!==null&&i!==void 0?i:jn.get(e))!==null&&n!==void 0?n:jn.get(s))!==null&&a!==void 0?a:A.UNKNOWN}var Ex={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Te;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Te||(Te={}));var Vo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ne=class extends Xl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ho.nothing}render(){let e=this.variant&&Object.values(Te).includes(this.variant)?this.variant:Te.fluid_topics,r=e!==Te.material||!!this.value;return Ho.html`
|
|
542
542
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
543
543
|
${(0,Ql.unsafeHTML)(this.resolvedIcon)}
|
|
544
544
|
<slot ?hidden=${r}></slot>
|
|
545
545
|
</i>
|
|
546
|
-
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Te.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Te.material:this.resolvedIcon=this.value||
|
|
546
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Te.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Te.material:this.resolvedIcon=this.value||Ho.nothing;break;default:this.resolvedIcon=(r=it[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ne.elementDefinitions={};ne.styles=Ks;Vo([(0,mr.property)()],ne.prototype,"variant",void 0);Vo([(0,mr.property)()],ne.prototype,"value",void 0);Vo([(0,mr.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);Vo([(0,mr.state)()],ne.prototype,"resolvedIcon",void 0);Vo([(0,mr.query)("slot")],ne.prototype,"slottedContent",void 0);(0,Jl.customElement)("ft-icon")(ne);var rc=f(E());var ec=f(k()),tc=f(E());var Wr=class extends tc.FtLitElement{render(){return ec.html`
|
|
547
547
|
<div class="ft-loader">
|
|
548
548
|
<div></div>
|
|
549
549
|
<div></div>
|
|
@@ -590,7 +590,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
590
590
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
591
591
|
`:br.html`
|
|
592
592
|
<slot part="icon" name="icon"></slot>
|
|
593
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,xr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};he.elementDefinitions={"ft-ripple":W,"ft-tooltip":fe,"ft-typography":ee,"ft-icon":
|
|
593
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,xr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};he.elementDefinitions={"ft-ripple":W,"ft-tooltip":fe,"ft-typography":ee,"ft-icon":ne,"ft-loader":Wr};Fe([(0,ke.property)()],he.prototype,"href",void 0);Fe([(0,ke.property)()],he.prototype,"target",void 0);Fe([(0,ke.property)()],he.prototype,"type",void 0);Fe([(0,ke.property)({type:Boolean})],he.prototype,"disabled",void 0);Fe([(0,ke.property)()],he.prototype,"label",void 0);Fe([(0,ke.property)()],he.prototype,"icon",void 0);Fe([(0,ke.property)()],he.prototype,"iconVariant",void 0);Fe([(0,ke.property)({type:Boolean})],he.prototype,"trailingIcon",void 0);Fe([(0,ke.property)({type:Boolean})],he.prototype,"loading",void 0);Fe([(0,ke.property)({attribute:"aria-label"})],he.prototype,"ariaLabel",void 0);Fe([(0,ke.property)()],he.prototype,"tooltipPosition",void 0);Fe([(0,ke.property)({type:Boolean})],he.prototype,"hideTooltip",void 0);Fe([(0,ke.property)({type:Boolean})],he.prototype,"forceTooltip",void 0);Fe([(0,ke.property)({type:Boolean})],he.prototype,"activated",void 0);Fe([(0,ke.query)(".ft-button")],he.prototype,"button",void 0);Fe([(0,ke.query)(".ft-button--label slot")],he.prototype,"slottedContent",void 0);Fe([(0,ke.query)("[part=tooltip]")],he.prototype,"tooltip",void 0);var Ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Oe=class extends he{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"}};Oe.styles=[oc.safariEllipsisFix,Xs];Ei([(0,jo.property)({type:Boolean})],Oe.prototype,"primary",void 0);Ei([(0,jo.property)({type:Boolean})],Oe.prototype,"outlined",void 0);Ei([(0,jo.property)({type:Boolean})],Oe.prototype,"dense",void 0);Ei([(0,jo.property)({type:Boolean})],Oe.prototype,"round",void 0);var Go=f(Q());var Ri=f(E());var ic=f(k()),w=f(E());var nc=[ic.css`
|
|
594
594
|
:host {
|
|
595
595
|
display: inline-block;
|
|
596
596
|
max-width: 100%;
|
|
@@ -993,7 +993,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
993
993
|
/** Large styles **/
|
|
994
994
|
|
|
995
995
|
.ftds--size-large {
|
|
996
|
-
${(0,w.setVariable)(
|
|
996
|
+
${(0,w.setVariable)(xe.size,h.largeIconSize)};
|
|
997
997
|
${(0,w.setVariable)(ue.size,h.largeIconSize)};
|
|
998
998
|
|
|
999
999
|
height: ${h.largeHeight};
|
|
@@ -1015,7 +1015,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1015
1015
|
/** Small styles **/
|
|
1016
1016
|
|
|
1017
1017
|
.ftds--size-medium {
|
|
1018
|
-
${(0,w.setVariable)(
|
|
1018
|
+
${(0,w.setVariable)(xe.size,h.mediumIconSize)};
|
|
1019
1019
|
${(0,w.setVariable)(ue.size,h.mediumIconSize)};
|
|
1020
1020
|
|
|
1021
1021
|
height: ${h.mediumHeight};
|
|
@@ -1038,7 +1038,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1038
1038
|
/** Small styles **/
|
|
1039
1039
|
|
|
1040
1040
|
.ftds--size-small {
|
|
1041
|
-
${(0,w.setVariable)(
|
|
1041
|
+
${(0,w.setVariable)(xe.size,h.smallIconSize)};
|
|
1042
1042
|
${(0,w.setVariable)(ue.size,h.smallIconSize)};
|
|
1043
1043
|
|
|
1044
1044
|
height: ${h.smallHeight};
|
|
@@ -1056,11 +1056,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1056
1056
|
.ftds--size-small.ft-button--icon-only {
|
|
1057
1057
|
width: ${h.smallIconOnlyWidth};
|
|
1058
1058
|
}
|
|
1059
|
-
`,w.noTextSelect];var Ai=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Lt=class extends(0,Ri.toFtdsBase)(he){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fi.brand,this.iconVariant=Te.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 qe.large:return vt.body2medium;case qe.medium:return vt.caption1medium;case qe.small:return vt.caption2medium}}};Lt.styles=[Ri.safariEllipsisFix,nc];Ai([(0,
|
|
1059
|
+
`,w.noTextSelect];var Ai=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Lt=class extends(0,Ri.toFtdsBase)(he){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fi.brand,this.iconVariant=Te.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 qe.large:return vt.body2medium;case qe.medium:return vt.caption1medium;case qe.small:return vt.caption2medium}}};Lt.styles=[Ri.safariEllipsisFix,nc];Ai([(0,Go.property)({type:Boolean})],Lt.prototype,"primary",void 0);Ai([(0,Go.property)({type:Boolean})],Lt.prototype,"secondary",void 0);Ai([(0,Go.property)({type:Boolean})],Lt.prototype,"tertiary",void 0);Ai([(0,Go.property)({type:Boolean})],Lt.prototype,"round",void 0);(0,Kn.customElement)("ft-button")(Oe);(0,Kn.customElement)("ftds-button")(Lt);var Ee={height:oe.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:oe.FtCssVariableFactory.extend("--ft-search-input-border-radius","",oe.designSystemVariables.borderRadiusS),desktopFiltersHeight:oe.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:oe.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:oe.FtCssVariableFactory.extend("--ft-search-input-background-color","",oe.designSystemVariables.colorSurface),colorOnSurface:oe.FtCssVariableFactory.extend("--ft-search-input-color","",oe.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:oe.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",oe.designSystemVariables.colorOnSurfaceMedium),colorOutline:oe.FtCssVariableFactory.extend("--ft-search-input-outline-color","",oe.designSystemVariables.colorOutline),elevation02:oe.FtCssVariableFactory.extend("--ft-search-input-elevation","",oe.designSystemVariables.elevation02),focusOutlineColor:oe.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",oe.designSystemVariables.colorPrimary),buttonColor:oe.FtCssVariableFactory.extend("--ft-search-input-button-color","",oe.designSystemVariables.colorPrimary),buttonRippleColor:oe.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",oe.designSystemVariables.colorPrimary)},sc=ac.css`
|
|
1060
1060
|
* {
|
|
1061
1061
|
box-sizing: border-box;
|
|
1062
|
-
${(0,
|
|
1063
|
-
${(0,
|
|
1062
|
+
${(0,oe.setVariable)(M.color,Ee.buttonColor)};
|
|
1063
|
+
${(0,oe.setVariable)(M.rippleColor,Ee.buttonRippleColor)};
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
.ft-search-input {
|
|
@@ -1114,13 +1114,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1114
1114
|
align-items: center;
|
|
1115
1115
|
height: 100%;
|
|
1116
1116
|
|
|
1117
|
-
${(0,
|
|
1117
|
+
${(0,oe.setVariable)(Wt.zIndex,`calc(${Ee.floatingZIndex} + 1)`)};
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
1120
|
.ft-search-input > ft-button,
|
|
1121
1121
|
.ft-search-input--actions ft-button {
|
|
1122
1122
|
flex-shrink: 0;
|
|
1123
|
-
${(0,
|
|
1123
|
+
${(0,oe.setVariable)(M.backgroundColor,"transparent")};
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -1140,14 +1140,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1140
1140
|
opacity: 0;
|
|
1141
1141
|
}
|
|
1142
1142
|
`;var Fd=f(E()),Md=f(Q());var Yi=f(E());var lc=f(E());var ef=f(dc(),1);var pc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(pc||(pc={}));var uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(uc||(uc={}));var fc;(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"})(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.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(yc||(yc={}));var gc;(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"})(gc||(gc={}));var mc;(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"})(mc||(mc={}));var bc;(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"})(bc||(bc={}));var xc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(xc||(xc={}));var vc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(vc||(vc={}));var Sc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Sc||(Sc={}));var Oc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Oc||(Oc={}));var Cc;(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"})(Cc||(Cc={}));var wc;(function(t){t.ASC="ASC",t.DESC="DESC"})(wc||(wc={}));var Ec;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ec||(Ec={}));var Zn;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Zn||(Zn={}));var Ac;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ac||(Ac={}));var Rc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rc||(Rc={}));var Lc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var kc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kc||(kc={}));var Ic;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Ic||(Ic={}));var qn;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(qn||(qn={}));var Ie;(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"})(Ie||(Ie={}));var $c;(function(t){t.VALID="VALID",t.INVALID="INVALID"})($c||($c={}));var Pc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Pc||(Pc={}));var Tc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Tc||(Tc={}));var Ju={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]};function Nc(t,e){return t===e||(Ju[t]??[]).some(r=>Nc(r,e))}function _c(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Nc(i,e))}var Bd=f(E());var Mc=f(k()),nt=f(Q()),kt=f(E());var Bc=f(k());var Dc=Bc.css`
|
|
1143
|
-
`;var Ii=f(E()),tf="ft-app-info",Yn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},rf={session:(t,e)=>{(0,Ii.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Yn(e.payload)),0))}},_=Ii.FtReduxStore.get({name:tf,reducers:rf,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 Vt=f(E());var Xn=f(E());var Hr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=_.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=_.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var
|
|
1143
|
+
`;var Ii=f(E()),tf="ft-app-info",Yn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},rf={session:(t,e)=>{(0,Ii.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Yn(e.payload)),0))}},_=Ii.FtReduxStore.get({name:tf,reducers:rf,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 Vt=f(E());var Xn=f(E());var Hr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=_.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=_.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Ko=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Hr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Hr.await()}};var ar=class extends Ko{constructor(e=!0,r){var i;super(r);let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xn.CacheRegistry,this.cache=e?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}};var Fc,of=Symbol("clearAfterUnitTest"),$i=class extends ar{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Fc]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Vt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Vt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e))}catch(n){!(n instanceof Vt.CanceledPromiseError)&&r&&console.error(n)}return r&&await this.notify(e),i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Vt.delay)(0).then(()=>r()).catch(()=>null)))}};Fc=of;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $i{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $i{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var mo=window.FluidTopicsI18nService,Pi=window.FluidTopicsCustomI18nService;var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends kt.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=()=>Hr.get(),this.messageContexts=[],this.cache=new kt.CacheRegistry,this.cleanSessionDebouncer=new kt.Debouncer}render(){return Mc.html`
|
|
1144
1144
|
<slot></slot>
|
|
1145
|
-
`}update(e){var r,i,n,a,s;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>go.addContext(c)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),_.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),_.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!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 e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};xe.elementDefinitions={};xe.styles=Dc;We([(0,nt.property)()],xe.prototype,"baseUrl",void 0);We([(0,nt.property)()],xe.prototype,"apiIntegrationIdentifier",void 0);We([(0,nt.property)()],xe.prototype,"uiLocale",void 0);We([(0,kt.jsonProperty)(null)],xe.prototype,"availableUiLocales",void 0);We([(0,kt.jsonProperty)(null)],xe.prototype,"metadataConfiguration",void 0);We([(0,nt.property)({type:Boolean})],xe.prototype,"editorMode",void 0);We([(0,nt.property)({type:Boolean})],xe.prototype,"noCustom",void 0);We([(0,nt.property)({type:Boolean})],xe.prototype,"openExternalDocumentInNewTab",void 0);We([(0,nt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],xe.prototype,"noCustomComponent",void 0);We([(0,nt.property)({type:Boolean})],xe.prototype,"withManualResources",void 0);We([(0,nt.property)({type:Boolean})],xe.prototype,"navigatorOnline",void 0);We([(0,nt.property)({type:Boolean})],xe.prototype,"forcedOffline",void 0);We([(0,nt.property)({type:Object})],xe.prototype,"apiProvider",void 0);We([(0,kt.jsonProperty)([])],xe.prototype,"messageContexts",void 0);We([(0,kt.jsonProperty)(void 0)],xe.prototype,"session",void 0);We([(0,nt.state)()],xe.prototype,"localesConfiguration",void 0);var jf=f(Q());function nf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ti(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ti(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Ti(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ti(t,e){try{return nf(t,e)}catch{return!1}}function Ni(t,e){return!Ti(t,e)}var af=f(Q(),1);var _i=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var mo=f(Q(),1);var zc=f(Q(),1);function Uc(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,zc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ni,...e??{}})}var Bi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hc=f(k(),1);var Di=globalThis,sf=Di.ShadowRoot&&(Di.ShadyCSS===void 0||Di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d0=Symbol();var Wc=(t,e)=>{if(sf)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Di.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Fi=class extends Hc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Wc(i,e.elementStyles),i}};function Vc(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Ko=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Zc,jc=Symbol("constructorPrototype"),Gc=Symbol("constructorName"),qc=Symbol("exportpartsDebouncer"),Kc=Symbol("dynamicDependenciesLoaded"),sr=class extends Fi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zc]=new Bi(5),this[Gc]=this.constructor.name,this[jc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gc]&&Object.setPrototypeOf(this,this[jc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Kc]||(e[Kc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Vc(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[qc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let S=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(p).map(C=>C.trim()).forEach(C=>m.add(C))}if(m.size===0){this.removeAttribute("exportparts");return}let g=[...m.values()].flatMap(b=>u.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};Zc=qc;Ko([(0,mo.property)()],sr.prototype,"exportpartsPrefix",void 0);Ko([Uc([])],sr.prototype,"exportpartsPrefixes",void 0);Ko([(0,mo.property)()],sr.prototype,"customStylesheet",void 0);Ko([(0,mo.property)()],sr.prototype,"elementToFocus",void 0);Ko([(0,mo.state)()],sr.prototype,"useAdoptedStyleSheets",void 0);function Zo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yc,Xc,Qc,qo=Symbol("internalReduxEventsUnsubscribers"),Sr=Symbol("internalStoresUnsubscribers"),Vr=Symbol("internalStores"),Yo=class extends sr{constructor(){super(...arguments),this[Yc]=new Map,this[Xc]=new Map,this[Qc]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Vr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Vr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Vr].get(e)}addStore(e,r){var i;r=(i=r??(Zo(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[Vr].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Vr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Vr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[Sr].has(e.store):this[Sr].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Sr].set(e,r.subscribe(()=>this.updateFromStores())),this[qo].set(e,[]),Zo(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=c=>this[a](c);r.addEventListener(n.eventName,s),this[qo].get(e).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Sr].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[Sr].has(e)&&this[Sr].get(e)(),this[Sr].delete(e),(r=this[qo].get(e))===null||r===void 0||r.forEach(i=>i()),this[qo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Yc=Sr,Xc=Vr,Qc=qo;Yo.reduxProperties=new Map;Yo.reduxReactiveProperties=new Set;Yo.reduxEventListeners=new Map;function St(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lr(t){return!!t&&!!t[ye]}function It(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===yf}(t)||Array.isArray(t)||!!t[nd]||!!(!((e=t.constructor)===null||e===void 0)&&e[nd])||aa(t)||sa(t))}function jr(t,e,r){r===void 0&&(r=!1),vo(t)===0?(r?Object.keys:xo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function vo(t){var e=t[ye];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:aa(t)?2:sa(t)?3:0}function bo(t,e){return vo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lf(t,e){return vo(t)===2?t.get(e):t[e]}function ad(t,e,r){var i=vo(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function sd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function aa(t){return ff&&t instanceof Map}function sa(t){return hf&&t instanceof Set}function Or(t){return t.o||t.t}function la(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=dd(t);delete e[ye];for(var r=xo(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ca(t,e){return e===void 0&&(e=!1),da(t)||lr(t)||!It(t)||(vo(t)>1&&(t.set=t.add=t.clear=t.delete=cf),Object.freeze(t),e&&jr(t,function(r,i){return ca(i,!0)},!0)),t}function cf(){St(2)}function da(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function jt(t){var e=na[t];return e||St(18,t),e}function df(t,e){na[t]||(na[t]=e)}function ra(){return Qo}function Qn(t,e){e&&(jt("Patches"),t.u=[],t.s=[],t.v=e)}function Mi(t){oa(t),t.p.forEach(pf),t.p=null}function oa(t){t===Qo&&(Qo=t.l)}function Jc(t){return Qo={p:[],l:Qo,h:t,m:!0,_:0}}function pf(t){var e=t[ye];e.i===0||e.i===1?e.j():e.g=!0}function Jn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||jt("ES5").S(e,t,i),i?(r[ye].P&&(Mi(e),St(4)),It(t)&&(t=zi(e,t),e.l||Ui(e,t)),e.u&&jt("Patches").M(r[ye].t,t,e.u,e.s)):t=zi(e,r,[]),Mi(e),e.u&&e.v(e.u,e.s),t!==cd?t:void 0}function zi(t,e,r){if(da(e))return e;var i=e[ye];if(!i)return jr(e,function(c,p){return ed(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Ui(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=la(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),jr(a,function(c,p){return ed(t,i,n,c,p,r,s)}),Ui(t,n,!1),r&&t.u&&jt("Patches").N(i,r,t.u,t.s)}return i.o}function ed(t,e,r,i,n,a,s){if(lr(n)){var c=zi(t,n,a&&e&&e.i!==3&&!bo(e.R,i)?a.concat(i):void 0);if(ad(r,i,c),!lr(c))return;t.m=!1}else s&&r.add(n);if(It(n)&&!da(n)){if(!t.h.D&&t._<1)return;zi(t,n),e&&e.A.l||Ui(t,n)}}function Ui(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ca(e,r)}function ea(t,e){var r=t[ye];return(r?Or(r):t)[e]}function td(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Cr(t){t.P||(t.P=!0,t.l&&Cr(t.l))}function ta(t){t.o||(t.o=la(t.t))}function ia(t,e,r){var i=aa(e)?jt("MapSet").F(e,r):sa(e)?jt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ra(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=Jo;s&&(p=[c],u=Xo);var m=Proxy.revocable(p,u),g=m.revoke,b=m.proxy;return c.k=b,c.j=g,b}(e,r):jt("ES5").J(e,r);return(r?r.A:ra()).p.push(i),i}function uf(t){return lr(t)||St(22,t),function e(r){if(!It(r))return r;var i,n=r[ye],a=vo(r);if(n){if(!n.P&&(n.i<4||!jt("ES5").K(n)))return n.t;n.I=!0,i=rd(r,a),n.I=!1}else i=rd(r,a);return jr(i,function(s,c){n&&lf(n.t,s)===c||ad(i,s,e(c))}),a===3?new Set(i):i}(t)}function rd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return la(t)}function ld(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[ye];return Jo.get(u,s)},set:function(u){var m=this[ye];Jo.set(m,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][ye];if(!p.P)switch(p.i){case 5:i(p)&&Cr(p);break;case 4:r(p)&&Cr(p)}}}function r(s){for(var c=s.t,p=s.k,u=xo(p),m=u.length-1;m>=0;m--){var g=u[m];if(g!==ye){var b=c[g];if(b===void 0&&!bo(c,g))return!0;var S=p[g],v=S&&S[ye];if(v?v.t!==b:!sd(S,b))return!0}}var C=!!c[ye];return u.length!==xo(c).length+(C?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&St(3,JSON.stringify(Or(s)))}var a={};df("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var C=dd(b);delete C[ye];for(var P=xo(C),I=0;I<P.length;I++){var $=P[I];C[$]=t($,g||!!C[$].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(p,s),m={i:p?5:4,A:c?c.A:ra(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ye,{value:m,writable:!0}),u},S:function(s,c,p){p?lr(c)&&c[ye].A===s&&e(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[ye];if(g){var b=g.t,S=g.k,v=g.R,C=g.i;if(C===4)jr(S,function(Z){Z!==ye&&(b[Z]!==void 0||bo(b,Z)?v[Z]||u(S[Z]):(v[Z]=!0,Cr(g)))}),jr(b,function(Z){S[Z]!==void 0||bo(S,Z)||(v[Z]=!1,Cr(g))});else if(C===5){if(i(g)&&(Cr(g),v.length=!0),S.length<b.length)for(var P=S.length;P<b.length;P++)v[P]=!1;else for(var I=b.length;I<S.length;I++)v[I]=!0;for(var $=Math.min(S.length,b.length),F=0;F<$;F++)S.hasOwnProperty(F)||(v[F]=!0),v[F]===void 0&&u(S[F])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var od,Qo,pa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ff=typeof Map<"u",hf=typeof Set<"u",id=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cd=pa?Symbol.for("immer-nothing"):((od={})["immer-nothing"]=!0,od),nd=pa?Symbol.for("immer-draftable"):"__$immer_draftable",ye=pa?Symbol.for("immer-state"):"__$immer_state";var yf=""+Object.prototype.constructor,xo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,dd=Object.getOwnPropertyDescriptors||function(t){var e={};return xo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},na={},Jo={get:function(t,e){if(e===ye)return t;var r=Or(t);if(!bo(r,e))return function(n,a,s){var c,p=td(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!It(i)?i:i===ea(t.t,e)?(ta(t),t.o[e]=ia(t.A.h,i,t)):i},has:function(t,e){return e in Or(t)},ownKeys:function(t){return Reflect.ownKeys(Or(t))},set:function(t,e,r){var i=td(Or(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ea(Or(t),e),a=n?.[ye];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(sd(r,n)&&(r!==void 0||bo(t.t,e)))return!0;ta(t),Cr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ea(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ta(t),Cr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Or(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){St(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){St(12)}},Xo={};jr(Jo,function(t,e){Xo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Xo.deleteProperty=function(t,e){return Xo.set.call(this,t,e,void 0)},Xo.set=function(t,e,r){return Jo.set.call(this,t[0],e,r,t[0])};var gf=function(){function t(r){var i=this;this.O=id,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(C){var P=this;C===void 0&&(C=c);for(var I=arguments.length,$=Array(I>1?I-1:0),F=1;F<I;F++)$[F-1]=arguments[F];return p.produce(C,function(Z){var Y;return(Y=a).call.apply(Y,[P,Z].concat($))})}}var u;if(typeof a!="function"&&St(6),s!==void 0&&typeof s!="function"&&St(7),It(n)){var m=Jc(i),g=ia(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Mi(m):oa(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Qn(m,s),Jn(C,m)},function(C){throw Mi(m),C}):(Qn(m,s),Jn(u,m))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===cd&&(u=void 0),i.D&&ca(u,!0),s){var S=[],v=[];jt("Patches").M(n,u,S,v),s(S,v)}return u}St(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(S){return n.apply(void 0,[S].concat(g))})};var s,c,p=i.produce(n,a,function(u,m){s=u,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){It(r)||St(8),lr(r)&&(r=uf(r));var i=Jc(this),n=ia(this,r,void 0);return n[ye].C=!0,oa(i),n},e.finishDraft=function(r,i){var n=r&&r[ye],a=n.A;return Qn(a,i),Jn(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!id&&St(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=jt("Patches").$;return lr(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),ut=new gf,mf=ut.produce,w0=ut.produceWithPatches.bind(ut),E0=ut.setAutoFreeze.bind(ut),A0=ut.setUseProxies.bind(ut),R0=ut.applyPatches.bind(ut),L0=ut.createDraft.bind(ut),k0=ut.finishDraft.bind(ut),Wi=mf;function Gr(t){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(t)}function pd(t,e){if(Gr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Gr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ud(t){var e=pd(t,"string");return Gr(e)=="symbol"?e:e+""}function fd(t,e,r){return(e=ud(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function ua(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hd(Object(r),!0).forEach(function(i){fd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function He(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 yd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Hi={INIT:"@@redux/INIT"+fa(),REPLACE:"@@redux/REPLACE"+fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fa()}};function bf(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ha(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(ha)(t,e)}if(typeof t!="function")throw new Error(He(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(He(3));return a}function g(C){if(typeof C!="function")throw new Error(He(4));if(p)throw new Error(He(5));var P=!0;return u(),c.push(C),function(){if(P){if(p)throw new Error(He(6));P=!1,u();var $=c.indexOf(C);c.splice($,1),s=null}}}function b(C){if(!bf(C))throw new Error(He(7));if(typeof C.type>"u")throw new Error(He(8));if(p)throw new Error(He(9));try{p=!0,a=n(a,C)}finally{p=!1}for(var P=s=c,I=0;I<P.length;I++){var $=P[I];$()}return C}function S(C){if(typeof C!="function")throw new Error(He(10));n=C,b({type:Hi.REPLACE})}function v(){var C,P=g;return C={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(He(11));function F(){$.next&&$.next(m())}F();var Z=P(F);return{unsubscribe:Z}}},C[yd]=function(){return this},C}return b({type:Hi.INIT}),i={dispatch:b,subscribe:g,getState:m,replaceReducer:S},i[yd]=v,i}function xf(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Hi.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof r(void 0,{type:Hi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function gd(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{xf(r)}catch(p){c=p}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,S={},v=0;v<a.length;v++){var C=a[v],P=r[C],I=u[C],$=P(I,m);if(typeof $>"u"){var F=m&&m.type;throw new Error(He(14))}S[C]=$,b=b||$!==I}return b=b||a.length!==Object.keys(u).length,b?S:u}}function So(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function md(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=So.apply(void 0,c)(n.dispatch),ua(ua({},n),{},{dispatch:a})}}}function bd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var xd=bd();xd.withExtraArgument=bd;var ya=xd;var wd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),vf=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(m){return p([u,m])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(m){u=[6,m],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Oo=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Sf=Object.defineProperty,Of=Object.defineProperties,Cf=Object.getOwnPropertyDescriptors,vd=Object.getOwnPropertySymbols,wf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,Sd=function(t,e,r){return e in t?Sf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},wr=function(t,e){for(var r in e||(e={}))wf.call(e,r)&&Sd(t,r,e[r]);if(vd)for(var i=0,n=vd(e);i<n.length;i++){var r=n[i];Ef.call(e,r)&&Sd(t,r,e[r])}return t},ga=function(t,e){return Of(t,Cf(e))},Af=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Rf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?So:So.apply(null,arguments)},K0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var kf=function(t){wd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Oo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],r.concat(this))))},e}(Array),If=function(t){wd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Oo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],r.concat(this))))},e}(Array);function xa(t){return It(t)?Wi(t,function(){}):t}function $f(t){return typeof t=="boolean"}function Pf(){return function(e){return Tf(e)}}function Tf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new kf;if(r&&($f(r)?c.push(ya):c.push(ya.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var ma=!0;function Ed(t){var e=Pf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,b=g===void 0?void 0:g,S;if(typeof n=="function")S=n;else if(Lf(n))S=gd(n);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 v=s;if(typeof v=="function"&&(v=v(e),!ma&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ma&&v.some(function(Z){return typeof Z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=md.apply(void 0,v),P=So;p&&(P=Rf(wr({trace:!ma},typeof p=="object"&&p)));var I=new If(C),$=I;Array.isArray(b)?$=Oo([C],b):typeof b=="function"&&($=b(I));var F=P.apply(void 0,$);return ha(S,m,F)}function Er(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return wr(wr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Ad(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Nf(t){return typeof t=="function"}function _f(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ad(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(Nf(t))p=function(){return xa(t())};else{var u=xa(t);p=function(){return u}}function m(g,b){g===void 0&&(g=p());var S=Oo([a[b.type]],s.filter(function(v){var C=v.matcher;return C(b)}).map(function(v){var C=v.reducer;return C}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,C){if(C)if(lr(v)){var P=v,I=C(P,b);return I===void 0?v:I}else{if(It(v))return Wi(v,function($){return C($,b)});var I=C(v,b);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},g)}return m.getInitialState=p,m}function Bf(t,e){return t+"/"+e}function Rd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:xa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(m){var g=i[m],b=Bf(e,m),S,v;"reducer"in g?(S=g.reducer,v=g.prepare):S=g,a[m]=S,s[b]=S,c[m]=v?Er(b,v):Er(b)});function p(){var m=typeof t.extraReducers=="function"?Ad(t.extraReducers):[t.extraReducers],g=m[0],b=g===void 0?{}:g,S=m[1],v=S===void 0?[]:S,C=m[2],P=C===void 0?void 0:C,I=wr(wr({},b),s);return _f(r,function($){for(var F in I)$.addCase(F,I[F]);for(var Z=0,Y=v;Z<Y.length;Z++){var et=Y[Z];$.addMatcher(et.matcher,et.reducer)}P&&$.addDefaultCase(P)})}var u;return{name:e,reducer:function(m,g){return u||(u=p()),u(m,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Df="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ff=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Df[Math.random()*64|0];return e},Mf=["name","message","stack","code"],ba=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Od=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),zf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Mf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},X0=function(){function t(e,r,i){var n=Er(e+"/fulfilled",function(m,g,b,S){return{payload:m,meta:ga(wr({},S||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=Er(e+"/pending",function(m,g,b){return{payload:void 0,meta:ga(wr({},b||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Er(e+"/rejected",function(m,g,b,S,v){return{payload:S,error:(i&&i.serializeError||zf)(m||"Rejected"),meta:ga(wr({},v||{}),{arg:b,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=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 u(m){return function(g,b,S){var v=i?.idGenerator?i.idGenerator(m):Ff(),C=new p,P,I=!1;function $(Z){P=Z,C.abort()}var F=function(){return Af(this,null,function(){var Z,Y,et,Ft,Ze,Mt,_e;return vf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ft=(Z=i?.condition)==null?void 0:Z.call(i,m,{getState:b,extra:S}),Wf(Ft)?[4,Ft]:[3,2];case 1:Ft=y.sent(),y.label=2;case 2:if(Ft===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ze=new Promise(function(x,N){return C.signal.addEventListener("abort",function(){return N({name:"AbortError",message:P||"Aborted"})})}),g(a(v,m,(Y=i?.getPendingMeta)==null?void 0:Y.call(i,{requestId:v,arg:m},{getState:b,extra:S}))),[4,Promise.race([Ze,Promise.resolve(r(m,{dispatch:g,getState:b,extra:S,requestId:v,signal:C.signal,abort:$,rejectWithValue:function(x,N){return new ba(x,N)},fulfillWithValue:function(x,N){return new Od(x,N)}})).then(function(x){if(x instanceof ba)throw x;return x instanceof Od?n(x.payload,v,m,x.meta):n(x,v,m)})])];case 3:return et=y.sent(),[3,5];case 4:return Mt=y.sent(),et=Mt instanceof ba?s(null,v,m,Mt.payload,Mt.meta):s(Mt,v,m),[3,5];case 5:return _e=i&&!i.dispatchConditionRejection&&s.match(et)&&et.meta.condition,_e||g(et),[2,et]}})})}();return Object.assign(F,{abort:$,requestId:v,arg:m,unwrap:function(){return F.then(Uf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Uf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ld="listener",kd="completed",Id="cancelled",Q0="task-"+Id,J0="task-"+kd,eS=Ld+"-"+Id,tS=Ld+"-"+kd;var va="listenerMiddleware";var rS=Er(va+"/add"),oS=Er(va+"/removeAll"),iS=Er(va+"/remove");var Cd,nS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Cd||(Cd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hf=function(t){return function(e){setTimeout(e,t)}},aS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hf(10);ld();function Vf(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}var Vi=class extends Vf(Object){};window.ftReduxStores||(window.ftReduxStores={});var $d=class t extends Vi{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Zo(a))return a;if(n==null)return;let s=Rd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=Ed({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new _i;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...m)=>{let g=u(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[p]:n(m)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zi=f(E());var ji=class extends ar{async listMySearches(){let{session:e}=_.getState();return _c(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Gi=class extends ar{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Gf="ft-user-assets",Ki=Zi.FtReduxStore.get({name:Gf,initialState:{savedSearches:void 0,bookmarks:void 0}}),Sa=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Gi,this.savedSearchesService=new ji,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=_.getState();(0,Zi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ki.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ki.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ki.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ki.actions.bookmarks(r)}}},WS=new Sa;var Oa=class{addCommand(e,r=!1){_.commands.add(e,r)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oa;var Pd=f(E()),Ca=class{highlightHtml(e,r,i){(0,Pd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ca;var Td=f(E());var wa=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Td.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:_.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new wa;var Nd=f(E());var cr=class{static get(e,r){var i,n,a,s;let c=_.getState(),{lang:p,region:u}=(n=(i=c.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Nd.SearchPlaceConverter(c.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},e??20,c.searchInAllLanguagesAllowed,r??`${p}-${u}`)}};var Ea=class{urlToSearchRequest(e){return cr.get().parse(e)}searchRequestToUrl(e){return cr.get().serialize(e)}};window.FluidTopicsUrlService=new Ea;var Ar=f(E());var Kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Kr.eventName="change";var Aa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},_d=new Aa;var qi=class t extends Ar.WithEventBus{static build(){return new t(window.history,_d,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Kr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e,r=!1){var i,n,a;let s={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title},c=r?(n=e?.majorState)!==null&&n!==void 0?n:this.currentState.majorState:(a=this.currentState.majorState)!==null&&a!==void 0?a:e?.majorState;c!=null&&(s.majorState=c),this.setCurrentState(s)}addHistoryChangeListener(e){this.addEventListener(Kr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Kr.eventName,e)}currentItem(){return(0,Ar.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ar.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,Ar.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let r=e;do r--;while(r>0&&!this.hasState(r));return r}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var r,i;return this.hasState(e)&&((i=(r=this.states[e])===null||r===void 0?void 0:r.majorState)!==null&&i!==void 0?i:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=qi.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,Bd.customElement)("ft-app-context")(xe);var Ra=class t extends Event{constructor(){super(t.eventName)}};Ra.eventName="search-context-clear-all-filters";var Kf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ka=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Dd=Symbol("registerInterval"),La=Symbol("registerAttempts"),Zf=40;function qf(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[La]=0,this[Dd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[La]>Zf?window.clearInterval(this[Dd]):(this[La]++,this.dispatchEvent(new ka))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Kf([(0,Md.state)()],e.prototype,"stateManager",void 0),e}var Xi=class extends qf(Fd.FtLitElementRedux){};var Zd=f(E());var rn=f(k()),on=f(Q()),nn=f(E());var zd=f(k());var Ud=zd.css`
|
|
1146
|
-
`;var en=f(E());var Gd=f(Q());var Yf=f(E());function Wd(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Xf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Hd=Symbol("i18nAttributes"),Vd=Symbol("i18nListAttributes"),Kd=Symbol("i18nProperties"),Qi=Symbol("i18nContexts"),
|
|
1145
|
+
`}update(e){var r,i,n,a,s;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>mo.addContext(c)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),_.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),_.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!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 e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ve.elementDefinitions={};ve.styles=Dc;We([(0,nt.property)()],ve.prototype,"baseUrl",void 0);We([(0,nt.property)()],ve.prototype,"apiIntegrationIdentifier",void 0);We([(0,nt.property)()],ve.prototype,"uiLocale",void 0);We([(0,kt.jsonProperty)(null)],ve.prototype,"availableUiLocales",void 0);We([(0,kt.jsonProperty)(null)],ve.prototype,"metadataConfiguration",void 0);We([(0,nt.property)({type:Boolean})],ve.prototype,"editorMode",void 0);We([(0,nt.property)({type:Boolean})],ve.prototype,"noCustom",void 0);We([(0,nt.property)({type:Boolean})],ve.prototype,"openExternalDocumentInNewTab",void 0);We([(0,nt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ve.prototype,"noCustomComponent",void 0);We([(0,nt.property)({type:Boolean})],ve.prototype,"withManualResources",void 0);We([(0,nt.property)({type:Boolean})],ve.prototype,"navigatorOnline",void 0);We([(0,nt.property)({type:Boolean})],ve.prototype,"forcedOffline",void 0);We([(0,nt.property)({type:Object})],ve.prototype,"apiProvider",void 0);We([(0,kt.jsonProperty)([])],ve.prototype,"messageContexts",void 0);We([(0,kt.jsonProperty)(void 0)],ve.prototype,"session",void 0);We([(0,nt.state)()],ve.prototype,"localesConfiguration",void 0);var jf=f(Q());function nf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ti(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ti(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Ti(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ti(t,e){try{return nf(t,e)}catch{return!1}}function Ni(t,e){return!Ti(t,e)}var af=f(Q(),1);var _i=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var bo=f(Q(),1);var zc=f(Q(),1);function Uc(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,zc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ni,...e??{}})}var Bi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hc=f(k(),1);var Di=globalThis,sf=Di.ShadowRoot&&(Di.ShadyCSS===void 0||Di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d0=Symbol();var Wc=(t,e)=>{if(sf)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Di.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Fi=class extends Hc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Wc(i,e.elementStyles),i}};function Vc(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Zo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Zc,jc=Symbol("constructorPrototype"),Gc=Symbol("constructorName"),qc=Symbol("exportpartsDebouncer"),Kc=Symbol("dynamicDependenciesLoaded"),sr=class extends Fi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zc]=new Bi(5),this[Gc]=this.constructor.name,this[jc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gc]&&Object.setPrototypeOf(this,this[jc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Kc]||(e[Kc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Vc(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[qc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let S=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(p).map(C=>C.trim()).forEach(C=>m.add(C))}if(m.size===0){this.removeAttribute("exportparts");return}let g=[...m.values()].flatMap(b=>u.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};Zc=qc;Zo([(0,bo.property)()],sr.prototype,"exportpartsPrefix",void 0);Zo([Uc([])],sr.prototype,"exportpartsPrefixes",void 0);Zo([(0,bo.property)()],sr.prototype,"customStylesheet",void 0);Zo([(0,bo.property)()],sr.prototype,"elementToFocus",void 0);Zo([(0,bo.state)()],sr.prototype,"useAdoptedStyleSheets",void 0);function qo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yc,Xc,Qc,Yo=Symbol("internalReduxEventsUnsubscribers"),Sr=Symbol("internalStoresUnsubscribers"),Vr=Symbol("internalStores"),Xo=class extends sr{constructor(){super(...arguments),this[Yc]=new Map,this[Xc]=new Map,this[Qc]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Vr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Vr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Vr].get(e)}addStore(e,r){var i;r=(i=r??(qo(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[Vr].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Vr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Vr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[Sr].has(e.store):this[Sr].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Sr].set(e,r.subscribe(()=>this.updateFromStores())),this[Yo].set(e,[]),qo(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=c=>this[a](c);r.addEventListener(n.eventName,s),this[Yo].get(e).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Sr].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[Sr].has(e)&&this[Sr].get(e)(),this[Sr].delete(e),(r=this[Yo].get(e))===null||r===void 0||r.forEach(i=>i()),this[Yo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Yc=Sr,Xc=Vr,Qc=Yo;Xo.reduxProperties=new Map;Xo.reduxReactiveProperties=new Set;Xo.reduxEventListeners=new Map;function St(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lr(t){return!!t&&!!t[ye]}function It(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===yf}(t)||Array.isArray(t)||!!t[nd]||!!(!((e=t.constructor)===null||e===void 0)&&e[nd])||aa(t)||sa(t))}function jr(t,e,r){r===void 0&&(r=!1),So(t)===0?(r?Object.keys:vo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function So(t){var e=t[ye];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:aa(t)?2:sa(t)?3:0}function xo(t,e){return So(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lf(t,e){return So(t)===2?t.get(e):t[e]}function ad(t,e,r){var i=So(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function sd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function aa(t){return ff&&t instanceof Map}function sa(t){return hf&&t instanceof Set}function Or(t){return t.o||t.t}function la(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=dd(t);delete e[ye];for(var r=vo(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ca(t,e){return e===void 0&&(e=!1),da(t)||lr(t)||!It(t)||(So(t)>1&&(t.set=t.add=t.clear=t.delete=cf),Object.freeze(t),e&&jr(t,function(r,i){return ca(i,!0)},!0)),t}function cf(){St(2)}function da(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function jt(t){var e=na[t];return e||St(18,t),e}function df(t,e){na[t]||(na[t]=e)}function ra(){return Jo}function Qn(t,e){e&&(jt("Patches"),t.u=[],t.s=[],t.v=e)}function Mi(t){oa(t),t.p.forEach(pf),t.p=null}function oa(t){t===Jo&&(Jo=t.l)}function Jc(t){return Jo={p:[],l:Jo,h:t,m:!0,_:0}}function pf(t){var e=t[ye];e.i===0||e.i===1?e.j():e.g=!0}function Jn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||jt("ES5").S(e,t,i),i?(r[ye].P&&(Mi(e),St(4)),It(t)&&(t=zi(e,t),e.l||Ui(e,t)),e.u&&jt("Patches").M(r[ye].t,t,e.u,e.s)):t=zi(e,r,[]),Mi(e),e.u&&e.v(e.u,e.s),t!==cd?t:void 0}function zi(t,e,r){if(da(e))return e;var i=e[ye];if(!i)return jr(e,function(c,p){return ed(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Ui(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=la(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),jr(a,function(c,p){return ed(t,i,n,c,p,r,s)}),Ui(t,n,!1),r&&t.u&&jt("Patches").N(i,r,t.u,t.s)}return i.o}function ed(t,e,r,i,n,a,s){if(lr(n)){var c=zi(t,n,a&&e&&e.i!==3&&!xo(e.R,i)?a.concat(i):void 0);if(ad(r,i,c),!lr(c))return;t.m=!1}else s&&r.add(n);if(It(n)&&!da(n)){if(!t.h.D&&t._<1)return;zi(t,n),e&&e.A.l||Ui(t,n)}}function Ui(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ca(e,r)}function ea(t,e){var r=t[ye];return(r?Or(r):t)[e]}function td(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Cr(t){t.P||(t.P=!0,t.l&&Cr(t.l))}function ta(t){t.o||(t.o=la(t.t))}function ia(t,e,r){var i=aa(e)?jt("MapSet").F(e,r):sa(e)?jt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ra(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=ei;s&&(p=[c],u=Qo);var m=Proxy.revocable(p,u),g=m.revoke,b=m.proxy;return c.k=b,c.j=g,b}(e,r):jt("ES5").J(e,r);return(r?r.A:ra()).p.push(i),i}function uf(t){return lr(t)||St(22,t),function e(r){if(!It(r))return r;var i,n=r[ye],a=So(r);if(n){if(!n.P&&(n.i<4||!jt("ES5").K(n)))return n.t;n.I=!0,i=rd(r,a),n.I=!1}else i=rd(r,a);return jr(i,function(s,c){n&&lf(n.t,s)===c||ad(i,s,e(c))}),a===3?new Set(i):i}(t)}function rd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return la(t)}function ld(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[ye];return ei.get(u,s)},set:function(u){var m=this[ye];ei.set(m,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][ye];if(!p.P)switch(p.i){case 5:i(p)&&Cr(p);break;case 4:r(p)&&Cr(p)}}}function r(s){for(var c=s.t,p=s.k,u=vo(p),m=u.length-1;m>=0;m--){var g=u[m];if(g!==ye){var b=c[g];if(b===void 0&&!xo(c,g))return!0;var S=p[g],v=S&&S[ye];if(v?v.t!==b:!sd(S,b))return!0}}var C=!!c[ye];return u.length!==vo(c).length+(C?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&St(3,JSON.stringify(Or(s)))}var a={};df("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var C=dd(b);delete C[ye];for(var P=vo(C),I=0;I<P.length;I++){var $=P[I];C[$]=t($,g||!!C[$].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(p,s),m={i:p?5:4,A:c?c.A:ra(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ye,{value:m,writable:!0}),u},S:function(s,c,p){p?lr(c)&&c[ye].A===s&&e(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[ye];if(g){var b=g.t,S=g.k,v=g.R,C=g.i;if(C===4)jr(S,function(Z){Z!==ye&&(b[Z]!==void 0||xo(b,Z)?v[Z]||u(S[Z]):(v[Z]=!0,Cr(g)))}),jr(b,function(Z){S[Z]!==void 0||xo(S,Z)||(v[Z]=!1,Cr(g))});else if(C===5){if(i(g)&&(Cr(g),v.length=!0),S.length<b.length)for(var P=S.length;P<b.length;P++)v[P]=!1;else for(var I=b.length;I<S.length;I++)v[I]=!0;for(var $=Math.min(S.length,b.length),F=0;F<$;F++)S.hasOwnProperty(F)||(v[F]=!0),v[F]===void 0&&u(S[F])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var od,Jo,pa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ff=typeof Map<"u",hf=typeof Set<"u",id=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cd=pa?Symbol.for("immer-nothing"):((od={})["immer-nothing"]=!0,od),nd=pa?Symbol.for("immer-draftable"):"__$immer_draftable",ye=pa?Symbol.for("immer-state"):"__$immer_state";var yf=""+Object.prototype.constructor,vo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,dd=Object.getOwnPropertyDescriptors||function(t){var e={};return vo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},na={},ei={get:function(t,e){if(e===ye)return t;var r=Or(t);if(!xo(r,e))return function(n,a,s){var c,p=td(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!It(i)?i:i===ea(t.t,e)?(ta(t),t.o[e]=ia(t.A.h,i,t)):i},has:function(t,e){return e in Or(t)},ownKeys:function(t){return Reflect.ownKeys(Or(t))},set:function(t,e,r){var i=td(Or(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ea(Or(t),e),a=n?.[ye];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(sd(r,n)&&(r!==void 0||xo(t.t,e)))return!0;ta(t),Cr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ea(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ta(t),Cr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Or(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){St(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){St(12)}},Qo={};jr(ei,function(t,e){Qo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)},Qo.set=function(t,e,r){return ei.set.call(this,t[0],e,r,t[0])};var gf=function(){function t(r){var i=this;this.O=id,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(C){var P=this;C===void 0&&(C=c);for(var I=arguments.length,$=Array(I>1?I-1:0),F=1;F<I;F++)$[F-1]=arguments[F];return p.produce(C,function(Z){var Y;return(Y=a).call.apply(Y,[P,Z].concat($))})}}var u;if(typeof a!="function"&&St(6),s!==void 0&&typeof s!="function"&&St(7),It(n)){var m=Jc(i),g=ia(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Mi(m):oa(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Qn(m,s),Jn(C,m)},function(C){throw Mi(m),C}):(Qn(m,s),Jn(u,m))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===cd&&(u=void 0),i.D&&ca(u,!0),s){var S=[],v=[];jt("Patches").M(n,u,S,v),s(S,v)}return u}St(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(S){return n.apply(void 0,[S].concat(g))})};var s,c,p=i.produce(n,a,function(u,m){s=u,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){It(r)||St(8),lr(r)&&(r=uf(r));var i=Jc(this),n=ia(this,r,void 0);return n[ye].C=!0,oa(i),n},e.finishDraft=function(r,i){var n=r&&r[ye],a=n.A;return Qn(a,i),Jn(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!id&&St(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=jt("Patches").$;return lr(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),ut=new gf,mf=ut.produce,w0=ut.produceWithPatches.bind(ut),E0=ut.setAutoFreeze.bind(ut),A0=ut.setUseProxies.bind(ut),R0=ut.applyPatches.bind(ut),L0=ut.createDraft.bind(ut),k0=ut.finishDraft.bind(ut),Wi=mf;function Gr(t){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(t)}function pd(t,e){if(Gr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Gr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ud(t){var e=pd(t,"string");return Gr(e)=="symbol"?e:e+""}function fd(t,e,r){return(e=ud(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function ua(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hd(Object(r),!0).forEach(function(i){fd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function He(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 yd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Hi={INIT:"@@redux/INIT"+fa(),REPLACE:"@@redux/REPLACE"+fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fa()}};function bf(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ha(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(ha)(t,e)}if(typeof t!="function")throw new Error(He(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(He(3));return a}function g(C){if(typeof C!="function")throw new Error(He(4));if(p)throw new Error(He(5));var P=!0;return u(),c.push(C),function(){if(P){if(p)throw new Error(He(6));P=!1,u();var $=c.indexOf(C);c.splice($,1),s=null}}}function b(C){if(!bf(C))throw new Error(He(7));if(typeof C.type>"u")throw new Error(He(8));if(p)throw new Error(He(9));try{p=!0,a=n(a,C)}finally{p=!1}for(var P=s=c,I=0;I<P.length;I++){var $=P[I];$()}return C}function S(C){if(typeof C!="function")throw new Error(He(10));n=C,b({type:Hi.REPLACE})}function v(){var C,P=g;return C={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(He(11));function F(){$.next&&$.next(m())}F();var Z=P(F);return{unsubscribe:Z}}},C[yd]=function(){return this},C}return b({type:Hi.INIT}),i={dispatch:b,subscribe:g,getState:m,replaceReducer:S},i[yd]=v,i}function xf(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Hi.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof r(void 0,{type:Hi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function gd(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{xf(r)}catch(p){c=p}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,S={},v=0;v<a.length;v++){var C=a[v],P=r[C],I=u[C],$=P(I,m);if(typeof $>"u"){var F=m&&m.type;throw new Error(He(14))}S[C]=$,b=b||$!==I}return b=b||a.length!==Object.keys(u).length,b?S:u}}function Oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function md(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Oo.apply(void 0,c)(n.dispatch),ua(ua({},n),{},{dispatch:a})}}}function bd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var xd=bd();xd.withExtraArgument=bd;var ya=xd;var wd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),vf=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(m){return p([u,m])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(m){u=[6,m],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Co=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Sf=Object.defineProperty,Of=Object.defineProperties,Cf=Object.getOwnPropertyDescriptors,vd=Object.getOwnPropertySymbols,wf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,Sd=function(t,e,r){return e in t?Sf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},wr=function(t,e){for(var r in e||(e={}))wf.call(e,r)&&Sd(t,r,e[r]);if(vd)for(var i=0,n=vd(e);i<n.length;i++){var r=n[i];Ef.call(e,r)&&Sd(t,r,e[r])}return t},ga=function(t,e){return Of(t,Cf(e))},Af=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Rf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Oo:Oo.apply(null,arguments)},K0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var kf=function(t){wd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Co([void 0],r[0].concat(this)))):new(e.bind.apply(e,Co([void 0],r.concat(this))))},e}(Array),If=function(t){wd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Co([void 0],r[0].concat(this)))):new(e.bind.apply(e,Co([void 0],r.concat(this))))},e}(Array);function xa(t){return It(t)?Wi(t,function(){}):t}function $f(t){return typeof t=="boolean"}function Pf(){return function(e){return Tf(e)}}function Tf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new kf;if(r&&($f(r)?c.push(ya):c.push(ya.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var ma=!0;function Ed(t){var e=Pf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,b=g===void 0?void 0:g,S;if(typeof n=="function")S=n;else if(Lf(n))S=gd(n);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 v=s;if(typeof v=="function"&&(v=v(e),!ma&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ma&&v.some(function(Z){return typeof Z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=md.apply(void 0,v),P=Oo;p&&(P=Rf(wr({trace:!ma},typeof p=="object"&&p)));var I=new If(C),$=I;Array.isArray(b)?$=Co([C],b):typeof b=="function"&&($=b(I));var F=P.apply(void 0,$);return ha(S,m,F)}function Er(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return wr(wr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Ad(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Nf(t){return typeof t=="function"}function _f(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ad(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(Nf(t))p=function(){return xa(t())};else{var u=xa(t);p=function(){return u}}function m(g,b){g===void 0&&(g=p());var S=Co([a[b.type]],s.filter(function(v){var C=v.matcher;return C(b)}).map(function(v){var C=v.reducer;return C}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,C){if(C)if(lr(v)){var P=v,I=C(P,b);return I===void 0?v:I}else{if(It(v))return Wi(v,function($){return C($,b)});var I=C(v,b);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},g)}return m.getInitialState=p,m}function Bf(t,e){return t+"/"+e}function Rd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:xa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(m){var g=i[m],b=Bf(e,m),S,v;"reducer"in g?(S=g.reducer,v=g.prepare):S=g,a[m]=S,s[b]=S,c[m]=v?Er(b,v):Er(b)});function p(){var m=typeof t.extraReducers=="function"?Ad(t.extraReducers):[t.extraReducers],g=m[0],b=g===void 0?{}:g,S=m[1],v=S===void 0?[]:S,C=m[2],P=C===void 0?void 0:C,I=wr(wr({},b),s);return _f(r,function($){for(var F in I)$.addCase(F,I[F]);for(var Z=0,Y=v;Z<Y.length;Z++){var et=Y[Z];$.addMatcher(et.matcher,et.reducer)}P&&$.addDefaultCase(P)})}var u;return{name:e,reducer:function(m,g){return u||(u=p()),u(m,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Df="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ff=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Df[Math.random()*64|0];return e},Mf=["name","message","stack","code"],ba=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Od=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),zf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Mf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},X0=function(){function t(e,r,i){var n=Er(e+"/fulfilled",function(m,g,b,S){return{payload:m,meta:ga(wr({},S||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=Er(e+"/pending",function(m,g,b){return{payload:void 0,meta:ga(wr({},b||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Er(e+"/rejected",function(m,g,b,S,v){return{payload:S,error:(i&&i.serializeError||zf)(m||"Rejected"),meta:ga(wr({},v||{}),{arg:b,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=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 u(m){return function(g,b,S){var v=i?.idGenerator?i.idGenerator(m):Ff(),C=new p,P,I=!1;function $(Z){P=Z,C.abort()}var F=function(){return Af(this,null,function(){var Z,Y,et,Ft,Ze,Mt,_e;return vf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ft=(Z=i?.condition)==null?void 0:Z.call(i,m,{getState:b,extra:S}),Wf(Ft)?[4,Ft]:[3,2];case 1:Ft=y.sent(),y.label=2;case 2:if(Ft===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ze=new Promise(function(x,N){return C.signal.addEventListener("abort",function(){return N({name:"AbortError",message:P||"Aborted"})})}),g(a(v,m,(Y=i?.getPendingMeta)==null?void 0:Y.call(i,{requestId:v,arg:m},{getState:b,extra:S}))),[4,Promise.race([Ze,Promise.resolve(r(m,{dispatch:g,getState:b,extra:S,requestId:v,signal:C.signal,abort:$,rejectWithValue:function(x,N){return new ba(x,N)},fulfillWithValue:function(x,N){return new Od(x,N)}})).then(function(x){if(x instanceof ba)throw x;return x instanceof Od?n(x.payload,v,m,x.meta):n(x,v,m)})])];case 3:return et=y.sent(),[3,5];case 4:return Mt=y.sent(),et=Mt instanceof ba?s(null,v,m,Mt.payload,Mt.meta):s(Mt,v,m),[3,5];case 5:return _e=i&&!i.dispatchConditionRejection&&s.match(et)&&et.meta.condition,_e||g(et),[2,et]}})})}();return Object.assign(F,{abort:$,requestId:v,arg:m,unwrap:function(){return F.then(Uf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Uf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ld="listener",kd="completed",Id="cancelled",Q0="task-"+Id,J0="task-"+kd,eS=Ld+"-"+Id,tS=Ld+"-"+kd;var va="listenerMiddleware";var rS=Er(va+"/add"),oS=Er(va+"/removeAll"),iS=Er(va+"/remove");var Cd,nS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Cd||(Cd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hf=function(t){return function(e){setTimeout(e,t)}},aS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hf(10);ld();function Vf(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}var Vi=class extends Vf(Object){};window.ftReduxStores||(window.ftReduxStores={});var $d=class t extends Vi{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(qo(a))return a;if(n==null)return;let s=Rd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=Ed({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new _i;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...m)=>{let g=u(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[p]:n(m)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zi=f(E());var ji=class extends ar{async listMySearches(){let{session:e}=_.getState();return _c(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Gi=class extends ar{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Gf="ft-user-assets",Ki=Zi.FtReduxStore.get({name:Gf,initialState:{savedSearches:void 0,bookmarks:void 0}}),Sa=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Gi,this.savedSearchesService=new ji,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=_.getState();(0,Zi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ki.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ki.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ki.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ki.actions.bookmarks(r)}}},WS=new Sa;var Oa=class{addCommand(e,r=!1){_.commands.add(e,r)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oa;var Pd=f(E()),Ca=class{highlightHtml(e,r,i){(0,Pd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ca;var Td=f(E());var wa=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Td.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:_.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new wa;var Nd=f(E());var cr=class{static get(e,r){var i,n,a,s;let c=_.getState(),{lang:p,region:u}=(n=(i=c.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Nd.SearchPlaceConverter(c.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},e??20,c.searchInAllLanguagesAllowed,r??`${p}-${u}`)}};var Ea=class{urlToSearchRequest(e){return cr.get().parse(e)}searchRequestToUrl(e){return cr.get().serialize(e)}};window.FluidTopicsUrlService=new Ea;var Ar=f(E());var Kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Kr.eventName="change";var Aa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},_d=new Aa;var qi=class t extends Ar.WithEventBus{static build(){return new t(window.history,_d,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Kr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e,r=!1){var i,n,a;let s={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title},c=r?(n=e?.majorState)!==null&&n!==void 0?n:this.currentState.majorState:(a=this.currentState.majorState)!==null&&a!==void 0?a:e?.majorState;c!=null&&(s.majorState=c),this.setCurrentState(s)}addHistoryChangeListener(e){this.addEventListener(Kr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Kr.eventName,e)}currentItem(){return(0,Ar.deepCopy)(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ar.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return(0,Ar.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let r=e;do r--;while(r>0&&!this.hasState(r));return r}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var r,i;return this.hasState(e)&&((i=(r=this.states[e])===null||r===void 0?void 0:r.majorState)!==null&&i!==void 0?i:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=qi.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,Bd.customElement)("ft-app-context")(ve);var Ra=class t extends Event{constructor(){super(t.eventName)}};Ra.eventName="search-context-clear-all-filters";var Kf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ka=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Dd=Symbol("registerInterval"),La=Symbol("registerAttempts"),Zf=40;function qf(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[La]=0,this[Dd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[La]>Zf?window.clearInterval(this[Dd]):(this[La]++,this.dispatchEvent(new ka))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Kf([(0,Md.state)()],e.prototype,"stateManager",void 0),e}var Xi=class extends qf(Fd.FtLitElementRedux){};var Zd=f(E());var rn=f(k()),on=f(Q()),nn=f(E());var zd=f(k());var Ud=zd.css`
|
|
1146
|
+
`;var en=f(E());var Gd=f(Q());var Yf=f(E());function Wd(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Xf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Hd=Symbol("i18nAttributes"),Vd=Symbol("i18nListAttributes"),Kd=Symbol("i18nProperties"),Qi=Symbol("i18nContexts"),ti=Symbol("i18nUnsubs");function tn(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Pi:mo}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let c=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...c)}customI18n(a,s){if(Wd(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(m,g,b)=>b?.context&&b.key&&a(m,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,...m})}:b;(s=this[Hd])===null||s===void 0||s.forEach((m,g)=>p[g]=u(m,g,p[g])),(c=this[Vd])===null||c===void 0||c.forEach((m,g)=>{var b;return p[g]=(b=p[g])===null||b===void 0?void 0:b.map(S=>u(m,g,S))})}updateI18nProperties(a){var s;(s=this[Kd])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Qi].set(p,{isCustomContext:c}),this[ti].has(p)||this[ti].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Qi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Qi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ti].forEach(a=>a()),this[ti].clear()}}return e=Qi,r=ti,Xf([(0,Gd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var jd=class extends tn(en.FtLitElement){},Ji=class extends tn(en.FtLitElementRedux){};var ri=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$t=class extends Ji{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":rn.nothing:rn.html`
|
|
1147
1147
|
<span class="ft-i18n">
|
|
1148
1148
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1149
1149
|
</span>
|
|
1150
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};$t.elementDefinitions={};$t.styles=Ud;
|
|
1150
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};$t.elementDefinitions={};$t.styles=Ud;ri([(0,nn.redux)()],$t.prototype,"editorMode",void 0);ri([(0,on.property)()],$t.prototype,"context",void 0);ri([(0,on.property)()],$t.prototype,"key",void 0);ri([(0,nn.jsonProperty)([])],$t.prototype,"args",void 0);ri([(0,on.property)()],$t.prototype,"defaultMessage",void 0);var an=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Pi:mo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)})}};(0,Zd.customElement)("ft-i18n")($t);var Rr=an.build("designedSearchInput");var Dt=f(Q()),bu=f(dt());var gu=f(E()),Io=f(k());var fu=f(k());var hu=f(E());var uu=f(E());var te=f(k()),K=f(Q()),di=f(Lr()),pe=f(E());var Jd=f(E());var Qd=f(k()),Zr=f(Q()),sn=f(E());var Ot;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Ot||(Ot={}));var Yd=f(k());var Xd=Yd.css`
|
|
1151
1151
|
.ft-size-watcher--pixel {
|
|
1152
1152
|
width: 0;
|
|
1153
1153
|
height: 0;
|
|
@@ -1166,11 +1166,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1166
1166
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
1167
1167
|
width: 100%;
|
|
1168
1168
|
}
|
|
1169
|
-
`;var
|
|
1169
|
+
`;var oi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ia=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},ft=class extends sn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Ot.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new sn.Debouncer}render(){return Qd.html`
|
|
1170
1170
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
1171
1171
|
<div class="ft-size-watcher--watcher"></div>
|
|
1172
1172
|
</div>
|
|
1173
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Ot.S:this.size<976?this.category=Ot.M:this.size<1024?this.category=Ot.L:this.size<1440?this.category=Ot.XL:this.category=Ot.XXL,this.dispatchEvent(new Ia(this.size,this.category)))},this.debounceTimeout)}};ft.elementDefinitions={};ft.styles=Xd;
|
|
1173
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Ot.S:this.size<976?this.category=Ot.M:this.size<1024?this.category=Ot.L:this.size<1440?this.category=Ot.XL:this.category=Ot.XXL,this.dispatchEvent(new Ia(this.size,this.category)))},this.debounceTimeout)}};ft.elementDefinitions={};ft.styles=Xd;oi([(0,Zr.property)({type:Number})],ft.prototype,"debounceTimeout",void 0);oi([(0,Zr.property)({type:Boolean})],ft.prototype,"local",void 0);oi([(0,Zr.property)({type:Number,reflect:!0})],ft.prototype,"size",void 0);oi([(0,Zr.property)({type:String,reflect:!0})],ft.prototype,"category",void 0);oi([(0,Zr.query)(".ft-size-watcher--watcher")],ft.prototype,"watcher",void 0);(0,Jd.customElement)("ft-size-watcher")(ft);var $a=f(E());function ln(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ep(t){return ln(t).split("|").pop()}function tp(t){return ln(t).split("|").join(" > ")}function rp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>rp(r,t.selected)),value:t.value}}function op(t){return(0,$a.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Pa(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>rp(e,!1))}}function ip(t){return(0,$a.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Ba=f(E());var Yr=f(k()),se=f(Q()),je=f(E());var yt=f(k()),Ne=f(Q()),Op=f(Lr()),dn=f(E());var dp=f(E());var sp=f(k()),Gt=f(Q()),lp=f(E()),cp=f(dt());var Me=f(E()),np=f(k());var ht={textColor:Me.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Me.designSystemVariables.colorOnSurfaceHigh),fontSize:Me.FtCssVariableFactory.extend("--ft-checkbox-font-size","",L.fontSize),activeColor:Me.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Me.designSystemVariables.colorPrimary),checkColor:Me.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Me.designSystemVariables.colorOnPrimary),borderColor:Me.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Me.designSystemVariables.colorOnSurfaceMedium),disabledColor:Me.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Me.designSystemVariables.colorOnSurfaceDisabled),errorColor:Me.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Me.designSystemVariables.colorError)},ap=np.css`
|
|
1174
1174
|
* {
|
|
1175
1175
|
box-sizing: border-box;
|
|
1176
1176
|
}
|
|
@@ -1412,12 +1412,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1412
1412
|
:host(:focus-visible) {
|
|
1413
1413
|
outline: none;
|
|
1414
1414
|
}
|
|
1415
|
-
`;var
|
|
1415
|
+
`;var wo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},st=class extends bp.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio")?[i]:[...i.querySelectorAll("ft-radio")]))!==null&&r!==void 0?r:[]}render(){return xp.html`
|
|
1416
1416
|
<slot @slotchange=${this.onSlotChange}
|
|
1417
1417
|
@change=${this.onChange}
|
|
1418
1418
|
@keydown=${this.onKeyDown}
|
|
1419
1419
|
></slot>
|
|
1420
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};st.elementDefinitions={};st.styles=mp;
|
|
1420
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};st.elementDefinitions={};st.styles=mp;wo([(0,pr.property)()],st.prototype,"name",void 0);wo([(0,pr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);wo([(0,pr.property)({reflect:!0})],st.prototype,"tabIndex",void 0);wo([(0,pr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);wo([(0,pr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);wo([(0,pr.state)()],st.prototype,"currentSelectedIndex",void 0);(0,Ta.customElement)("ft-radio")($e);(0,Ta.customElement)("ft-radio-group")(st);var vp=f(k()),ae=f(E());var ii={buttonMoreColor:ae.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ae.designSystemVariables.colorOnSurface),borderRadiusM:ae.FtCssVariableFactory.external(ae.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ae.FtCssVariableFactory.external(Re.fontFamily,"Body2 typography"),fontSize:ae.FtCssVariableFactory.external(Re.fontSize,"Body2 typography"),fontWeight:ae.FtCssVariableFactory.external(Re.fontWeight,"Body2 typography"),letterSpacing:ae.FtCssVariableFactory.external(Re.letterSpacing,"Body2 typography"),lineHeight:ae.FtCssVariableFactory.external(Re.lineHeight,"Body2 typography"),textTransform:ae.FtCssVariableFactory.external(Re.textTransform,"Body2 typography")},Sp=vp.css`
|
|
1421
1421
|
.ft-filter-level--container {
|
|
1422
1422
|
display: flex;
|
|
1423
1423
|
flex-direction: column;
|
|
@@ -1431,14 +1431,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1431
1431
|
flex-shrink: 0;
|
|
1432
1432
|
text-decoration: none;
|
|
1433
1433
|
position: relative;
|
|
1434
|
-
border-radius: ${
|
|
1434
|
+
border-radius: ${ii.borderRadiusM};
|
|
1435
1435
|
overflow: hidden;
|
|
1436
1436
|
display: flex;
|
|
1437
1437
|
align-items: center;
|
|
1438
1438
|
padding: 4px 4px;
|
|
1439
1439
|
gap: 4px;
|
|
1440
1440
|
cursor: pointer;
|
|
1441
|
-
color: ${
|
|
1441
|
+
color: ${ii.colorOnSurface};
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
1444
|
.ft-filter-level--go-back:focus {
|
|
@@ -1467,11 +1467,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
ft-button {
|
|
1470
|
-
${(0,
|
|
1470
|
+
${(0,ae.setVariable)(M.color,ii.colorOnSurface)};
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
1473
1473
|
ft-button.ft-filter-level--display-more {
|
|
1474
|
-
${(0,
|
|
1474
|
+
${(0,ae.setVariable)(M.color,ii.buttonMoreColor)};
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
1477
1477
|
ft-radio, ft-checkbox {
|
|
@@ -1485,7 +1485,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1485
1485
|
|
|
1486
1486
|
.ft-filter-level--no-values {
|
|
1487
1487
|
margin: 10px 0;
|
|
1488
|
-
color: ${
|
|
1488
|
+
color: ${ii.colorOnSurfaceMedium};
|
|
1489
1489
|
}
|
|
1490
1490
|
`;var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends dn.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(i=>!i.selected)),this.filter&&(e=e.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())));let r=e.slice(0,this.limit);return yt.html`
|
|
1491
1491
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
@@ -1554,7 +1554,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1554
1554
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1555
1555
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1556
1556
|
</ft-radio>
|
|
1557
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};Ce.elementDefinitions={"ft-button":Oe,"ft-ripple":W,"ft-typography":ee,"ft-checkbox":Ve,"ft-icon":
|
|
1557
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};Ce.elementDefinitions={"ft-button":Oe,"ft-ripple":W,"ft-typography":ee,"ft-checkbox":Ve,"ft-icon":ne,"ft-radio":$e};Ce.styles=Sp;Ye([(0,Ne.property)({type:String})],Ce.prototype,"filterId",void 0);Ye([(0,Ne.property)({type:Object})],Ce.prototype,"parent",void 0);Ye([(0,Ne.property)({type:Array})],Ce.prototype,"options",void 0);Ye([(0,Ne.property)({type:Boolean})],Ce.prototype,"multivalued",void 0);Ye([(0,Ne.property)({type:Boolean})],Ce.prototype,"disabled",void 0);Ye([(0,Ne.property)({type:Boolean})],Ce.prototype,"hideSelectedOptions",void 0);Ye([(0,Ne.property)({type:Boolean})],Ce.prototype,"displayCount",void 0);Ye([(0,Ne.property)({type:Boolean})],Ce.prototype,"preventNavigation",void 0);Ye([(0,Ne.property)({type:String})],Ce.prototype,"filter",void 0);Ye([(0,Ne.property)({type:String})],Ce.prototype,"moreValuesButtonLabel",void 0);Ye([(0,Ne.property)({type:String})],Ce.prototype,"noValuesLabel",void 0);Ye([(0,Ne.property)({type:Number})],Ce.prototype,"displayedValuesLimit",void 0);Ye([(0,Ne.query)(".ft-filter-level--container")],Ce.prototype,"container",void 0);Ye([(0,Ne.state)()],Ce.prototype,"radios",void 0);Ye([(0,Ne.state)()],Ce.prototype,"displayedPages",void 0);var Rp=f(E());var Ep=f(k()),gt=f(Q()),qr=f(E());var Ap=f(dt());var Cp=f(k()),Tt=f(E());var Xe={buttonsColor:Tt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Tt.designSystemVariables.colorPrimary),buttonsZIndex:Tt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Tt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.colorSurface,"Design system")},wp=Cp.css`
|
|
1558
1558
|
.ft-snap-scroll {
|
|
1559
1559
|
box-sizing: border-box;
|
|
1560
1560
|
position: relative;
|
|
@@ -1703,7 +1703,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1703
1703
|
@click=${this.next}
|
|
1704
1704
|
></ft-button>
|
|
1705
1705
|
</div>
|
|
1706
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Na(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Ae.elementDefinitions={"ft-button":Oe};Ae.styles=wp;Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"horizontal",void 0);Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"hideScrollbar",void 0);Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"controls",void 0);Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"limitSize",void 0);Kt([(0,gt.state)()],Ae.prototype,"elements",void 0);Kt([(0,gt.state)()],Ae.prototype,"currentElement",void 0);Kt([(0,gt.state)()],Ae.prototype,"withScroll",void 0);Kt([(0,gt.state)()],Ae.prototype,"startReached",void 0);Kt([(0,gt.state)()],Ae.prototype,"endReached",void 0);Kt([(0,gt.query)(".ft-snap-scroll--content")],Ae.prototype,"contentSlot",void 0);(0,Rp.customElement)("ft-snap-scroll")(Ae);var Lp=f(k()),
|
|
1706
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Na(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Ae.elementDefinitions={"ft-button":Oe};Ae.styles=wp;Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"horizontal",void 0);Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"hideScrollbar",void 0);Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"controls",void 0);Kt([(0,gt.property)({type:Boolean})],Ae.prototype,"limitSize",void 0);Kt([(0,gt.state)()],Ae.prototype,"elements",void 0);Kt([(0,gt.state)()],Ae.prototype,"currentElement",void 0);Kt([(0,gt.state)()],Ae.prototype,"withScroll",void 0);Kt([(0,gt.state)()],Ae.prototype,"startReached",void 0);Kt([(0,gt.state)()],Ae.prototype,"endReached",void 0);Kt([(0,gt.query)(".ft-snap-scroll--content")],Ae.prototype,"contentSlot",void 0);(0,Rp.customElement)("ft-snap-scroll")(Ae);var Lp=f(k()),ce=f(E());var lt={colorOutline:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ce.FtCssVariableFactory.extend("--ft-filter-label-color","",ce.designSystemVariables.colorOnSurface),labelFontSize:ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",L.fontSize,"16px")},kp=[hr,ce.noTextInputDefaultClearButton,Lp.css`
|
|
1707
1707
|
:host {
|
|
1708
1708
|
display: flex;
|
|
1709
1709
|
max-height: 100%;
|
|
@@ -1731,7 +1731,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1731
1731
|
.ft-filter--header ft-button {
|
|
1732
1732
|
flex-shrink: 0;
|
|
1733
1733
|
margin-left: auto;
|
|
1734
|
-
${(0,
|
|
1734
|
+
${(0,ce.setVariable)(M.iconSize,"18px")};
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
1737
|
.filter-label {
|
|
@@ -1745,8 +1745,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1745
1745
|
word-break: break-word;
|
|
1746
1746
|
color: ${lt.labelColor};
|
|
1747
1747
|
font-size: ${lt.labelFontSize};
|
|
1748
|
-
${(0,
|
|
1749
|
-
${(0,
|
|
1748
|
+
${(0,ce.setVariable)(L.lineHeight,"22px")};
|
|
1749
|
+
${(0,ce.setVariable)(L.fontWeight,"bold")};
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
1752
|
.ft-filter--filter {
|
|
@@ -1901,9 +1901,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1901
1901
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1902
1902
|
noValuesLabel="${this.noValuesLabel}"
|
|
1903
1903
|
></ft-filter-level>
|
|
1904
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,je.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,je.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,je.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,je.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new _a(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};J.elementDefinitions={"ft-button":Oe,"ft-filter-level":Ce,"ft-snap-scroll":Ae,"ft-typography":ee};J.styles=kp;ge([(0,
|
|
1904
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,je.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,je.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,je.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,je.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new _a(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};J.elementDefinitions={"ft-button":Oe,"ft-filter-level":Ce,"ft-snap-scroll":Ae,"ft-typography":ee};J.styles=kp;ge([(0,se.property)({type:String})],J.prototype,"id",void 0);ge([(0,se.property)({type:String})],J.prototype,"label",void 0);ge([(0,se.property)({type:String})],J.prototype,"filterPlaceHolder",void 0);ge([(0,se.property)({type:String})],J.prototype,"clearButtonLabel",void 0);ge([(0,se.property)({type:String})],J.prototype,"moreValuesButtonLabel",void 0);ge([(0,se.property)({type:String})],J.prototype,"noValuesLabel",void 0);ge([(0,je.jsonProperty)([])],J.prototype,"options",void 0);ge([(0,se.property)({type:Boolean})],J.prototype,"multivalued",void 0);ge([(0,se.property)({type:Boolean})],J.prototype,"disabled",void 0);ge([(0,se.property)({type:Boolean})],J.prototype,"raiseSelectedOptions",void 0);ge([(0,se.property)({type:Boolean})],J.prototype,"displayCount",void 0);ge([(0,se.property)({type:Number})],J.prototype,"displayedValuesLimit",void 0);ge([(0,se.property)({type:Boolean})],J.prototype,"hideClearButton",void 0);ge([(0,se.query)(".ft-filter--slot")],J.prototype,"slotElement",void 0);ge([(0,se.query)(".ft-filter--container")],J.prototype,"container",void 0);ge([(0,se.query)(".ft-filter--values")],J.prototype,"valuesContainer",void 0);ge([(0,se.query)(".ft-filter--levels")],J.prototype,"levelsContainer",void 0);ge([(0,se.state)()],J.prototype,"lastLevelHasHiddenvalues",void 0);ge([(0,se.query)(".ft-filter--filter input")],J.prototype,"filterInput",void 0);ge([(0,se.queryAll)(".ft-filter--levels ft-filter-level")],J.prototype,"levels",void 0);ge([(0,se.state)()],J.prototype,"withScroll",void 0);ge([(0,se.state)()],J.prototype,"filter",void 0);ge([(0,se.state)()],J.prototype,"slideIn",void 0);ge([(0,se.state)()],J.prototype,"slideOut",void 0);var pn=f(E()),Xr=f(Q()),Ip=f(k()),Eo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mt=class extends pn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Ip.html`
|
|
1905
1905
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1906
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};mt.elementDefinitions={};
|
|
1906
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};mt.elementDefinitions={};Eo([(0,Xr.property)({type:String})],mt.prototype,"label",void 0);Eo([(0,Xr.property)({type:Object,converter:t=>t})],mt.prototype,"value",void 0);Eo([(0,Xr.property)({type:Boolean,reflect:!0})],mt.prototype,"selected",void 0);Eo([(0,Xr.property)({type:Object})],mt.prototype,"subOptions",void 0);Eo([(0,pn.jsonProperty)({})],mt.prototype,"renderOption",void 0);Eo([(0,Xr.query)(".ft-filter-option--slot")],mt.prototype,"slotElement",void 0);(0,Ba.customElement)("ft-filter")(J);(0,Ba.customElement)("ft-filter-option")(mt);var Da=f(E());var Np=f(k()),un=f(Q()),_p=f(E());var $p=f(k());var Pp=$p.css`
|
|
1907
1907
|
.ft-accordion {
|
|
1908
1908
|
box-sizing: border-box;
|
|
1909
1909
|
}
|
|
@@ -1911,7 +1911,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1911
1911
|
<div class="ft-accordion">
|
|
1912
1912
|
<slot @activated=${this.onChange}></slot>
|
|
1913
1913
|
</div>
|
|
1914
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Zt.elementDefinitions={};Zt.styles=Pp;Tp([(0,un.property)({type:Boolean})],Zt.prototype,"multi",void 0);Tp([(0,un.query)("slot")],Zt.prototype,"content",void 0);var
|
|
1914
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Zt.elementDefinitions={};Zt.styles=Pp;Tp([(0,un.property)({type:Boolean})],Zt.prototype,"multi",void 0);Tp([(0,un.query)("slot")],Zt.prototype,"content",void 0);var ni=f(k()),ai=f(Q()),Fp=f(E());var Bp=f(k()),Jr=f(E()),Qr={horizontalSpacing:Jr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Jr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Jr.FtCssVariableFactory.external(Jr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Jr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Dp=Bp.css`
|
|
1915
1915
|
.ft-accordion-item {
|
|
1916
1916
|
display: flex;
|
|
1917
1917
|
flex-direction: column;
|
|
@@ -1957,7 +1957,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1957
1957
|
.ft-accordion-item--separator {
|
|
1958
1958
|
border-bottom: 1px solid ${Qr.colorOutline};
|
|
1959
1959
|
}
|
|
1960
|
-
`;var fn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class extends Fp.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return
|
|
1960
|
+
`;var fn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class extends Fp.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return ni.html`
|
|
1961
1961
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1962
1962
|
<div class="ft-accordion-item--toggle"
|
|
1963
1963
|
part="toggle"
|
|
@@ -1968,13 +1968,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1968
1968
|
aria-controls="ft-accordion-item-content"
|
|
1969
1969
|
aria-expanded="${this.active}">
|
|
1970
1970
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1971
|
-
${this.icon?
|
|
1971
|
+
${this.icon?ni.html`
|
|
1972
1972
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1973
1973
|
`:null}
|
|
1974
|
-
${this.label?
|
|
1974
|
+
${this.label?ni.html`
|
|
1975
1975
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1976
1976
|
</ft-typography>
|
|
1977
|
-
`:
|
|
1977
|
+
`:ni.html`
|
|
1978
1978
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1979
1979
|
`}
|
|
1980
1980
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1987,7 +1987,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1987
1987
|
</div>
|
|
1988
1988
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1989
1989
|
</div>
|
|
1990
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ct.elementDefinitions={"ft-ripple":W,"ft-typography":ee,"ft-icon":
|
|
1990
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ct.elementDefinitions={"ft-ripple":W,"ft-typography":ee,"ft-icon":ne};Ct.styles=Dp;fn([(0,ai.property)()],Ct.prototype,"icon",void 0);fn([(0,ai.property)()],Ct.prototype,"iconVariant",void 0);fn([(0,ai.property)()],Ct.prototype,"label",void 0);fn([(0,ai.property)({type:Boolean,reflect:!0})],Ct.prototype,"active",void 0);(0,Da.customElement)("ft-accordion")(Zt);(0,Da.customElement)("ft-accordion-item")(Ct);var Ua=f(E());var yn=f(k()),Ke=f(Q()),Hp=f(dt()),Ao=f(E());var hn=f(k()),H=f(E());var Mp=H.FtCssVariableFactory.extend("--ft-chip-color","",H.designSystemVariables.colorOnSurface),Ge={backgroundColor:H.FtCssVariableFactory.extend("--ft-chip-background-color","",H.designSystemVariables.colorSurface),color:Mp,fontSize:H.FtCssVariableFactory.extend("--ft-chip-font-size","",Re.fontSize),fontWeight:H.FtCssVariableFactory.extend("--ft-chip-font-weight","",Re.fontWeight),iconSize:H.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:H.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:H.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Mp),horizontalPadding:H.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:H.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:H.FtCssVariableFactory.extend("--ft-chip-border-color","",H.designSystemVariables.colorOutline),opacityDisabled:H.FtCssVariableFactory.external(H.designSystemVariables.colorOpacityDisabled,"Design system")},zp=H.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",H.FtCssVariableFactory.extend("--ft-chip-color","",H.designSystemVariables.colorOnPrimary)),Fa={backgroundColor:H.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",H.FtCssVariableFactory.extend("--ft-chip-background-color","",H.designSystemVariables.colorPrimary)),color:zp,rippleColor:H.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",zp)},Up={horizontalPadding:H.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:H.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Wp=[H.noTextSelect,hn.css`
|
|
1991
1991
|
:host {
|
|
1992
1992
|
display: inline-block;
|
|
1993
1993
|
max-width: 100%;
|
|
@@ -2006,7 +2006,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2006
2006
|
--ft-chip-internal-font-size: ${Ge.fontSize};
|
|
2007
2007
|
--ft-chip-internal-font-weight: ${Ge.fontWeight};
|
|
2008
2008
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
2009
|
-
${(0,H.setVariable)(
|
|
2009
|
+
${(0,H.setVariable)(xe.size,Ge.iconSize)};
|
|
2010
2010
|
--ft-chip-internal-vertical-padding: ${Ge.verticalPadding};
|
|
2011
2011
|
--ft-chip-internal-horizontal-padding: ${Ge.horizontalPadding};
|
|
2012
2012
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -2127,7 +2127,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2127
2127
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
2128
2128
|
order: -1;
|
|
2129
2129
|
}
|
|
2130
|
-
`];var ct=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gn=class extends CustomEvent{constructor(){super("icon-click")}},
|
|
2130
|
+
`];var ct=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gn=class extends CustomEvent{constructor(){super("icon-click")}},Se=class extends Ao.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ao.isSafari};return yn.html`
|
|
2131
2131
|
<div class="${(0,Hp.classMap)(e)}"
|
|
2132
2132
|
aria-label="${this.getLabel()}"
|
|
2133
2133
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -2154,7 +2154,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2154
2154
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2155
2155
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
2156
2156
|
</div>
|
|
2157
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new gn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new gn))}getLabel(){return this.label||this.textContent}get textContent(){return(0,
|
|
2157
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new gn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new gn))}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ao.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Se.elementDefinitions={"ft-ripple":W,"ft-typography":ee,"ft-icon":ne,"ft-button":Oe};Se.styles=Wp;ct([(0,Ke.property)({type:Boolean})],Se.prototype,"highlighted",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"removable",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"disabled",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"clickable",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"iconClickable",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"dense",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"multiLine",void 0);ct([(0,Ke.property)()],Se.prototype,"label",void 0);ct([(0,Ke.property)()],Se.prototype,"iconLabel",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"hideIconTooltip",void 0);ct([(0,Ke.property)()],Se.prototype,"icon",void 0);ct([(0,Ke.property)()],Se.prototype,"iconVariant",void 0);ct([(0,Ke.property)({type:Boolean})],Se.prototype,"trailingIcon",void 0);ct([(0,Ke.query)("ft-typography slot")],Se.prototype,"slottedContent",void 0);var $r=f(k()),Pr=f(Q()),Gp=f(dt()),mn=f(E());var Vp=f(k());var Ma=f(E());var jp=[Vp.css`
|
|
2158
2158
|
:host {
|
|
2159
2159
|
display: inline-block;
|
|
2160
2160
|
max-width: 100%;
|
|
@@ -2184,7 +2184,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2184
2184
|
border-width: ${q.mediumBorderWidth};
|
|
2185
2185
|
border-style: solid;
|
|
2186
2186
|
gap: ${q.mediumGap};
|
|
2187
|
-
${(0,Ma.setVariable)(
|
|
2187
|
+
${(0,Ma.setVariable)(xe.size,q.mediumIconSize)}
|
|
2188
2188
|
}
|
|
2189
2189
|
|
|
2190
2190
|
.ftds--size-medium.ftds-chip--with-action {
|
|
@@ -2200,7 +2200,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2200
2200
|
border-width: ${q.largeBorderWidth};
|
|
2201
2201
|
border-style: solid;
|
|
2202
2202
|
gap: ${q.largeGap};
|
|
2203
|
-
${(0,Ma.setVariable)(
|
|
2203
|
+
${(0,Ma.setVariable)(xe.size,q.largeIconSize)}
|
|
2204
2204
|
}
|
|
2205
2205
|
|
|
2206
2206
|
.ftds--size-large.ftds-chip--with-action {
|
|
@@ -2266,7 +2266,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2266
2266
|
.ftds--family-error .ftds-chip--icon-container {
|
|
2267
2267
|
color: ${q.errorIconColor};
|
|
2268
2268
|
}
|
|
2269
|
-
`];var
|
|
2269
|
+
`];var Ro=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},za=class extends CustomEvent{constructor(){super("remove")}},wt=class extends mn.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return $r.html`
|
|
2270
2270
|
<div class="${(0,Gp.classMap)(e)}"
|
|
2271
2271
|
aria-label="${this.getLabel()}"
|
|
2272
2272
|
part="chip">
|
|
@@ -2292,7 +2292,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2292
2292
|
></ftds-button>
|
|
2293
2293
|
`:this.withAction?$r.html`
|
|
2294
2294
|
<slot name="action"></slot>
|
|
2295
|
-
`:$r.nothing}resolveButtonSize(){switch(this.size){case qe.large:return qe.medium;case qe.medium:case qe.small:return qe.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new za)}typographyVariant(){switch(this.size){case qe.large:return vt.body2medium;case qe.medium:return vt.caption1medium;case qe.small:return vt.caption2medium}}};wt.elementDefinitions={"ft-typography":ee,"ft-icon":
|
|
2295
|
+
`:$r.nothing}resolveButtonSize(){switch(this.size){case qe.large:return qe.medium;case qe.medium:case qe.small:return qe.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new za)}typographyVariant(){switch(this.size){case qe.large:return vt.body2medium;case qe.medium:return vt.caption1medium;case qe.small:return vt.caption2medium}}};wt.elementDefinitions={"ft-typography":ee,"ft-icon":ne,"ftds-button":Lt};wt.styles=jp;Ro([(0,Pr.property)({type:Boolean})],wt.prototype,"withAction",void 0);Ro([(0,Pr.property)({type:Boolean})],wt.prototype,"removable",void 0);Ro([(0,Pr.property)()],wt.prototype,"removeButtonLabel",void 0);Ro([(0,Pr.property)()],wt.prototype,"label",void 0);Ro([(0,Pr.property)()],wt.prototype,"icon",void 0);Ro([(0,Pr.query)("ft-typography slot")],wt.prototype,"slottedContent",void 0);(0,Ua.customElement)("ft-chip")(Se);(0,Ua.customElement)("ftds-chip")(wt);var Va=f(E());var eo=f(k()),le=f(Q()),Ha=f(dt()),eu=f(Lr()),to=f(E());var Xp=f(E());var Wa=f(k()),Lo=f(Q()),qp=f(dt()),Yp=f(E());var Kp=f(k()),de=f(E());var V={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},Zp=Kp.css`
|
|
2296
2296
|
.ft-input-label {
|
|
2297
2297
|
position: absolute;
|
|
2298
2298
|
inset: 0;
|
|
@@ -2343,8 +2343,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2343
2343
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2344
2344
|
max-width: calc(${V.labelMaxWidth} - 2 * (${V.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
2345
2345
|
text-overflow: ellipsis;
|
|
2346
|
-
${(0,
|
|
2347
|
-
${(0,
|
|
2346
|
+
${(0,de.setVariable)(Et.fontSize,V.fontSize)};
|
|
2347
|
+
${(0,de.setVariable)(Et.lineHeight,V.fontSize)};
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
2350
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -2376,8 +2376,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
2378
|
.ft-input-label--raised .ft-input-label--text {
|
|
2379
|
-
${(0,
|
|
2380
|
-
${(0,
|
|
2379
|
+
${(0,de.setVariable)(Et.fontSize,V.raisedFontSize)};
|
|
2380
|
+
${(0,de.setVariable)(Et.lineHeight,V.raisedFontSize)};
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -2414,7 +2414,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2414
2414
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
2415
2415
|
border-top: none;
|
|
2416
2416
|
}
|
|
2417
|
-
`;var
|
|
2417
|
+
`;var si=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},bt=class extends Yp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Wa.html`
|
|
2418
2418
|
<div class="${(0,qp.classMap)(e)}">
|
|
2419
2419
|
${this.text?Wa.html`
|
|
2420
2420
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -2423,7 +2423,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2423
2423
|
</div>
|
|
2424
2424
|
`:null}
|
|
2425
2425
|
</div>
|
|
2426
|
-
`}};bt.elementDefinitions={};bt.styles=[hr,Zp];
|
|
2426
|
+
`}};bt.elementDefinitions={};bt.styles=[hr,Zp];si([(0,Lo.property)({type:String})],bt.prototype,"text",void 0);si([(0,Lo.property)({type:Boolean})],bt.prototype,"raised",void 0);si([(0,Lo.property)({type:Boolean})],bt.prototype,"outlined",void 0);si([(0,Lo.property)({type:Boolean})],bt.prototype,"disabled",void 0);si([(0,Lo.property)({type:Boolean})],bt.prototype,"error",void 0);(0,Xp.customElement)("ft-input-label")(bt);var Qp=f(k()),z=f(E());var j={labelSize:z.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:z.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:z.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:z.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:z.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:z.FtCssVariableFactory.extend("--ft-select-selected-option-color","",z.designSystemVariables.colorOnSurface),helperColor:z.FtCssVariableFactory.extend("--ft-select-helper-color","",z.designSystemVariables.colorOnSurfaceMedium),optionsColor:z.FtCssVariableFactory.extend("--ft-select-options-color","",z.designSystemVariables.colorOnSurface),optionsZIndex:z.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:z.FtCssVariableFactory.extend("--ft-select-background-color","",z.designSystemVariables.colorSurface),colorOnSurfaceDisabled:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:z.FtCssVariableFactory.external(z.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:z.FtCssVariableFactory.external(z.designSystemVariables.borderRadiusS,"Design system"),elevation02:z.FtCssVariableFactory.external(z.designSystemVariables.elevation02,"Design system"),colorError:z.FtCssVariableFactory.external(z.designSystemVariables.colorError,"Design system")},Jp=Qp.css`
|
|
2427
2427
|
*:focus {
|
|
2428
2428
|
outline: none;
|
|
2429
2429
|
}
|
|
@@ -2480,7 +2480,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2480
2480
|
${(0,z.setVariable)(V.verticalSpacing,j.verticalSpacing)};
|
|
2481
2481
|
${(0,z.setVariable)(V.horizontalSpacing,j.horizontalSpacing)};
|
|
2482
2482
|
${(0,z.setVariable)(V.backgroundColor,j.backgroundColor)};
|
|
2483
|
-
${(0,z.setVariable)(V.labelMaxWidth,`calc(100% - ${
|
|
2483
|
+
${(0,z.setVariable)(V.labelMaxWidth,`calc(100% - ${xe.size} - 8px)`)};
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
2486
2486
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -2511,7 +2511,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2511
2511
|
flex-shrink: 0;
|
|
2512
2512
|
}
|
|
2513
2513
|
|
|
2514
|
-
slot {
|
|
2514
|
+
slot:not([name]) {
|
|
2515
2515
|
display: none;
|
|
2516
2516
|
}
|
|
2517
2517
|
|
|
@@ -2569,7 +2569,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2569
2569
|
.ft-select--in-error .ft-select--helper-text {
|
|
2570
2570
|
color: ${j.colorError};
|
|
2571
2571
|
}
|
|
2572
|
-
`;var
|
|
2572
|
+
`;var me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},qt=class extends to.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return eo.html``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};qt.elementDefinitions={};me([(0,le.property)({type:String})],qt.prototype,"label",void 0);me([(0,le.property)({type:Object,converter:t=>t})],qt.prototype,"value",void 0);me([(0,le.property)({type:Boolean,reflect:!0})],qt.prototype,"selected",void 0);var re=class t extends to.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions,p=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":s,"ft-select--has-option-selected":p,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return eo.html`
|
|
2573
2573
|
<div class="${(0,Ha.classMap)(u)}" part="container">
|
|
2574
2574
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2575
2575
|
<ft-input-label text="${this.label}"
|
|
@@ -2601,14 +2601,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2601
2601
|
${(0,eu.repeat)(this.options,m=>m.value,m=>this.renderOption(m))}
|
|
2602
2602
|
</div>
|
|
2603
2603
|
</div>
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2604
|
+
<slot name="helper" part="helper">
|
|
2605
|
+
${this.helper?eo.html`
|
|
2606
|
+
<ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
|
|
2607
|
+
</ft-typography>`:eo.nothing}
|
|
2608
|
+
</slot>
|
|
2607
2609
|
</div>
|
|
2608
2610
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
2609
2611
|
@option-change=${this.updateOptionsFromSlot}
|
|
2610
2612
|
></slot>
|
|
2611
|
-
`}renderOption(e){let r=this.selectedOption===e;return
|
|
2613
|
+
`}renderOption(e){let r=this.selectedOption===e;return eo.html`
|
|
2612
2614
|
<div class="${(0,Ha.classMap)({"ft-select--option":!0,"ft-select--option-selected":r,"ft-typography--body2":!0})}"
|
|
2613
2615
|
part="option"
|
|
2614
2616
|
tabindex="0"
|
|
@@ -2618,7 +2620,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2618
2620
|
<ft-ripple ?primary=${r} ?activated=${r}></ft-ripple>
|
|
2619
2621
|
<span>${e.label}</span>
|
|
2620
2622
|
</div>
|
|
2621
|
-
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,
|
|
2623
|
+
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,to.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",j.optionsHeight.name,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let c;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),c=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),c=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(c=this.handleAlphanumericPress(e.key));break}c?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){var r,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(c=>{var p;return((p=c.label)===null||p===void 0?void 0:p.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(r=this.optionsMenu)===null||r===void 0?void 0:r.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}selectOption(e){var r,i;if(!(0,to.deepEqual)((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};re.elementDefinitions={"ft-input-label":bt,"ft-typography":ee,"ft-ripple":W,"ft-icon":ne};re.searchTimeoutMilliseconds=2e3;re.styles=[fr,hr,Jp];me([(0,le.property)({type:String})],re.prototype,"label",void 0);me([(0,le.property)({type:String})],re.prototype,"ariaLabel",void 0);me([(0,le.property)({type:String})],re.prototype,"helper",void 0);me([(0,le.property)({type:Boolean})],re.prototype,"outlined",void 0);me([(0,le.property)({type:Boolean})],re.prototype,"disabled",void 0);me([(0,le.property)({type:Boolean})],re.prototype,"error",void 0);me([(0,le.property)({type:Boolean})],re.prototype,"fixedMenuPosition",void 0);me([(0,le.property)({type:Array})],re.prototype,"options",void 0);me([(0,le.state)()],re.prototype,"selectedOption",void 0);me([(0,le.state)()],re.prototype,"optionsDisplayed",void 0);me([(0,le.state)()],re.prototype,"focusOptions",void 0);me([(0,le.state)()],re.prototype,"currentSearch",void 0);me([(0,le.state)()],re.prototype,"lastSearchInputDate",void 0);me([(0,le.query)(".ft-select")],re.prototype,"container",void 0);me([(0,le.query)(".ft-select--options")],re.prototype,"optionsMenu",void 0);me([(0,le.query)(".ft-select--input-panel")],re.prototype,"mainPanel",void 0);me([(0,le.query)(".ft-select--option:first-child")],re.prototype,"firstOption",void 0);me([(0,le.query)(".ft-select--option:focus")],re.prototype,"focusedOption",void 0);me([(0,le.query)(".ft-select--option.ft-select--option-selected")],re.prototype,"selectedOptionElement",void 0);me([(0,le.query)(".ft-select--option:last-child")],re.prototype,"lastOption",void 0);me([(0,le.query)("slot:not([name])")],re.prototype,"optionsSlot",void 0);(0,Va.customElement)("ft-select")(re);(0,Va.customElement)("ft-select-option")(qt);var D=f(E()),ja=f(k());var tu=f(k()),Nt=f(E()),ze={display:Nt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Nt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Nt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Nt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Nt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Nt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Nt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Nt.FtCssVariableFactory.external(Nt.designSystemVariables.borderRadiusM,"Design system")},ru=tu.css`
|
|
2622
2624
|
:host {
|
|
2623
2625
|
width: ${ze.width};
|
|
2624
2626
|
height: ${ze.height};
|
|
@@ -3009,7 +3011,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3009
3011
|
opacity: 0;
|
|
3010
3012
|
}
|
|
3011
3013
|
`;var su=f(E());var nu=f(k()),au=f(E());var Tr=class extends au.FtLitElement{render(){return nu.html`
|
|
3012
|
-
`}};Tr.elementDefinitions={};Tr.styles=ru;(0,su.customElement)("ft-skeleton")(Tr);var Yt=f(k()),Ga=f(Lr());var
|
|
3014
|
+
`}};Tr.elementDefinitions={};Tr.styles=ru;(0,su.customElement)("ft-skeleton")(Tr);var Yt=f(k()),Ga=f(Lr());var ko=f(E());var Xt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ko.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Yt.html`
|
|
3013
3015
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
3014
3016
|
id="${this.listboxId}"
|
|
3015
3017
|
role="listbox"
|
|
@@ -3064,7 +3066,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3064
3066
|
</div>
|
|
3065
3067
|
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Te.file_format:Te.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?it.BOOK:it.ARTICLE;break;case"DOCUMENT":i=wi(e.mimeType,e.filenameExtension);break;case"TOPIC":i=it.TOPICS;break}return Yt.html`
|
|
3066
3068
|
<ft-icon .variant="${r}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3067
|
-
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Xt.styles=[
|
|
3069
|
+
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Xt.styles=[ko.wordWrap,Yt.css`
|
|
3068
3070
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
3069
3071
|
flex-grow: 1;
|
|
3070
3072
|
flex-shrink: 1;
|
|
@@ -3152,7 +3154,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3152
3154
|
}
|
|
3153
3155
|
|
|
3154
3156
|
ft-ripple {
|
|
3155
|
-
${(0,
|
|
3157
|
+
${(0,ko.setVariable)(O.opacityContentOnSurfaceHover,O.opacityContentOnSurfaceSelected)}
|
|
3156
3158
|
}
|
|
3157
3159
|
`];var Qe=f(k()),Ka=f(Lr());var bn=f(E());var Qt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return Qe.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=Qe.html`
|
|
3158
3160
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?Qe.html`
|
|
@@ -3519,7 +3521,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3519
3521
|
part="floating-panel"
|
|
3520
3522
|
tabindex="-1">
|
|
3521
3523
|
${this.renderDesktopMenu()}
|
|
3522
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};B.elementDefinitions={"ft-accordion":Zt,"ft-accordion-item":Ct,"ft-button":Oe,"ft-chip":
|
|
3524
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};B.elementDefinitions={"ft-accordion":Zt,"ft-accordion-item":Ct,"ft-button":Oe,"ft-chip":Se,"ft-filter":J,"ft-filter-option":mt,"ft-icon":ne,"ft-ripple":W,"ft-select":re,"ft-select-option":qt,"ft-size-watcher":ft,"ft-skeleton":Tr,"ft-snap-scroll":Ae,"ft-tooltip":fe,"ft-typography":ee,"ft-radio-group":st,"ft-radio":$e};B.styles=[fr,pe.noTextInputDefaultClearButton,ou,iu,Qt.styles,Xt.styles];G([(0,K.property)({type:Boolean})],B.prototype,"dense",void 0);G([(0,K.property)()],B.prototype,"mode",void 0);G([(0,K.property)({type:Boolean})],B.prototype,"forceMobileMenuOpen",void 0);G([(0,K.property)({type:Boolean})],B.prototype,"forceMenuOpen",void 0);G([(0,K.property)()],B.prototype,"baseUrl",void 0);G([(0,K.property)()],B.prototype,"apiIntegrationIdentifier",void 0);G([(0,K.property)()],B.prototype,"contentLocale",void 0);G([(0,K.state)()],B.prototype,"availableContentLocales",void 0);G([(0,K.state)()],B.prototype,"availableContentLocalesInitialized",void 0);G([(0,K.property)()],B.prototype,"uiLocale",void 0);G([(0,pe.jsonProperty)({})],B.prototype,"labels",void 0);G([(0,pe.jsonProperty)([])],B.prototype,"displayedFilters",void 0);G([(0,pe.jsonProperty)([])],B.prototype,"presets",void 0);G([(0,K.property)({type:String,reflect:!0})],B.prototype,"selectedPreset",void 0);G([(0,pe.jsonProperty)([])],B.prototype,"priors",void 0);G([(0,K.property)()],B.prototype,"searchRequestSerializer",void 0);G([(0,K.property)({type:Boolean})],B.prototype,"focusOnDisplay",void 0);G([(0,K.state)()],B.prototype,"metadataFilters",void 0);G([(0,K.state)()],B.prototype,"sizeCategory",void 0);G([(0,K.state)()],B.prototype,"displayFacets",void 0);G([(0,K.state)()],B.prototype,"mobileMenuOpen",void 0);G([(0,K.state)()],B.prototype,"facets",void 0);G([(0,K.state)()],B.prototype,"facetsInitialized",void 0);G([(0,K.query)(".ft-search-bar--container")],B.prototype,"container",void 0);G([(0,K.query)(".ft-search-bar--filters-opener")],B.prototype,"filtersOpener",void 0);G([(0,K.query)(".ft-search-bar--floating-panel")],B.prototype,"floatingContainer",void 0);G([(0,K.query)("ft-snap-scroll.ft-search-bar--filters-container")],B.prototype,"scrollingFiltersContainer",void 0);G([(0,K.query)(".ft-search-bar--input")],B.prototype,"input",void 0);G([(0,K.query)(".ft-search-bar--launch-search")],B.prototype,"launchSearchButton",void 0);G([(0,K.state)()],B.prototype,"query",void 0);G([(0,K.state)()],B.prototype,"suggestions",void 0);G([(0,K.state)()],B.prototype,"recentSearches",void 0);G([(0,K.state)()],B.prototype,"scrollToFacet",void 0);G([(0,K.state)()],B.prototype,"api",void 0);G([(0,K.state)()],B.prototype,"displaySuggestListbox",void 0);G([(0,K.state)()],B.prototype,"selectedSuggestOptionId",void 0);G([(0,K.state)()],B.prototype,"selectedSuggestRemoveRecent",void 0);G([(0,K.state)()],B.prototype,"facetsLoaded",void 0);(0,uu.customElement)("ft-search-bar")(B);var yu=fu.css`
|
|
3523
3525
|
* {
|
|
3524
3526
|
box-sizing: border-box;
|
|
3525
3527
|
}
|
|
@@ -3568,7 +3570,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3568
3570
|
ft-ripple {
|
|
3569
3571
|
${(0,hu.setVariable)(O.opacityContentOnSurfaceHover,O.opacityContentOnSurfaceSelected)}
|
|
3570
3572
|
}
|
|
3571
|
-
`;var mu=f(Lr());var Nr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=cr.get();return
|
|
3573
|
+
`;var mu=f(Lr());var Nr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=cr.get();return Io.html`
|
|
3572
3574
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3573
3575
|
id="${this.listboxId}"
|
|
3574
3576
|
role="listbox"
|
|
@@ -3576,11 +3578,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3576
3578
|
part="container">
|
|
3577
3579
|
${(0,mu.repeat)(this.ftSearchInput.suggestResults||[],r=>r.value,(r,i)=>this.renderSuggestion(i,r,e))}
|
|
3578
3580
|
</div>
|
|
3579
|
-
`}renderSuggestion(e,r,i){let n=`suggestion-${e}`,a=
|
|
3581
|
+
`}renderSuggestion(e,r,i){let n=`suggestion-${e}`,a=Io.html`
|
|
3580
3582
|
<ft-ripple ?activated=${this.ftSearchInput.selectedSuggestOptionId===n}></ft-ripple>
|
|
3581
3583
|
${this.getIcon(r)}
|
|
3582
3584
|
<ft-typography variant="body1">${r.value}</ft-typography>
|
|
3583
|
-
`;if(this.ftSearchInput.launchSearchPath){let s={...this.ftSearchInput.request,query:r.value},c=i.serializeToCurrentPageIfPossible(s,this.ftSearchInput.launchSearchPath);return
|
|
3585
|
+
`;if(this.ftSearchInput.launchSearchPath){let s={...this.ftSearchInput.request,query:r.value},c=i.serializeToCurrentPageIfPossible(s,this.ftSearchInput.launchSearchPath);return Io.html`
|
|
3584
3586
|
<a href="${c}"
|
|
3585
3587
|
part="suggestion"
|
|
3586
3588
|
class="ft-search-input-suggestion--suggestion"
|
|
@@ -3592,7 +3594,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3592
3594
|
@click=${()=>this.onSuggestSelected(r.value)}>
|
|
3593
3595
|
${a}
|
|
3594
3596
|
</a>
|
|
3595
|
-
`}return
|
|
3597
|
+
`}return Io.html`
|
|
3596
3598
|
<div part="suggestion"
|
|
3597
3599
|
class="ft-search-input-suggestion--suggestion"
|
|
3598
3600
|
role="option"
|
|
@@ -3602,9 +3604,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3602
3604
|
@click=${()=>this.onSuggestSelected(r.value)}>
|
|
3603
3605
|
${a}
|
|
3604
3606
|
</div>
|
|
3605
|
-
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Te.file_format:Te.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?it.BOOK:it.ARTICLE;break;case"DOCUMENT":i=wi(e.mimeType,e.filenameExtension);break;case"TOPIC":i=it.TOPICS;break}return
|
|
3607
|
+
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Te.file_format:Te.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?it.BOOK:it.ARTICLE;break;case"DOCUMENT":i=wi(e.mimeType,e.filenameExtension);break;case"TOPIC":i=it.TOPICS;break}return Io.html`
|
|
3606
3608
|
<ft-icon .variant="${r}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3607
|
-
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};Nr.elementDefinitions={"ft-ripple":W,"ft-typography":ee,"ft-icon":
|
|
3609
|
+
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};Nr.elementDefinitions={"ft-ripple":W,"ft-typography":ee,"ft-icon":ne};Nr.styles=[gu.wordWrap,yu];var Bt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ue=class extends tn(Xi){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.suggestions=new Nr(this),this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(Rr)}render(){var e,r,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,c=cr.get().serializeToCurrentPageIfPossible(a,s);return ro.html`
|
|
3608
3610
|
<div class="${(0,bu.classMap)(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3609
3611
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3610
3612
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
@@ -3617,7 +3619,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3617
3619
|
aria-autocomplete="list"
|
|
3618
3620
|
aria-controls="${this.suggestions.listboxId}"
|
|
3619
3621
|
aria-expanded="${this.displaySuggestListbox}"
|
|
3620
|
-
aria-activedescendant="${(i=this.selectedSuggestOptionId)!==null&&i!==void 0?i:
|
|
3622
|
+
aria-activedescendant="${(i=this.selectedSuggestOptionId)!==null&&i!==void 0?i:ro.nothing}"
|
|
3621
3623
|
@input=${p=>this.onInput(p)}
|
|
3622
3624
|
@click="${()=>this.onClick()}"
|
|
3623
3625
|
@focus="${()=>this.onFocus()}"
|
|
@@ -3627,10 +3629,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3627
3629
|
<div class="ft-search-input--aria-live" aria-live="polite" aria-atomic="true">
|
|
3628
3630
|
${this.renderLiveText()}
|
|
3629
3631
|
</div>
|
|
3630
|
-
${this.shouldDisplaySuggestions?this.suggestions.render():
|
|
3632
|
+
${this.shouldDisplaySuggestions?this.suggestions.render():ro.nothing}
|
|
3631
3633
|
</div>
|
|
3632
3634
|
<div class="ft-search-input--actions" part="actions">
|
|
3633
|
-
${this.liveQuery?
|
|
3635
|
+
${this.liveQuery?ro.html`
|
|
3634
3636
|
<ft-button id="clear-button"
|
|
3635
3637
|
class="ft-search-input--clear-query"
|
|
3636
3638
|
part="clear-query"
|
|
@@ -3651,7 +3653,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3651
3653
|
></ft-button>
|
|
3652
3654
|
</div>
|
|
3653
3655
|
</div>
|
|
3654
|
-
`}renderLiveText(){return this.shouldDisplaySuggestions?Rr.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var r;(r=this.stateManager)===null||r===void 0||r.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear?this.launchSearch(""):
|
|
3656
|
+
`}renderLiveText(){return this.shouldDisplaySuggestions?Rr.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var r;(r=this.stateManager)===null||r===void 0||r.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear?this.launchSearch(""):ro.nothing,this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.displaySuggestListbox=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};Ue.elementDefinitions={"ft-button":Oe,...Nr.elementDefinitions};Ue.styles=[fr,$o.noTextInputDefaultClearButton,sc,...Nr.styles];Bt([(0,$o.redux)()],Ue.prototype,"request",void 0);Bt([(0,$o.redux)()],Ue.prototype,"liveQuery",void 0);Bt([(0,$o.redux)()],Ue.prototype,"suggestResults",void 0);Bt([(0,Dt.state)()],Ue.prototype,"forceCloseSuggestion",void 0);Bt([(0,Dt.state)()],Ue.prototype,"displaySuggestListbox",void 0);Bt([(0,Dt.state)()],Ue.prototype,"selectedSuggestOptionId",void 0);Bt([(0,Dt.property)()],Ue.prototype,"launchSearchPath",void 0);Bt([(0,Dt.property)({type:Boolean})],Ue.prototype,"useCustomSearchPath",void 0);Bt([(0,Dt.property)({type:Boolean})],Ue.prototype,"triggerSearchOnClear",void 0);Bt([(0,Dt.query)(".ft-search-input--input")],Ue.prototype,"input",void 0);Bt([(0,Dt.query)('[part="launch-search-in-input"]')],Ue.prototype,"launchSearchButton",void 0);(0,xu.customElement)("ft-search-input")(Ue);})();
|
|
3655
3657
|
/*! Bundled license information:
|
|
3656
3658
|
|
|
3657
3659
|
lit-html/lit-html.js:
|