PageSourceSearch

https://rekrutacja.pedagogium.pl/pdg-irk-app/content/script/irk/pa…/modul/deklaracje/v1/ModulDeklaracje.js

js pedagogium.pl collected 2026-10-04 13:34:28 UTC 1,519 bytes, 41 lines download raw bytes

1(function() {
2    'use strict';
3    
4    angular
5        .module('irk')
6        .factory('ModulDeklaracje', ModulDeklaracje);
7    function ModulDeklaracje($http, AbstractModulService) {
8        var modul = angular.extend({}, AbstractModulService);
9
10        modul.czyKrajWUE = {};
11        
12        modul.getGroupName = function() {
13            return 'ModulDeklaracjeV1Intake';
14        }
15        
16        modul.process = function($mainScope) {
17            $mainScope.czyWyswietlacModulDeklaracjeV1 = function() {
18                if(typeof $mainScope.daneOsoboweIntake == 'undefined') {
19                    return false;
20                }
21                var obywatelstwa = $mainScope.daneOsoboweIntake.Obywatelstwo.value;
22                for(var i = 0; i < obywatelstwa.length; ++i) {
23                    var obywatelstwo = obywatelstwa[i];
24                    if(obywatelstwo && obywatelstwo.length > 0) {
25                        if(typeof modul.czyKrajWUE[obywatelstwo] == 'undefined') {
26                            modul.czyKrajWUE[obywatelstwo] = $http.get('REST/kraj/'+obywatelstwo, {}).then(function(kraj) {
27                                modul.czyKrajWUE[obywatelstwo] = kraj.data.czyWUE;
28                            });
29                        }
30                        if(!modul.czyKrajWUE[obywatelstwo]) {
31                            return true;
32                        }
33                    }
34                }
35                return false;
36            }
37        }
38        
39        return modul;
40    }
41})();

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.