Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/js/ui/notification-manager/dist/
Upload File :
Current File : /var/www/homesaver/www/bitrix/js/ui/notification-manager/dist/notification-manager.bundle.min.js

this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};(function(t,e,i,o,n,s){"use strict";class r{static getV4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=Math.random()*16|0,i=t=="x"?e:e&3|8;return i.toString(16)}))}}class a{constructor(t){this.setUid(t.id);this.setCategory(t.category);this.setTitle(t.title);this.setText(t.text);this.setIcon(t.icon);this.setInputPlaceholderText(t.inputPlaceholderText);this.createButtons(t.button1Text,t.button2Text)}static encodeIdToUid(t){return t+a.SEPARATOR+r.getV4()}static decodeUidToId(t){let e=t.split(a.SEPARATOR);e.pop();return e.join()}setUid(t){if(!o.Type.isStringFilled(t)){throw new Error(`NotificationManager: Cannot create a notification without an ID`)}this.uid=a.encodeIdToUid(t)}getUid(){return this.uid}getId(){return a.decodeUidToId(this.uid)}setCategory(t){this.category=o.Type.isStringFilled(t)?t:""}getCategory(){return this.category}setTitle(t){this.title=o.Type.isStringFilled(t)?t:""}getTitle(){return this.title}setText(t){this.text=o.Type.isStringFilled(t)?t:""}getText(){return this.text}setIcon(t){this.icon=o.Type.isStringFilled(t)?t:""}getIcon(){return this.icon}setInputPlaceholderText(t){if(o.Type.isString(t)){this.inputPlaceholderText=t}}getInputPlaceholderText(){return this.inputPlaceholderText}createButtons(t,e){if(this.getInputPlaceholderText()){this.setButton1Text(o.Loc.getMessage("UI_NOTIFICATION_MANAGER_REPLY"));this.setButton2Text(o.Loc.getMessage("UI_NOTIFICATION_MANAGER_CLOSE"))}else{this.setButton1Text(t);this.setButton2Text(e)}}setButton1Text(t){if(o.Type.isStringFilled(t)){this.button1Text=t}}getButton1Text(){return this.button1Text}setButton2Text(t){if(o.Type.isStringFilled(t)){this.button2Text=t}}getButton2Text(){return this.button2Text}}a.SEPARATOR="u1F9D1";class c extends a{setUid(t){if(!o.Type.isStringFilled(t)){throw new Error(`NotificationManager: Cannot create a notification without an ID`)}this.uid=t}}class l{getModuleId(){return"ui"}handleNotify(t,e,i){const o=t.notification;if(!o){throw new Error("NotificationManager: Incorrect notification format")}const n=o;const s=new c(n);_.sendNotification(s)}}class d{static isSupportedDesktopApp(){return d.isBitrixDesktop()&&d.geApiVersion()>=67}static isBitrixDesktop(){return navigator.userAgent.toLowerCase().includes("bitrixdesktop")}static geApiVersion(){if(typeof BXDesktopSystem==="undefined"){return 0}return Number(BXDesktopSystem.GetProperty("versionParts")[3])}static isMainTab(){if(typeof BXDesktopSystem==="undefined"){return false}return typeof BX.desktop!=="undefined"&&BX.desktop.apiReady}static isMac(){return o.Browser.isMac()}static isLinux(){return o.Browser.isLinux()}static isWindows(){return o.Browser.isWin()||!o.Browser.isMac()&&!o.Browser.isLinux()}static isRunningOnAnyDevice(){return BXIM&&BXIM.desktopStatus}static checkRunningOnThisDevice(){return new Promise((t=>{const e=()=>{t(true)};const i=()=>{t(false)};BX.desktopUtils.runningCheck(e,i)}))}}class u{static isSupportedBrowser(){return u.isChrome()||u.isFirefox()||u.isSafari()}static isNativeNotificationAllowed(){return window.Notification&&window.Notification.permission&&window.Notification.permission.toLowerCase()==="granted"}static isSafari(){if(u.isChrome()){return false}if(!navigator.userAgent.toLowerCase().includes("safari")){return false}return!u.isSafariBased()}static isSafariBased(){if(!navigator.userAgent.toLowerCase().includes("applewebkit")){return false}return navigator.userAgent.toLowerCase().includes("yabrowser")||navigator.userAgent.toLowerCase().includes("yaapp_ios_browser")||navigator.userAgent.toLowerCase().includes("crios")}static isChrome(){return navigator.userAgent.toLowerCase().includes("chrome")}static isFirefox(){return navigator.userAgent.toLowerCase().includes("firefox")}}class g extends i.BaseEvent{static getTypes(){return[g.CLICK,g.ACTION,g.CLOSE]}static isSupported(t){return g.getTypes().includes(t)}}g.CLICK="click";g.ACTION="action";g.CLOSE="close";class p{static getTypes(){return[p.BUTTON_1,p.BUTTON_2,p.USER_INPUT]}static isSupported(t){return p.getTypes().includes(t)}}p.BUTTON_1="button_1";p.BUTTON_2="button_2";p.USER_INPUT="user_input";class f{static getTypes(){return[f.CLOSED_BY_USER,f.EXPIRED]}static isSupported(t){return f.getTypes().includes(t)}}f.CLOSED_BY_USER="closed_by_user";f.EXPIRED="expired";class T extends i.EventEmitter{constructor(t={}){super();if(o.Type.isStringFilled(t.eventNamespace)){this.setEventNamespace(t.eventNamespace)}}convertNotificationToNative(t){throw new Error("convertNotificationToNative() method must be implemented.")}sendNotification(t){throw new Error("sendNotification() method must be implemented.")}canSendNotification(t){return true}notify(t){if(!this.canSendNotification(t)){return}const e=this.convertNotificationToNative(t);this.sendNotification(e)}notificationClick(t=""){const e={data:{id:a.decodeUidToId(t)}};this.emit(g.CLICK,new g(e))}notificationAction(t="",e="",i=null){if(!p.isSupported(e)){console.warn(`NotificationManager: Unknown notification action "${e}".`)}const o={data:{id:a.decodeUidToId(t),action:e}};if(i){o.data.userInput=i}this.emit(g.ACTION,new g(o))}notificationClose(t="",e=""){if(!f.isSupported(e)){console.warn(`NotificationManager: Unknown notification close reason "${e}".`)}const i={data:{id:a.decodeUidToId(t),reason:e}};this.emit(g.CLOSE,new g(i))}}T.NOTIFICATION_LIFETIME=144e5;class h extends T{constructor(t={}){super(t);if(this.getEventNamespace()){this.registerEvents()}}convertNotificationToNative(t){throw new Error("convertNotificationToNative() method must be implemented.")}canSendNotification(t){return d.isMainTab()||!(t instanceof c)}sendNotification(t){BXDesktopSystem.NotificationShow(t)}registerEvents(){window.addEventListener("BXNotificationClick",(t=>this.onNotificationClick(t)));window.addEventListener("BXNotificationAction",(t=>this.onNotificationAction(t)));window.addEventListener("BXNotificationDismissed",(t=>this.onNotificationClose(t)))}onNotificationClick(t){const[e]=t.detail;BXDesktopSystem.SetActiveTab();this.notificationClick(e)}onNotificationAction(t){const[e,i,o]=t.detail;this.notificationAction(e,i,o)}onNotificationClose(t){const[e,i]=t.detail;this.notificationClose(e,i)}}class N extends h{convertNotificationToNative(t){if(!o.Type.isStringFilled(t.getId())){throw new Error(`NotificationManager: You cannot send a notification without an ID.`)}const e=t.getUid();BXDesktopSystem.NotificationCreate(e);if(o.Type.isStringFilled(t.getTitle())){BXDesktopSystem.NotificationAddText(e,t.getTitle())}if(o.Type.isStringFilled(t.getText())){BXDesktopSystem.NotificationAddText(e,t.getText())}if(o.Type.isStringFilled(t.getIcon())){BXDesktopSystem.NotificationAddImage(e,t.getIcon())}if(t.getInputPlaceholderText()&&o.Type.isString(t.getInputPlaceholderText())){BXDesktopSystem.NotificationAddInput(e,t.getInputPlaceholderText(),p.USER_INPUT)}if(t.getButton1Text()&&o.Type.isStringFilled(t.getButton1Text())){BXDesktopSystem.NotificationAddAction(e,t.getButton1Text(),p.BUTTON_1)}if(t.getButton2Text()&&o.Type.isStringFilled(t.getButton2Text())){BXDesktopSystem.NotificationAddAction(e,o.Loc.getMessage("UI_NOTIFICATION_MANAGER_CLOSE"),p.BUTTON_2)}BXDesktopSystem.NotificationSetExpiration(e,T.NOTIFICATION_LIFETIME);return e}addTextToNotification(t,e){if(e.trim()===""){return}const i=44;if(e.length<=i){BXDesktopSystem.NotificationAddText(t,e);return}const o=" ";let n="";let s=e.split(o);while(s.length>0){if(n.length+s[0].length+1>i){break}n+=s.shift()+o}BXDesktopSystem.NotificationAddText(t,n);let r=s.join(o);if(r!==""){BXDesktopSystem.NotificationAddText(t,r)}}}class B extends h{convertNotificationToNative(t){if(!o.Type.isStringFilled(t.getId())){throw new Error(`NotificationManager: You cannot send a notification without an ID.`)}const e=t.getUid();BXDesktopSystem.NotificationCreate(e);if(o.Type.isStringFilled(t.getTitle())){BXDesktopSystem.NotificationAddText(e,t.getTitle())}if(o.Type.isStringFilled(t.getText())){BXDesktopSystem.NotificationAddText(e,t.getText())}if(o.Type.isStringFilled(t.getIcon())){BXDesktopSystem.NotificationAddImage(e,t.getIcon())}if(t.getInputPlaceholderText()&&o.Type.isString(t.getInputPlaceholderText())){BXDesktopSystem.NotificationAddInput(e,t.getInputPlaceholderText(),p.USER_INPUT)}if(t.getButton1Text()&&o.Type.isStringFilled(t.getButton1Text())){BXDesktopSystem.NotificationAddAction(e,t.getButton1Text(),p.BUTTON_1)}if(t.getButton2Text()&&o.Type.isStringFilled(t.getButton2Text())){BXDesktopSystem.NotificationAddAction(e,t.getButton2Text(),p.BUTTON_2)}BXDesktopSystem.NotificationSetExpiration(e,T.NOTIFICATION_LIFETIME);return e}}class y extends h{convertNotificationToNative(t){if(!o.Type.isStringFilled(t.getId())){throw new Error(`NotificationManager: You cannot send a notification without an ID.`)}const e=t.getUid();BXDesktopSystem.NotificationCreate(e);if(o.Type.isStringFilled(t.getTitle())){BXDesktopSystem.NotificationAddText(e,t.getTitle())}if(o.Type.isStringFilled(t.getText())){BXDesktopSystem.NotificationAddText(e,t.getText())}if(o.Type.isStringFilled(t.getIcon())){BXDesktopSystem.NotificationAddImage(e,t.getIcon())}if(t.getInputPlaceholderText()&&o.Type.isString(t.getInputPlaceholderText())){BXDesktopSystem.NotificationAddInput(e,t.getInputPlaceholderText(),p.USER_INPUT)}if(t.getButton1Text()&&o.Type.isStringFilled(t.getButton1Text())){BXDesktopSystem.NotificationAddAction(e,t.getButton1Text(),p.BUTTON_1)}if(t.getButton2Text()&&o.Type.isStringFilled(t.getButton2Text())){BXDesktopSystem.NotificationAddAction(e,t.getButton2Text(),p.BUTTON_2)}BXDesktopSystem.NotificationSetExpiration(e,T.NOTIFICATION_LIFETIME);return e}}class I extends T{convertNotificationToNative(t){const e={title:t.getTitle()?t.getTitle():"",options:{body:"",tag:t.getUid(),renotify:true},onclick:e=>{e.preventDefault();window.focus();this.notificationClick(t.getUid())}};if(o.Type.isStringFilled(t.getIcon())){e.options.icon=t.getIcon()}if(o.Type.isStringFilled(t.getText())){e.options.body=t.getText()}return e}sendNotification(t){if(!d.isRunningOnAnyDevice()){return}d.checkRunningOnThisDevice().then((e=>{if(e){return}const i=new window.Notification(t.title,t.options);i.onclick=t.onclick}))}}class x extends BX.UI.Notification.Action{constructor(t,e){super(t,e);this.setButtonClass(e.buttonType)}getContainer(){if(this.container!==null){return this.container}let t={text:this.getTitle()};if(o.Type.isFunction(this.events.click)){t.onclick=(t,e)=>{e.stopPropagation();this.events.click(t,e)}}const e=new s.Button(t);e.removeClass("ui-btn");e.addClass(x.BASE_BUTTON_CLASS);e.addClass(this.getButtonClass());this.container=e.getContainer();return this.container}static getButtonTypes(){return[x.TYPE_ACCEPT]}static isSupportedButtonType(t){return x.getButtonTypes().includes(t)}setButtonClass(t){this.buttonClass=x.isSupportedButtonType(t)?x.BASE_BUTTON_CLASS+"-"+t:""}getButtonClass(){return this.buttonClass}}x.BASE_BUTTON_CLASS="ui-notification-manager-browser-button";x.TYPE_ACCEPT="accept";let S=t=>t,w,C,m,E,A,v;class b extends BX.UI.Notification.Balloon{constructor(t){super(t);this.userInputContainerNode=null;this.userInputNode=null}setActions(t){this.actions=[];if(o.Type.isArray(t)){t.forEach((t=>this.actions.push(new x(this,t))))}}getContainer(){if(this.container!==null){return this.container}const t=()=>this.handleMouseEnter();const e=()=>this.handleMouseLeave();this.container=o.Tag.render(w||(w=S`
			<div
				class="ui-notification-manager-browser-balloon"
				onmouseenter="${0}"
				onmouseleave="${0}"
			>
				${0}
			</div>
		`),t,e,this.render());return this.container}render(){this.animationClassName="ui-notification-manager-browser-balloon-animate";const t=o.Type.isNumber(this.getWidth())?this.getWidth()+"px":this.getWidth();return o.Tag.render(C||(C=S`
			<div
				class="ui-notification-manager-browser-content"
				style="width: ${0}"
			>
				<div
					class="ui-notification-manager-browser-message"
					onclick="${0}"
					oncontextmenu="${0}"
				>
					${0}
					<div class="ui-notification-manager-browser-column">
						${0}
						${0}
						${0}
						${0}
					</div>
				</div>
				${0}
			</div>
		`),t,this.handleContentClick.bind(this),this.handleContextClick.bind(this),this.getIconNode(),this.getTitleNode(),this.getTextNode(),this.getUserInputContainerNode(),this.getActionsNode(),this.getCloseButtonNode())}getTitleNode(){if(!o.Type.isStringFilled(this.getData().title)){return""}const t=o.Dom.create({tag:"span",attrs:{className:"ui-notification-manager-browser-title"},text:this.getData().title}).outerHTML;return o.Tag.render(m||(m=S`<div class="ui-notification-manager-browser-title">${0}<div>`),t)}getTextNode(){if(!o.Type.isStringFilled(this.getData().text)){return""}return o.Dom.create({tag:"div",attrs:{className:"ui-notification-manager-browser-text"},text:this.getData().text})}getIconNode(){if(!o.Type.isStringFilled(this.getData().icon)){return""}return o.Dom.create({tag:"div",className:"ui-notification-manager-browser-column",children:[o.Dom.create({tag:"img",style:{height:"44px",width:"44px"},attrs:{className:"ui-notification-manager-browser-icon",src:this.getData().icon}})]})}getActionsNode(){const t=this.getActions().map((t=>t.getContainer()));if(!o.Type.isArrayFilled(t)){return""}return o.Tag.render(E||(E=S`
			<div class="ui-notification-manager-browser-actions">
				${0}
			</div>
		`),t)}getUserInputContainerNode(){if(!o.Type.isString(this.getData().inputPlaceholderText)){return""}const t=t=>t.stopPropagation();const e=o.Text.encode(this.getId());const i=o.Text.encode(this.getData().inputPlaceholderText);return o.Tag.render(A||(A=S`
			<div class="ui-notification-manager-browser-actions">
				<div class="ui-notification-manager-browser-column ui-notification-manager-browser-column-wide">
					<div class="ui-notification-manager-browser-row">
						<button
							class="ui-notification-manager-browser-button"
							id="ui-notification-manager-browser-reply-toggle-${0}"
							onclick="${0}"
						>
							<span class="ui-btn-text">${0}</span>
						</button>
					</div>
					<div
						class="ui-notification-manager-browser-row ui-notification-manager-browser-row-reply"
						id="ui-notification-manager-browser-reply-container-${0}"
					>
						<div class="ui-notification-manager-browser-reply-wrapper">
							<input
								type="text"
								class="ui-notification-manager-browser-input-reply"
								placeholder="${0}"
								id="ui-notification-manager-browser-reply-${0}"
								onkeyup="${0}"
								onclick="${0}"
								disabled
							>
						</div>
						<div
							class="ui-notification-manager-browser-button-reply"
							onclick="${0}"
						/>
					</div>
				</div>
			</div>
		`),e,this.toggleUserInputContainerNode.bind(this),o.Loc.getMessage("UI_NOTIFICATION_MANAGER_REPLY"),e,i,e,this.handleUserInputEnter.bind(this),t,this.handleUserInputClick.bind(this))}toggleUserInputContainerNode(t){t.stopPropagation();const e=o.Text.encode(this.getId());if(!this.userInputContainerNode){this.userInputContainerNode=document.getElementById("ui-notification-manager-browser-reply-container-"+e)}if(!this.userInputNode){this.userInputNode=document.getElementById("ui-notification-manager-browser-reply-"+e)}if(!this.replyToggleButton){this.replyToggleButton=document.getElementById("ui-notification-manager-browser-reply-toggle-"+e)}this.showUserInput=!this.showUserInput;if(this.showUserInput){this.setAutoHide(false);this.deactivateAutoHide();this.replyToggleButton.style.display="none";this.userInputContainerNode.classList.add("ui-notification-manager-browser-row-reply-animate");this.userInputNode.disabled=false;this.userInputNode.focus()}else{this.setAutoHide(true);this.activateAutoHide();this.replyToggleButton.style.display="block";this.userInputContainerNode.classList.remove("ui-notification-manager-browser-row-reply-animate");this.userInputNode.disabled=true}}getCloseButtonNode(){if(!this.isCloseButtonVisible()){return""}return o.Tag.render(v||(v=S`
			<div
				class="ui-notification-manager-browser-button-close"
				onclick="${0}"
			/>
		`),this.handleCloseBtnClick.bind(this))}handleCloseBtnClick(t){t.stopPropagation();if(o.Type.isFunction(this.getData().closedByUserHandler)){this.getData().closedByUserHandler()}super.handleCloseBtnClick()}handleContentClick(){if(o.Type.isFunction(this.getData().clickHandler)){this.getData().clickHandler()}this.close()}handleContextClick(t){t.preventDefault();if(o.Type.isFunction(this.getData().contextClickHandler)){this.getData().contextClickHandler()}}handleUserInputEnter(t){if(!o.Type.isFunction(this.getData().userInputHandler)){return}const e=t.target.value;if(t.keyCode===b.KEY_CODE.ENTER&&e!==""){this.getData().userInputHandler(e);this.close();return}if(t.keyCode===b.KEY_CODE.ESC&&e===""){if(o.Type.isFunction(this.getData().closedByUserHandler)){this.getData().closedByUserHandler()}this.close()}}handleUserInputClick(t){t.stopPropagation();if(!o.Type.isFunction(this.getData().userInputHandler)){return}const e=this.userInputNode.value;if(e!==""){this.getData().userInputHandler(e);this.close()}}}b.KEY_CODE={ENTER:13,ESC:27};class D extends T{constructor(t={}){super(t);this.broadcastChannel=null;this.setBroadcast(t)}setBroadcast(t){this.broadcastChannel=new BroadcastChannel(D.BROADCAST_CHANNEL);this.broadcastChannel.onmessage=t=>this.handleMessageEvent(t);this.postMessageToBroadcast(D.MESSAGE_TYPE.closeAllNotifications)}convertNotificationToNative(t){if(!o.Type.isStringFilled(t.getId())){throw new Error(`NotificationManager: You cannot send a notification without an ID.`)}const e=()=>{this.notificationClose(t.getUid(),f.CLOSED_BY_USER)};const i=()=>{this.notificationClick(t.getUid())};const n=()=>{this.closeAllNotifications()};const s=e=>{this.notificationAction(t.getUid(),p.BUTTON_1,e)};const r={id:t.getUid(),category:t.getCategory(),type:b,data:{title:t.getTitle(),text:t.getText(),icon:t.getIcon(),closedByUserHandler:e,clickHandler:i,contextClickHandler:n,userInputHandler:s},actions:[],width:380,position:"top-right",autoHideDelay:D.autoHideDelay,events:{onClose:t=>{this.onBalloonClose(t)}}};if(t.getInputPlaceholderText()){r.data.inputPlaceholderText=t.getInputPlaceholderText();return r}const a=t.getButton1Text()&&o.Type.isStringFilled(t.getButton1Text());const c=t.getButton2Text()&&o.Type.isStringFilled(t.getButton2Text());if(a){const e={id:p.BUTTON_1,title:t.getButton1Text(),events:{click:(t,e,i)=>this.onNotificationAction(t,e,i)}};if(c){e.buttonType=x.TYPE_ACCEPT}r.actions.push(e)}if(c){const e={id:p.BUTTON_2,title:t.getButton2Text(),events:{click:(t,e,i)=>this.onNotificationAction(t,e,i)}};r.actions.push(e)}return r}onBalloonClose(t){const e=t.getBalloon().id;this.postMessageToBroadcast(D.MESSAGE_TYPE.closeNotification,e)}postMessageToBroadcast(t,e=""){if(t===D.MESSAGE_TYPE.closeNotification&&!e){return}this.broadcastChannel.postMessage({action:t,...e?{uid:e}:{}})}handleMessageEvent(t){if(t.data.action===D.MESSAGE_TYPE.closeNotification){const e=t.data.uid;const i=a.decodeUidToId(e);const o=this.findBalloonById(i);if(o===null){return}this.closeNotification(o)}else if(t.data.action===D.MESSAGE_TYPE.closeAllNotifications){this.closeAllNotifications()}}findBalloonById(t){const e=Object.keys(BX.UI.Notification.Center.balloons);for(const i of e){if(i.startsWith(t)){return BX.UI.Notification.Center.balloons[i]}}return null}closeNotification(t){this.notificationClose(t.id,f.CLOSED_BY_USER);t.close()}closeAllNotifications(){var t;(t=BX.UI.Notification.Center.getDefaultStack())==null?void 0:t.clear()}sendNotification(t){BX.UI.Notification.Center.notify(t)}onNotificationAction(t,e,i){e.close();this.notificationAction(e.id,i.id)}}D.BROADCAST_CHANNEL="ui-notification-manager-channel";D.MESSAGE_TYPE={closeNotification:"close-notification",closeAllNotifications:"close-all-notifications"};D.autoHideDelay=6e3;var k=babelHelpers.classPrivateFieldLooseKey("getBrowserPageProvider");class U{constructor(){var t;Object.defineProperty(this,k,{value:P});this.provider=this.createProvider();(t=BX.PULL)==null?void 0:t.subscribe(new l)}createProvider(){if(d.isSupportedDesktopApp()&&d.isMac()&&d.geApiVersion()>=73){return new N(U.PROVIDER_OPTIONS)}if(d.isSupportedDesktopApp()&&d.isWindows()){return new B(U.PROVIDER_OPTIONS)}if(d.isSupportedDesktopApp()&&d.isLinux()){return new y(U.PROVIDER_OPTIONS)}if(u.isSupportedBrowser()&&u.isNativeNotificationAllowed()){return new I(U.PROVIDER_OPTIONS)}return babelHelpers.classPrivateFieldLooseBase(this,k)[k]()}notify(t){const e=new a(t);this.sendNotification(e)}sendNotification(t){this.provider.notify(t)}notifyViaBrowserProvider(t){const e=new a(t);babelHelpers.classPrivateFieldLooseBase(this,k)[k]().notify(e)}notifyViaDesktopProvider(t){if(d.isSupportedDesktopApp()&&d.isMac()){(new N).notify(t);return}if(d.isSupportedDesktopApp()&&d.isMac()){(new B).notify(t);return}throw new Error(`NotificationManager: unsupported environment for sending through a desktop provider.`)}subscribe(t,e){if(!g.isSupported(t)){throw new Error(`NotificationManager: event "${t}" is not supported.`)}this.provider.subscribe(t,e);if(this.provider!==babelHelpers.classPrivateFieldLooseBase(this,k)[k]()){babelHelpers.classPrivateFieldLooseBase(this,k)[k]().subscribe(t,e)}}}function P(){if(!this.browserProvider){this.browserProvider=new D(U.PROVIDER_OPTIONS)}return this.browserProvider}U.EVENT_NAMESPACE="BX.UI.NotificationManager";U.PROVIDER_OPTIONS={eventNamespace:U.EVENT_NAMESPACE};const _=new U;t.Notifier=_;t.Notification=a})(this.BX.UI.NotificationManager=this.BX.UI.NotificationManager||{},BX,BX.Event,BX,BX,BX.UI);
//# sourceMappingURL=notification-manager.bundle.map.js