PageSourceSearch

https://sabin.com.br/lumis-theme/br/com/sabin/institucional/theme/…/custom.js?lum_hash=1G4VbXR5eAbamoXCvp3JuA

js sabin.com.br collected 2026-09-24 09:30:48 UTC 3,469 bytes, 122 lines download raw bytes

1Pristine.addMessages('en', {
2  required: 'Este campo é obrigatório.',
3  email: 'Por favor, forneça um endereço de e-mail válido.',
4  number: 'Por favor, forneça um número válido.',
5  integer: 'Por favor, forneça apenas dígitos.',
6  url: 'Por favor, forneça um URL válido.',
7  tel: 'Por favor, forneça um número de telefone válido.',
8  maxlength: 'Por favor, forneça menos do que ${1} caracteres.',
9  minlength: 'Por favor, forneça mais do que ${1} caracteres.',
10  min: 'O valor mínimo para este campo é de ${1}.',
11  max: 'O valor máximo para este campo é de ${1}.',
12  pattern: 'Por favor, forneça uma informação de acordo com o formato do campo.',
13  equals: 'Os dois campos não correspondem.',
14  default: 'Por favor, forneça um valor válido.',
15});
16
17window.GlobalUtils = {
18  getCurrentRegionAlias: function (pathname) {
19    var currentPathname = pathname || window.location.pathname;
20    var match = currentPathname.match(/\/unidades\/([^/]+)/);
21
22    return match ? match[1] : '';
23  },
24
25  replaceDetailsRegionWithCurrentPageRegion: function (href) {
26    var currentRegionAlias = window.GlobalUtils.getCurrentRegionAlias();
27
28    if (!href || !currentRegionAlias) return href;
29
30    return String(href).replace(/(\/unidades\/)[^/]+/, '$1' + currentRegionAlias);
31  },
32};
33
34(function () {
35  if (window.__LMC_FADE_IN_UP_READY__) return;
36  window.__LMC_FADE_IN_UP_READY__ = true;
37
38  var SELECTOR = ".fade-in-up, .fade-in";
39  var reduceMotion =
40    window.matchMedia &&
41    window.matchMedia("(prefers-reduced-motion: reduce)").matches;
42
43  function reveal(node) {
44    node.classList.add("is-visible");
45    node.setAttribute("data-fade-in-up-shown", "true");
46  }
47
48  var nodes = Array.prototype.slice.call(document.querySelectorAll(SELECTOR));
49  if (!nodes.length) return;
50
51  if (reduceMotion) {
52    nodes.forEach(reveal);
53    return;
54  }
55
56  if ("IntersectionObserver" in window) {
57    var observer = new IntersectionObserver(
58      function (entries, currentObserver) {
59        entries.forEach(function (entry) {
60          if (!entry.isIntersecting) return;
61          reveal(entry.target);
62          currentObserver.unobserve(entry.target);
63        });
64      },
65      {
66        root: null,
67        rootMargin: "0px 0px -10% 0px",
68        threshold: 0.15,
69      },
70    );
71
72    nodes.forEach(function (node) {
73      if (node.getAttribute("data-fade-in-up-shown") === "true") {
74        node.classList.add("is-visible");
75        return;
76      }
77      observer.observe(node);
78    });
79
80    return;
81  }
82
83  var ticking = false;
84
85  function runFallback() {
86    ticking = false;
87
88    var viewportHeight =
89      window.innerHeight || document.documentElement.clientHeight;
90
91    nodes = nodes.filter(function (node) {
92      if (node.getAttribute("data-fade-in-up-shown") === "true") {
93        node.classList.add("is-visible");
94        return false;
95      }
96
97      var rect = node.getBoundingClientRect();
98      var visible = rect.top <= viewportHeight * 0.9 && rect.bottom >= 0;
99
100      if (visible) {
101        reveal(node);
102      }
103
104      return !visible;
105    });
106
107    if (!nodes.length) {
108      window.removeEventListener("scroll", onScroll);
109      window.removeEventListener("resize", onScroll);
110    }
111  }
112
113  function onScroll() {
114    if (ticking) return;
115    ticking = true;
116    window.requestAnimationFrame(runFallback);
117  }
118
119  runFallback();
120  window.addEventListener("scroll", onScroll, { passive: true });
121  window.addEventListener("resize", onScroll);
122})();

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.