const e="The State Adapter allows injecting the `window` state into the payload of various events, emitted upon connecting to the DOM. Window state can be set, for example, using the `push-state` method.\n\nSince the State Adapter allows to emit events upon landing to the new page, it is often used in the context of plugin navigation, as explained in the documentation's dedicated section.\n",t="Lo State Adapter consente di iniettare lo stato della `window` nel payload di vari eventi, emessi al momento della connessione al DOM. Lo stato della window può essere impostato, ad esempio, utilizzando il metodo `push-state`.\n\nPoiché lo State Adapter consente di emettere eventi al momento del passaggio a una nuova pagina, viene spesso utilizzato nel contesto della navigazione dei plugin, come spiegato nella sezione dedicata della documentazione.\n",i={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/state_adapter",label:"State Adapter",description:"Allows to inject `window.history` state into the payload of arbitrary events. When landing onto a page, if `window.history.state` contains the key picked by the property `Initial key` then the content is reflected as events into the eventBus using the `Configuration map` as mapping",descriptionLong:{en:e,it:t},example:JSON.stringify({tag:"bk-state-adapter",properties:{initKey:"__INITIAL_KEY__",configMap:{__KEY_1__:"loading-data"}}}),type:"adapter",properties:{debounce:{type:"number",default:500,__mia_configuration:{attribute:!0,label:"Debounce",description:"Delay for initial event emission",priority:"high"}},initKey:{type:"string",default:"__BK_INIT",__mia_configuration:{attribute:!0,label:"Initial key",description:"Key for events to emit once upon connection",priority:"high"}},configMap:{type:"object",additionalProperties:{type:"string"},__mia_configuration:{attribute:!1,label:"Configuration map",description:"Map to configure the adapter casting object properties to events labels",priority:"high"}}}};var n=i;export{n as default};
