PageSourceSearch

https://nossailheus.org.br/wp-content/plugins/wysija-newsletters/j…/jquery.validationEngine-pt.js?ver=2.22

js nossailheus.org.br collected 2026-09-24 11:30:51 UTC 10,785 bytes, 196 lines download raw bytes

1(function($){
2    $.fn.validationEngineLanguage = function(){
3    };
4    $.validationEngineLanguage = {
5        newLang: function(){
6            $.validationEngineLanguage.allRules = {
7                "required": { // Add your regex rules here, you can take telephone as an example
8                    "regex": "none",
9                    "alertText": "* Campo obrigatório",
10                    "alertTextCheckboxMultiple": "* Selecione uma opção",
11					"alertTextCheckboxe": "* Selecione uma ou mais opções",
12                    "alertTextDateRange": "* Ambos os campos de datas são obrigatórios"
13                },
14                "requiredInFunction": { 
15                    "func": function(field, rules, i, options){
16                        return (field.val() == "test") ? true : false;
17                    },
18                    "alertText": "* Field must equal test"
19                },
20                "dateRange": {
21                    "regex": "none",
22                    "alertText": "* Inválido ",
23                    "alertText2": "Date Range"
24                },
25                "dateTimeRange": {
26                    "regex": "none",
27                    "alertText": "* Inválido ",
28                    "alertText2": "Intervalo de tempo da data"
29                },
30                "minSize": {
31                    "regex": "none",
32                    "alertText": "* Mínimo ",
33                    "alertText2": " carateres permitidos"
34                },
35                "maxSize": {
36                    "regex": "none",
37                    "alertText": "* Máximo ",
38                    "alertText2": " carateres permitidos"
39                },
40				"groupRequired": {
41                    "regex": "none",
42                    "alertText": "* Tem de preencher um dos seguintes campos"
43                },
44                "min": {
45                    "regex": "none",
46					"alertText": "* O valor mínimo é "
47                },
48                "max": {
49                    "regex": "none",
50                    "alertText": "* O valor máximo é "
51                },
52                "past": {
53                    "regex": "none",
54                    "alertText": "* Data anterior a "
55                },
56                "future": {
57                    "regex": "none",
58                    "alertText": "* Data posterior a "
59                },	
60                "maxCheckbox": {
61                    "regex": "none",
62					"alertText": "* O número máximo ",
63					"alertText2": " de escolhas foi ultrapassado"
64                },
65                "minCheckbox": {
66                    "regex": "none",
67                    "alertText": "* Selecione ",
68                    "alertText2": " opções"
69                },
70                "equals": {
71                    "regex": "none",
72                    "alertText": "* Os campos não correspondem"
73                },
74                "creditCard": {
75                    "regex": "none",
76					"alertText": "* Número do cartão de crédito inválido"
77                },
78                "phone": {
79                    // credit: jquery.h5validate.js / orefalo
80                    "regex": /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,
81                    "alertText": "* Número de telefone inválido"
82                },
83                "email": {
84                    // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#    e-mail-state-%28type=email%29 )
85                    "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
86                    "alertText": "* Endereço de email inválido"
87                },
88                "integer": {
89                    "regex": /^[\-\+]?\d+$/,
90                    "alertText": "* Não é um número inteiro"
91                },
92                "number": {
93                    // Number, including positive, negative, and floating decimal. credit: orefalo
94                    "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
95                    "alertText": "* Não é um número decimal"
96                },
97                "date": {                    
98                    //	Check if date is valid by leap year
99			"func": function (field) {
100					var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
101					var match = pattern.exec(field.val());
102					if (match == null)
103					   return false;
104	
105					var year = match[1];
106					var month = match[2]*1;
107					var day = match[3]*1;					
108					var date = new Date(year, month - 1, day); // because months starts from 0.
109	
110					return (date.getFullYear() == year && date.getMonth() == (month - 1) && date.getDate() == day);
111				},                		
112			 "alertText": "* Data inválida, o formato deve de ser AAAA-MM-DD (ex.2012-12-31)"
113                },
114                "ipv4": {
115                    "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
116                    "alertText": "* Número IP inválido"
117                },
118                "url": {
119                    "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
120					"alertText": "* Endereço URL inválido"
121                },
122                "onlyNumberSp": {
123                    "regex": /^[0-9\ ]+$/,
124                    "alertText": "* Só é permitido números"
125                },
126                "onlyLetterSp": {
127                    "regex": /^[a-zA-Z\ \']+$/,
128                    "alertText": "* Só é permitido letras"
129                },
130				"onlyLetterAccentSp":{
131                    "regex": /^[a-z\u00C0-\u017F\ ]+$/i,
132                    "alertText": "* Só letras e espaços são permitidos"
133                },
134                "onlyLetterNumber": {
135                    "regex": /^[0-9a-zA-Z]+$/,
136                    "alertText": "* Só são permitidos letras e números"
137                },
138                // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
139                "ajaxUserCall": {
140                    "url": "ajaxValidateFieldUser",
141                    // you may want to pass extra data on the ajax call
142                    "extraData": "name=eric",
143					"alertText": "* Este nome de utilizador já está sendo utilizado",
144                    "alertTextLoad": "* A validar, por favor aguarde"
145                },
146				"ajaxUserCallPhp": {
147                    "url": "phpajax/ajaxValidateFieldUser.php",
148                    // you may want to pass extra data on the ajax call
149                    "extraData": "name=eric",
150                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
151                    "alertTextOk": "* Este nome de utilizador está disponível",
152                    "alertText": "* Este nome de utilizador já está sendo utilizado",
153                    "alertTextLoad": "* A validar, por favor aguarde"
154                },
155                "ajaxNameCall": {
156                    // remote json service location
157                    "url": "ajaxValidateFieldName",
158                    // error
159					"alertText": "* Este nome já está a ser utilizado",
160                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
161					"alertTextOk": "* Este nome está disponível",
162                    // speaks by itself
163                    "alertTextLoad": "* A validar, por favor aguarde"
164                },
165				 "ajaxNameCallPhp": {
166	                    // remote json service location
167	                    "url": "phpajax/ajaxValidateFieldName.php",
168	                    // error
169	                    "alertText": "* Este nome já está a ser utilizado",
170	                    // speaks by itself
171	                    "alertTextLoad": "* A validar, por favor aguarde"
172	                },
173                "validate2fields": {
174					"alertText": "* Por favor escreva HELLO"
175                },
176	            //tls warning:homegrown not fielded 
177                "dateFormat":{
178                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
179					"alertText": "* Data inválida"
180                },
181                //tls warning:homegrown not fielded 
182				"dateTimeFormat": {
183	                "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
184					"alertText": "* Data inválida ou mal formatada",
185                    "alertText2": "Formato esperado: ",
186                    "alertText3": "mm/dd/aaaa hh:mm:ss AM|PM ou ", 
187                    "alertText4": "aaaa-mm-dd hh:mm:ss AM|PM"
188	            }
189            };
190            
191        }
192    };
193
194    $.validationEngineLanguage.newLang();
195    
196})(jQuery);

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.