PageSourceSearch

https://www.prpwine.com/wp-content/plugins/idstc-acuta/app/shoppin…/controllers/shell.js?ver=3.1.20260923.1

js prpwine.com collected 2026-09-25 20:51:44 UTC 1,867 bytes, 59 lines download raw bytes

1(function () {
2    'use strict';
3
4    var injectParams = ['$location', '$rootScope', '$http', '$templateCache', '$q', '$document', '$scope', 'shoppingCartModel'];
5
6    shell.$inject = injectParams;
7
8    angular.module('app').controller('shell', shell);
9
10    function shell($location, $rootScope, $http, $templateCache, $q, $document, $scope, shoppingCartModel) {
11        var vm = this;
12
13        vm.busyMessage = 'Please wait ...';
14        vm.isBusy = true;
15        vm.appReady = false;
16        vm.getInfo = false;
17        vm.shoppingCartModel = shoppingCartModel;
18        vm.cartReady = '';
19
20        function capitalizeFirstLetter(string) {
21            return string.charAt(0).toUpperCase() + string.slice(1);
22        }
23
24        //adds notificaiton functions to the supplied object (likely the vm or $scope)
25        //ex. vm.showSuccess('yay', 'title goes here');
26        (function createNotificationProxy(m) {
27            var notificationTypes = ['success', 'warn', 'error', 'alert'];
28
29            notificationTypes.forEach(function (element, index, array) {
30
31                m['show' + capitalizeFirstLetter(element)] = function (message, title) {
32                    idstc().notify({ message: message, title: title, success: element });
33                }
34            });
35        })(vm);
36
37        vm.init = function () {
38            // Use promises to wait for all data before displaying form
39
40            var promises = [];
41
42            $q.all(promises).then(function () {
43                vm.appReady = true;
44            });
45
46        }
47
48        vm.init();
49
50        $scope.$on('$locationChangeStart',
51            function (event, next, current) {
52                //var nextPath = $location.path();                
53                //if (nextPath == '/checkout') { }
54            }
55        );
56
57    };
58
59})();

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.