"use strict";(self.webpackChunkdami=self.webpackChunkdami||[]).push([[9350],{79350:(i,t,n)=>{n.r(t),n.d(t,{default:()=>o});var s=n(53416),a=n(93150),e=n.n(a);async function o({data:i,id:t}){if(!await e().permissions.contains({permissions:["notifications"]})){const i=new Error("no-permission");throw i.data={permission:"notifications"},i}const n={title:i.title,message:i.message,iconUrl:e().runtime.getURL("logo.png")};return["iconUrl","imageUrl"].forEach((t=>{const s=i[t];s&&s.startsWith("http")&&(n[t]=s)})),await e().notifications.create((0,s.x0)(),{...n,type:n.imageUrl?"image":"basic"}),{data:"",nextBlockId:this.getBlockConnections(t)}}}}]);