@fluid-topics/ft-search-selected-facets 2.2.38 → 2.2.40
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-selected-facets.light.js +186 -164
- package/build/ft-search-selected-facets.min.js +117 -95
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var od=Object.create;var ao=Object.defineProperty;var ad=Object.getOwnPropertyDescriptor;var ld=Object.getOwnPropertyNames;var cd=Object.getPrototypeOf,ud=Object.prototype.hasOwnProperty;var Sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var dd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ld(e))!ud.call(t,n)&&n!==r&&ao(t,n,{get:()=>e[n],enumerable:!(i=ad(e,n))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?od(cd(t)):{},dd(e||!t||!t.__esModule?ao(r,"default",{value:t,enumerable:!0}):r,t));var v=Sr((Jp,lo)=>{lo.exports=ftGlobals.wcUtils});var R=Sr((ef,co)=>{co.exports=ftGlobals.lit});var U=Sr((tf,uo)=>{uo.exports=ftGlobals.litDecorators});var Kn=Sr((rf,po)=>{po.exports=ftGlobals.litRepeat});var
|
|
1
|
+
"use strict";(()=>{var od=Object.create;var ao=Object.defineProperty;var ad=Object.getOwnPropertyDescriptor;var ld=Object.getOwnPropertyNames;var cd=Object.getPrototypeOf,ud=Object.prototype.hasOwnProperty;var Sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var dd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ld(e))!ud.call(t,n)&&n!==r&&ao(t,n,{get:()=>e[n],enumerable:!(i=ad(e,n))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?od(cd(t)):{},dd(e||!t||!t.__esModule?ao(r,"default",{value:t,enumerable:!0}):r,t));var v=Sr((Jp,lo)=>{lo.exports=ftGlobals.wcUtils});var R=Sr((ef,co)=>{co.exports=ftGlobals.lit});var U=Sr((tf,uo)=>{uo.exports=ftGlobals.litDecorators});var Kn=Sr((rf,po)=>{po.exports=ftGlobals.litRepeat});var Qt=Sr((fg,pl)=>{pl.exports=ftGlobals.litClassMap});var nc=Sr((Gg,ic)=>{ic.exports=ftGlobals.litUnsafeHTML});var id=d(v());var ie=d(R()),xr=d(U()),Hr=d(Kn()),z=d(v());var fo=d(R()),ho=d(v()),pd={spacing:ho.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},mo=fo.css`
|
|
2
2
|
.ft-search-selected-facets--container {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-wrap: wrap;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
.ft-search-selected-facets--container > * {
|
|
9
9
|
min-width: 0;
|
|
10
10
|
}
|
|
11
|
-
`;var wt=d(v()),ii=d(U());var zr;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(zr||(zr={}));var _t=d(v());var fd=d(v());var yo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(yo||(yo={}));var go;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(go||(go={}));var vo;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(vo||(vo={}));var bo;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(bo||(bo={}));var xo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xo||(xo={}));var So;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(So||(So={}));var Eo;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Eo||(Eo={}));var Ao;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Ao||(Ao={}));var _o;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_o||(_o={}));var Co;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Co||(Co={}));var wo;(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",t.DOC_DIFF="DOC_DIFF"})(wo||(wo={}));var Oo;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Oo||(Oo={}));var To;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(To||(To={}));var Ro;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ro||(Ro={}));var ko;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ko||(ko={}));var Lo;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Lo||(Lo={}));var Do;(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"})(Do||(Do={}));var ht;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ht||(ht={}));var No;(function(t){t.ASC="ASC",t.DESC="DESC"})(No||(No={}));var Po;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Po||(Po={}));var Ti;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ti||(Ti={}));var Io;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Io||(Io={}));var Mo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Mo||(Mo={}));var $o;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})($o||($o={}));var Ri;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ri||(Ri={}));var Fo;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Fo||(Fo={}));var ki;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ki||(ki={}));var Uo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Uo||(Uo={}));var W;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(W||(W={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var Bo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Bo||(Bo={}));var Ho;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ho||(Ho={}));var Vo;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vo||(Vo={}));var zo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zo||(zo={}));var jo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(jo||(jo={}));var qo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(qo||(qo={}));var Wo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Wo||(Wo={}));var Ko;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Ko||(Ko={}));var Go;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Go||(Go={}));var Yo;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Yo||(Yo={}));var Xo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Xo||(Xo={}));var Qo;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Qo||(Qo={}));var Zo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Zo||(Zo={}));var hd={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Jo(t,e){return t===e||(hd[t]??[]).some(r=>Jo(r,e))}function Li(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=>Jo(i,e))}function ea(t,...e){return t==null?!1:e.some(r=>Li(t,r))}var ms=d(U());var ta=d(U(),1);var Gn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},md=t=>({fromAttribute:e=>{if(e==null)return jr(t);try{return JSON.parse(e)}catch{return jr(t)}},toAttribute:e=>JSON.stringify(e)});function ra(t,e){return(0,ta.property)({type:Object,converter:md(t),hasChanged:qr,...e??{}})}function yd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Er(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(!Er(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Er(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Er(t,e){try{return yd(t,e)}catch{return!1}}function qr(t,e){return!Er(t,e)}function jr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Di(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ia=d(U(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:qr,attribute:!1,...e};(0,ia.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ni=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 Vt=d(U(),1);var Pi=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),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Mi=d(R(),1);var Ii=class extends Mi.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Mi.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Gn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function na(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var _r=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},la,sa=Symbol("constructorPrototype"),oa=Symbol("constructorName"),ca=Symbol("exportpartsDebouncer"),aa=Symbol("dynamicDependenciesLoaded"),Ar=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ar.eventName="exportparts-updated";var it=class extends Ii{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[la]=new Pi(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[ca].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[oa]=this.constructor.name,this[sa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[oa]&&Object.setPrototypeOf(this,this[sa])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[aa]||(r[aa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ar)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=na(this.shadowRoot,...s)}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(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};la=ca;_r([(0,Vt.property)()],it.prototype,"exportpartsPrefix",void 0);_r([ra([])],it.prototype,"exportpartsPrefixes",void 0);_r([(0,Vt.property)({reflect:!0})],it.prototype,"exportparts",void 0);_r([(0,Vt.property)()],it.prototype,"customStylesheet",void 0);_r([(0,Vt.property)()],it.prototype,"elementToFocus",void 0);_r([(0,Vt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function $i(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores"),gd=Di(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[zt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[zt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[zt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[zt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[St].has(o.store):this[St].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[St].set(o,a.subscribe(()=>this.updateFromStores())),this[Wr].set(o,[]),$i(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[Wr].get(o).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[St].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[St].has(o)&&this[St].get(o)(),this[St].delete(o),(a=this[Wr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Wr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=St,r=zt,i=Wr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ua=class extends gd(it){};function ue(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var vd=typeof Symbol=="function"&&Symbol.observable||"@@observable",da=vd,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),bd={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},Fi=bd;function Ui(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Qn(t,e,r){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Qn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((b,O)=>{o.set(O,b)}))}function u(){if(l)throw new Error(ue(3));return n}function p(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let O=!0;c();let D=a++;return o.set(D,b),function(){if(O){if(l)throw new Error(ue(6));O=!1,c(),o.delete(D),s=null}}}function f(b){if(!Ui(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=i(n,b)}finally{l=!1}return(s=o).forEach(D=>{D()}),b}function y(b){if(typeof b!="function")throw new Error(ue(10));i=b,f({type:Fi.REPLACE})}function x(){let b=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ue(11));function D(){let E=O;E.next&&E.next(u())}return D(),{unsubscribe:b(D)}},[da](){return this}}}return f({type:Fi.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[da]:x}}function xd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Fi.INIT})>"u")throw new Error(ue(12));if(typeof r(void 0,{type:Fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Zn(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{xd(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],_=y(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[f]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Kr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function pa(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(ue(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=t.map(l=>l(o));return s=Kr(...a)(n.dispatch),{...n,dispatch:s}}}function fa(t){return Ui(t)&&"type"in t&&typeof t.type=="string"}var Ea=Symbol.for("immer-nothing"),ha=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function We(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Le=Object,wr=Le.getPrototypeOf,zi="constructor",Yi="prototype",rs="configurable",ji="enumerable",Hi="writable",Gr="value",nt=t=>!!t&&!!t[ye];function De(t){return t?Aa(t)||Qi(t)||!!t[ha]||!!t[zi]?.[ha]||Zi(t)||Zr(t):!1}var Sd=Le[Yi][zi].toString(),ma=new WeakMap;function Aa(t){if(!t||!us(t))return!1;let e=wr(t);if(e===null||e===Le[Yi])return!0;let r=Le.hasOwnProperty.call(e,zi)&&e[zi];if(r===Object)return!0;if(!Cr(r))return!1;let i=ma.get(r);return i===void 0&&(i=Function.toString.call(r),ma.set(r,i)),i===Sd}function Xi(t,e,r=!0){Qr(t)===0?(r?Reflect.ownKeys(t):Le.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Qr(t){let e=t[ye];return e?e.type_:Qi(t)?1:Zi(t)?2:Zr(t)?3:0}var Jn=(t,e,r=Qr(t))=>r===2?t.has(e):Le[Yi].hasOwnProperty.call(t,e),is=(t,e,r=Qr(t))=>r===2?t.get(e):t[e],qi=(t,e,r,i=Qr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ed(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Qi=Array.isArray,Zi=t=>t instanceof Map,Zr=t=>t instanceof Set,us=t=>typeof t=="object",Cr=t=>typeof t=="function",es=t=>typeof t=="boolean";function Ad(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var mt=t=>t.copy_||t.base_;var ds=t=>t.modified_?t.copy_:t.base_;function ns(t,e){if(Zi(t))return new Map(t);if(Zr(t))return new Set(t);if(Qi(t))return Array[Yi].slice.call(t);let r=Aa(t);if(e===!0||e==="class_only"&&!r){let i=Le.getOwnPropertyDescriptors(t);delete i[ye];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Hi]===!1&&(a[Hi]=!0,a[rs]=!0),(a.get||a.set)&&(i[o]={[rs]:!0,[Hi]:!0,[ji]:a[ji],[Gr]:t[o]})}return Le.create(wr(t),i)}else{let i=wr(t);if(i!==null&&r)return{...t};let n=Le.create(i);return Le.assign(n,t)}}function Ji(t,e=!1){return en(t)||nt(t)||!De(t)||(Qr(t)>1&&Le.defineProperties(t,{set:Bi,add:Bi,clear:Bi,delete:Bi}),Le.freeze(t),e&&Xi(t,(r,i)=>{Ji(i,!0)},!1)),t}function _d(){We(2)}var Bi={[Gr]:_d};function en(t){return t===null||!us(t)?!0:Le.isFrozen(t)}var Wi="MapSet",ss="Patches",ya="ArrayMethods",_a={};function jt(t){let e=_a[t];return e||We(0,t),e}var ga=t=>!!_a[t];var Yr,Ca=()=>Yr,Cd=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ga(Wi)?jt(Wi):void 0,arrayMethodsPlugin_:ga(ya)?jt(ya):void 0});function va(t,e){e&&(t.patchPlugin_=jt(ss),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function os(t){as(t),t.drafts_.forEach(wd),t.drafts_=null}function as(t){t===Yr&&(Yr=t.parent_)}var ba=t=>Yr=Cd(Yr,t);function wd(t){let e=t[ye];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function xa(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ye].modified_&&(os(e),We(4)),De(t)&&(t=Sa(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[ye].base_,t,e)}else t=Sa(e,r);return Od(e,t,!0),os(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ea?t:void 0}function Sa(t,e){if(en(e))return e;let r=e[ye];if(!r)return Ki(e,t.handledSet_,t);if(!tn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Ta(r,t)}return r.copy_}function Od(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ji(e,r)}function wa(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var tn=(t,e)=>t.scope_===e,Td=[];function Oa(t,e,r,i){let n=mt(t),s=t.type_;if(i!==void 0&&is(n,i,s)===e){qi(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Xi(n,(l,c)=>{if(nt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??Td;for(let a of o)qi(n,a,r,s)}function Rd(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!tn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=ds(s);Oa(t,s.draft_??s,o,r),Ta(s,n)})}function Ta(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}wa(t)}}function kd(t,e,r){let{scope_:i}=t;if(nt(r)){let n=r[ye];tn(n,i)&&n.callbacks_.push(function(){Vi(t);let o=ds(n);Oa(t,r,o,e)})}else De(r)&&t.callbacks_.push(function(){let s=mt(t);t.type_===3?s.has(r)&&Ki(r,i.handledSet_,i):is(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ki(is(t.copy_,e,t.type_),i.handledSet_,i)})}function Ki(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||nt(t)||e.has(t)||!De(t)||en(t)||(e.add(t),Xi(t,(i,n)=>{if(nt(n)){let s=n[ye];if(tn(s,r)){let o=ds(s);qi(t,i,o,t.type_),wa(s)}}else De(n)&&Ki(n,e,r)})),t}function Ld(t,e){let r=Qi(t),i={type_:r?1:0,scope_:e?e.scope_:Ca(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Gi;r&&(n=[i],s=Xr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Gi={get(t,e){if(e===ye)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=mt(t);if(!Jn(n,e,t.type_))return Nd(t,n,e);let s=n[e];if(t.finalized_||!De(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ad(e))return s;if(s===ts(t.base_,e)||Dd(t,e,s)){Vi(t);let o=t.type_===1?+e:e,a=cs(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in mt(t)},ownKeys(t){return Reflect.ownKeys(mt(t))},set(t,e,r){let i=Ra(mt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=ts(mt(t),e),s=n?.[ye];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ed(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Vi(t),ls(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),kd(t,e,r)),!0},deleteProperty(t,e){return Vi(t),ts(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ls(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=mt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Hi]:!0,[rs]:t.type_!==1||e!=="length",[ji]:i[ji],[Gr]:r[e]}},defineProperty(){We(11)},getPrototypeOf(t){return wr(t.base_)},setPrototypeOf(){We(12)}},Xr={};for(let t in Gi){let e=Gi[t];Xr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)};Xr.set=function(t,e,r){return Gi.set.call(this,t[0],e,r,t[0])};function ts(t,e){let r=t[ye];return(r?mt(r):t)[e]}function Dd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!De(r)||r[ye]?!1:t.baseRefs_.has(r)}function Nd(t,e,r){let i=Ra(e,r);return i?Gr in i?i[Gr]:i.get?.call(t.draft_):void 0}function Ra(t,e){if(!(e in t))return;let r=wr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=wr(r)}}function ls(t){t.modified_||(t.modified_=!0,t.parent_&&ls(t.parent_))}function Vi(t){t.copy_||(t.assigned_=new Map,t.copy_=ns(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Pd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Cr(e)&&!Cr(r)){let s=r;r=e;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Cr(r)||We(6),i!==void 0&&!Cr(i)&&We(7);let n;if(De(e)){let s=ba(this),o=cs(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?os(s):as(s)}return va(s,i),xa(n,s)}else if(!e||!us(e)){if(n=r(e),n===void 0&&(n=e),n===Ea&&(n=void 0),this.autoFreeze_&&Ji(n,!0),i){let s=[],o=[];jt(ss).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else We(1,e)},this.produceWithPatches=(e,r)=>{if(Cr(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},es(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),es(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),es(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){De(t)||We(8),nt(t)&&(t=ka(t));let e=ba(this),r=cs(e,t,void 0);return r[ye].isManual_=!0,as(e),r}finishDraft(t,e){let r=t&&t[ye];(!r||!r.isManual_)&&We(9);let{scope_:i}=r;return va(i,e),xa(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=jt(ss).applyPatches_;return nt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function cs(t,e,r,i){let[n,s]=Zi(e)?jt(Wi).proxyMap_(e,r):Zr(e)?jt(Wi).proxySet_(e,r):Ld(e,r);return(r?.scope_??Ca()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Rd(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function ka(t){return nt(t)||We(10,t),La(t)}function La(t){if(!De(t)||en(t))return t;let e=t[ye],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ns(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ns(t,!0);let n=r;return Zr(r)&&(r=new Set),Xi(n,(s,o)=>{qi(r,s,La(o))},i),e&&(e.finalized_=!1),r}var Id=globalThis.Iterator,Wf=typeof Id?.from=="function";var Md=new Pd,ps=Md.produce;function Da(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var Na=Da(),Pa=Da;var $d=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Fd=t=>t&&typeof t.match=="function";function Et(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(st(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>fa(i)&&i.type===t,r}var Ua=class Jr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Jr.prototype)}static get[Symbol.species](){return Jr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Jr(...e[0].concat(this)):new Jr(...e.concat(this))}};function Ia(t){return De(t)?ps(t,()=>{}):t}function rn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Ud(t){return typeof t=="boolean"}var Bd=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new Ua;return r&&(Ud(r)?o.push(Na):o.push(Pa(r.extraArgument))),o},Hd="RTK_autoBatch";var Ma=t=>e=>{setTimeout(e,t)},Vd=(t,e)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(o),s=setTimeout(o,e)},zd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Vd(window.requestAnimationFrame,100):Ma(10):t.type==="callback"?t.queueNotification:Ma(t.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>n&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Hd],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},jd=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Ua(t);return i&&n.push(zd(typeof i=="object"?i:void 0)),n};function Ba(t){let e=Bd(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Ui(r))l=Zn(r);else throw new Error(st(1));let c;typeof i=="function"?c=i(e):c=e();let u=Kr;n&&(u=$d({trace:!1,...typeof n=="object"&&n}));let p=pa(...c),f=jd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Qn(l,o,x)}function Ha(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(st(28));if(a in e)throw new Error(st(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function qd(t){return typeof t=="function"}function Wd(t,e){let[r,i,n]=Ha(e),s;if(qd(t))s=()=>Ia(t());else{let a=Ia(t);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,p)=>{if(p)if(nt(u)){let f=p(u,l);return f===void 0?u:f}else{if(De(u))return ps(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(st(9))}return f}}return u},a)}return o.getInitialState=s,o}var Kd=(t,e)=>Fd(t)?t.match(e):t(e);function Gd(...t){return e=>t.some(r=>Kd(r,e))}var Yd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xd=(t=21)=>{let e="",r=t;for(;r--;)e+=Yd[Math.random()*64|0];return e},Qd=["name","message","stack","code"],fs=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},$a=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Zd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Qd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Fa="External signal was aborted",Jd=(()=>{function t(e,r,i){let n=Et(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=Et(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=Et(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Zd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Xd(),x=new AbortController,_,b;function O(S){b=S,x.abort()}c&&(c.aborted?O(Fa):c.addEventListener("abort",()=>O(Fa),{once:!0}));let D=(async function(){let S;try{let E=i?.condition?.(l,{getState:p,extra:f});if(tp(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let M=new Promise((L,te)=>{_=()=>{te({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([M,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:O,rejectWithValue:((L,te)=>new fs(L,te)),fulfillWithValue:((L,te)=>new $a(L,te))})).then(L=>{if(L instanceof fs)throw L;return L instanceof $a?n(L.payload,y,l,L.meta):n(L,y,l)})])}catch(E){S=E instanceof fs?o(null,y,l,E.payload,E.meta):o(E,y,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(D,{abort:O,requestId:y,arg:l,unwrap(){return D.then(ep)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:Gd(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function ep(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Va=Symbol.for("rtk-slice-createasyncthunk"),eh={[Va]:Jd};function rp(t,e){return`${t}/${e}`}function ip({creators:t}={}){let e=t?.asyncThunk?.[Va];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(st(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(sp()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,E){let M=typeof S=="string"?S:S.type;if(!M)throw new Error(st(12));if(M in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[M]=E,c},addMatcher(S,E){return l.sliceMatchers.push({matcher:S,reducer:E}),c},exposeAction(S,E){return l.actionCreators[S]=E,c},exposeCaseReducer(S,E){return l.sliceCaseReducersByName[S]=E,c}};a.forEach(S=>{let E=o[S],M={reducerName:S,type:rp(n,S),createNotation:typeof i.reducers=="function"};ap(E)?cp(M,E,c,e):op(M,E,c)});function u(){let[S={},E=[],M=void 0]=typeof i.extraReducers=="function"?Ha(i.extraReducers):[i.extraReducers],L={...S,...l.sliceCaseReducersByType};return Wd(i.initialState,te=>{for(let me in L)te.addCase(me,L[me]);for(let me of l.sliceMatchers)te.addMatcher(me.matcher,me.reducer);for(let me of E)te.addMatcher(me.matcher,me.reducer);M&&te.addDefaultCase(M)})}let p=S=>S,f=new Map,y=new WeakMap,x;function _(S,E){return x||(x=u()),x(S,E)}function b(){return x||(x=u()),x.getInitialState()}function O(S,E=!1){function M(te){let me=te[S];return typeof me>"u"&&E&&(me=rn(y,M,b)),me}function L(te=p){return rn(rn(f,E,()=>new WeakMap),te,()=>{let me={};for(let[Oi,Fe]of Object.entries(i.selectors??{}))me[Oi]=np(Fe,te,()=>rn(y,te,b),E);return me})}return{reducerPath:S,getSelectors:L,get selectors(){return L(M)},selectSlice:M}}let D={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(s),injectInto(S,{reducerPath:E,...M}={}){let L=E??s;return S.inject({reducerPath:L,reducer:_},M),{...D,...O(L,!0)}}};return D}}function np(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var za=ip();function sp(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function op({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!lp(i))throw new Error(st(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?Et(t,o):Et(t))}function ap(t){return t._reducerDefinitionType==="asyncThunk"}function lp(t){return t._reducerDefinitionType==="reducerWithPrepare"}function cp({type:t,reducerName:e},r,i,n){if(!n)throw new Error(st(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=n(t,s,u);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:o||nn,pending:a||nn,rejected:l||nn,settled:c||nn})}function nn(){}var ja="listener",qa="completed",Wa="cancelled",th=`task-${Wa}`,rh=`task-${qa}`,ih=`${ja}-${Wa}`,nh=`${ja}-${qa}`;var{assign:Ka}=Object;var hs="listenerMiddleware";var up=Ka(Et(`${hs}/add`),{withTypes:()=>up}),sh=Et(`${hs}/removeAll`),dp=Ka(Et(`${hs}/remove`),{withTypes:()=>dp});function st(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var pp=Di(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),sn=class extends pp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ga=class t extends sn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if($i(s))return s;if(n==null)return;let o=za({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ba({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=jr(o.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Ni,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...p)=>{let f=u(...p.map(s));return this.reduxStore.dispatch(f),f}:p=>{let f=c,y=this.getState()[f];Er(y,p)||this.setState({[f]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var on=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var an=d(v()),fp="ft-app-info",At=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};At.eventName="authentication-change";var ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ei.eventName="ui-locale-changed";var hp={session:(t,e)=>{(0,an.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new At(e.payload)),0))}},A=an.FtReduxStore.get({name:fp,reducers:hp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ya=d(v()),ln=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Xa=(0,Ya.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>on.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ln([(0,ms.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ln([(0,ms.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ln([Yn({store:A.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ln([Yn({store:A.name})],e.prototype,"uiLocale",void 0),e});var fn=d(v());var ys=d(v());var qt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=A.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=A.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Or=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qt.await()}};var Ee=class extends Or{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ys.CacheRegistry,this.cache=e?n.commonCache:new ys.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var cn=class extends Ee{async listMySearches(){let{session:e}=A.getState();return Li(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var un=class extends Ee{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var dn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var pn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var mp="ft-user-assets",yp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ue).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;vs(t,r,[...gs(t,r),n]),Qa(t,r,1,i),Za(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;vs(t,r,gs(t,r).map(n=>n.id===i.id?i:n)),Za(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;vs(t,r,gs(t,r).filter(s=>s.id!==n)),Qa(t,r,-1,i)}},Ja={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},gs=(t,e)=>{var r;let i=Ja[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},vs=(t,e,r)=>{let i=Ja[e];i&&(t[i]=r)},Qa=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ue.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Za=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},be=fn.FtReduxStore.get({name:mp,reducers:yp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),bs=class{constructor(e=new dn,r=new pn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new un,this.savedSearchesService=new cn,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();(0,fn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),be.actions.clearAssetCount(),be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&be.getState().assetCounts.allAsset[e]!==r.count&&be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&be.getState().assetCounts.bookmarkByMap[e]!==r.count&&be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(be.getState().assetCounts.bookmarkByMap).length!==0;e===Ue.BOOKMARKS&&r&&be.actions.clearBookmarkCountByMap(),be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;be.actions.bookmarks(r)}}},gp=new bs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=gp);var xs=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new xs;var Be=d(v());var el,Tr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},vp=Symbol("clearAfterUnitTest"),hn=class extends(0,Be.withEventBus)(Ee){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[el]=()=>{this.defaultMessages={},this.cache=new Be.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.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,Be.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 s=e.toLowerCase(),o=this.resolveContext(s);return new Be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Tr({loadedContexts:e})),this.dispatchEvent(new Tr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Tr({loadedContexts:[e]})),this.dispatchEvent(new Tr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Be.delay)(0).then(()=>i()).catch(()=>null)))}};el=vp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Rr=window.FluidTopicsI18nService,mn=window.FluidTopicsCustomI18nService;var tl=d(v()),Ss=class{highlightHtml(e,r,i){(0,tl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ss;var rl=d(v());var Es=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return rl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Es;var il=d(v());var ti=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=A.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new il.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var As=class{urlToSearchRequest(e){return ti.get().parse(e)}searchRequestToUrl(e){return ti.get().serialize(e)}};window.FluidTopicsUrlService=new As;var yt=d(v());var Wt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Wt.eventName="before-location-change";var Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Kt.eventName="change";var _s=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))}},nl=new _s;var yn=class t extends yt.WithEventBus{static build(){return new t(window.history,nl,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o: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,yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Kt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Wt(l);this.dispatchEvent(c);let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:c.detail.nextLocation.href};i.apply(n,[p,o,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Wt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Wt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Kt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Kt.eventName,e)}currentItem(){return(0,yt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,yt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,yt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,yt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=yn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var sl=d(R());var ol=sl.css`
|
|
12
|
-
`;var ll=d(R()),
|
|
11
|
+
`;var wt=d(v()),ii=d(U());var zr;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(zr||(zr={}));var _t=d(v());var fd=d(v());var yo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(yo||(yo={}));var go;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(go||(go={}));var vo;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(vo||(vo={}));var bo;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(bo||(bo={}));var xo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xo||(xo={}));var So;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(So||(So={}));var Eo;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Eo||(Eo={}));var Ao;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Ao||(Ao={}));var _o;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_o||(_o={}));var Co;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Co||(Co={}));var wo;(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",t.DOC_DIFF="DOC_DIFF"})(wo||(wo={}));var Oo;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Oo||(Oo={}));var To;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(To||(To={}));var Ro;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ro||(Ro={}));var ko;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ko||(ko={}));var Lo;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Lo||(Lo={}));var Do;(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"})(Do||(Do={}));var ht;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ht||(ht={}));var No;(function(t){t.ASC="ASC",t.DESC="DESC"})(No||(No={}));var Po;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Po||(Po={}));var Ti;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ti||(Ti={}));var Io;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Io||(Io={}));var Mo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Mo||(Mo={}));var $o;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})($o||($o={}));var Ri;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ri||(Ri={}));var Fo;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Fo||(Fo={}));var ki;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ki||(ki={}));var Uo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Uo||(Uo={}));var W;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(W||(W={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var Bo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Bo||(Bo={}));var Ho;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ho||(Ho={}));var Vo;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vo||(Vo={}));var zo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zo||(zo={}));var jo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(jo||(jo={}));var qo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(qo||(qo={}));var Wo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Wo||(Wo={}));var Ko;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Ko||(Ko={}));var Go;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Go||(Go={}));var Yo;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Yo||(Yo={}));var Xo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Xo||(Xo={}));var Qo;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Qo||(Qo={}));var Zo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Zo||(Zo={}));var hd={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Jo(t,e){return t===e||(hd[t]??[]).some(r=>Jo(r,e))}function Li(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=>Jo(i,e))}function ea(t,...e){return t==null?!1:e.some(r=>Li(t,r))}var ms=d(U());var ta=d(U(),1);var Gn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},md=t=>({fromAttribute:e=>{if(e==null)return jr(t);try{return JSON.parse(e)}catch{return jr(t)}},toAttribute:e=>JSON.stringify(e)});function ra(t,e){return(0,ta.property)({type:Object,converter:md(t),hasChanged:qr,...e??{}})}function yd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Er(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(!Er(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Er(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Er(t,e){try{return yd(t,e)}catch{return!1}}function qr(t,e){return!Er(t,e)}function jr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Di(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ia=d(U(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:qr,attribute:!1,...e};(0,ia.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ni=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 zt=d(U(),1);var Pi=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),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Mi=d(R(),1);var Ii=class extends Mi.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Mi.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Gn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function na(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var _r=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},la,sa=Symbol("constructorPrototype"),oa=Symbol("constructorName"),ca=Symbol("exportpartsDebouncer"),aa=Symbol("dynamicDependenciesLoaded"),Ar=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ar.eventName="exportparts-updated";var it=class extends Ii{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[la]=new Pi(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[ca].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[oa]=this.constructor.name,this[sa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[oa]&&Object.setPrototypeOf(this,this[sa])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[aa]||(r[aa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ar)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=na(this.shadowRoot,...s)}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(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};la=ca;_r([(0,zt.property)()],it.prototype,"exportpartsPrefix",void 0);_r([ra([])],it.prototype,"exportpartsPrefixes",void 0);_r([(0,zt.property)({reflect:!0})],it.prototype,"exportparts",void 0);_r([(0,zt.property)()],it.prototype,"customStylesheet",void 0);_r([(0,zt.property)()],it.prototype,"elementToFocus",void 0);_r([(0,zt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function $i(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),gd=Di(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[jt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[jt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[jt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[jt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[St].has(o.store):this[St].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[St].set(o,a.subscribe(()=>this.updateFromStores())),this[Wr].set(o,[]),$i(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[Wr].get(o).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[St].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[St].has(o)&&this[St].get(o)(),this[St].delete(o),(a=this[Wr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Wr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=St,r=jt,i=Wr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ua=class extends gd(it){};function ue(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var vd=typeof Symbol=="function"&&Symbol.observable||"@@observable",da=vd,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),bd={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},Fi=bd;function Ui(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Qn(t,e,r){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Qn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((b,O)=>{o.set(O,b)}))}function u(){if(l)throw new Error(ue(3));return n}function p(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let O=!0;c();let D=a++;return o.set(D,b),function(){if(O){if(l)throw new Error(ue(6));O=!1,c(),o.delete(D),s=null}}}function f(b){if(!Ui(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=i(n,b)}finally{l=!1}return(s=o).forEach(D=>{D()}),b}function y(b){if(typeof b!="function")throw new Error(ue(10));i=b,f({type:Fi.REPLACE})}function x(){let b=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ue(11));function D(){let E=O;E.next&&E.next(u())}return D(),{unsubscribe:b(D)}},[da](){return this}}}return f({type:Fi.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[da]:x}}function xd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Fi.INIT})>"u")throw new Error(ue(12));if(typeof r(void 0,{type:Fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Zn(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{xd(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],_=y(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[f]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Kr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function pa(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(ue(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=t.map(l=>l(o));return s=Kr(...a)(n.dispatch),{...n,dispatch:s}}}function fa(t){return Ui(t)&&"type"in t&&typeof t.type=="string"}var Ea=Symbol.for("immer-nothing"),ha=Symbol.for("immer-draftable"),ge=Symbol.for("immer-state");function We(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var De=Object,wr=De.getPrototypeOf,zi="constructor",Yi="prototype",rs="configurable",ji="enumerable",Hi="writable",Gr="value",nt=t=>!!t&&!!t[ge];function Ne(t){return t?Aa(t)||Qi(t)||!!t[ha]||!!t[zi]?.[ha]||Zi(t)||Zr(t):!1}var Sd=De[Yi][zi].toString(),ma=new WeakMap;function Aa(t){if(!t||!us(t))return!1;let e=wr(t);if(e===null||e===De[Yi])return!0;let r=De.hasOwnProperty.call(e,zi)&&e[zi];if(r===Object)return!0;if(!Cr(r))return!1;let i=ma.get(r);return i===void 0&&(i=Function.toString.call(r),ma.set(r,i)),i===Sd}function Xi(t,e,r=!0){Qr(t)===0?(r?Reflect.ownKeys(t):De.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Qr(t){let e=t[ge];return e?e.type_:Qi(t)?1:Zi(t)?2:Zr(t)?3:0}var Jn=(t,e,r=Qr(t))=>r===2?t.has(e):De[Yi].hasOwnProperty.call(t,e),is=(t,e,r=Qr(t))=>r===2?t.get(e):t[e],qi=(t,e,r,i=Qr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ed(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Qi=Array.isArray,Zi=t=>t instanceof Map,Zr=t=>t instanceof Set,us=t=>typeof t=="object",Cr=t=>typeof t=="function",es=t=>typeof t=="boolean";function Ad(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var mt=t=>t.copy_||t.base_;var ds=t=>t.modified_?t.copy_:t.base_;function ns(t,e){if(Zi(t))return new Map(t);if(Zr(t))return new Set(t);if(Qi(t))return Array[Yi].slice.call(t);let r=Aa(t);if(e===!0||e==="class_only"&&!r){let i=De.getOwnPropertyDescriptors(t);delete i[ge];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Hi]===!1&&(a[Hi]=!0,a[rs]=!0),(a.get||a.set)&&(i[o]={[rs]:!0,[Hi]:!0,[ji]:a[ji],[Gr]:t[o]})}return De.create(wr(t),i)}else{let i=wr(t);if(i!==null&&r)return{...t};let n=De.create(i);return De.assign(n,t)}}function Ji(t,e=!1){return en(t)||nt(t)||!Ne(t)||(Qr(t)>1&&De.defineProperties(t,{set:Bi,add:Bi,clear:Bi,delete:Bi}),De.freeze(t),e&&Xi(t,(r,i)=>{Ji(i,!0)},!1)),t}function _d(){We(2)}var Bi={[Gr]:_d};function en(t){return t===null||!us(t)?!0:De.isFrozen(t)}var Wi="MapSet",ss="Patches",ya="ArrayMethods",_a={};function qt(t){let e=_a[t];return e||We(0,t),e}var ga=t=>!!_a[t];var Yr,Ca=()=>Yr,Cd=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ga(Wi)?qt(Wi):void 0,arrayMethodsPlugin_:ga(ya)?qt(ya):void 0});function va(t,e){e&&(t.patchPlugin_=qt(ss),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function os(t){as(t),t.drafts_.forEach(wd),t.drafts_=null}function as(t){t===Yr&&(Yr=t.parent_)}var ba=t=>Yr=Cd(Yr,t);function wd(t){let e=t[ge];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function xa(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ge].modified_&&(os(e),We(4)),Ne(t)&&(t=Sa(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[ge].base_,t,e)}else t=Sa(e,r);return Od(e,t,!0),os(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ea?t:void 0}function Sa(t,e){if(en(e))return e;let r=e[ge];if(!r)return Ki(e,t.handledSet_,t);if(!tn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Ta(r,t)}return r.copy_}function Od(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ji(e,r)}function wa(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var tn=(t,e)=>t.scope_===e,Td=[];function Oa(t,e,r,i){let n=mt(t),s=t.type_;if(i!==void 0&&is(n,i,s)===e){qi(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Xi(n,(l,c)=>{if(nt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??Td;for(let a of o)qi(n,a,r,s)}function Rd(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!tn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=ds(s);Oa(t,s.draft_??s,o,r),Ta(s,n)})}function Ta(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}wa(t)}}function kd(t,e,r){let{scope_:i}=t;if(nt(r)){let n=r[ge];tn(n,i)&&n.callbacks_.push(function(){Vi(t);let o=ds(n);Oa(t,r,o,e)})}else Ne(r)&&t.callbacks_.push(function(){let s=mt(t);t.type_===3?s.has(r)&&Ki(r,i.handledSet_,i):is(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ki(is(t.copy_,e,t.type_),i.handledSet_,i)})}function Ki(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||nt(t)||e.has(t)||!Ne(t)||en(t)||(e.add(t),Xi(t,(i,n)=>{if(nt(n)){let s=n[ge];if(tn(s,r)){let o=ds(s);qi(t,i,o,t.type_),wa(s)}}else Ne(n)&&Ki(n,e,r)})),t}function Ld(t,e){let r=Qi(t),i={type_:r?1:0,scope_:e?e.scope_:Ca(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Gi;r&&(n=[i],s=Xr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Gi={get(t,e){if(e===ge)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=mt(t);if(!Jn(n,e,t.type_))return Nd(t,n,e);let s=n[e];if(t.finalized_||!Ne(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ad(e))return s;if(s===ts(t.base_,e)||Dd(t,e,s)){Vi(t);let o=t.type_===1?+e:e,a=cs(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in mt(t)},ownKeys(t){return Reflect.ownKeys(mt(t))},set(t,e,r){let i=Ra(mt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=ts(mt(t),e),s=n?.[ge];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ed(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Vi(t),ls(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),kd(t,e,r)),!0},deleteProperty(t,e){return Vi(t),ts(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ls(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=mt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Hi]:!0,[rs]:t.type_!==1||e!=="length",[ji]:i[ji],[Gr]:r[e]}},defineProperty(){We(11)},getPrototypeOf(t){return wr(t.base_)},setPrototypeOf(){We(12)}},Xr={};for(let t in Gi){let e=Gi[t];Xr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)};Xr.set=function(t,e,r){return Gi.set.call(this,t[0],e,r,t[0])};function ts(t,e){let r=t[ge];return(r?mt(r):t)[e]}function Dd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Ne(r)||r[ge]?!1:t.baseRefs_.has(r)}function Nd(t,e,r){let i=Ra(e,r);return i?Gr in i?i[Gr]:i.get?.call(t.draft_):void 0}function Ra(t,e){if(!(e in t))return;let r=wr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=wr(r)}}function ls(t){t.modified_||(t.modified_=!0,t.parent_&&ls(t.parent_))}function Vi(t){t.copy_||(t.assigned_=new Map,t.copy_=ns(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Pd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Cr(e)&&!Cr(r)){let s=r;r=e;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Cr(r)||We(6),i!==void 0&&!Cr(i)&&We(7);let n;if(Ne(e)){let s=ba(this),o=cs(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?os(s):as(s)}return va(s,i),xa(n,s)}else if(!e||!us(e)){if(n=r(e),n===void 0&&(n=e),n===Ea&&(n=void 0),this.autoFreeze_&&Ji(n,!0),i){let s=[],o=[];qt(ss).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else We(1,e)},this.produceWithPatches=(e,r)=>{if(Cr(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},es(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),es(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),es(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ne(t)||We(8),nt(t)&&(t=ka(t));let e=ba(this),r=cs(e,t,void 0);return r[ge].isManual_=!0,as(e),r}finishDraft(t,e){let r=t&&t[ge];(!r||!r.isManual_)&&We(9);let{scope_:i}=r;return va(i,e),xa(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=qt(ss).applyPatches_;return nt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function cs(t,e,r,i){let[n,s]=Zi(e)?qt(Wi).proxyMap_(e,r):Zr(e)?qt(Wi).proxySet_(e,r):Ld(e,r);return(r?.scope_??Ca()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Rd(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function ka(t){return nt(t)||We(10,t),La(t)}function La(t){if(!Ne(t)||en(t))return t;let e=t[ge],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ns(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ns(t,!0);let n=r;return Zr(r)&&(r=new Set),Xi(n,(s,o)=>{qi(r,s,La(o))},i),e&&(e.finalized_=!1),r}var Id=globalThis.Iterator,Wf=typeof Id?.from=="function";var Md=new Pd,ps=Md.produce;function Da(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var Na=Da(),Pa=Da;var $d=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Fd=t=>t&&typeof t.match=="function";function Et(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(st(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>fa(i)&&i.type===t,r}var Ua=class Jr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Jr.prototype)}static get[Symbol.species](){return Jr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Jr(...e[0].concat(this)):new Jr(...e.concat(this))}};function Ia(t){return Ne(t)?ps(t,()=>{}):t}function rn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Ud(t){return typeof t=="boolean"}var Bd=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new Ua;return r&&(Ud(r)?o.push(Na):o.push(Pa(r.extraArgument))),o},Hd="RTK_autoBatch";var Ma=t=>e=>{setTimeout(e,t)},Vd=(t,e)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(o),s=setTimeout(o,e)},zd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Vd(window.requestAnimationFrame,100):Ma(10):t.type==="callback"?t.queueNotification:Ma(t.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>n&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Hd],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},jd=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Ua(t);return i&&n.push(zd(typeof i=="object"?i:void 0)),n};function Ba(t){let e=Bd(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Ui(r))l=Zn(r);else throw new Error(st(1));let c;typeof i=="function"?c=i(e):c=e();let u=Kr;n&&(u=$d({trace:!1,...typeof n=="object"&&n}));let p=pa(...c),f=jd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Qn(l,o,x)}function Ha(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(st(28));if(a in e)throw new Error(st(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function qd(t){return typeof t=="function"}function Wd(t,e){let[r,i,n]=Ha(e),s;if(qd(t))s=()=>Ia(t());else{let a=Ia(t);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,p)=>{if(p)if(nt(u)){let f=p(u,l);return f===void 0?u:f}else{if(Ne(u))return ps(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(st(9))}return f}}return u},a)}return o.getInitialState=s,o}var Kd=(t,e)=>Fd(t)?t.match(e):t(e);function Gd(...t){return e=>t.some(r=>Kd(r,e))}var Yd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xd=(t=21)=>{let e="",r=t;for(;r--;)e+=Yd[Math.random()*64|0];return e},Qd=["name","message","stack","code"],fs=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},$a=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Zd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Qd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Fa="External signal was aborted",Jd=(()=>{function t(e,r,i){let n=Et(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=Et(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=Et(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Zd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Xd(),x=new AbortController,_,b;function O(S){b=S,x.abort()}c&&(c.aborted?O(Fa):c.addEventListener("abort",()=>O(Fa),{once:!0}));let D=(async function(){let S;try{let E=i?.condition?.(l,{getState:p,extra:f});if(tp(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let M=new Promise((L,te)=>{_=()=>{te({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([M,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:O,rejectWithValue:((L,te)=>new fs(L,te)),fulfillWithValue:((L,te)=>new $a(L,te))})).then(L=>{if(L instanceof fs)throw L;return L instanceof $a?n(L.payload,y,l,L.meta):n(L,y,l)})])}catch(E){S=E instanceof fs?o(null,y,l,E.payload,E.meta):o(E,y,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(D,{abort:O,requestId:y,arg:l,unwrap(){return D.then(ep)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:Gd(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function ep(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Va=Symbol.for("rtk-slice-createasyncthunk"),eh={[Va]:Jd};function rp(t,e){return`${t}/${e}`}function ip({creators:t}={}){let e=t?.asyncThunk?.[Va];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(st(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(sp()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,E){let M=typeof S=="string"?S:S.type;if(!M)throw new Error(st(12));if(M in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[M]=E,c},addMatcher(S,E){return l.sliceMatchers.push({matcher:S,reducer:E}),c},exposeAction(S,E){return l.actionCreators[S]=E,c},exposeCaseReducer(S,E){return l.sliceCaseReducersByName[S]=E,c}};a.forEach(S=>{let E=o[S],M={reducerName:S,type:rp(n,S),createNotation:typeof i.reducers=="function"};ap(E)?cp(M,E,c,e):op(M,E,c)});function u(){let[S={},E=[],M=void 0]=typeof i.extraReducers=="function"?Ha(i.extraReducers):[i.extraReducers],L={...S,...l.sliceCaseReducersByType};return Wd(i.initialState,te=>{for(let ye in L)te.addCase(ye,L[ye]);for(let ye of l.sliceMatchers)te.addMatcher(ye.matcher,ye.reducer);for(let ye of E)te.addMatcher(ye.matcher,ye.reducer);M&&te.addDefaultCase(M)})}let p=S=>S,f=new Map,y=new WeakMap,x;function _(S,E){return x||(x=u()),x(S,E)}function b(){return x||(x=u()),x.getInitialState()}function O(S,E=!1){function M(te){let ye=te[S];return typeof ye>"u"&&E&&(ye=rn(y,M,b)),ye}function L(te=p){return rn(rn(f,E,()=>new WeakMap),te,()=>{let ye={};for(let[Oi,Fe]of Object.entries(i.selectors??{}))ye[Oi]=np(Fe,te,()=>rn(y,te,b),E);return ye})}return{reducerPath:S,getSelectors:L,get selectors(){return L(M)},selectSlice:M}}let D={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(s),injectInto(S,{reducerPath:E,...M}={}){let L=E??s;return S.inject({reducerPath:L,reducer:_},M),{...D,...O(L,!0)}}};return D}}function np(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var za=ip();function sp(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function op({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!lp(i))throw new Error(st(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?Et(t,o):Et(t))}function ap(t){return t._reducerDefinitionType==="asyncThunk"}function lp(t){return t._reducerDefinitionType==="reducerWithPrepare"}function cp({type:t,reducerName:e},r,i,n){if(!n)throw new Error(st(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=n(t,s,u);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:o||nn,pending:a||nn,rejected:l||nn,settled:c||nn})}function nn(){}var ja="listener",qa="completed",Wa="cancelled",th=`task-${Wa}`,rh=`task-${qa}`,ih=`${ja}-${Wa}`,nh=`${ja}-${qa}`;var{assign:Ka}=Object;var hs="listenerMiddleware";var up=Ka(Et(`${hs}/add`),{withTypes:()=>up}),sh=Et(`${hs}/removeAll`),dp=Ka(Et(`${hs}/remove`),{withTypes:()=>dp});function st(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var pp=Di(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),sn=class extends pp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ga=class t extends sn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if($i(s))return s;if(n==null)return;let o=za({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ba({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=jr(o.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Ni,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...p)=>{let f=u(...p.map(s));return this.reduxStore.dispatch(f),f}:p=>{let f=c,y=this.getState()[f];Er(y,p)||this.setState({[f]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var on=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var an=d(v()),fp="ft-app-info",At=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};At.eventName="authentication-change";var ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ei.eventName="ui-locale-changed";var hp={session:(t,e)=>{(0,an.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new At(e.payload)),0))}},A=an.FtReduxStore.get({name:fp,reducers:hp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ya=d(v()),ln=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Xa=(0,Ya.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>on.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ln([(0,ms.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ln([(0,ms.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ln([Yn({store:A.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ln([Yn({store:A.name})],e.prototype,"uiLocale",void 0),e});var fn=d(v());var ys=d(v());var Wt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=A.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=A.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Or=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Wt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Wt.await()}};var Ae=class extends Or{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ys.CacheRegistry,this.cache=e?n.commonCache:new ys.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var cn=class extends Ae{async listMySearches(){let{session:e}=A.getState();return Li(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var un=class extends Ae{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var dn=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var pn=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var mp="ft-user-assets",yp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ue).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;vs(t,r,[...gs(t,r),n]),Qa(t,r,1,i),Za(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;vs(t,r,gs(t,r).map(n=>n.id===i.id?i:n)),Za(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;vs(t,r,gs(t,r).filter(s=>s.id!==n)),Qa(t,r,-1,i)}},Ja={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},gs=(t,e)=>{var r;let i=Ja[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},vs=(t,e,r)=>{let i=Ja[e];i&&(t[i]=r)},Qa=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ue.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Za=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},xe=fn.FtReduxStore.get({name:mp,reducers:yp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),bs=class{constructor(e=new dn,r=new pn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new un,this.savedSearchesService=new cn,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();(0,fn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),xe.actions.clearAssetCount(),xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&xe.getState().assetCounts.allAsset[e]!==r.count&&xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(xe.getState().assetCounts.bookmarkByMap).length!==0;e===Ue.BOOKMARKS&&r&&xe.actions.clearBookmarkCountByMap(),xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xe.actions.bookmarks(r)}}},gp=new bs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=gp);var xs=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new xs;var Be=d(v());var el,Tr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},vp=Symbol("clearAfterUnitTest"),hn=class extends(0,Be.withEventBus)(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[el]=()=>{this.defaultMessages={},this.cache=new Be.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.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,Be.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 s=e.toLowerCase(),o=this.resolveContext(s);return new Be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Tr({loadedContexts:e})),this.dispatchEvent(new Tr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Tr({loadedContexts:[e]})),this.dispatchEvent(new Tr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Be.delay)(0).then(()=>i()).catch(()=>null)))}};el=vp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Rr=window.FluidTopicsI18nService,mn=window.FluidTopicsCustomI18nService;var tl=d(v()),Ss=class{highlightHtml(e,r,i){(0,tl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ss;var rl=d(v());var Es=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return rl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Es;var il=d(v());var ti=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=A.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new il.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var As=class{urlToSearchRequest(e){return ti.get().parse(e)}searchRequestToUrl(e){return ti.get().serialize(e)}};window.FluidTopicsUrlService=new As;var yt=d(v());var Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Kt.eventName="before-location-change";var Gt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Gt.eventName="change";var _s=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))}},nl=new _s;var yn=class t extends yt.WithEventBus{static build(){return new t(window.history,nl,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o: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,yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Gt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Kt(l);this.dispatchEvent(c);let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:c.detail.nextLocation.href};i.apply(n,[p,o,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Gt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Gt.eventName,e)}currentItem(){return(0,yt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,yt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,yt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,yt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=yn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var sl=d(R());var ol=sl.css`
|
|
12
|
+
`;var ll=d(R()),Se=d(U()),Xt=d(v());var ot=d(v());function al(t,e){let{authenticationRequired:r,session:i}=A.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var gn=class extends Or{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Cs=class t extends ot.FtStateManager{static build(e){return new t(A,e)}constructor(e,r){super(),this.store=e,this.cache=new ot.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new gn,this.knownContexts=new ot.AbstractRegistry,this.knownCustomComponents=new ot.AbstractRegistry,this.cleanSessionDebouncer=new ot.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ot.Debouncer(500),this.apiProvider=r??(()=>Wt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(At.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(At.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>al(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ei(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return ea(A.getState().session,...e)}},ws=Cs.build();var Yt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var ri=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Yt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ne=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},H=class extends Xt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=ws,this.contextRoot=new ri}render(){return ll.html`
|
|
13
13
|
<slot></slot>
|
|
14
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Rr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};H.elementDefinitions={};H.styles=ol;ne([(0,
|
|
14
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Rr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};H.elementDefinitions={};H.styles=ol;ne([(0,Se.property)()],H.prototype,"baseUrl",void 0);ne([(0,Se.property)()],H.prototype,"tenantId",void 0);ne([(0,Se.property)()],H.prototype,"apiIntegrationIdentifier",void 0);ne([(0,Se.property)()],H.prototype,"apiIntegrationAppVersion",void 0);ne([(0,Se.property)()],H.prototype,"uiLocale",void 0);ne([(0,Xt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);ne([(0,Xt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"editorMode",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"noCustom",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomComponent",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomCode",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"withManualResources",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);ne([(0,Xt.jsonProperty)([])],H.prototype,"messageContexts",void 0);ne([(0,Xt.jsonProperty)(void 0)],H.prototype,"session",void 0);var ul=d(v());var cl={"ft-app-context":H};(0,ul.customElements)(cl);var vn=class t extends Event{constructor(){super(t.eventName)}};vn.eventName="search-context-clear-all-filters";var bn=t=>t.request.virtualField===Ti.TITLE_ONLY&&t.request.scope===ki.DOCUMENTS,xn=t=>t.request.keywordMatch==ht.MANDATORY;var Os=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Rs=class extends wt.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},dl=Symbol("registerInterval"),Ts=Symbol("registerAttempts"),Sp=40,Ep=(0,wt.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ts]=0,this.tryToRegisterToContext(),this[dl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ts]>Sp?window.clearInterval(this[dl]):(this[Ts]++,this.dispatchEvent(new Rs({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Os([(0,ii.state)()],e.prototype,"stateManager",void 0),Os([(0,ii.state)({hasChanged:wt.hasChanged})],e.prototype,"neededSearchRequests",void 0),Os([(0,ii.property)()],e.prototype,"searchRegistrationId",void 0),e}),Ct=class extends Ep(wt.FtLitElementRedux){};var hr=d(R()),se=d(U()),pu=d(Qt()),Ur=d(v());var xl=d(R()),de=d(U()),Sl=d(Qt()),ni=d(v());var vl=d(R()),Q=d(v()),fl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorContent),re={color:fl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",fl),opacityContentOnSurfacePressed:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},hl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorPrimary),ml={color:hl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",hl)},yl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorSecondary),gl={color:yl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",yl)},bl=vl.css`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
opacity: ${re.opacityContentOnSurfacePressed};
|
|
124
124
|
transform: translate(-50%, -50%) scale(1);
|
|
125
125
|
}
|
|
126
|
-
`;var
|
|
126
|
+
`;var _e=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},N=class extends ni.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 ni.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 ni.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=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 xl.html`
|
|
127
127
|
<style>
|
|
128
128
|
.ft-ripple .ft-ripple--effect {
|
|
129
129
|
left: ${this.originX}px;
|
|
@@ -134,20 +134,10 @@
|
|
|
134
134
|
<div class="ft-ripple--background"></div>
|
|
135
135
|
<div class="ft-ripple--effect"></div>
|
|
136
136
|
</div>
|
|
137
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(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()}};N.elementDefinitions={};N.styles=bl;
|
|
138
|
-
\f\r]`,si=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wl=/-->/g,Ol=/>/g,
|
|
139
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Rl=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Fs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Pl=Fs(1),Il=Fs(2),Ml=Fs(3),ai=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),kl=new WeakMap,Zt=Jt.createTreeWalker(Jt,129);function $l(t,e){if(!$s(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(e):e}var Cp=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=si;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(o.lastIndex=f,u=o.exec(l),u!==null);)f=o.lastIndex,o===si?u[1]==="!--"?o=wl:u[1]!==void 0?o=Ol:u[2]!==void 0?(Nl.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=Qt):u[3]!==void 0&&(o=Qt):o===Qt?u[0]===">"?(o=n??si,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Qt:u[3]==='"'?Rl:Tl):o===Rl||o===Tl?o=Qt:o===wl||o===Ol?o=si:(o=Qt,n=void 0);let y=o===Qt&&t[a+1].startsWith("/>")?" ":"";s+=o===si?l+Ap:p>=0?(i.push(c),l.slice(0,p)+Ll+l.slice(p)+Ot+y):l+Ot+(p===-2?a:y)}return[$l(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},li=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,u]=Cp(e,r);if(this.el=t.createElement(c,i),Zt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Zt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Ll)){let f=u[o++],y=n.getAttribute(p).split(Ot),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?Ds:x[1]==="?"?Ns:x[1]==="@"?Ps:Lr}),n.removeAttribute(p)}else p.startsWith(Ot)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Nl.test(n.tagName)){let p=n.textContent.split(Ot),f=p.length-1;if(f>0){n.textContent=Sn?Sn.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],En()),Zt.nextNode(),l.push({type:2,index:++s});n.append(p[f],En())}}}else if(n.nodeType===8)if(n.data===Dl)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Ot,p+1))!==-1;)l.push({type:7,index:s}),p+=Ot.length-1}s++}}static createElement(e,r){let i=Jt.createElement("template");return i.innerHTML=e,i}};function kr(t,e,r=t,i){if(e===ai)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=oi(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=kr(t,n._$AS(t,e.values),n,i)),e}var Ls=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??Jt).importNode(r,!0);Zt.currentNode=n;let s=Zt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new An(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Is(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Zt.nextNode(),o++)}return Zt.currentNode=Jt,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++}},An=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Z,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=kr(this,e,r),oi(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==ai&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_p(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!==Z&&oi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Jt.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=li.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ls(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=kl.get(e.strings);return r===void 0&&kl.set(e.strings,r=new li(e)),r}k(e){$s(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(En()),this.O(En()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=_l(e).nextSibling;_l(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Lr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=kr(this,e,r,0),o=!oi(e)||e!==this._$AH&&e!==ai,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=kr(this,a[i+l],r,l),c===ai&&(c=this._$AH[l]),o||=!oi(c)||c!==this._$AH[l],c===Z?e=Z:e!==Z&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ds=class extends Lr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},Ns=class extends Lr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Ps=class extends Lr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=kr(this,e,r,0)??Z)===ai)return;let i=this._$AH,n=e===Z&&i!==Z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Z&&(i===Z||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},Is=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){kr(this,e)}};var wp=Ms.litHtmlPolyfillSupport;wp?.(li,An),(Ms.litHtmlVersions??=[]).push("3.3.3");var Ul=Symbol.for(""),Op=t=>{if(t?.r===Ul)return t?._$litStatic$},Us=t=>({_$litStatic$:t,r:Ul});var Fl=new Map,Bs=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(s=r[c],(n=Op(s))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Fl.get(p))===void 0&&(o.raw=o,Fl.set(p,e=o)),r=a}return t(e,...r)},Hs=Bs(Pl),Og=Bs(Il),Tg=Bs(Ml);var Vs=d(U()),Zl=d(v());var pe;(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"})(pe||(pe={}));var He=d(R()),h=d(v()),Bl=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),gt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:gt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},er={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Bl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},tr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Bl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},rr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},ir={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},nr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},J={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},sr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},or={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},ar={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Ke={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Hl=He.css`
|
|
137
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(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()}};N.elementDefinitions={};N.styles=bl;_e([(0,de.property)({type:Boolean})],N.prototype,"primary",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"secondary",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"unbounded",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"activated",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"selected",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"disabled",void 0);_e([(0,de.state)()],N.prototype,"hovered",void 0);_e([(0,de.state)()],N.prototype,"focused",void 0);_e([(0,de.state)()],N.prototype,"pressed",void 0);_e([(0,de.state)()],N.prototype,"rippling",void 0);_e([(0,de.state)()],N.prototype,"originX",void 0);_e([(0,de.state)()],N.prototype,"originY",void 0);_e([(0,de.query)(".ft-ripple")],N.prototype,"ripple",void 0);_e([(0,de.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var Al=d(v());var El={"ft-ripple":N};(0,Al.customElements)(El);var Ms=globalThis,_l=t=>t,Sn=Ms.trustedTypes,Cl=Sn?Sn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ll="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,Dl="?"+Ot,Ap=`<${Dl}>`,er=document,En=()=>er.createComment(""),oi=t=>t===null||typeof t!="object"&&typeof t!="function",$s=Array.isArray,_p=t=>$s(t)||typeof t?.[Symbol.iterator]=="function",ks=`[
|
|
138
|
+
\f\r]`,si=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wl=/-->/g,Ol=/>/g,Zt=RegExp(`>|${ks}(?:([^\\s"'>=/]+)(${ks}*=${ks}*(?:[^
|
|
139
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Rl=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Fs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Pl=Fs(1),Il=Fs(2),Ml=Fs(3),ai=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),kl=new WeakMap,Jt=er.createTreeWalker(er,129);function $l(t,e){if(!$s(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(e):e}var Cp=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=si;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(o.lastIndex=f,u=o.exec(l),u!==null);)f=o.lastIndex,o===si?u[1]==="!--"?o=wl:u[1]!==void 0?o=Ol:u[2]!==void 0?(Nl.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=Zt):u[3]!==void 0&&(o=Zt):o===Zt?u[0]===">"?(o=n??si,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Zt:u[3]==='"'?Rl:Tl):o===Rl||o===Tl?o=Zt:o===wl||o===Ol?o=si:(o=Zt,n=void 0);let y=o===Zt&&t[a+1].startsWith("/>")?" ":"";s+=o===si?l+Ap:p>=0?(i.push(c),l.slice(0,p)+Ll+l.slice(p)+Ot+y):l+Ot+(p===-2?a:y)}return[$l(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},li=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,u]=Cp(e,r);if(this.el=t.createElement(c,i),Jt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Jt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Ll)){let f=u[o++],y=n.getAttribute(p).split(Ot),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?Ds:x[1]==="?"?Ns:x[1]==="@"?Ps:Lr}),n.removeAttribute(p)}else p.startsWith(Ot)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Nl.test(n.tagName)){let p=n.textContent.split(Ot),f=p.length-1;if(f>0){n.textContent=Sn?Sn.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],En()),Jt.nextNode(),l.push({type:2,index:++s});n.append(p[f],En())}}}else if(n.nodeType===8)if(n.data===Dl)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Ot,p+1))!==-1;)l.push({type:7,index:s}),p+=Ot.length-1}s++}}static createElement(e,r){let i=er.createElement("template");return i.innerHTML=e,i}};function kr(t,e,r=t,i){if(e===ai)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=oi(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=kr(t,n._$AS(t,e.values),n,i)),e}var Ls=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??er).importNode(r,!0);Jt.currentNode=n;let s=Jt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new An(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Is(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Jt.nextNode(),o++)}return Jt.currentNode=er,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++}},An=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Z,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=kr(this,e,r),oi(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==ai&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_p(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!==Z&&oi(this._$AH)?this._$AA.nextSibling.data=e:this.T(er.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=li.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ls(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=kl.get(e.strings);return r===void 0&&kl.set(e.strings,r=new li(e)),r}k(e){$s(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(En()),this.O(En()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=_l(e).nextSibling;_l(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Lr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=kr(this,e,r,0),o=!oi(e)||e!==this._$AH&&e!==ai,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=kr(this,a[i+l],r,l),c===ai&&(c=this._$AH[l]),o||=!oi(c)||c!==this._$AH[l],c===Z?e=Z:e!==Z&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ds=class extends Lr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},Ns=class extends Lr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Ps=class extends Lr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=kr(this,e,r,0)??Z)===ai)return;let i=this._$AH,n=e===Z&&i!==Z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Z&&(i===Z||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},Is=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){kr(this,e)}};var wp=Ms.litHtmlPolyfillSupport;wp?.(li,An),(Ms.litHtmlVersions??=[]).push("3.3.3");var Ul=Symbol.for(""),Op=t=>{if(t?.r===Ul)return t?._$litStatic$},Us=t=>({_$litStatic$:t,r:Ul});var Fl=new Map,Bs=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(s=r[c],(n=Op(s))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Fl.get(p))===void 0&&(o.raw=o,Fl.set(p,e=o)),r=a}return t(e,...r)},Hs=Bs(Pl),Og=Bs(Il),Tg=Bs(Ml);var Vs=d(U()),Zl=d(v());var pe;(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"})(pe||(pe={}));var He=d(R()),h=d(v()),Bl=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),gt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:gt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},tr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Bl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},rr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Bl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},ir={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},nr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},sr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},J={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},or={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},ar={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},lr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Ke={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Hl=He.css`
|
|
140
140
|
.ft-typography--title {
|
|
141
|
-
font-family: ${er.fontFamily};
|
|
142
|
-
font-size: ${er.fontSize};
|
|
143
|
-
font-weight: ${er.fontWeight};
|
|
144
|
-
letter-spacing: ${er.letterSpacing};
|
|
145
|
-
line-height: ${er.lineHeight};
|
|
146
|
-
text-transform: ${er.textTransform};
|
|
147
|
-
text-decoration: ${er.textDecoration};
|
|
148
|
-
}
|
|
149
|
-
`,Vl=He.css`
|
|
150
|
-
.ft-typography--title-dense {
|
|
151
141
|
font-family: ${tr.fontFamily};
|
|
152
142
|
font-size: ${tr.fontSize};
|
|
153
143
|
font-weight: ${tr.fontWeight};
|
|
@@ -156,8 +146,8 @@
|
|
|
156
146
|
text-transform: ${tr.textTransform};
|
|
157
147
|
text-decoration: ${tr.textDecoration};
|
|
158
148
|
}
|
|
159
|
-
`,
|
|
160
|
-
.ft-typography--
|
|
149
|
+
`,Vl=He.css`
|
|
150
|
+
.ft-typography--title-dense {
|
|
161
151
|
font-family: ${rr.fontFamily};
|
|
162
152
|
font-size: ${rr.fontSize};
|
|
163
153
|
font-weight: ${rr.fontWeight};
|
|
@@ -166,8 +156,8 @@
|
|
|
166
156
|
text-transform: ${rr.textTransform};
|
|
167
157
|
text-decoration: ${rr.textDecoration};
|
|
168
158
|
}
|
|
169
|
-
`,
|
|
170
|
-
.ft-typography--
|
|
159
|
+
`,zl=He.css`
|
|
160
|
+
.ft-typography--subtitle1 {
|
|
171
161
|
font-family: ${ir.fontFamily};
|
|
172
162
|
font-size: ${ir.fontSize};
|
|
173
163
|
font-weight: ${ir.fontWeight};
|
|
@@ -176,9 +166,8 @@
|
|
|
176
166
|
text-transform: ${ir.textTransform};
|
|
177
167
|
text-decoration: ${ir.textDecoration};
|
|
178
168
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
.ft-typography--body1 {
|
|
169
|
+
`,jl=He.css`
|
|
170
|
+
.ft-typography--subtitle2 {
|
|
182
171
|
font-family: ${nr.fontFamily};
|
|
183
172
|
font-size: ${nr.fontSize};
|
|
184
173
|
font-weight: ${nr.fontWeight};
|
|
@@ -187,6 +176,17 @@
|
|
|
187
176
|
text-transform: ${nr.textTransform};
|
|
188
177
|
text-decoration: ${nr.textDecoration};
|
|
189
178
|
}
|
|
179
|
+
|
|
180
|
+
`,ql=He.css`
|
|
181
|
+
.ft-typography--body1 {
|
|
182
|
+
font-family: ${sr.fontFamily};
|
|
183
|
+
font-size: ${sr.fontSize};
|
|
184
|
+
font-weight: ${sr.fontWeight};
|
|
185
|
+
letter-spacing: ${sr.letterSpacing};
|
|
186
|
+
line-height: ${sr.lineHeight};
|
|
187
|
+
text-transform: ${sr.textTransform};
|
|
188
|
+
text-decoration: ${sr.textDecoration};
|
|
189
|
+
}
|
|
190
190
|
`,Wl=He.css`
|
|
191
191
|
.ft-typography--body2 {
|
|
192
192
|
font-family: ${J.fontFamily};
|
|
@@ -199,16 +199,6 @@
|
|
|
199
199
|
}
|
|
200
200
|
`,_n=He.css`
|
|
201
201
|
.ft-typography--caption {
|
|
202
|
-
font-family: ${sr.fontFamily};
|
|
203
|
-
font-size: ${sr.fontSize};
|
|
204
|
-
font-weight: ${sr.fontWeight};
|
|
205
|
-
letter-spacing: ${sr.letterSpacing};
|
|
206
|
-
line-height: ${sr.lineHeight};
|
|
207
|
-
text-transform: ${sr.textTransform};
|
|
208
|
-
text-decoration: ${sr.textDecoration};
|
|
209
|
-
}
|
|
210
|
-
`,Kl=He.css`
|
|
211
|
-
.ft-typography--breadcrumb {
|
|
212
202
|
font-family: ${or.fontFamily};
|
|
213
203
|
font-size: ${or.fontSize};
|
|
214
204
|
font-weight: ${or.fontWeight};
|
|
@@ -217,8 +207,8 @@
|
|
|
217
207
|
text-transform: ${or.textTransform};
|
|
218
208
|
text-decoration: ${or.textDecoration};
|
|
219
209
|
}
|
|
220
|
-
`,
|
|
221
|
-
.ft-typography--
|
|
210
|
+
`,Kl=He.css`
|
|
211
|
+
.ft-typography--breadcrumb {
|
|
222
212
|
font-family: ${ar.fontFamily};
|
|
223
213
|
font-size: ${ar.fontSize};
|
|
224
214
|
font-weight: ${ar.fontWeight};
|
|
@@ -227,6 +217,16 @@
|
|
|
227
217
|
text-transform: ${ar.textTransform};
|
|
228
218
|
text-decoration: ${ar.textDecoration};
|
|
229
219
|
}
|
|
220
|
+
`,Gl=He.css`
|
|
221
|
+
.ft-typography--overline {
|
|
222
|
+
font-family: ${lr.fontFamily};
|
|
223
|
+
font-size: ${lr.fontSize};
|
|
224
|
+
font-weight: ${lr.fontWeight};
|
|
225
|
+
letter-spacing: ${lr.letterSpacing};
|
|
226
|
+
line-height: ${lr.lineHeight};
|
|
227
|
+
text-transform: ${lr.textTransform};
|
|
228
|
+
text-decoration: ${lr.textDecoration};
|
|
229
|
+
}
|
|
230
230
|
`,Yl=He.css`
|
|
231
231
|
.ft-typography--button {
|
|
232
232
|
font-family: ${Ke.fontFamily};
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
</${Us(this.element)}>
|
|
250
250
|
`:Hs`
|
|
251
251
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
252
|
-
`}};j.styles=[Hl,Vl,zl,jl,ql,Wl,_n,Kl,Gl,Yl,Xl];Ql([(0,Vs.property)()],j.prototype,"element",void 0);Ql([(0,Vs.property)()],j.prototype,"variant",void 0);var ec=d(v());var Jl={"ft-typography":j};(0,ec.customElements)(Jl);var tc=d(R()),Ge=d(v()),
|
|
252
|
+
`}};j.styles=[Hl,Vl,zl,jl,ql,Wl,_n,Kl,Gl,Yl,Xl];Ql([(0,Vs.property)()],j.prototype,"element",void 0);Ql([(0,Vs.property)()],j.prototype,"variant",void 0);var ec=d(v());var Jl={"ft-typography":j};(0,ec.customElements)(Jl);var tc=d(R()),Ge=d(v()),Pe={size:Ge.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ge.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rc=[tc.css`
|
|
253
253
|
:host, i.ft-icon {
|
|
254
254
|
display: inline-flex;
|
|
255
255
|
align-items: center;
|
|
@@ -258,14 +258,14 @@
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
:host {
|
|
261
|
-
width: ${
|
|
262
|
-
height: ${
|
|
261
|
+
width: ${Pe.size};
|
|
262
|
+
height: ${Pe.size};
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
i.ft-icon {
|
|
266
266
|
width: 100%;
|
|
267
267
|
height: 100%;
|
|
268
|
-
font-size: ${
|
|
268
|
+
font-size: ${Pe.size};
|
|
269
269
|
line-height: 1;
|
|
270
270
|
font-weight: normal;
|
|
271
271
|
text-transform: none;
|
|
@@ -276,26 +276,26 @@
|
|
|
276
276
|
text-rendering: auto;
|
|
277
277
|
-webkit-font-smoothing: antialiased;
|
|
278
278
|
-moz-osx-font-smoothing: grayscale;
|
|
279
|
-
vertical-align: ${
|
|
279
|
+
vertical-align: ${Pe.verticalAlign};
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
i.ft-icon.ft-icon--fluid-topics {
|
|
283
|
-
font-family: ${
|
|
283
|
+
font-family: ${Pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
284
284
|
|
|
285
285
|
/* Ugly fix because font is broken */
|
|
286
|
-
font-size: calc(0.75 * ${
|
|
287
|
-
line-height: ${
|
|
286
|
+
font-size: calc(0.75 * ${Pe.size});
|
|
287
|
+
line-height: ${Pe.size};
|
|
288
288
|
position: relative;
|
|
289
289
|
top: -4%;
|
|
290
290
|
justify-content: center;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.ft-icon--file-format {
|
|
294
|
-
font-family: ${
|
|
294
|
+
font-family: ${Pe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.ft-icon--material {
|
|
298
|
-
font-family: ${
|
|
298
|
+
font-family: ${Pe.materialFontFamily}, "Material Icons", sans-serif;
|
|
299
299
|
}
|
|
300
300
|
`,Ge.noTextSelect];var Tt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Tt||(Tt={}));var ci=d(R()),Rt=d(U()),sc=d(v()),oc=d(nc());var Cn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Cn||(Cn={}));var m;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(m||(m={}));var Yg=new Map([...["abw"].map(t=>[t,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Xg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var ui=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},fe=class extends sc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ci.nothing}render(){let e=this.variant&&Object.values(Tt).includes(this.variant)?this.variant:Tt.fluid_topics,r=e!==Tt.material||!!this.value;return ci.html`
|
|
301
301
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
position: relative;
|
|
334
334
|
word-break: break-word;
|
|
335
335
|
}
|
|
336
|
-
`;var pc=["top","right","bottom","left"],dc=["start","end"],js=pc.reduce((t,e)=>t.concat(e,e+"-"+dc[0],e+"-"+dc[1]),[]),pi=Math.min,Lt=Math.max,fi=Math.round;var at=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(t,e,r){return Lt(t,pi(e,r))}function wn(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function Dt(t){return t.split("-")[1]}function qs(t){return t==="x"?"y":"x"}function Ws(t){return t==="y"?"height":"width"}function On(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ks(t){return qs(On(t))}function hc(t,e,r){r===void 0&&(r=!1);let i=Dt(t),n=Ks(t),s=Ws(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=zs(o)),[o,zs(o)]}function mc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function zs(t){let e=hi(t);return Tp[e]+t.slice(e.length)}function Rp(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function yc(t){return typeof t!="number"?Rp(t):{top:t,right:t,bottom:t,left:t}}function lr(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 gc(t,e,r){let{reference:i,floating:n}=t,s=On(e),o=Ks(e),a=Ws(o),l=hi(e),c=s==="y",u=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Dt(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function vc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=wn(e,t),x=yc(y),b=a[f?p==="floating"?"reference":"floating":p],O=lr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:S,strategy:l}):D);return{top:(O.top-M.top+x.top)/E.y,bottom:(M.bottom-O.bottom+x.bottom)/E.y,left:(O.left-M.left+x.left)/E.x,right:(M.right-O.right+x.right)/E.x}}var kp=50,bc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:vc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=gc(c,i,l),f=i,y=0,x={};for(let _=0;_<s.length;_++){let b=s[_];if(!b)continue;let{name:O,fn:D}=b,{x:S,y:E,data:M,reset:L}=await D({x:u,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=E??p,x[O]={...x[O],...M},L&&y<kp&&(y++,typeof L=="object"&&(L.placement&&(f=L.placement),L.rects&&(c=L.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):L.rects),{x:u,y:p}=gc(c,f,l)),_=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:x}};function Lp(t,e,r){return(t?[...r.filter(n=>Dt(n)===t),...r.filter(n=>Dt(n)!==t)]:r.filter(n=>hi(n)===n)).filter(n=>t?Dt(n)===t||(e?mc(n)!==n:!1):!0)}var xc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=js,autoAlignment:y=!0,...x}=wn(t,e),_=p!==void 0||f===js?Lp(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,O=_[b];if(O==null)return{};if(a!==O)return{reset:{placement:_[0]}};let D=await l.detectOverflow(e,x),S=hc(O,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),E=[D[hi(O)],D[S[0]],D[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:E}],L=_[b+1];if(L)return{data:{index:b+1,overflows:M},reset:{placement:L}};let te=M.map(Fe=>{let Vr=Dt(Fe.placement);return[Fe.placement,Vr&&u?Fe.overflows.slice(0,2).reduce((nd,sd)=>nd+sd,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Vr)=>Fe[1]-Vr[1]),Oi=((n=te.filter(Fe=>Fe[2].slice(0,Dt(Fe[0])?2:3).every(Vr=>Vr<=0))[0])==null?void 0:n[0])||te[0][0];return Oi!==a?{data:{index:b+1,overflows:M},reset:{placement:Oi}}:{}}}};var Sc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:D=>{let{x:S,y:E}=D;return{x:S,y:E}}},...c}=wn(t,e),u={x:r,y:i},p=await s.detectOverflow(e,c),f=On(n),y=qs(f),x=u[y],_=u[f],b=(D,S)=>fc(S+p[D==="y"?"top":"left"],S,S-p[D==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(_=b(f,_));let O=l.fn({...e,[y]:x,[f]:_});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[y]:o,[f]:a}}}}}};function Rn(){return typeof window<"u"}function ur(t){return Ac(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(Ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ac(t){return Rn()?t instanceof Node||t instanceof _e(t).Node:!1}function Ye(t){return Rn()?t instanceof Element||t instanceof _e(t).Element:!1}function bt(t){return Rn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Ec(t){return!Rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function _c(t){return/^(table|td|th)$/.test(ur(t))}function yi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Np=/paint|layout|strict|content/,cr=t=>!!t&&t!=="none",Gs;function Dr(t){let e=Ye(t)?Xe(t):t;return cr(e.transform)||cr(e.translate)||cr(e.scale)||cr(e.rotate)||cr(e.perspective)||!kn()&&(cr(e.backdropFilter)||cr(e.filter))||Dp.test(e.willChange||"")||Np.test(e.contain||"")}function Cc(t){let e=Nt(t);for(;bt(e)&&!Nr(e);){if(Dr(e))return e;if(yi(e))return null;e=Nt(e)}return null}function kn(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function Nr(t){return/^(html|body|#document)$/.test(ur(t))}function Xe(t){return _e(t).getComputedStyle(t)}function gi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nt(t){if(ur(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ec(t)&&t.host||vt(t);return Ec(e)?e.host:e}function wc(t){let e=Nt(t);return Nr(e)?(t.ownerDocument||t).body:bt(e)&&mi(e)?e:wc(e)}function Tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=wc(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=_e(n);if(s){let a=Ln(o);return e.concat(o,o.visualViewport||[],mi(n)?n:[],a&&r?Tn(a):[])}else return e.concat(n,Tn(n,[],r))}function Ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Rc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=fi(r)!==s||fi(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function kc(t){return Ye(t)?t:t.contextElement}function Pr(t){let e=kc(t);if(!bt(e))return at(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Rc(e),o=(s?fi(r.width):r.width)/i,a=(s?fi(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Pp=at(0);function Lc(t){let e=_e(t);return!kn()||!e.visualViewport?Pp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ip(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function vi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=kc(t),o=at(1);e&&(i?Ye(i)&&(o=Pr(i)):o=Pr(t));let a=Ip(s,r,i)?Lc(s):at(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,p=n.height/o.y;if(s&&i){let f=_e(s),y=Ye(i)?_e(i):i,x=f,_=Ln(x);for(;_&&y!==x;){let b=Pr(_),O=_.getBoundingClientRect(),D=Xe(_),S=O.left+(_.clientLeft+parseFloat(D.paddingLeft))*b.x,E=O.top+(_.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=E,x=_e(_),_=Ln(x)}}return lr({width:u,height:p,x:l,y:c})}function Dn(t,e){let r=gi(t).scrollLeft;return e?e.left+r:vi(vt(t)).left+r}function Dc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Dn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Mp(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?yi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=at(1),u=at(0),p=bt(i);if((p||!s)&&((ur(i)!=="body"||mi(o))&&(l=gi(i)),p)){let y=vi(i);c=Pr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!s?Dc(o,l):at(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function $p(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Fp(t){let e=gi(t),r=t.ownerDocument.body,i=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Dn(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=Lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var Up=25;function Bp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let f=!kn()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(Dn(s)<=0){let f=s.ownerDocument,y=f.body,x=getComputedStyle(y),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-y.clientWidth-_),O=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;O<=Up&&(a-=O)}return{width:a,height:l,x:c,y:u}}function Hp(t,e){let r=vi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Pr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Oc(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Bp(t,r,e);else if(e==="document")i=Fp(vt(t));else if(Ye(e))i=Hp(e,r);else{let n=Lc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return lr(i)}function Vp(t,e){let r=e.get(t);if(r)return r;let i=Tn(t,[],!1).filter(a=>Ye(a)&&ur(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Nt(t):t;for(;Ye(o)&&!Nr(o);){let a=Xe(o),l=Dr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=Nt(o)}return e.set(t,i),i}function zp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?yi(e)?[]:Vp(e,this._c):[].concat(r),i],a=Oc(e,o[0],n),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=Oc(e,o[f],n);l=Lt(y.top,l),c=pi(y.right,c),u=pi(y.bottom,u),p=Lt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function jp(t){let{width:e,height:r}=Rc(t);return{width:e,height:r}}function qp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=vi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=at(0);if((i||!s)&&((ur(e)!=="body"||mi(n))&&(a=gi(e)),i)){let f=vi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Dn(n));let c=n&&!i&&!s?Dc(n,a):at(0),u=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:o.width,height:o.height}}function Ys(t){return Xe(t).position==="static"}function Tc(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Nc(t,e){let r=_e(t);if(yi(t))return r;if(!bt(t)){let n=Nt(t);for(;n&&!Nr(n);){if(Ye(n)&&!Ys(n))return n;n=Nt(n)}return r}let i=Tc(t,e);for(;i&&_c(i)&&Ys(i);)i=Tc(i,e);return i&&Nr(i)&&Ys(i)&&!Dr(i)?r:i||Cc(t)||r}var Wp=async function(t){let e=this.getOffsetParent||Nc,r=this.getDimensions,i=await r(t.floating);return{reference:qp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Kp(t){return Xe(t).direction==="rtl"}var Nn={convertOffsetParentRelativeRectToViewportRelativeRect:Mp,getDocumentElement:vt,getClippingRect:zp,getOffsetParent:Nc,getElementRects:Wp,getClientRects:$p,getDimensions:jp,getScale:Pr,isElement:Ye,isRTL:Kp};var Pc=xc,Ic=Sc;var Mc=(t,e,r)=>{let i=new Map,n=r??{},s={...Nn,...n.platform,_c:i};return bc(t,e,{...n,platform:s})};function $c(t){return Gp(t)}function Xs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gp(t){for(let e=t;e;e=Xs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Xs(t);e;e=Xs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Dr(r)||e.tagName==="BODY"))return e}return null}async function Fc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Mc(t,e,{strategy:i.strategy,platform:{...Nn,getOffsetParent:n=>Nn.getOffsetParent(n,$c)},middleware:[Ic({crossAxis:!0}),Pc({allowedPlacements:[i.placement]})]})}var Mr=d(v());var Uc=d(U());var Qs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ir=new Qs;var Yp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xi=Symbol("i18nAttributes"),Bc=Symbol("i18nListAttributes"),Hc=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),bi=Symbol("i18nUnsubs"),lt=(0,Mr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?mn:Rr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Ir.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&s(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[xi])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Bc])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(s){var o;(o=this[Hc])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Pn].set(l,{isCustomContext:a}),this[bi].has(l)||this[bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Pn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[bi].forEach(s=>s()),this[bi].clear()}}return e=Pn,r=bi,Yp([(0,Uc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),In=class extends lt(Mr.FtLitElement){},Mn=class extends lt(Mr.FtLitElementRedux){};var Vc=d(v());var Zs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Ir.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Xp=new Zs;var zc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Vc.hasChanged,converter:Ir,...e}),r[xi]=(n=r[xi])!==null&&n!==void 0?n:new Map,r[xi].set(i,t??{})};var ct=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?mn:Rr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var jc=d(R());var qc=jc.css`
|
|
336
|
+
`;var pc=["top","right","bottom","left"],dc=["start","end"],js=pc.reduce((t,e)=>t.concat(e,e+"-"+dc[0],e+"-"+dc[1]),[]),pi=Math.min,Lt=Math.max,fi=Math.round;var at=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(t,e,r){return Lt(t,pi(e,r))}function wn(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function Dt(t){return t.split("-")[1]}function qs(t){return t==="x"?"y":"x"}function Ws(t){return t==="y"?"height":"width"}function On(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ks(t){return qs(On(t))}function hc(t,e,r){r===void 0&&(r=!1);let i=Dt(t),n=Ks(t),s=Ws(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=zs(o)),[o,zs(o)]}function mc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function zs(t){let e=hi(t);return Tp[e]+t.slice(e.length)}function Rp(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function yc(t){return typeof t!="number"?Rp(t):{top:t,right:t,bottom:t,left:t}}function cr(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 gc(t,e,r){let{reference:i,floating:n}=t,s=On(e),o=Ks(e),a=Ws(o),l=hi(e),c=s==="y",u=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Dt(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function vc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=wn(e,t),x=yc(y),b=a[f?p==="floating"?"reference":"floating":p],O=cr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=cr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:S,strategy:l}):D);return{top:(O.top-M.top+x.top)/E.y,bottom:(M.bottom-O.bottom+x.bottom)/E.y,left:(O.left-M.left+x.left)/E.x,right:(M.right-O.right+x.right)/E.x}}var kp=50,bc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:vc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=gc(c,i,l),f=i,y=0,x={};for(let _=0;_<s.length;_++){let b=s[_];if(!b)continue;let{name:O,fn:D}=b,{x:S,y:E,data:M,reset:L}=await D({x:u,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=E??p,x[O]={...x[O],...M},L&&y<kp&&(y++,typeof L=="object"&&(L.placement&&(f=L.placement),L.rects&&(c=L.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):L.rects),{x:u,y:p}=gc(c,f,l)),_=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:x}};function Lp(t,e,r){return(t?[...r.filter(n=>Dt(n)===t),...r.filter(n=>Dt(n)!==t)]:r.filter(n=>hi(n)===n)).filter(n=>t?Dt(n)===t||(e?mc(n)!==n:!1):!0)}var xc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=js,autoAlignment:y=!0,...x}=wn(t,e),_=p!==void 0||f===js?Lp(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,O=_[b];if(O==null)return{};if(a!==O)return{reset:{placement:_[0]}};let D=await l.detectOverflow(e,x),S=hc(O,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),E=[D[hi(O)],D[S[0]],D[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:E}],L=_[b+1];if(L)return{data:{index:b+1,overflows:M},reset:{placement:L}};let te=M.map(Fe=>{let Vr=Dt(Fe.placement);return[Fe.placement,Vr&&u?Fe.overflows.slice(0,2).reduce((nd,sd)=>nd+sd,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Vr)=>Fe[1]-Vr[1]),Oi=((n=te.filter(Fe=>Fe[2].slice(0,Dt(Fe[0])?2:3).every(Vr=>Vr<=0))[0])==null?void 0:n[0])||te[0][0];return Oi!==a?{data:{index:b+1,overflows:M},reset:{placement:Oi}}:{}}}};var Sc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:D=>{let{x:S,y:E}=D;return{x:S,y:E}}},...c}=wn(t,e),u={x:r,y:i},p=await s.detectOverflow(e,c),f=On(n),y=qs(f),x=u[y],_=u[f],b=(D,S)=>fc(S+p[D==="y"?"top":"left"],S,S-p[D==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(_=b(f,_));let O=l.fn({...e,[y]:x,[f]:_});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[y]:o,[f]:a}}}}}};function Rn(){return typeof window<"u"}function dr(t){return Ac(t)?(t.nodeName||"").toLowerCase():"#document"}function Ce(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(Ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ac(t){return Rn()?t instanceof Node||t instanceof Ce(t).Node:!1}function Ye(t){return Rn()?t instanceof Element||t instanceof Ce(t).Element:!1}function bt(t){return Rn()?t instanceof HTMLElement||t instanceof Ce(t).HTMLElement:!1}function Ec(t){return!Rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ce(t).ShadowRoot}function mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function _c(t){return/^(table|td|th)$/.test(dr(t))}function yi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Np=/paint|layout|strict|content/,ur=t=>!!t&&t!=="none",Gs;function Dr(t){let e=Ye(t)?Xe(t):t;return ur(e.transform)||ur(e.translate)||ur(e.scale)||ur(e.rotate)||ur(e.perspective)||!kn()&&(ur(e.backdropFilter)||ur(e.filter))||Dp.test(e.willChange||"")||Np.test(e.contain||"")}function Cc(t){let e=Nt(t);for(;bt(e)&&!Nr(e);){if(Dr(e))return e;if(yi(e))return null;e=Nt(e)}return null}function kn(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function Nr(t){return/^(html|body|#document)$/.test(dr(t))}function Xe(t){return Ce(t).getComputedStyle(t)}function gi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nt(t){if(dr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ec(t)&&t.host||vt(t);return Ec(e)?e.host:e}function wc(t){let e=Nt(t);return Nr(e)?(t.ownerDocument||t).body:bt(e)&&mi(e)?e:wc(e)}function Tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=wc(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ce(n);if(s){let a=Ln(o);return e.concat(o,o.visualViewport||[],mi(n)?n:[],a&&r?Tn(a):[])}else return e.concat(n,Tn(n,[],r))}function Ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Rc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=fi(r)!==s||fi(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function kc(t){return Ye(t)?t:t.contextElement}function Pr(t){let e=kc(t);if(!bt(e))return at(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Rc(e),o=(s?fi(r.width):r.width)/i,a=(s?fi(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Pp=at(0);function Lc(t){let e=Ce(t);return!kn()||!e.visualViewport?Pp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ip(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ce(t)}function vi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=kc(t),o=at(1);e&&(i?Ye(i)&&(o=Pr(i)):o=Pr(t));let a=Ip(s,r,i)?Lc(s):at(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,p=n.height/o.y;if(s&&i){let f=Ce(s),y=Ye(i)?Ce(i):i,x=f,_=Ln(x);for(;_&&y!==x;){let b=Pr(_),O=_.getBoundingClientRect(),D=Xe(_),S=O.left+(_.clientLeft+parseFloat(D.paddingLeft))*b.x,E=O.top+(_.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=E,x=Ce(_),_=Ln(x)}}return cr({width:u,height:p,x:l,y:c})}function Dn(t,e){let r=gi(t).scrollLeft;return e?e.left+r:vi(vt(t)).left+r}function Dc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Dn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Mp(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?yi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=at(1),u=at(0),p=bt(i);if((p||!s)&&((dr(i)!=="body"||mi(o))&&(l=gi(i)),p)){let y=vi(i);c=Pr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!s?Dc(o,l):at(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function $p(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Fp(t){let e=gi(t),r=t.ownerDocument.body,i=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Dn(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=Lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var Up=25;function Bp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ce(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let f=!kn()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(Dn(s)<=0){let f=s.ownerDocument,y=f.body,x=getComputedStyle(y),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-y.clientWidth-_),O=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;O<=Up&&(a-=O)}return{width:a,height:l,x:c,y:u}}function Hp(t,e){let r=vi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Pr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Oc(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Bp(t,r,e);else if(e==="document")i=Fp(vt(t));else if(Ye(e))i=Hp(e,r);else{let n=Lc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return cr(i)}function Vp(t,e){let r=e.get(t);if(r)return r;let i=Tn(t,[],!1).filter(a=>Ye(a)&&dr(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Nt(t):t;for(;Ye(o)&&!Nr(o);){let a=Xe(o),l=Dr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=Nt(o)}return e.set(t,i),i}function zp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?yi(e)?[]:Vp(e,this._c):[].concat(r),i],a=Oc(e,o[0],n),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=Oc(e,o[f],n);l=Lt(y.top,l),c=pi(y.right,c),u=pi(y.bottom,u),p=Lt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function jp(t){let{width:e,height:r}=Rc(t);return{width:e,height:r}}function qp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=vi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=at(0);if((i||!s)&&((dr(e)!=="body"||mi(n))&&(a=gi(e)),i)){let f=vi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Dn(n));let c=n&&!i&&!s?Dc(n,a):at(0),u=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:o.width,height:o.height}}function Ys(t){return Xe(t).position==="static"}function Tc(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Nc(t,e){let r=Ce(t);if(yi(t))return r;if(!bt(t)){let n=Nt(t);for(;n&&!Nr(n);){if(Ye(n)&&!Ys(n))return n;n=Nt(n)}return r}let i=Tc(t,e);for(;i&&_c(i)&&Ys(i);)i=Tc(i,e);return i&&Nr(i)&&Ys(i)&&!Dr(i)?r:i||Cc(t)||r}var Wp=async function(t){let e=this.getOffsetParent||Nc,r=this.getDimensions,i=await r(t.floating);return{reference:qp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Kp(t){return Xe(t).direction==="rtl"}var Nn={convertOffsetParentRelativeRectToViewportRelativeRect:Mp,getDocumentElement:vt,getClippingRect:zp,getOffsetParent:Nc,getElementRects:Wp,getClientRects:$p,getDimensions:jp,getScale:Pr,isElement:Ye,isRTL:Kp};var Pc=xc,Ic=Sc;var Mc=(t,e,r)=>{let i=new Map,n=r??{},s={...Nn,...n.platform,_c:i};return bc(t,e,{...n,platform:s})};function $c(t){return Gp(t)}function Xs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gp(t){for(let e=t;e;e=Xs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Xs(t);e;e=Xs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Dr(r)||e.tagName==="BODY"))return e}return null}async function Fc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Mc(t,e,{strategy:i.strategy,platform:{...Nn,getOffsetParent:n=>Nn.getOffsetParent(n,$c)},middleware:[Ic({crossAxis:!0}),Pc({allowedPlacements:[i.placement]})]})}var Mr=d(v());var Uc=d(U());var Qs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ir=new Qs;var Yp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xi=Symbol("i18nAttributes"),Bc=Symbol("i18nListAttributes"),Hc=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),bi=Symbol("i18nUnsubs"),lt=(0,Mr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?mn:Rr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Ir.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&s(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[xi])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Bc])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(s){var o;(o=this[Hc])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Pn].set(l,{isCustomContext:a}),this[bi].has(l)||this[bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Pn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[bi].forEach(s=>s()),this[bi].clear()}}return e=Pn,r=bi,Yp([(0,Uc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),In=class extends lt(Mr.FtLitElement){},Mn=class extends lt(Mr.FtLitElementRedux){};var Vc=d(v());var Zs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Ir.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Xp=new Zs;var zc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Vc.hasChanged,converter:Ir,...e}),r[xi]=(n=r[xi])!==null&&n!==void 0?n:new Map,r[xi].set(i,t??{})};var ct=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?mn:Rr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var jc=d(R());var qc=jc.css`
|
|
337
337
|
`;var $n=d(R()),Fr=d(U()),Fn=d(v());var $r=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ve=class extends Mn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:$n.nothing:$n.html`
|
|
338
338
|
<span class="ft-i18n">
|
|
339
339
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
</div>
|
|
354
354
|
</div>
|
|
355
355
|
</div>
|
|
356
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var 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&&Fc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ze.designSystemVariables.transitionDuration}, left ${ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ze.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};K.elementDefinitions={"ft-typography":j};K.styles=uc;Qe([zc()],K.prototype,"text",void 0);Qe([(0,je.property)({type:Boolean})],K.prototype,"manual",void 0);Qe([(0,je.property)({type:Boolean})],K.prototype,"inline",void 0);Qe([(0,ze.numberProperty)()],K.prototype,"delay",void 0);Qe([(0,je.property)()],K.prototype,"position",void 0);Qe([(0,ze.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);Qe([(0,je.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);Qe([(0,je.query)(".ft-tooltip--container")],K.prototype,"container",void 0);Qe([(0,je.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);Qe([(0,je.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);Qe([(0,je.state)()],K.prototype,"visible",void 0);var Xc=d(v());var Yc={"ft-tooltip":K};(0,Xc.customElements)(Yc);var Qc=d(R()),Si=d(v()),
|
|
356
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var 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&&Fc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ze.designSystemVariables.transitionDuration}, left ${ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ze.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};K.elementDefinitions={"ft-typography":j};K.styles=uc;Qe([zc()],K.prototype,"text",void 0);Qe([(0,je.property)({type:Boolean})],K.prototype,"manual",void 0);Qe([(0,je.property)({type:Boolean})],K.prototype,"inline",void 0);Qe([(0,ze.numberProperty)()],K.prototype,"delay",void 0);Qe([(0,je.property)()],K.prototype,"position",void 0);Qe([(0,ze.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);Qe([(0,je.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);Qe([(0,je.query)(".ft-tooltip--container")],K.prototype,"container",void 0);Qe([(0,je.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);Qe([(0,je.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);Qe([(0,je.state)()],K.prototype,"visible",void 0);var Xc=d(v());var Yc={"ft-tooltip":K};(0,Xc.customElements)(Yc);var Qc=d(R()),Si=d(v()),pr={color:Si.FtCssVariableFactory.extend("--ft-loader-color","",Si.designSystemVariables.colorPrimary),size:Si.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Zc=Qc.css`
|
|
357
357
|
:host {
|
|
358
358
|
line-height: 0;
|
|
359
359
|
}
|
|
@@ -362,8 +362,8 @@
|
|
|
362
362
|
display: inline-block;
|
|
363
363
|
position: relative;
|
|
364
364
|
|
|
365
|
-
width: ${
|
|
366
|
-
height: ${
|
|
365
|
+
width: ${pr.size};
|
|
366
|
+
height: ${pr.size};
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
.ft-loader div {
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
width: 25%;
|
|
373
373
|
height: 25%;
|
|
374
374
|
border-radius: 50%;
|
|
375
|
-
background: ${
|
|
375
|
+
background: ${pr.color};
|
|
376
376
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
377
377
|
}
|
|
378
378
|
|
|
@@ -419,17 +419,17 @@
|
|
|
419
419
|
transform: translate(0, 0);
|
|
420
420
|
}
|
|
421
421
|
100% {
|
|
422
|
-
transform: translate(calc(0.35 * ${
|
|
422
|
+
transform: translate(calc(0.35 * ${pr.size}), 0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
`;var Jc=d(R()),eu=d(v());var
|
|
425
|
+
`;var Jc=d(R()),eu=d(v());var fr=class extends eu.FtLitElement{render(){return Jc.html`
|
|
426
426
|
<div class="ft-loader">
|
|
427
427
|
<div></div>
|
|
428
428
|
<div></div>
|
|
429
429
|
<div></div>
|
|
430
430
|
<div></div>
|
|
431
431
|
</div>
|
|
432
|
-
`}};
|
|
432
|
+
`}};fr.styles=Zc;var ru=d(v());var tu={"ft-loader":fr};(0,ru.customElements)(tu);var It=d(R()),Bn=d(Qt()),P=d(U());var Pt=t=>t??Z;var Un=d(R()),C=d(v());var iu=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),k={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:iu,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",iu),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},nu=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Js={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:nu,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",nu)},Ze={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},su=Un.css`
|
|
433
433
|
:host {
|
|
434
434
|
display: inline-block;
|
|
435
435
|
max-width: 100%;
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
|
|
453
453
|
--button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
|
|
454
454
|
--button-internal-color: ${k.color};
|
|
455
|
-
${(0,C.setVariable)(
|
|
455
|
+
${(0,C.setVariable)(Pe.size,k.iconSize)};
|
|
456
456
|
${(0,C.setVariable)(re.color,k.rippleColor)};
|
|
457
457
|
${(0,C.setVariable)(re.borderRadius,k.borderRadius)};
|
|
458
458
|
|
|
@@ -568,8 +568,8 @@
|
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
ft-loader {
|
|
571
|
-
${(0,C.setVariable)(
|
|
572
|
-
${(0,C.setVariable)(
|
|
571
|
+
${(0,C.setVariable)(pr.size,k.iconSize)};
|
|
572
|
+
${(0,C.setVariable)(pr.color,"var(--button-internal-color)")};
|
|
573
573
|
}
|
|
574
574
|
`;var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},w=class t extends(0,ut.toFtFormComponent)(ut.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":ut.isSafari},s=It.html`
|
|
575
575
|
<ft-ripple part="ripple"
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
614
614
|
`:It.html`
|
|
615
615
|
<slot part="icon" name="icon"></slot>
|
|
616
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,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()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":N,"ft-tooltip":K,"ft-icon":fe,"ft-loader":
|
|
616
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,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()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":N,"ft-tooltip":K,"ft-icon":fe,"ft-loader":fr,"ft-typography":j};w.styles=[ut.safariEllipsisFix,su,ut.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});F([(0,P.property)({type:Boolean})],w.prototype,"primary",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"outlined",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"round",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"disabled",void 0);F([(0,P.property)()],w.prototype,"icon",void 0);F([(0,P.property)()],w.prototype,"iconVariant",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);F([(0,P.property)()],w.prototype,"label",void 0);F([(0,P.property)()],w.prototype,"type",void 0);F([(0,P.property)()],w.prototype,"href",void 0);F([(0,P.property)()],w.prototype,"target",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"loading",void 0);F([(0,P.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);F([(0,P.property)()],w.prototype,"ariaHasPopup",void 0);F([(0,P.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);F([(0,P.property)({attribute:"aria-expanded"})],w.prototype,"ariaExpanded",void 0);F([(0,P.property)()],w.prototype,"tooltipPosition",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"activated",void 0);F([(0,P.query)(".ft-button")],w.prototype,"button",void 0);F([(0,P.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);F([(0,P.state)()],w.prototype,"hasTextContent",void 0);F([(0,P.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);F([(0,P.query)("[part=tooltip]")],w.prototype,"tooltip",void 0);var au=d(v());var ou={"ft-button":w};(0,au.customElements)(ou);var lu=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),we={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:lu,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",J.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",J.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",lu),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},cu=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),eo={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:cu,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",cu)},uu={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},du=[T.noTextSelect,Ei.css`
|
|
617
617
|
:host {
|
|
618
618
|
display: inline-block;
|
|
619
619
|
max-width: 100%;
|
|
@@ -629,21 +629,21 @@
|
|
|
629
629
|
box-sizing: border-box;
|
|
630
630
|
pointer-events: auto;
|
|
631
631
|
|
|
632
|
-
--chip-internal-font-size: ${
|
|
633
|
-
--chip-internal-font-weight: ${
|
|
632
|
+
--chip-internal-font-size: ${we.fontSize};
|
|
633
|
+
--chip-internal-font-weight: ${we.fontWeight};
|
|
634
634
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
635
|
-
${(0,T.setVariable)(
|
|
636
|
-
--chip-internal-vertical-padding: ${
|
|
637
|
-
--chip-internal-horizontal-padding: ${
|
|
635
|
+
${(0,T.setVariable)(Pe.size,we.iconSize)};
|
|
636
|
+
--chip-internal-vertical-padding: ${we.verticalPadding};
|
|
637
|
+
--chip-internal-horizontal-padding: ${we.horizontalPadding};
|
|
638
638
|
--chip-internal-icon-padding: 3px;
|
|
639
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
639
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${we.iconSize});
|
|
640
640
|
|
|
641
|
-
border: 1px solid ${
|
|
642
|
-
color: ${
|
|
643
|
-
${(0,T.setVariable)(re.color,
|
|
644
|
-
border-radius: var(${(0,Ei.unsafeCSS)(
|
|
641
|
+
border: 1px solid ${we.borderColor};
|
|
642
|
+
color: ${we.color};
|
|
643
|
+
${(0,T.setVariable)(re.color,we.rippleColor)};
|
|
644
|
+
border-radius: var(${(0,Ei.unsafeCSS)(we.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
645
645
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
646
|
-
background-color: ${
|
|
646
|
+
background-color: ${we.backgroundColor};
|
|
647
647
|
line-height: var(--chip-internal-content-height);
|
|
648
648
|
}
|
|
649
649
|
|
|
@@ -659,14 +659,14 @@
|
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.ft-chip--no-content {
|
|
662
|
-
--chip-internal-horizontal-padding: ${
|
|
662
|
+
--chip-internal-horizontal-padding: ${we.horizontalPadding.get(Ei.css`var(--chip-internal-vertical-padding)`)};
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
.ft-chip--disabled {
|
|
666
666
|
cursor: default;
|
|
667
667
|
pointer-events: none;
|
|
668
668
|
filter: grayscale(1);
|
|
669
|
-
opacity: ${
|
|
669
|
+
opacity: ${we.opacityDisabled};
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
.ft-chip--highlighted {
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
.ft-chip--icon-button {
|
|
708
|
-
${(0,T.setVariable)(k.iconSize,
|
|
708
|
+
${(0,T.setVariable)(k.iconSize,we.iconSize)};
|
|
709
709
|
${(0,T.setVariable)(k.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
710
710
|
${(0,T.setVariable)(k.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
711
711
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
@@ -753,20 +753,20 @@
|
|
|
753
753
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
754
754
|
order: -1;
|
|
755
755
|
}
|
|
756
|
-
`];var
|
|
756
|
+
`];var ve=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Hn=class extends CustomEvent{constructor(){super("icon-click")}},V=class extends Ur.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"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":Ur.isSafari};return hr.html`
|
|
757
757
|
<div class="${(0,pu.classMap)(r)}"
|
|
758
|
-
aria-label="${this.labelOnIconOnly?
|
|
758
|
+
aria-label="${this.labelOnIconOnly?hr.nothing:this.getLabel()}"
|
|
759
759
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
760
760
|
@keyup=${this.onKeyUp}
|
|
761
761
|
part="chip">
|
|
762
762
|
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
763
763
|
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
764
|
-
aria-hidden="${this.labelOnIconOnly?"true":
|
|
764
|
+
aria-hidden="${this.labelOnIconOnly?"true":hr.nothing}">
|
|
765
765
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
766
766
|
</ft-typography>
|
|
767
767
|
${this.internalIcon?this.renderIcon():null}
|
|
768
768
|
</div>
|
|
769
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?
|
|
769
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?hr.html`
|
|
770
770
|
<ft-button round
|
|
771
771
|
class="ft-chip--icon-button"
|
|
772
772
|
@click=${this.onIconClick}
|
|
@@ -777,11 +777,11 @@
|
|
|
777
777
|
part="icon-button"
|
|
778
778
|
?hideTooltip=${this.hideIconTooltip}
|
|
779
779
|
></ft-button>
|
|
780
|
-
`:
|
|
780
|
+
`:hr.html`
|
|
781
781
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
782
782
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
783
783
|
</div>
|
|
784
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Hn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Hn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Ur.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};V.elementDefinitions={"ft-ripple":N,"ft-typography":j,"ft-icon":fe,"ft-button":w};V.styles=du;
|
|
784
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Hn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Hn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Ur.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};V.elementDefinitions={"ft-ripple":N,"ft-typography":j,"ft-icon":fe,"ft-button":w};V.styles=du;ve([(0,se.property)({type:Boolean})],V.prototype,"highlighted",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"removable",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"disabled",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"clickable",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"iconClickable",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"dense",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"multiLine",void 0);ve([(0,se.property)()],V.prototype,"label",void 0);ve([(0,se.property)()],V.prototype,"iconLabel",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"hideIconTooltip",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"accessibleLabelOnIcon",void 0);ve([(0,se.property)()],V.prototype,"icon",void 0);ve([(0,se.property)()],V.prototype,"iconVariant",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"trailingIcon",void 0);ve([(0,se.property)()],V.prototype,"typographyVariant",void 0);ve([(0,se.query)("ft-typography slot")],V.prototype,"slottedContent",void 0);var hu=d(v());var fu={"ft-chip":V};(0,hu.customElements)(fu);var mu=d(R());var yu=mu.css`
|
|
785
785
|
`;var Gu=d(R()),so=d(v());var gu=d(R()),$=d(v());var Ai={buttonMoreColor:$.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",$.designSystemVariables.colorOnSurface),borderRadiusM:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusM,"Design system"),colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),colorOnSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:$.FtCssVariableFactory.external(J.fontFamily,"Body2 typography"),fontSize:$.FtCssVariableFactory.external(J.fontSize,"Body2 typography"),fontWeight:$.FtCssVariableFactory.external(J.fontWeight,"Body2 typography"),letterSpacing:$.FtCssVariableFactory.external(J.letterSpacing,"Body2 typography"),lineHeight:$.FtCssVariableFactory.external(J.lineHeight,"Body2 typography"),textTransform:$.FtCssVariableFactory.external(J.textTransform,"Body2 typography")},vu=gu.css`
|
|
786
786
|
.ft-filter-level--container {
|
|
787
787
|
display: flex;
|
|
@@ -836,7 +836,15 @@
|
|
|
836
836
|
${(0,$.setVariable)(k.color,Ai.colorOnSurface)};
|
|
837
837
|
}
|
|
838
838
|
|
|
839
|
-
|
|
839
|
+
.ft-filter-level--display-buttons {
|
|
840
|
+
display: flex;
|
|
841
|
+
gap: 4px;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
ft-button.ft-filter-level--display-more,
|
|
845
|
+
ft-button.ft-filter-level--display-less {
|
|
846
|
+
flex: 1 1 0;
|
|
847
|
+
min-width: 0;
|
|
840
848
|
${(0,$.setVariable)(k.color,Ai.buttonMoreColor)};
|
|
841
849
|
}
|
|
842
850
|
|
|
@@ -853,15 +861,15 @@
|
|
|
853
861
|
margin: 10px 0;
|
|
854
862
|
color: ${Ai.colorOnSurfaceMedium};
|
|
855
863
|
}
|
|
856
|
-
`;var yr=d(R()),q=d(U()),Y=d(v());var
|
|
864
|
+
`;var yr=d(R()),q=d(U()),Y=d(v());var he=d(R()),me=d(U()),Mu=d(Kn()),Te=d(v());var Vn=d(R()),qe=d(U()),Su=d(v()),Eu=d(Qt());var oe=d(v()),bu=d(R());var Ie={textColor:oe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",oe.designSystemVariables.colorOnSurfaceHigh),fontSize:oe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:oe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",oe.designSystemVariables.colorPrimary),checkColor:oe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",oe.designSystemVariables.colorOnPrimary),borderColor:oe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",oe.designSystemVariables.colorOnSurfaceMedium),disabledColor:oe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",oe.designSystemVariables.colorOnSurfaceDisabled),errorColor:oe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",oe.designSystemVariables.colorError)},xu=bu.css`
|
|
857
865
|
* {
|
|
858
866
|
box-sizing: border-box;
|
|
859
867
|
}
|
|
860
868
|
|
|
861
869
|
.ft-checkbox {
|
|
862
870
|
box-sizing: border-box;
|
|
863
|
-
color: ${
|
|
864
|
-
font-size: ${
|
|
871
|
+
color: ${Ie.textColor};
|
|
872
|
+
font-size: ${Ie.fontSize};
|
|
865
873
|
|
|
866
874
|
display: inline-flex;
|
|
867
875
|
align-items: center;
|
|
@@ -869,7 +877,7 @@
|
|
|
869
877
|
}
|
|
870
878
|
|
|
871
879
|
.ft-checkbox--disabled {
|
|
872
|
-
color: ${
|
|
880
|
+
color: ${Ie.disabledColor};
|
|
873
881
|
}
|
|
874
882
|
|
|
875
883
|
input {
|
|
@@ -893,26 +901,26 @@
|
|
|
893
901
|
|
|
894
902
|
.ft-checkbox--box {
|
|
895
903
|
display: flex;
|
|
896
|
-
border: 2px solid ${
|
|
904
|
+
border: 2px solid ${Ie.borderColor};
|
|
897
905
|
border-radius: 2px;
|
|
898
906
|
|
|
899
907
|
width: 18px;
|
|
900
908
|
height: 18px;
|
|
901
909
|
|
|
902
|
-
color: ${
|
|
910
|
+
color: ${Ie.checkColor};
|
|
903
911
|
}
|
|
904
912
|
|
|
905
913
|
|
|
906
914
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
907
915
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
908
|
-
border-color: ${
|
|
909
|
-
background-color: ${
|
|
916
|
+
border-color: ${Ie.activeColor};
|
|
917
|
+
background-color: ${Ie.activeColor};
|
|
910
918
|
}
|
|
911
919
|
|
|
912
920
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
913
|
-
border-color: ${
|
|
921
|
+
border-color: ${Ie.disabledColor};
|
|
914
922
|
background-color: transparent;
|
|
915
|
-
color: ${
|
|
923
|
+
color: ${Ie.disabledColor};
|
|
916
924
|
}
|
|
917
925
|
|
|
918
926
|
.ft-checkbox--checkmark {
|
|
@@ -933,16 +941,16 @@
|
|
|
933
941
|
}
|
|
934
942
|
|
|
935
943
|
.ft-checkbox.ft-checkbox--error {
|
|
936
|
-
color: ${
|
|
937
|
-
${(0,oe.setVariable)(re.color,
|
|
944
|
+
color: ${Ie.errorColor};
|
|
945
|
+
${(0,oe.setVariable)(re.color,Ie.errorColor)};
|
|
938
946
|
|
|
939
947
|
.ft-checkbox--box {
|
|
940
|
-
border-color: ${
|
|
948
|
+
border-color: ${Ie.errorColor};
|
|
941
949
|
}
|
|
942
950
|
|
|
943
951
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
944
952
|
.ft-checkbox--box {
|
|
945
|
-
background-color: ${
|
|
953
|
+
background-color: ${Ie.errorColor};
|
|
946
954
|
}
|
|
947
955
|
}
|
|
948
956
|
}
|
|
@@ -990,7 +998,7 @@
|
|
|
990
998
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
991
999
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
992
1000
|
</svg>
|
|
993
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new to(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ae.elementDefinitions={"ft-ripple":N,"ft-typography":j};ae.styles=xu;dt([(0,qe.property)()],ae.prototype,"name",void 0);dt([(0,qe.property)()],ae.prototype,"value",void 0);dt([(0,qe.property)({type:Boolean,reflect:!0})],ae.prototype,"checked",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"indeterminate",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"disabled",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"error",void 0);dt([(0,qe.property)({attribute:"aria-label"})],ae.prototype,"ariaLabel",void 0);dt([(0,qe.query)(".ft-checkbox")],ae.prototype,"container",void 0);dt([(0,qe.query)("ft-ripple")],ae.prototype,"ripple",void 0);dt([(0,qe.query)("input")],ae.prototype,"input",void 0);var _u=d(v());var Au={"ft-checkbox":ae};(0,_u.customElements)(Au);var Ou=d(R()),pt=d(U()),Tu=d(v()),Ru=d(
|
|
1001
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new to(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ae.elementDefinitions={"ft-ripple":N,"ft-typography":j};ae.styles=xu;dt([(0,qe.property)()],ae.prototype,"name",void 0);dt([(0,qe.property)()],ae.prototype,"value",void 0);dt([(0,qe.property)({type:Boolean,reflect:!0})],ae.prototype,"checked",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"indeterminate",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"disabled",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"error",void 0);dt([(0,qe.property)({attribute:"aria-label"})],ae.prototype,"ariaLabel",void 0);dt([(0,qe.query)(".ft-checkbox")],ae.prototype,"container",void 0);dt([(0,qe.query)("ft-ripple")],ae.prototype,"ripple",void 0);dt([(0,qe.query)("input")],ae.prototype,"input",void 0);var _u=d(v());var Au={"ft-checkbox":ae};(0,_u.customElements)(Au);var Ou=d(R()),pt=d(U()),Tu=d(v()),Ru=d(Qt());var Cu=d(R()),Oe=d(v());var Mt={textColor:Oe.FtCssVariableFactory.extend("--ft-radio-text-color","",Oe.designSystemVariables.colorOnSurfaceHigh),fontSize:Oe.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Oe.FtCssVariableFactory.extend("--ft-radio-border-color","",Oe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},wu=Cu.css`
|
|
994
1002
|
* {
|
|
995
1003
|
box-sizing: border-box;
|
|
996
1004
|
}
|
|
@@ -1072,7 +1080,7 @@
|
|
|
1072
1080
|
}
|
|
1073
1081
|
|
|
1074
1082
|
.ft-radio:has(:focus-visible) {
|
|
1075
|
-
outline: 2px solid ${
|
|
1083
|
+
outline: 2px solid ${Oe.designSystemVariables.colorPrimary};
|
|
1076
1084
|
outline-offset: -2px;
|
|
1077
1085
|
}
|
|
1078
1086
|
|
|
@@ -1113,14 +1121,14 @@
|
|
|
1113
1121
|
:host(:focus-visible) {
|
|
1114
1122
|
outline: none;
|
|
1115
1123
|
}
|
|
1116
|
-
`;var _i=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},
|
|
1124
|
+
`;var _i=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Me=class extends Du.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Nu.html`
|
|
1117
1125
|
<slot @slotchange=${this.onSlotChange}
|
|
1118
1126
|
@change=${this.onChange}
|
|
1119
1127
|
@keydown=${this.onKeyDown}
|
|
1120
1128
|
></slot>
|
|
1121
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}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,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};
|
|
1129
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}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,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Me.elementDefinitions={};Me.styles=Lu;_i([(0,Ft.property)()],Me.prototype,"name",void 0);_i([(0,Ft.property)({reflect:!0,attribute:"role"})],Me.prototype,"role",void 0);_i([(0,Ft.property)({reflect:!0,attribute:"aria-labelledby"})],Me.prototype,"ariaLabelledBy",void 0);_i([(0,Ft.queryAssignedElements)()],Me.prototype,"assignedElements",void 0);_i([(0,Ft.state)()],Me.prototype,"currentSelectedIndex",void 0);var Iu=d(v());var Pu={"ft-radio":le,"ft-radio-group":Me};(0,Iu.customElements)(Pu);var Ut=ct.build("designedFilterComponent");var Ee=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ro={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},G=class extends(0,Te.withAnalytics)(lt((0,Te.withAriaNotification)(Te.FtLitElement)),ro){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.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Te.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum: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"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return he.html`
|
|
1122
1130
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1123
|
-
${this.parent==null?null:
|
|
1131
|
+
${this.parent==null?null:he.html`
|
|
1124
1132
|
<div tabindex="0"
|
|
1125
1133
|
part="controls go-back"
|
|
1126
1134
|
class="ft-filter-level--go-back"
|
|
@@ -1134,48 +1142,62 @@
|
|
|
1134
1142
|
<ft-typography variant="${pe.body2}">${this.parent.label}</ft-typography>
|
|
1135
1143
|
</div>
|
|
1136
1144
|
`}
|
|
1137
|
-
${this.filteredOptions.length===0?
|
|
1145
|
+
${this.filteredOptions.length===0?he.html`
|
|
1138
1146
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="${pe.body2}">
|
|
1139
|
-
${
|
|
1147
|
+
${Ut.messages.noFilterValuesAvailable()}
|
|
1140
1148
|
</ft-typography>
|
|
1141
|
-
`:
|
|
1142
|
-
${(0,Mu.repeat)(e,
|
|
1149
|
+
`:he.nothing}
|
|
1150
|
+
${(0,Mu.repeat)(e,n=>n.value,n=>{var s;return he.html`
|
|
1143
1151
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1144
|
-
${this.multivalued?this.buildMultiValuedOption(
|
|
1145
|
-
${this.preventNavigation||
|
|
1152
|
+
${this.multivalued?this.buildMultiValuedOption(n):this.buildMonoValuedOption(n)}
|
|
1153
|
+
${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?he.nothing:he.html`
|
|
1146
1154
|
<ft-button icon="thin_arrow_right"
|
|
1147
1155
|
part="controls navigate-hierarchy"
|
|
1148
1156
|
aria-label="Expand node"
|
|
1149
|
-
data-value="${
|
|
1157
|
+
data-value="${n.value}"
|
|
1150
1158
|
?disabled=${this.disabled}
|
|
1151
1159
|
hideTooltip
|
|
1152
|
-
@click=${()=>this.displayLevel(
|
|
1160
|
+
@click=${()=>this.displayLevel(n)}></ft-button>
|
|
1153
1161
|
`}
|
|
1154
1162
|
</div>
|
|
1155
1163
|
`})}
|
|
1156
|
-
${
|
|
1157
|
-
<ft-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1164
|
+
${r||i?he.html`
|
|
1165
|
+
<div class="ft-filter-level--display-buttons" part="controls-container">
|
|
1166
|
+
${i?he.html`
|
|
1167
|
+
<ft-button
|
|
1168
|
+
class="ft-filter-level--display-less"
|
|
1169
|
+
icon="thin_arrow_up"
|
|
1170
|
+
dense trailingIcon
|
|
1171
|
+
part="controls display-less"
|
|
1172
|
+
@click=${()=>{this.emitAnalyticsAction("less-filters-button-pressed",{}),this.displayLess()}}>
|
|
1173
|
+
${Ut.messages.displayLessFilterValuesButton()}
|
|
1174
|
+
</ft-button>
|
|
1175
|
+
`:he.nothing}
|
|
1176
|
+
${r?he.html`
|
|
1177
|
+
<ft-button
|
|
1178
|
+
class="ft-filter-level--display-more"
|
|
1179
|
+
icon="thin_arrow"
|
|
1180
|
+
dense trailingIcon
|
|
1181
|
+
part="controls display-more"
|
|
1182
|
+
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
1183
|
+
${Ut.messages.displayMoreFilterValuesButton()}
|
|
1184
|
+
</ft-button>
|
|
1185
|
+
`:he.nothing}
|
|
1186
|
+
</div>
|
|
1187
|
+
`:he.nothing}
|
|
1166
1188
|
</div>
|
|
1167
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return
|
|
1189
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(e){var r;return he.html`
|
|
1168
1190
|
<ft-checkbox name="${this.filterId}"
|
|
1169
1191
|
part="multivalued-option option"
|
|
1170
1192
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
1171
1193
|
data-value="${e.value}"
|
|
1172
1194
|
.checked=${e.selected}
|
|
1173
1195
|
.disabled=${this.disabled}
|
|
1174
|
-
.indeterminate=${(0,
|
|
1196
|
+
.indeterminate=${(0,Te.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
1175
1197
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1176
1198
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1177
1199
|
</ft-checkbox>
|
|
1178
|
-
`}buildMonoValuedOption(e){return
|
|
1200
|
+
`}buildMonoValuedOption(e){return he.html`
|
|
1179
1201
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1180
1202
|
part="monovalued-option option"
|
|
1181
1203
|
data-value="${e.value}"
|
|
@@ -1186,7 +1208,7 @@
|
|
|
1186
1208
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1187
1209
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1188
1210
|
</ft-radio>
|
|
1189
|
-
`}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}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};G.elementDefinitions={"ft-button":w,"ft-ripple":N,"ft-typography":j,"ft-checkbox":ae,"ft-icon":fe,"ft-radio":le};G.styles=vu;
|
|
1211
|
+
`}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}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};G.elementDefinitions={"ft-button":w,"ft-ripple":N,"ft-typography":j,"ft-checkbox":ae,"ft-icon":fe,"ft-radio":le};G.styles=vu;Ee([(0,me.property)({type:String})],G.prototype,"filterId",void 0);Ee([(0,me.property)({type:Object})],G.prototype,"parent",void 0);Ee([(0,me.property)({type:Array,hasChanged:Te.hasChanged})],G.prototype,"options",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"multivalued",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"disabled",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"hideSelectedOptions",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"displayCount",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"preventNavigation",void 0);Ee([(0,me.property)({type:String})],G.prototype,"filter",void 0);Ee([(0,me.property)()],G.prototype,"filteredOptionsNumberAriaNotification",void 0);Ee([(0,Te.numberProperty)()],G.prototype,"displayedValuesMinimum",void 0);Ee([(0,me.query)(".ft-filter-level--container")],G.prototype,"container",void 0);Ee([(0,me.state)()],G.prototype,"radios",void 0);Ee([(0,me.state)()],G.prototype,"displayedPages",void 0);Ee([(0,me.state)()],G.prototype,"filteredOptions",void 0);var Uu=d(R()),$e=d(U()),mr=d(v());var Bu=d(Qt());var $u=d(R()),Je=d(v());var Bt={buttonsColor:Je.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Je.designSystemVariables.colorPrimary),buttonsZIndex:Je.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Je.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Je.FtCssVariableFactory.external(Je.designSystemVariables.colorSurface,"Design system")},Fu=$u.css`
|
|
1190
1212
|
.ft-snap-scroll {
|
|
1191
1213
|
box-sizing: border-box;
|
|
1192
1214
|
position: relative;
|
|
@@ -1221,7 +1243,7 @@
|
|
|
1221
1243
|
flex-wrap: nowrap;
|
|
1222
1244
|
align-items: flex-start;
|
|
1223
1245
|
justify-content: flex-start;
|
|
1224
|
-
gap: ${
|
|
1246
|
+
gap: ${Bt.gap};
|
|
1225
1247
|
}
|
|
1226
1248
|
|
|
1227
1249
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1264,11 +1286,11 @@
|
|
|
1264
1286
|
.ft-snap-scroll--next {
|
|
1265
1287
|
position: absolute;
|
|
1266
1288
|
display: flex;
|
|
1267
|
-
z-index: ${
|
|
1289
|
+
z-index: ${Bt.buttonsZIndex};
|
|
1268
1290
|
opacity: 1;
|
|
1269
1291
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1270
1292
|
${(0,Je.setVariable)(k.backgroundColor,"transparent")};
|
|
1271
|
-
${(0,Je.setVariable)(k.color,
|
|
1293
|
+
${(0,Je.setVariable)(k.color,Bt.buttonsColor)};
|
|
1272
1294
|
}
|
|
1273
1295
|
|
|
1274
1296
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1281,35 +1303,35 @@
|
|
|
1281
1303
|
top: 0;
|
|
1282
1304
|
left: -1px;
|
|
1283
1305
|
bottom: 0;
|
|
1284
|
-
background: linear-gradient(to right, ${
|
|
1306
|
+
background: linear-gradient(to right, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1285
1307
|
}
|
|
1286
1308
|
|
|
1287
1309
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1288
1310
|
top: -1px;
|
|
1289
1311
|
left: 0;
|
|
1290
1312
|
right: 0;
|
|
1291
|
-
background: linear-gradient(to bottom, ${
|
|
1313
|
+
background: linear-gradient(to bottom, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1292
1314
|
}
|
|
1293
1315
|
|
|
1294
1316
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1295
1317
|
top: 0;
|
|
1296
1318
|
right: -1px;
|
|
1297
1319
|
bottom: 0;
|
|
1298
|
-
background: linear-gradient(to left, ${
|
|
1320
|
+
background: linear-gradient(to left, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1299
1321
|
}
|
|
1300
1322
|
|
|
1301
1323
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1302
1324
|
left: 0;
|
|
1303
1325
|
right: 0;
|
|
1304
1326
|
bottom: -1px;
|
|
1305
|
-
background: linear-gradient(to top, ${
|
|
1327
|
+
background: linear-gradient(to top, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1306
1328
|
}
|
|
1307
1329
|
|
|
1308
1330
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1309
1331
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1310
1332
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1311
1333
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1312
|
-
background-color: ${
|
|
1334
|
+
background-color: ${Bt.colorSurface};
|
|
1313
1335
|
}
|
|
1314
1336
|
`;var ft=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},io=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ce=class extends mr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new mr.Debouncer(200),this.updateScrollDebouncer=new mr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Bu.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":mr.isSafari}),r=this.controls&&this.withScroll;return Uu.html`
|
|
1315
1337
|
<div part="container" class="${e}">
|
|
@@ -1335,7 +1357,7 @@
|
|
|
1335
1357
|
@click=${this.next}
|
|
1336
1358
|
></ft-button>
|
|
1337
1359
|
</div>
|
|
1338
|
-
`}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 io(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)}};ce.elementDefinitions={"ft-button":w};ce.styles=Fu;ft([(0,$e.property)({type:Boolean})],ce.prototype,"horizontal",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"hideScrollbar",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"controls",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"limitSize",void 0);ft([(0,$e.state)()],ce.prototype,"elements",void 0);ft([(0,$e.state)()],ce.prototype,"currentElement",void 0);ft([(0,$e.state)()],ce.prototype,"withScroll",void 0);ft([(0,$e.state)()],ce.prototype,"startReached",void 0);ft([(0,$e.state)()],ce.prototype,"endReached",void 0);ft([(0,$e.query)(".ft-snap-scroll--content")],ce.prototype,"contentSlot",void 0);var Vu=d(v());var Hu={"ft-snap-scroll":ce};(0,Vu.customElements)(Hu);var zu=d(R()),B=d(v());var
|
|
1360
|
+
`}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 io(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)}};ce.elementDefinitions={"ft-button":w};ce.styles=Fu;ft([(0,$e.property)({type:Boolean})],ce.prototype,"horizontal",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"hideScrollbar",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"controls",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"limitSize",void 0);ft([(0,$e.state)()],ce.prototype,"elements",void 0);ft([(0,$e.state)()],ce.prototype,"currentElement",void 0);ft([(0,$e.state)()],ce.prototype,"withScroll",void 0);ft([(0,$e.state)()],ce.prototype,"startReached",void 0);ft([(0,$e.state)()],ce.prototype,"endReached",void 0);ft([(0,$e.query)(".ft-snap-scroll--content")],ce.prototype,"contentSlot",void 0);var Vu=d(v());var Hu={"ft-snap-scroll":ce};(0,Vu.customElements)(Hu);var zu=d(R()),B=d(v());var Re={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},ju=[_n,B.noTextInputDefaultClearButton,zu.css`
|
|
1339
1361
|
:host {
|
|
1340
1362
|
display: flex;
|
|
1341
1363
|
max-height: 100%;
|
|
@@ -1375,8 +1397,8 @@
|
|
|
1375
1397
|
flex-shrink: 1;
|
|
1376
1398
|
flex-grow: 1;
|
|
1377
1399
|
word-break: break-word;
|
|
1378
|
-
color: ${
|
|
1379
|
-
font-size: ${
|
|
1400
|
+
color: ${Re.labelColor};
|
|
1401
|
+
font-size: ${Re.labelFontSize};
|
|
1380
1402
|
${(0,B.setVariable)(g.lineHeight,"22px")};
|
|
1381
1403
|
${(0,B.setVariable)(g.fontWeight,"bold")};
|
|
1382
1404
|
}
|
|
@@ -1389,8 +1411,8 @@
|
|
|
1389
1411
|
padding: 0 10px;
|
|
1390
1412
|
overflow: hidden;
|
|
1391
1413
|
height: 32px;
|
|
1392
|
-
transition: height ${
|
|
1393
|
-
margin ${
|
|
1414
|
+
transition: height ${Re.transitionDuration} ${Re.transitionTimingFunction},
|
|
1415
|
+
margin ${Re.transitionDuration} ${Re.transitionTimingFunction};
|
|
1394
1416
|
transition-delay: 500ms;
|
|
1395
1417
|
}
|
|
1396
1418
|
|
|
@@ -1403,15 +1425,15 @@
|
|
|
1403
1425
|
display: block;
|
|
1404
1426
|
width: 100%;
|
|
1405
1427
|
border-radius: 4px;
|
|
1406
|
-
border: 1px solid ${
|
|
1428
|
+
border: 1px solid ${Re.colorOutline};
|
|
1407
1429
|
padding: 4px;
|
|
1408
|
-
background-color: ${
|
|
1409
|
-
color: ${
|
|
1410
|
-
outline-color: ${
|
|
1430
|
+
background-color: ${Re.colorSurface};
|
|
1431
|
+
color: ${Re.colorOnSurface};
|
|
1432
|
+
outline-color: ${Re.colorPrimary};
|
|
1411
1433
|
}
|
|
1412
1434
|
|
|
1413
1435
|
input::placeholder {
|
|
1414
|
-
color: ${
|
|
1436
|
+
color: ${Re.colorOnSurfaceMedium};
|
|
1415
1437
|
}
|
|
1416
1438
|
|
|
1417
1439
|
input:placeholder-shown {
|
|
@@ -1427,7 +1449,7 @@
|
|
|
1427
1449
|
}
|
|
1428
1450
|
|
|
1429
1451
|
.ft-filter--separator {
|
|
1430
|
-
border-top: 1px solid ${
|
|
1452
|
+
border-top: 1px solid ${Re.colorOutline};
|
|
1431
1453
|
margin: 4px 10px;
|
|
1432
1454
|
}
|
|
1433
1455
|
|
|
@@ -1452,7 +1474,7 @@
|
|
|
1452
1474
|
slot:not([name]) {
|
|
1453
1475
|
display: none;
|
|
1454
1476
|
}
|
|
1455
|
-
`];var X=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},no=class extends CustomEvent{constructor(e){super("change",{detail:e})}},I=class extends(0,Y.withAnalytics)(Y.FtLitElement,ro){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.
|
|
1477
|
+
`];var X=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},no=class extends CustomEvent{constructor(e){super("change",{detail:e})}},I=class extends(0,Y.withAnalytics)(Y.FtLitElement,ro){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Y.Debouncer(300),this.changeDebouncer=new Y.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Y.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Y.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=Ut.messages.filterInputPlaceHolder(this.label);return yr.html`
|
|
1456
1478
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1457
1479
|
part="container">
|
|
1458
1480
|
${!this.label&&!e?null:yr.html`
|
|
@@ -1466,11 +1488,11 @@
|
|
|
1466
1488
|
</div>
|
|
1467
1489
|
${e&&!this.hideClearButton?yr.html`
|
|
1468
1490
|
<ft-button icon="close"
|
|
1469
|
-
aria-label="${
|
|
1491
|
+
aria-label="${Ut.messages.clearFilterButton()+" "+this.label}"
|
|
1470
1492
|
dense
|
|
1471
1493
|
@click=${()=>{this.clear(),this.focusOnFirstOption()}}
|
|
1472
1494
|
part="clear-button">
|
|
1473
|
-
${
|
|
1495
|
+
${Ut.messages.clearFilterButton()}
|
|
1474
1496
|
</ft-button>
|
|
1475
1497
|
`:null}
|
|
1476
1498
|
</div>
|
|
@@ -1526,7 +1548,7 @@
|
|
|
1526
1548
|
?displayCount=${this.displayCount}
|
|
1527
1549
|
.parent=${i}
|
|
1528
1550
|
.options=${r}
|
|
1529
|
-
.
|
|
1551
|
+
.displayedValuesMinimum=${this.displayedValuesMinimum}
|
|
1530
1552
|
@change=${this.onChange}
|
|
1531
1553
|
@go-back=${this.goBack}
|
|
1532
1554
|
@display-level=${this.onDisplayLevel}
|
|
@@ -1534,7 +1556,7 @@
|
|
|
1534
1556
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1535
1557
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1536
1558
|
></ft-filter-level>
|
|
1537
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,Y.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,Y.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,Y.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(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.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.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Y.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new no(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)}};I.elementDefinitions={"ft-button":w,"ft-filter-level":G,"ft-snap-scroll":ce,"ft-typography":j};I.styles=ju;X([(0,q.property)({type:String})],I.prototype,"id",void 0);X([(0,q.property)({type:String})],I.prototype,"label",void 0);X([(0,Y.jsonProperty)([])],I.prototype,"options",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"multivalued",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"disabled",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"raiseSelectedOptions",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"displayCount",void 0);X([(0,Y.numberProperty)()],I.prototype,"
|
|
1559
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,Y.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,Y.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,Y.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(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.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.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Y.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new no(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)}};I.elementDefinitions={"ft-button":w,"ft-filter-level":G,"ft-snap-scroll":ce,"ft-typography":j};I.styles=ju;X([(0,q.property)({type:String})],I.prototype,"id",void 0);X([(0,q.property)({type:String})],I.prototype,"label",void 0);X([(0,Y.jsonProperty)([])],I.prototype,"options",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"multivalued",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"disabled",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"raiseSelectedOptions",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"displayCount",void 0);X([(0,Y.numberProperty)()],I.prototype,"displayedValuesMinimum",void 0);X([(0,Y.jsonProperty)(void 0)],I.prototype,"filteredOptionsNumberAriaNotification",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"hideClearButton",void 0);X([(0,q.query)(".ft-filter--slot")],I.prototype,"slotElement",void 0);X([(0,q.query)(".ft-filter--container")],I.prototype,"container",void 0);X([(0,q.query)(".ft-filter--values")],I.prototype,"valuesContainer",void 0);X([(0,q.query)(".ft-filter--levels")],I.prototype,"levelsContainer",void 0);X([(0,q.state)()],I.prototype,"lastLevelHasHiddenvalues",void 0);X([(0,q.query)(".ft-filter--filter input")],I.prototype,"filterInput",void 0);X([(0,q.queryAll)(".ft-filter--levels ft-filter-level")],I.prototype,"levels",void 0);X([(0,q.state)()],I.prototype,"withScroll",void 0);X([(0,q.state)()],I.prototype,"filter",void 0);X([(0,q.state)()],I.prototype,"slideIn",void 0);X([(0,q.state)()],I.prototype,"slideOut",void 0);var jn=d(v()),gr=d(U()),qu=d(R()),Br=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},et=class extends jn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return qu.html`
|
|
1538
1560
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1539
1561
|
`}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}))}};et.elementDefinitions={};Br([(0,gr.property)({type:String})],et.prototype,"label",void 0);Br([(0,gr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);Br([(0,gr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);Br([(0,gr.property)({type:Object})],et.prototype,"subOptions",void 0);Br([(0,jn.jsonProperty)({})],et.prototype,"renderOption",void 0);Br([(0,gr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var Ku=d(v());var Wu={"ft-filter":I,"ft-filter-option":et};(0,Ku.customElements)(Wu);var xt=ct.build("designedSearchType"),qn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms"};var wi=d(U());var Ci=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends lt(Ct){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>xt.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>xt.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?ht.MANDATORY:ht.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(xt,qn)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return Gu.html`
|
|
1540
1562
|
<ft-filter
|
|
@@ -1578,11 +1600,11 @@
|
|
|
1578
1600
|
flex-shrink: 1;
|
|
1579
1601
|
flex-grow: 1;
|
|
1580
1602
|
word-break: break-word;
|
|
1581
|
-
font-size: ${
|
|
1603
|
+
font-size: ${Re.labelFontSize};
|
|
1582
1604
|
${(0,vr.setVariable)(g.fontWeight,"bold")};
|
|
1583
1605
|
}
|
|
1584
1606
|
|
|
1585
|
-
`;var rt=d(R());var oo=d(v());var
|
|
1607
|
+
`;var rt=d(R());var oo=d(v());var be=ct.build("designedSearchPeriodFilter"),Wn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var br=d(U());var Ht=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ke=class extends lt(Ct){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(be,Wn),this.addStore(A)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,n;return rt.html`
|
|
1586
1608
|
<div part="container">
|
|
1587
1609
|
<div part="header">
|
|
1588
1610
|
<ft-typography variant="overline" part="label" id="label">
|
|
@@ -1591,24 +1613,24 @@
|
|
|
1591
1613
|
</div>
|
|
1592
1614
|
<ft-radio-group @change=${s=>this.setPeriodFilter(s)} aria-labelledby="label">
|
|
1593
1615
|
<ft-radio value="anyTime" ?checked=${this.dateFilter===void 0||this.dateFilter.type===void 0}>
|
|
1594
|
-
${
|
|
1616
|
+
${be.messages.anyTime()}
|
|
1595
1617
|
</ft-radio>
|
|
1596
1618
|
${this.lessThanAWeek?rt.html`
|
|
1597
|
-
<ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${
|
|
1619
|
+
<ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${be.messages.LAST_WEEK()}
|
|
1598
1620
|
</ft-radio>`:rt.nothing}
|
|
1599
1621
|
${this.lessThanAMonth?rt.html`
|
|
1600
|
-
<ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${
|
|
1622
|
+
<ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${be.messages.LAST_MONTH()}
|
|
1601
1623
|
</ft-radio>`:rt.nothing}
|
|
1602
1624
|
${this.lessThanAQuarter?rt.html`
|
|
1603
1625
|
<ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_QUARTER"} value="LAST_QUARTER">
|
|
1604
|
-
${
|
|
1626
|
+
${be.messages.LAST_QUARTER()}
|
|
1605
1627
|
</ft-radio>`:rt.nothing}
|
|
1606
1628
|
${this.lessThanAYear?rt.html`
|
|
1607
|
-
<ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${
|
|
1629
|
+
<ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${be.messages.LAST_YEAR()}
|
|
1608
1630
|
</ft-radio>`:rt.nothing}
|
|
1609
1631
|
</ft-radio-group>
|
|
1610
|
-
</div>`}setPeriodFilter(e){var r,i;let n=Ri[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?
|
|
1611
|
-
<div role="group" class="ft-search-selected-facets--container" aria-label="${
|
|
1632
|
+
</div>`}setPeriodFilter(e){var r,i;let n=Ri[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?be.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};ke.elementDefinitions={"ft-radio-group":Me,"ft-radio":le,"ft-typography":j};ke.styles=Zu;Ht([(0,br.property)({type:String})],ke.prototype,"key",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAWeek",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAMonth",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAQuarter",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAYear",void 0);Ht([(0,oo.redux)({store:"search",selector:t=>t.request.metadataFilters})],ke.prototype,"filters",void 0);Ht([(0,oo.redux)({store:A.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],ke.prototype,"metadataDescriptors",void 0);Ht([(0,br.property)({attribute:!1})],ke.prototype,"dateFilter",void 0);var ed=d(v());var Ju={"ft-search-period-filter":ke};(0,ed.customElements)(Ju);var Vt=ct.build("designedSearchSelectedFacets"),td={filterGroupLabel:"Filters enabled",removeNamedFilterLabel:"Remove filter: {0}"};var Le=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends(0,z.withAriaNotification)(Xa(lt(Ct))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.filters)===null||e===void 0?void 0:e.some(i=>this.displayAllFilers||i.dateFilter||i.rangeFilter))||((r=this.facets)===null||r===void 0?void 0:r.some(i=>this.getSelectedValues(i).length>0))}get numberOfChips(){return(0,z.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.nothingToDisplayMessage={message:""},this.readOnly=!1,this.dense=!1,this.displayAllFilers=!1,this.neededSearchRequests=[zr.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new z.Debouncer(100),this.addI18nContext(xt,qn),this.addI18nContext(Vt,td),this.addI18nContext(be,Wn)}render(){var e,r;return this.hasSomethingToDisplay?ie.html`
|
|
1633
|
+
<div role="group" class="ft-search-selected-facets--container" aria-label="${Vt.messages.filterGroupLabel()}">
|
|
1612
1634
|
${this.displayAllFilers?this.renderAllValueFilters():this.renderFacets()}
|
|
1613
1635
|
${this.renderSearchScope()}
|
|
1614
1636
|
${(0,Hr.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
|
|
@@ -1619,7 +1641,7 @@
|
|
|
1619
1641
|
?dense=${this.dense}
|
|
1620
1642
|
?removable=${!this.readOnly}
|
|
1621
1643
|
hideIconTooltip accessibleLabelOnIcon
|
|
1622
|
-
iconLabel="${
|
|
1644
|
+
iconLabel="${Vt.messages.removeNamedFilterLabel(l)}"
|
|
1623
1645
|
label="${l}"
|
|
1624
1646
|
@icon-click=${p=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(y=>y!==n)),this.determineAndApplyFocus(p)}}
|
|
1625
1647
|
?multiLine=${this.multiLine}
|
|
@@ -1645,7 +1667,7 @@
|
|
|
1645
1667
|
?dense=${this.dense}
|
|
1646
1668
|
?removable=${!this.readOnly}
|
|
1647
1669
|
hideIconTooltip accessibleLabelOnIcon
|
|
1648
|
-
iconLabel="${
|
|
1670
|
+
iconLabel="${Vt.messages.removeNamedFilterLabel(e)}"
|
|
1649
1671
|
@icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
|
|
1650
1672
|
?multiLine=${this.multiLine}>
|
|
1651
1673
|
<span part="values">
|
|
@@ -1662,7 +1684,7 @@
|
|
|
1662
1684
|
?dense=${this.dense}
|
|
1663
1685
|
?removable=${!this.readOnly}
|
|
1664
1686
|
hideIconTooltip accessibleLabelOnIcon
|
|
1665
|
-
iconLabel="${
|
|
1687
|
+
iconLabel="${Vt.messages.removeNamedFilterLabel(e)}"
|
|
1666
1688
|
@icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setKeywordMatch(ht.OPTIONAL),this.determineAndApplyFocus(i)}}
|
|
1667
1689
|
?multiLine=${this.multiLine}>
|
|
1668
1690
|
<span part="values">
|
|
@@ -1672,7 +1694,7 @@
|
|
|
1672
1694
|
<ft-tooltip inline text="${e}"
|
|
1673
1695
|
part="tooltips tooltip-match-all-keywords">
|
|
1674
1696
|
${r}
|
|
1675
|
-
</ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):ie.nothing}renderDateFilter(e,r){let i=
|
|
1697
|
+
</ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):ie.nothing}renderDateFilter(e,r){let i=be.messages.period(be.messages[r.type]());return ie.html`
|
|
1676
1698
|
<ft-tooltip inline text="${i}"
|
|
1677
1699
|
part=" tooltips tooltip-search-period-filter">
|
|
1678
1700
|
<ft-chip
|
|
@@ -1681,14 +1703,14 @@
|
|
|
1681
1703
|
?removable=${!this.readOnly}
|
|
1682
1704
|
hideIconTooltip accessibleLabelOnIcon
|
|
1683
1705
|
label="${i}"
|
|
1684
|
-
iconLabel="${
|
|
1706
|
+
iconLabel="${Vt.messages.removeNamedFilterLabel(i)}"
|
|
1685
1707
|
@icon-click=${n=>{var s;(s=this.stateManager)===null||s===void 0||s.removeDateFilter(e),this.determineAndApplyFocus(n)}}
|
|
1686
1708
|
?multiLine=${this.multiLine}>
|
|
1687
1709
|
<span part="values">
|
|
1688
|
-
${
|
|
1710
|
+
${be.messages[r.type]()}
|
|
1689
1711
|
</span>
|
|
1690
1712
|
</ft-chip>
|
|
1691
|
-
</ft-tooltip>`}renderRangeFilter(e,r){let i=
|
|
1713
|
+
</ft-tooltip>`}renderRangeFilter(e,r){let i=be.messages.period(be.messages.customPeriod(r.from,r.to));return ie.html`
|
|
1692
1714
|
<ft-tooltip inline text="${i}" part=" tooltips tooltip-search-period-filter">
|
|
1693
1715
|
<ft-chip
|
|
1694
1716
|
part="ft-search-selected-facets ft-search-selected-facet-period-filter"
|
|
@@ -1696,14 +1718,14 @@
|
|
|
1696
1718
|
?dense=${this.dense}
|
|
1697
1719
|
?removable=${!this.readOnly}
|
|
1698
1720
|
hideIconTooltip accessibleLabelOnIcon
|
|
1699
|
-
iconLabel="${
|
|
1721
|
+
iconLabel="${Vt.messages.removeNamedFilterLabel(i)}"
|
|
1700
1722
|
@icon-click=${n=>{var s;(s=this.stateManager)===null||s===void 0||s.removeRangeFilter(e),this.determineAndApplyFocus(n)}}
|
|
1701
1723
|
?multiLine=${this.multiLine}>
|
|
1702
1724
|
<span part="values">
|
|
1703
|
-
${
|
|
1725
|
+
${be.messages.CUSTOM()}
|
|
1704
1726
|
</span>
|
|
1705
1727
|
</ft-chip>
|
|
1706
|
-
</ft-tooltip>`}updated(e){var r,i,n,s;if(super.updated(e),e.get("filters")){let o=(n=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&n!==void 0?n:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let o=(s=(i=this.facets)===null||i===void 0?void 0:i.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&s!==void 0?s:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let o=e.get("searchInDocumentTitlesOnly");(!o&&this.searchInDocumentTitlesOnly||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let o=e.get("keywordMatch");(!o&&this.keywordMatch||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ee.elementDefinitions={"ft-chip":V,"ft-tooltip":K};ee.styles=mo;
|
|
1728
|
+
</ft-tooltip>`}updated(e){var r,i,n,s;if(super.updated(e),e.get("filters")){let o=(n=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&n!==void 0?n:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let o=(s=(i=this.facets)===null||i===void 0?void 0:i.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&s!==void 0?s:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let o=e.get("searchInDocumentTitlesOnly");(!o&&this.searchInDocumentTitlesOnly||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let o=e.get("keywordMatch");(!o&&this.keywordMatch||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ee.elementDefinitions={"ft-chip":V,"ft-tooltip":K};ee.styles=mo;Le([(0,xr.property)({type:Boolean})],ee.prototype,"displayLabel",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"forceTooltip",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"multiLine",void 0);Le([(0,z.numberProperty)()],ee.prototype,"hierarchicalValueTruncatingLevel",void 0);Le([(0,z.redux)({store:"search"})],ee.prototype,"facets",void 0);Le([(0,z.redux)({store:"search",selector:bn})],ee.prototype,"searchInDocumentTitlesOnly",void 0);Le([(0,z.redux)({store:"search",selector:xn})],ee.prototype,"keywordMatch",void 0);Le([(0,z.redux)({store:"search",selector:t=>t.request.metadataFilters})],ee.prototype,"filters",void 0);Le([(0,z.redux)({store:"search",selector:t=>t.request.scope})],ee.prototype,"scope",void 0);Le([(0,z.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ee.prototype,"selectedFacetsAriaNotification",void 0);Le([(0,z.jsonProperty)({message:""})],ee.prototype,"nothingToDisplayMessage",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"readOnly",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"dense",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"displayAllFilers",void 0);var rd={"ft-search-selected-facets":ee};(0,id.customElements)(rd);})();
|
|
1707
1729
|
/*! Bundled license information:
|
|
1708
1730
|
|
|
1709
1731
|
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
|