UNPKG

plumes

Version:

Flying-fast Metro future vision components

3 lines (2 loc) 976 B
!function(){"use strict";window.Ractive.controller("pl-notifications-panel",function(i,t,n,o,e){var a=null,c=i({plName:"pl-notifications-panel",data:$.extend(!0,{notifications:[],dark:!1,texts:{empty:"No new notification.",emails:"emails"},emailstoggle:function(i,t){i.original.stopPropagation();var n=c.get("emails-toggle");n&&n(i,t),a&&a.update()}},t),pushNotification:function(i,t,n,o,e,a){this.unshift("notifications",{picture:n,time:t,content:i,buttons:o||null,args:e||null,viewed:a||!1})}});window.Ractive.Plumes.bindUses(c,["section","emails"]),window.Ractive.Plumes.bindTexts(c),c.on("clickButtonAction",function(i){i.original.stopPropagation();var t=c.get("buttonaction");t&&t(i.context.action,i)}),t.openitem&&c.on("openitem",function(i){t.openitem(i),i.original.stopPropagation()}),c.observe("notifications",function(){a&&a.update()}),c.require().then(function(){a=c.findChild("name","pl-scrolls"),e()})})}(); //# sourceMappingURL=pl-notifications-panel.min.js.map