PageSourceSearch

https://visitcuritiba.com.br/js/data-nascimento-min.js

js visitcuritiba.com.br collected 2026-10-10 00:30:48 UTC 2,007 bytes, 1 lines download raw bytes

1!function(t,a){"use strict";var e={cn:"zh",jp:"ja"};function n(t){var a=t.querySelectorAll("select");return{dia:a[0],mes:a[1],ano:a[2]}}function r(t,a){for(var e=t.value,n='<option value="">'+(t.getAttribute("aria-label")||"")+"</option>",r=0;r<a.length;r++)n+='<option value="'+a[r][0]+'">'+a[r][1]+"</option>";t.innerHTML=n,e&&(t.value=e)}function o(t){var o=n(t);if(o.dia&&o.mes&&o.ano){var i=String(t.getAttribute("data-max")||"").split("-"),l=parseInt(i[0],10),u=parseInt(i[1],10),s=parseInt(i[2],10);if(l){if(!o.ano.options.length){for(var v=[],c=l;c>=1900;c--)v.push([c,c]);r(o.ano,v)}for(var d=parseInt(o.ano.value,10)||0,p=function(){var t,n=a.documentElement.lang||"pt";n=e[n]||n;try{t=new Intl.DateTimeFormat(n,{month:"long"})}catch(a){t=null}for(var r=[],o=0;o<12;o++){var i=t?t.format(new Date(2e3,o,1)):String(o+1);r.push(i.charAt(0).toUpperCase()+i.slice(1))}return r}(),f=d===l?u:12,g=[],m=1;m<=f;m++)g.push([m,p[m-1]]);r(o.mes,g);var h=parseInt(o.mes.value,10)||0,I=31;d&&h&&(I=d===l&&h===u?s:function(t,a){return new Date(t,a,0).getDate()}(d,h));for(var S=[],y=1;y<=I;y++)S.push([y,y]);r(o.dia,S);var w=parseInt(o.dia.value,10)||0,A=a.getElementById(t.getAttribute("data-alvo"));A&&(A.value=d&&h&&w?d+"-"+("0"+h).slice(-2)+"-"+("0"+w).slice(-2):"")}}}var i=!1,l={monta:function(t){for(var e=function(t){return(t||a).querySelectorAll("[data-alvo][data-max]")}(t),n=0;n<e.length;n++)o(e[n]);i||(i=!0,a.addEventListener("change",function(t){var a=t.target&&t.target.closest&&t.target.closest("[data-alvo][data-max]");a&&o(a)}))},set:function(t,e){var r=a.querySelector('[data-alvo="'+t+'"][data-max]');if(r){var i=n(r),l=String(e||"").split("-");o(r),i.ano.value=l[0]?String(parseInt(l[0],10)):"",o(r),i.mes.value=l[1]?String(parseInt(l[1],10)):"",o(r),i.dia.value=l[2]?String(parseInt(l[2],10)):"",o(r)}else{var u=a.getElementById(t);u&&(u.value=e||"")}}};t.wtDataNascimento=l,"loading"===a.readyState?a.addEventListener("DOMContentLoaded",function(){l.monta()}):l.monta()}(window,document);

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.