PageSourceSearch

https://www.argnord.ru/scripts/_partials/cards/controllers/cardsRemoveController.js

js argnord.ru collected 2026-10-04 12:44:15 UTC 653 bytes, 26 lines download raw bytes

1/* @ngInject */
2function CardsRemoveCtrl(cardsService, $translate) {
3    var ctrl = this;
4
5    ctrl.remove = function (type) {
6
7        var request;
8
9        switch (type) {
10            case 'coupon':
11                request = cardsService.deleteCoupon();
12                break;
13            case 'certificate':
14                request = cardsService.deleteCertificate();
15                break;
16            default:
17                throw Error($translate.instant('Js.Cards.NotFoundTypeToRemove'));
18        }
19
20        request.then(function () {
21            ctrl.applyFn();
22        });
23    };
24};
25
26export default CardsRemoveCtrl;

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.