const e=`The URL Parameters Adapter allows to emit events upon connecting to the DOM, based on the value of the URL.

One common way of using the URL Parameters Adapter component is to fetch only one data element from a collection, retrieving its ID from the URL, as explained in the documentation's Plugin Navigation dedicated section.
`,t=`L'URL Parameters Adapter consente di emettere eventi al momento della connessione al DOM, in base al valore dell'URL.

Un modo comune di usare il componente URL Parameters Adapter è quello di recuperare un solo elemento da una collezione, recuperando il suo ID dall'URL, come spiegato nella sezione dedicata alla Navigazione del Plugin della documentazione.
`,a={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/url_parameters_adapter",label:"URL Parameters Adapter",description:"Allows to emit events upon connecting, based on the value of the URL. 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-url-parameters",properties:{urlMask:"/order-details/:_id"}}),type:"adapter",properties:{waitTime:{type:"number",default:500,__mia_configuration:{attribute:"wait-time",label:"Delay",description:"Delay time before initialization event, in milliseconds",priority:"high"}},urlMask:{default:"",__mia_configuration:{attribute:"url-mask",label:"URL Mask",description:"URL mask to apply to the current path to extract dynamic parameters",priority:"high"},oneOf:[{type:"string"},{type:"object",properties:{pathname:{type:"string",__mia_configuration:{label:"Pathname mask",description:"URL Mask to apply to the current window location pathname"}},search:{type:"string",__mia_configuration:{label:"Search mask",description:"URL Mask to apply to the current window location search string"}}}}]},eventLabel:{type:"string",default:"change-query",__mia_configuration:{attribute:"event-label",label:"Event label",description:"Label of the event that will be dispatched as result",priority:"high"}},redirectUrl:{type:"string",default:"",__mia_configuration:{attribute:"redirect-url",label:"Redirect URL",description:"Optional parameter that contains the url to redirect when urlMask does not completely match",priority:"high"}},excludeWildcards:{type:"boolean",default:!1,__mia_configuration:{attribute:"exclude-wildcards",label:"Exclude Wildcards",description:"Whether or not matches from wildcards (`(.*)`) should be excluded from event payload",priority:"high"}}}};var i=a;export{i as default};
