{"version":3,"sources":["PNotifyDesktop.js"],"names":["_typeof","Symbol","iterator","obj","constructor","prototype","_extends","Object","assign","target","i","arguments","length","source","key","hasOwnProperty","call","PNotifyDesktop","PNotify","_this","this","__esModule","permission","_notify","title","options","onclick","onclose","window","notice","Notification","addEventListener","navigator","mozNotification","createNotification","body","get","show","webkitNotifications","Component","methods","initModule","_this2","set","observe","value","_animatingClass","_oldAnimation","oldValue","undefined","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":"AAAA,aAEA,IAAIA,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAElQG,SAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,OAAOF,UAAUU,eAAeC,KAAKH,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,IAAY,OAAOL,GAGnPQ,eAAiB,SAAUC,GAG7B,IAAIC,EAAQC,KAEZF,EAAUA,GAAWA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