{"version":3,"sources":["PNotifyDesktop.js"],"names":["global","factory","define","amd","exports","require","mod","PNotify","PNotifyDesktop","this","_PNotify","Object","defineProperty","value","obj","_PNotify2","__esModule","default","_typeof","Symbol","iterator","constructor","prototype","_extends","assign","target","i","arguments","length","source","key","hasOwnProperty","call","permission","_notify","title","options","onclick","onclose","window","notice","Notification","addEventListener","navigator","mozNotification","createNotification","body","undefined","get","show","webkitNotifications","Component","methods","initModule","_this","set","observe","_animatingClass","_oldAnimation","oldValue","modules","Desktop","checkPermission","animation","addModuleClass","genNotice","autoDisplay","update","removeModuleClass","beforeOpen","_moduleIsNoticeOpen","beforeClose","close","_icon","tag","_tag","Math","round","random","requireInteraction","icon","apply","desktopNotice","fire","_desktop","cancel","add_css","name","node","style","document","createElement","id","textContent","head","appendChild","component","_observers","pre","blankObject","post","_handlers","_bind","root","store","_state","_notice","_options","defaults","data","getElementById","_fragment","c","noop","m","p","u","d","anchor","k","len","destroy","detach","create","callAll","fns","shift","dispatchObservers","group","changed","newState","oldState","newValue","callbacks","callback","__calling","eventName","handlers","slice","defer","push","init","index","indexOf","splice","on","handler","_set","_lock","_beforecreate","_oncreate","_aftercreate","teardown","dirty","_differs","_recompute","_mount","_unmount","a","b","desktop","fallback","text","requestPermission"],"mappings":"CAAA,SAAWA,EAAQC,GACjB,GAAsB,mBAAXC,QAAyBA,OAAOC,IACzCD,OAAO,kBAAmB,UAAW,WAAYD,QAC5C,GAAuB,oBAAZG,QAChBH,EAAQG,QAASC,QAAQ,kBACpB,CACL,IAAIC,KAGJL,EAAQK,EAAaN,EAAOO,SAC5BP,EAAOQ,eAAiBF,GAV5B,CAYGG,KAAM,SAAUL,EAASM,GAC1B,aAEAC,OAAOC,eAAeR,EAAS,cAC7BS,OAAO,IAGT,IAEgCC,EAF5BC,GAE4BD,EAFOJ,IAGvBI,EAAIE,WAAaF,GAC7BG,QAASH,GAIb,IAAII,EAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUN,GAC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