import{l as t}from"./locale-wDcg0qDg.js";const e=`The Notifications displays toast notifications about events happening on the EventBus according to the maps provided as properties.

Whenever a notification is received of a successful or failed HTTP request, the Notifications looks for the triggering event of the request within the keys of its \`successEventMap\` map or its \`errorEventMap\` map. If the keys is found, the corresponding value is used to populate the state of a toast notification which is then rendered.

It is also possible to show notifications whenever a specified request is received - that is, whenever an event with a certain label is listened.
`,i=`La Notifications mostra le notifiche toast rispettive agli eventi che si verificano sull'EventBus, in base alle mappe fornite come proprietà.

Ogni volta che viene ricevuta una notifica di una richiesta HTTP riuscita o fallita, Notifications cerca l'evento scatenante della richiesta all'interno delle chiavi della sua mappa \`successEventMap\` o della sua mappa \`errorEventMap\`. Se la chiave viene trovata, il valore corrispondente viene utilizzato per popolare lo stato di una notifica toast, che viene poi visualizzata. 

È anche possibile mostrare le notifiche ogni volta che viene ricevuta una richiesta specifica, cioè ogni volta che viene ascoltato un evento con una certa etichetta.
`,o={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/notifications",type:"layout",description:"Displays toast notifications about events happening on the EventBus according to the maps provided as props",descriptionLong:{en:e,it:i},label:"Notifications",example:JSON.stringify({tag:"bk-notifications",properties:{successEventMap:{"create-data":{title:{en:"Data was created correctly!",it:"Dato creato correttamente!"},content:{en:"The data has been created correctly",it:"I dati sono stati creati correttamente"},type:"success"}}}}),definitions:{notification:{type:"object",additionalProperties:{type:"object",properties:{content:{title:"Content",description:"message of the notification",__mia_configuration:{"schema-hint":"localized-text"}},title:{title:"Title",description:"title of the notification",__mia_configuration:{"schema-hint":"localized-text"}},type:{title:"Type",type:"string",enum:["success","info","error","warning"],__mia_configuration:{enumLabels:{success:"Success",info:"Info",error:"Error",warning:"Warning"}}}}}}},properties:{customEventMap:{__mia_configuration:{attribute:!1,label:"Custom Events",description:"map containing the labels of any event that should be notified and the related `notificationProps`",group:"content"},$ref:"#/definitions/notification"},successEventMap:{__mia_configuration:{priority:"high",attribute:!1,label:"Success Events",description:"map containing the labels of any event that triggered a `success` that should be notified with the related `notificationproperties`",group:"content"},$ref:"#/definitions/notification"},errorEventMap:{__mia_configuration:{priority:"high",attribute:!1,label:"Error Events",description:"map containing the labels of any event that triggered a `error` that should be notified with the related `notificationproperties`",group:"content"},$ref:"#/definitions/notification"},rootElementSelectors:{type:"string",__mia_configuration:{attribute:"root-element-selectors",label:"Container selector",description:"Selector to specify where the notification should be appended",group:"appearance"}},duration:{type:"number",__mia_configuration:{attribute:!0,priority:"high",label:"Duration",description:"Lingering time for the notification in seconds",group:"appearance"}},location:{__mia_configuration:{priority:"high",description:"Corner location where the notification should be displayed",label:"Location",enumLabels:{topRight:"Top Right",topLeft:"Top Left",bottomRight:"Bottom Right",bottomLeft:"Bottom Left"},group:"appearance"},type:"string",default:"topRight",enum:["topRight","topLeft","bottomRight","bottomLeft"]},customLocale:{__mia_configuration:{attribute:!1,label:"Custom Locale",description:"Custom localized texts shown as component labels",priority:"low",group:"content"},type:"object",properties:{infoTitle:t("Title Info Notification"),successTitle:t("Title Success Notification"),warningTitle:t("Title Warning Notification"),errorTitle:t("Title Error Notification")}}}};var a=o;export{a as default};
