PageSourceSearch

https://fxboss.firstcitizens.com/app/assets/js/view_announcement_modalInstanceCtrl.js?v=31082026-1758

js firstcitizens.com collected 2026-09-24 21:51:38 UTC 1,277 bytes, 39 lines download raw bytes

1app.controller('viewAnnouncementInstanceCtrl', ['$scope', '$modalInstance','BossService','$sce', function($scope, $modalInstance,BossService,$sce) {
2	$scope.loadingAnnouncement = true;
3	/**
4	*  Get Announcement for the business.
5	*/
6	BossService.getAnnouncement().then(function(data){
7		var _announcement= data.responseObj?data.responseObj.announcement:null;
8		if(!_announcement){
9			_announcement = angular.copy("<span>There are no announcement at this time.</span>");
10		}
11		else {
12			if (isEmptyHTML(_announcement)) {
13				_announcement = "<span>There are no announcements at this time.</span>";
14			}
15		}
16		function isEmptyHTML(str) {
17			if (!str) return true;
18			var parser = new DOMParser();
19			var doc = parser.parseFromString(str, 'text/html');
20			var body = doc.body;
21			return !body || body.textContent.trim() === '' || body.innerHTML.trim() === '<br>';
22		};
23		function decodeHTMLEntities(str) {
24			if (str)			{
25				str = str.replace(/</g,"<");
26			}
27			return str;
28		}
29		$scope.announcementDescription = $sce.trustAsHtml(decodeHTMLEntities(_announcement));//decodeHTMLEntities(_announcement);
30		
31		$scope.loadingAnnouncement = false;
32	});
33	/**
34	* function to dismiss modal instance.
35	*/
36	$scope.cancel = function() {
37        $modalInstance.dismiss('cancel');
38    };
39}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.