-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
236 lines (187 loc) · 78.6 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./js/modules/accordion.js":
/*!*********************************!*\
!*** ./js/modules/accordion.js ***!
\*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Accordion)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar Accordion = /*#__PURE__*/function () {\n function Accordion(list) {\n _classCallCheck(this, Accordion);\n this.accordionList = document.querySelectorAll(list);\n this.activeClass = 'ativo';\n }\n _createClass(Accordion, [{\n key: \"toggleAccordion\",\n value: function toggleAccordion(item) {\n item.classList.toggle(this.activeClass);\n item.nextElementSibling.classList.toggle(this.activeClass);\n }\n\n // adiciona os eventos ao accordion\n }, {\n key: \"addAccordionEvent\",\n value: function addAccordionEvent() {\n var _this = this;\n this.accordionList.forEach(function (item) {\n item.addEventListener('click', function () {\n return _this.toggleAccordion(item);\n });\n });\n }\n\n // iniciar função\n }, {\n key: \"init\",\n value: function init() {\n if (this.accordionList.length) {\n // ativar primeiro item\n this.toggleAccordion(this.accordionList[0]);\n this.addAccordionEvent();\n }\n return this;\n }\n }]);\n return Accordion;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/accordion.js?");
/***/ }),
/***/ "./js/modules/anima-numeros.js":
/*!*************************************!*\
!*** ./js/modules/anima-numeros.js ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AnimaNumeros)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar AnimaNumeros = /*#__PURE__*/function () {\n function AnimaNumeros(numeros, observerTarget, observerClass) {\n _classCallCheck(this, AnimaNumeros);\n this.numeros = document.querySelectorAll(numeros);\n this.observerTarget = document.querySelector(observerTarget);\n this.observerClass = observerClass;\n\n // bind o this do objeto ao callback da mutação\n this.handleMutation = this.handleMutation.bind(this);\n }\n\n // Recebe um elemento do dom, com número em seu texto\n // incrementa a partir de 0 até o número final\n _createClass(AnimaNumeros, [{\n key: \"animaNumeros\",\n value:\n // Ativa incrementar número para cada\n // número selecionado do dom\n function animaNumeros() {\n var _this = this;\n this.numeros.forEach(function (numero) {\n return _this.constructor.incrementarNumero(numero);\n });\n }\n\n // Função que ocorre quando a mutações ocorrer\n }, {\n key: \"handleMutation\",\n value: function handleMutation(mutation) {\n if (mutation[0].target.classList.contains(this.observerClass)) {\n this.observer.disconnect();\n this.animaNumeros();\n }\n }\n\n // Adiciona o MutationObserver para verificar\n // quanto a classe ativo é adiciona ao element target\n }, {\n key: \"addMutationObserver\",\n value: function addMutationObserver() {\n this.observer = new MutationObserver(this.handleMutation);\n this.observer.observe(this.observerTarget, {\n attributes: true\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.numeros.length && this.observerTarget) {\n this.addMutationObserver();\n }\n return this;\n }\n }], [{\n key: \"incrementarNumero\",\n value: function incrementarNumero(numero) {\n var total = +numero.innerText;\n var incremento = Math.floor(total / 100);\n var start = 0;\n var timer = setInterval(function () {\n start += incremento;\n numero.innerText = start;\n if (start > total) {\n numero.innerText = total;\n clearInterval(timer);\n }\n }, 25 * Math.random());\n }\n }]);\n return AnimaNumeros;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/anima-numeros.js?");
/***/ }),
/***/ "./js/modules/debounce.js":
/*!********************************!*\
!*** ./js/modules/debounce.js ***!
\********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ debounce)\n/* harmony export */ });\nfunction debounce(callback, delay) {\n var timer;\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (timer) clearTimeout(timer);\n timer = setTimeout(function () {\n callback.apply(void 0, args);\n timer = null;\n }, delay);\n };\n}\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/debounce.js?");
/***/ }),
/***/ "./js/modules/dropdown-menu.js":
/*!*************************************!*\
!*** ./js/modules/dropdown-menu.js ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DropdownMenu)\n/* harmony export */ });\n/* harmony import */ var _outsideclick_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./outsideclick.js */ \"./js/modules/outsideclick.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nvar DropdownMenu = /*#__PURE__*/function () {\n function DropdownMenu(dropdownMenus, events) {\n _classCallCheck(this, DropdownMenu);\n this.dropdownMenus = document.querySelectorAll(dropdownMenus);\n\n // define touchstart e click como argumento padrão\n // de events caso o usuário não define\n if (events === undefined) this.events = ['touchstart', 'click'];else this.events = events;\n this.activeClass = 'active';\n this.activeDropdownMenu = this.activeDropdownMenu.bind(this);\n }\n\n // Ativa o dropdownmenu e adiciona\n // a função que observa o clique fora dele\n _createClass(DropdownMenu, [{\n key: \"activeDropdownMenu\",\n value: function activeDropdownMenu(event) {\n event.preventDefault();\n var element = event.currentTarget;\n element.classList.add(this.activeClass);\n (0,_outsideclick_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(element, this.events, function () {\n element.classList.remove('active');\n });\n }\n\n // adiciona os eventos ao dropdownmenu\n }, {\n key: \"addDropdownMenusEvent\",\n value: function addDropdownMenusEvent() {\n var _this = this;\n this.dropdownMenus.forEach(function (menu) {\n _this.events.forEach(function (userEvent) {\n menu.addEventListener(userEvent, _this.activeDropdownMenu);\n });\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.dropdownMenus.length) {\n this.addDropdownMenusEvent();\n }\n return this;\n }\n }]);\n return DropdownMenu;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/dropdown-menu.js?");
/***/ }),
/***/ "./js/modules/fetch-animais.js":
/*!*************************************!*\
!*** ./js/modules/fetch-animais.js ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ fetchAnimais)\n/* harmony export */ });\n/* harmony import */ var _anima_numeros_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./anima-numeros.js */ \"./js/modules/anima-numeros.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = \"function\" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, \"\"); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: \"normal\", arg: fn.call(obj, arg) }; } catch (err) { return { type: \"throw\", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { [\"next\", \"throw\", \"return\"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (\"throw\" !== record.type) { var result = record.arg, value = result.value; return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke(\"next\", value, resolve, reject); }, function (err) { invoke(\"throw\", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke(\"throw\", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, \"_invoke\", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = \"suspendedStart\"; return function (method, arg) { if (\"executing\" === state) throw new Error(\"Generator is already running\"); if (\"completed\" === state) { if (\"throw\" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) { if (\"suspendedStart\" === state) throw state = \"completed\", context.arg; context.dispatchException(context.arg); } else \"return\" === context.method && context.abrupt(\"return\", context.arg); state = \"executing\"; var record = tryCatch(innerFn, self, context); if (\"normal\" === record.type) { if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = \"normal\", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: \"root\" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if (\"function\" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) { var ctor = \"function\" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, \"toString\", function () { return \"[object Generator]\"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if (\"throw\" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if (\"root\" === entry.tryLoc) return handle(\"end\"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, \"catchLoc\"), hasFinally = hasOwn.call(entry, \"finallyLoc\"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error(\"try statement without catch or finally\"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if (\"throw\" === record.type) throw record.arg; return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, \"catch\": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (\"throw\" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction fetchAnimais(url, target) {\n // Cria a div contendo informações\n // com o total de animais\n function createAnimal(animal) {\n var div = document.createElement('div');\n div.classList.add('numero-animal');\n div.innerHTML = \"<h3>\".concat(animal.specie, \"</h3><span data-numero>\").concat(animal.total, \"</span>\");\n return div;\n }\n\n // Preenche cada animal no DOM\n var numerosGrid = document.querySelector(target);\n function preencherAnimais(animal) {\n var divAnimal = createAnimal(animal);\n numerosGrid.appendChild(divAnimal);\n }\n\n // Anima os números de cada animal\n function animaAnimaisNumeros() {\n var animaNumeros = new _anima_numeros_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]('[data-numero]', '.numeros', 'ativo');\n animaNumeros.init();\n }\n\n // Puxa os animais através de um arquivo json\n // e cria cada animal utilizando createAnimal\n function criarAnimais() {\n return _criarAnimais.apply(this, arguments);\n }\n function _criarAnimais() {\n _criarAnimais = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n var animaisResponse, animaisJSON;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return fetch(url);\n case 3:\n animaisResponse = _context.sent;\n _context.next = 6;\n return animaisResponse.json();\n case 6:\n animaisJSON = _context.sent;\n // Após a transformação de json, ativa as funções\n // para preencher e animar os números\n animaisJSON.forEach(function (animal) {\n return preencherAnimais(animal);\n });\n animaAnimaisNumeros();\n _context.next = 14;\n break;\n case 11:\n _context.prev = 11;\n _context.t0 = _context[\"catch\"](0);\n console.log(_context.t0);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee, null, [[0, 11]]);\n }));\n return _criarAnimais.apply(this, arguments);\n }\n return criarAnimais();\n}\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/fetch-animais.js?");
/***/ }),
/***/ "./js/modules/fetch-bitcoin.js":
/*!*************************************!*\
!*** ./js/modules/fetch-bitcoin.js ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ fetchBitcoin)\n/* harmony export */ });\nfunction fetchBitcoin(url, target) {\n fetch(url).then(function (response) {\n return response.json();\n }).then(function (bitcoin) {\n var btcPreco = document.querySelector(target);\n btcPreco.innerText = (1000 / bitcoin.BRL.sell).toFixed(4);\n })[\"catch\"](function (erro) {\n return console.log(Error(erro));\n });\n}\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/fetch-bitcoin.js?");
/***/ }),
/***/ "./js/modules/funcionamento.js":
/*!*************************************!*\
!*** ./js/modules/funcionamento.js ***!
\*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Funcionamento)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar Funcionamento = /*#__PURE__*/function () {\n function Funcionamento(functionamento, activeClass) {\n _classCallCheck(this, Funcionamento);\n this.funcionamento = document.querySelector(functionamento);\n this.activeClass = activeClass;\n }\n _createClass(Funcionamento, [{\n key: \"dadosFuncionamento\",\n value: function dadosFuncionamento() {\n this.diasSemana = this.funcionamento.dataset.semana.split(',').map(Number);\n this.horarioSemana = this.funcionamento.dataset.horario.split(',').map(Number);\n }\n }, {\n key: \"dadosAgora\",\n value: function dadosAgora() {\n this.dataAgora = new Date();\n this.diaAgora = this.dataAgora.getDay();\n this.horarioAgora = this.dataAgora.getUTCHours() - 3;\n }\n }, {\n key: \"estaAberto\",\n value: function estaAberto() {\n var semanaAberto = this.diasSemana.indexOf(this.diaAgora) !== -1;\n var horarioAberto = this.horarioAgora >= this.horarioSemana[0] && this.horarioAgora < this.horarioSemana[1];\n return semanaAberto && horarioAberto;\n }\n }, {\n key: \"ativaAberto\",\n value: function ativaAberto() {\n if (this.estaAberto()) {\n this.funcionamento.classList.add(this.activeClass);\n }\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.funcionamento) {\n this.dadosFuncionamento();\n this.dadosAgora();\n this.ativaAberto();\n }\n return this;\n }\n }]);\n return Funcionamento;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/funcionamento.js?");
/***/ }),
/***/ "./js/modules/menu-mobile.js":
/*!***********************************!*\
!*** ./js/modules/menu-mobile.js ***!
\***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MenuMobile)\n/* harmony export */ });\n/* harmony import */ var _outsideclick_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./outsideclick.js */ \"./js/modules/outsideclick.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nvar MenuMobile = /*#__PURE__*/function () {\n function MenuMobile(menuButton, menuList, events) {\n _classCallCheck(this, MenuMobile);\n this.menuButton = document.querySelector(menuButton);\n this.menuList = document.querySelector(menuList);\n this.activeClass = 'active';\n\n // define touchstart e click como argumento padrão\n // de events caso o usuário não define\n if (events === undefined) this.events = ['touchstart', 'click'];else this.events = events;\n this.openMenu = this.openMenu.bind(this);\n }\n _createClass(MenuMobile, [{\n key: \"openMenu\",\n value: function openMenu(event) {\n var _this = this;\n event.preventDefault();\n this.menuList.classList.add(this.activeClass);\n this.menuButton.classList.add(this.activeClass);\n (0,_outsideclick_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.menuList, this.events, function () {\n _this.menuList.classList.remove(_this.activeClass);\n _this.menuButton.classList.remove(_this.activeClass);\n });\n }\n }, {\n key: \"addMenuMobileEvents\",\n value: function addMenuMobileEvents() {\n var _this2 = this;\n this.events.forEach(function (evento) {\n return _this2.menuButton.addEventListener(evento, _this2.openMenu);\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.menuButton && this.menuList) {\n this.addMenuMobileEvents();\n }\n return this;\n }\n }]);\n return MenuMobile;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/menu-mobile.js?");
/***/ }),
/***/ "./js/modules/modal.js":
/*!*****************************!*\
!*** ./js/modules/modal.js ***!
\*****************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modal)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar Modal = /*#__PURE__*/function () {\n function Modal(botaoAbrir, botaoFechar, containerModal) {\n _classCallCheck(this, Modal);\n this.botaoAbrir = document.querySelector(botaoAbrir);\n this.botaoFechar = document.querySelector(botaoFechar);\n this.containerModal = document.querySelector(containerModal);\n\n // bind this ao callback para\n // fazer referência ao objeto\n // da classe\n this.eventToggleModal = this.eventToggleModal.bind(this);\n this.cliqueForaModal = this.cliqueForaModal.bind(this);\n }\n\n // abre ou fecha o modal\n _createClass(Modal, [{\n key: \"toggleModal\",\n value: function toggleModal() {\n this.containerModal.classList.toggle('ativo');\n }\n\n // adiciona o evento de toggle ao modal\n }, {\n key: \"eventToggleModal\",\n value: function eventToggleModal(event) {\n event.preventDefault();\n this.toggleModal();\n }\n\n // fecha o modal ao clicar do lado de fora\n }, {\n key: \"cliqueForaModal\",\n value: function cliqueForaModal(event) {\n if (event.target === this.containerModal) {\n this.toggleModal();\n }\n }\n\n // adiciona os eventos aos elementos do modal\n }, {\n key: \"addModalEvents\",\n value: function addModalEvents() {\n this.botaoAbrir.addEventListener('click', this.eventToggleModal);\n this.botaoFechar.addEventListener('click', this.eventToggleModal);\n this.containerModal.addEventListener('click', this.cliqueForaModal);\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.botaoAbrir && this.botaoFechar && this.containerModal) {\n this.addModalEvents();\n }\n return this;\n }\n }]);\n return Modal;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/modal.js?");
/***/ }),
/***/ "./js/modules/outsideclick.js":
/*!************************************!*\
!*** ./js/modules/outsideclick.js ***!
\************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ outsideClick)\n/* harmony export */ });\nfunction outsideClick(element, events, callback) {\n var html = document.documentElement;\n var outside = 'data-outside';\n function handleOutsideClick(event) {\n if (!element.contains(event.target)) {\n element.removeAttribute(outside);\n events.forEach(function (userEvent) {\n html.removeEventListener(userEvent, handleOutsideClick);\n });\n callback();\n }\n }\n if (!element.hasAttribute(outside)) {\n events.forEach(function (userEvent) {\n setTimeout(function () {\n return html.addEventListener(userEvent, handleOutsideClick);\n });\n });\n element.setAttribute(outside, '');\n }\n}\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/outsideclick.js?");
/***/ }),
/***/ "./js/modules/scroll-anima.js":
/*!************************************!*\
!*** ./js/modules/scroll-anima.js ***!
\************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ScrollAnima)\n/* harmony export */ });\n/* harmony import */ var _debounce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./debounce.js */ \"./js/modules/debounce.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nvar ScrollAnima = /*#__PURE__*/function () {\n function ScrollAnima(sections) {\n _classCallCheck(this, ScrollAnima);\n this.sections = document.querySelectorAll(sections);\n this.windowMetade = window.innerHeight * 0.6;\n this.checkDistance = (0,_debounce_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.checkDistance.bind(this), 50);\n }\n\n // Pega a distância de cada item em relação\n // ao topo do site\n _createClass(ScrollAnima, [{\n key: \"getDistance\",\n value: function getDistance() {\n var _this = this;\n this.distance = _toConsumableArray(this.sections).map(function (section) {\n var offset = section.offsetTop;\n return {\n element: section,\n offset: Math.floor(offset - _this.windowMetade)\n };\n });\n }\n\n // Verifica a distância em cada objeto\n // em relação ao scroll do site\n }, {\n key: \"checkDistance\",\n value: function checkDistance() {\n this.distance.forEach(function (item) {\n if (window.pageYOffset > item.offset) {\n item.element.classList.add('ativo');\n } else if (item.element.classList.contains('ativo')) {}\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.sections.length) {\n this.getDistance();\n this.checkDistance();\n window.addEventListener('scroll', this.checkDistance);\n }\n return this;\n }\n\n // Remove o event de scroll\n }, {\n key: \"stop\",\n value: function stop() {\n window.removeEventListener('scroll', this.checkDistance);\n }\n }]);\n return ScrollAnima;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/scroll-anima.js?");
/***/ }),
/***/ "./js/modules/scroll-suave.js":
/*!************************************!*\
!*** ./js/modules/scroll-suave.js ***!
\************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ScrollSuave)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar ScrollSuave = /*#__PURE__*/function () {\n function ScrollSuave(links, options) {\n _classCallCheck(this, ScrollSuave);\n this.linksInternos = document.querySelectorAll(links);\n if (options === undefined) {\n this.options = {\n behavior: 'smooth',\n block: 'start'\n };\n } else {\n this.options = options;\n }\n this.scrollToSection = this.scrollToSection.bind(this);\n }\n _createClass(ScrollSuave, [{\n key: \"scrollToSection\",\n value: function scrollToSection(event) {\n event.preventDefault();\n var href = event.currentTarget.getAttribute('href');\n var section = document.querySelector(href);\n section.scrollIntoView(this.options);\n }\n }, {\n key: \"addLinkEvent\",\n value: function addLinkEvent() {\n var _this = this;\n this.linksInternos.forEach(function (link) {\n link.addEventListener('click', _this.scrollToSection);\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.linksInternos.length) {\n this.addLinkEvent();\n }\n return this;\n }\n }]);\n return ScrollSuave;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/scroll-suave.js?");
/***/ }),
/***/ "./js/modules/slide.js":
/*!*****************************!*\
!*** ./js/modules/slide.js ***!
\*****************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Slide\": () => (/* binding */ Slide),\n/* harmony export */ \"default\": () => (/* binding */ SlideNav)\n/* harmony export */ });\n/* harmony import */ var _debounce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./debounce.js */ \"./js/modules/debounce.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nvar Slide = /*#__PURE__*/function () {\n function Slide(slide, wrapper) {\n _classCallCheck(this, Slide);\n this.slide = document.querySelector(slide);\n this.wrapper = document.querySelector(wrapper);\n this.dist = {\n finalPosition: 0,\n startX: 0,\n movement: 0\n };\n this.activeClass = 'active';\n this.changeEvent = new Event('changeEvent');\n }\n _createClass(Slide, [{\n key: \"transition\",\n value: function transition(active) {\n this.slide.style.transition = active ? 'transform .3s' : '';\n }\n }, {\n key: \"moveSlide\",\n value: function moveSlide(distX) {\n this.dist.movePosition = distX;\n this.slide.style.transform = \"translate3d(\".concat(distX, \"px, 0, 0)\");\n }\n }, {\n key: \"updatePosition\",\n value: function updatePosition(clientX) {\n this.dist.movement = (this.dist.startX - clientX) * 1.6;\n return this.dist.finalPosition - this.dist.movement;\n }\n }, {\n key: \"onStart\",\n value: function onStart(event) {\n var movetype;\n if (event.type === 'mousedown') {\n event.preventDefault();\n this.dist.startX = event.clientX;\n movetype = 'mousemove';\n } else {\n this.dist.startX = event.changedTouches[0].clientX;\n movetype = 'touchmove';\n }\n this.wrapper.addEventListener(movetype, this.onMove);\n this.transition(false);\n }\n }, {\n key: \"onMove\",\n value: function onMove(event) {\n var pointerPosition = event.type === 'mousemove' ? event.clientX : event.changedTouches[0].clientX;\n var finalPosition = this.updatePosition(pointerPosition);\n this.moveSlide(finalPosition);\n }\n }, {\n key: \"onEnd\",\n value: function onEnd(event) {\n var movetype = event.type === 'mouseup' ? 'mousemove' : 'touchmove';\n this.wrapper.removeEventListener(movetype, this.onMove);\n this.dist.finalPosition = this.dist.movePosition;\n this.transition(true);\n this.changeSlideOnEnd();\n }\n }, {\n key: \"changeSlideOnEnd\",\n value: function changeSlideOnEnd() {\n if (this.dist.movement > 120 && this.index.next !== undefined) {\n this.activeNextSlide();\n } else if (this.dist.movement < -120 && this.index.prev !== undefined) {\n this.activePrevSlide();\n } else {\n this.changeSlide(this.index.active);\n }\n }\n }, {\n key: \"addSlideEvents\",\n value: function addSlideEvents() {\n this.wrapper.addEventListener('mousedown', this.onStart);\n this.wrapper.addEventListener('touchstart', this.onStart);\n this.wrapper.addEventListener('mouseup', this.onEnd);\n this.wrapper.addEventListener('touchend', this.onEnd);\n }\n\n // Slides config\n }, {\n key: \"slidePosition\",\n value: function slidePosition(slide) {\n var margin = (this.wrapper.offsetWidth - slide.offsetWidth) / 2;\n return -(slide.offsetLeft - margin);\n }\n }, {\n key: \"slidesConfig\",\n value: function slidesConfig() {\n var _this = this;\n this.slideArray = _toConsumableArray(this.slide.children).map(function (element) {\n var position = _this.slidePosition(element);\n return {\n position: position,\n element: element\n };\n });\n }\n }, {\n key: \"slidesIndexNav\",\n value: function slidesIndexNav(index) {\n var last = this.slideArray.length - 1;\n this.index = {\n prev: index ? index - 1 : undefined,\n active: index,\n next: index === last ? undefined : index + 1\n };\n }\n }, {\n key: \"changeSlide\",\n value: function changeSlide(index) {\n var activeSlide = this.slideArray[index];\n this.moveSlide(activeSlide.position);\n this.slidesIndexNav(index);\n this.dist.finalPosition = activeSlide.position;\n this.changeActiveClass();\n this.wrapper.dispatchEvent(this.changeEvent);\n }\n }, {\n key: \"changeActiveClass\",\n value: function changeActiveClass() {\n var _this2 = this;\n this.slideArray.forEach(function (item) {\n return item.element.classList.remove(_this2.activeClass);\n });\n this.slideArray[this.index.active].element.classList.add(this.activeClass);\n }\n }, {\n key: \"activePrevSlide\",\n value: function activePrevSlide() {\n if (this.index.prev !== undefined) this.changeSlide(this.index.prev);\n }\n }, {\n key: \"activeNextSlide\",\n value: function activeNextSlide() {\n if (this.index.next !== undefined) this.changeSlide(this.index.next);\n }\n }, {\n key: \"onResize\",\n value: function onResize() {\n var _this3 = this;\n setTimeout(function () {\n _this3.slidesConfig();\n _this3.changeSlide(_this3.index.active);\n }, 1000);\n }\n }, {\n key: \"addResizeEvent\",\n value: function addResizeEvent() {\n window.addEventListener('resize', this.onResize);\n }\n }, {\n key: \"bindEvents\",\n value: function bindEvents() {\n this.onStart = this.onStart.bind(this);\n this.onMove = this.onMove.bind(this);\n this.onEnd = this.onEnd.bind(this);\n this.activePrevSlide = this.activePrevSlide.bind(this);\n this.activeNextSlide = this.activeNextSlide.bind(this);\n this.onResize = (0,_debounce_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.onResize.bind(this), 200);\n }\n }, {\n key: \"init\",\n value: function init() {\n this.bindEvents();\n this.transition(true);\n this.addSlideEvents();\n this.slidesConfig();\n this.addResizeEvent();\n this.changeSlide(0);\n return this;\n }\n }]);\n return Slide;\n}();\nvar SlideNav = /*#__PURE__*/function (_Slide) {\n _inherits(SlideNav, _Slide);\n var _super = _createSuper(SlideNav);\n function SlideNav(slide, wrapper) {\n var _this4;\n _classCallCheck(this, SlideNav);\n _this4 = _super.call(this, slide, wrapper);\n _this4.bindControlEvents();\n return _this4;\n }\n _createClass(SlideNav, [{\n key: \"addArrow\",\n value: function addArrow(prev, next) {\n this.prevElement = document.querySelector(prev);\n this.nextElement = document.querySelector(next);\n this.addArrowEvent();\n }\n }, {\n key: \"addArrowEvent\",\n value: function addArrowEvent() {\n this.prevElement.addEventListener('click', this.activePrevSlide);\n this.nextElement.addEventListener('click', this.activeNextSlide);\n }\n }, {\n key: \"createControl\",\n value: function createControl() {\n var control = document.createElement('ul');\n control.dataset.control = 'slide';\n this.slideArray.forEach(function (item, index) {\n control.innerHTML += \"<li><a href=\\\"#slide\".concat(index + 1, \"\\\">\").concat(index + 1, \"</a></li>\");\n });\n this.wrapper.appendChild(control);\n return control;\n }\n }, {\n key: \"eventControl\",\n value: function eventControl(item, index) {\n var _this5 = this;\n item.addEventListener('click', function (event) {\n event.preventDefault();\n _this5.changeSlide(index);\n });\n this.wrapper.addEventListener('changeEvent', this.activeControlItem);\n }\n }, {\n key: \"activeControlItem\",\n value: function activeControlItem() {\n var _this6 = this;\n this.controlArray.forEach(function (item) {\n return item.classList.remove(_this6.activeClass);\n });\n this.controlArray[this.index.active].classList.add(this.activeClass);\n }\n }, {\n key: \"addControl\",\n value: function addControl(customControl) {\n this.control = document.querySelector(customControl) || this.createControl();\n this.controlArray = _toConsumableArray(this.control.children);\n this.activeControlItem();\n this.controlArray.forEach(this.eventControl);\n }\n }, {\n key: \"bindControlEvents\",\n value: function bindControlEvents() {\n this.eventControl = this.eventControl.bind(this);\n this.activeControlItem = this.activeControlItem.bind(this);\n }\n }]);\n return SlideNav;\n}(Slide);\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/slide.js?");
/***/ }),
/***/ "./js/modules/tabnav.js":
/*!******************************!*\
!*** ./js/modules/tabnav.js ***!
\******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TabNav)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar TabNav = /*#__PURE__*/function () {\n function TabNav(menu, content) {\n _classCallCheck(this, TabNav);\n this.tabMenu = document.querySelectorAll(menu);\n this.tabContent = document.querySelectorAll(content);\n this.activeClass = 'ativo';\n }\n\n // Ativa a tab de acordo com o index da mesma\n _createClass(TabNav, [{\n key: \"activeTab\",\n value: function activeTab(index) {\n var _this = this;\n this.tabContent.forEach(function (section) {\n section.classList.remove(_this.activeClass);\n });\n var direcao = this.tabContent[index].dataset.anime;\n this.tabContent[index].classList.add(this.activeClass, direcao);\n }\n\n // Adiciona os eventos nas tabs\n }, {\n key: \"addTabNavEvent\",\n value: function addTabNavEvent() {\n var _this2 = this;\n this.tabMenu.forEach(function (itemMenu, index) {\n itemMenu.addEventListener('click', function () {\n return _this2.activeTab(index);\n });\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.tabMenu.length && this.tabContent.length) {\n // ativar primeiro item\n this.activeTab(0);\n this.addTabNavEvent();\n }\n return this;\n }\n }]);\n return TabNav;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/tabnav.js?");
/***/ }),
/***/ "./js/modules/tooltip.js":
/*!*******************************!*\
!*** ./js/modules/tooltip.js ***!
\*******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Tooltip)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar Tooltip = /*#__PURE__*/function () {\n function Tooltip(tooltips) {\n _classCallCheck(this, Tooltip);\n this.tooltips = document.querySelectorAll(tooltips);\n\n // bind do objeto da classe aos callbacks\n this.onMouseLeave = this.onMouseLeave.bind(this);\n this.onMouseMove = this.onMouseMove.bind(this);\n this.onMouseOver = this.onMouseOver.bind(this);\n }\n\n // Move a tooltip com base em seus estilos\n // de acordo com a posição do mouse\n _createClass(Tooltip, [{\n key: \"onMouseMove\",\n value: function onMouseMove(event) {\n this.tooltipBox.style.top = \"\".concat(event.pageY + 20, \"px\");\n if (event.pageX + 240 > window.innerWidth) {\n this.tooltipBox.style.left = \"\".concat(event.pageX - 190, \"px\");\n } else {\n this.tooltipBox.style.left = \"\".concat(event.pageX + 20, \"px\");\n }\n }\n\n // Remove a tooltip e os eventos de mousemove e mouseleave\n }, {\n key: \"onMouseLeave\",\n value: function onMouseLeave(_ref) {\n var currentTarget = _ref.currentTarget;\n this.tooltipBox.remove();\n currentTarget.removeEventListener('mouseleave', this.onMouseLeave);\n currentTarget.removeEventListener('mousemove', this.onMouseMove);\n }\n\n // Cria a tooltip box e coloca no body\n }, {\n key: \"criarTooltipBox\",\n value: function criarTooltipBox(element) {\n var tooltipBox = document.createElement('div');\n var text = element.getAttribute('aria-label');\n tooltipBox.classList.add('tooltip');\n tooltipBox.innerText = text;\n document.body.appendChild(tooltipBox);\n this.tooltipBox = tooltipBox;\n }\n\n // Cria a tooltip e adiciona os eventos\n // de mousemove e mouseleave ao target\n }, {\n key: \"onMouseOver\",\n value: function onMouseOver(_ref2) {\n var currentTarget = _ref2.currentTarget;\n // cria a tooltipbox e coloca em uma propriedade\n this.criarTooltipBox(currentTarget);\n currentTarget.addEventListener('mousemove', this.onMouseMove);\n currentTarget.addEventListener('mouseleave', this.onMouseLeave);\n }\n\n // Adiciona os eventos de mouseover a cada tooltip\n }, {\n key: \"addTooltipsEvent\",\n value: function addTooltipsEvent() {\n var _this = this;\n this.tooltips.forEach(function (item) {\n item.addEventListener('mouseover', _this.onMouseOver);\n });\n }\n }, {\n key: \"init\",\n value: function init() {\n if (this.tooltips.length) {\n this.addTooltipsEvent();\n }\n return this;\n }\n }]);\n return Tooltip;\n}();\n\n\n//# sourceURL=webpack://my-webpack-project/./js/modules/tooltip.js?");
/***/ }),
/***/ "./js/script.js":
/*!**********************!*\
!*** ./js/script.js ***!
\**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_scroll_suave_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/scroll-suave.js */ \"./js/modules/scroll-suave.js\");\n/* harmony import */ var _modules_accordion_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/accordion.js */ \"./js/modules/accordion.js\");\n/* harmony import */ var _modules_tabnav_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modules/tabnav.js */ \"./js/modules/tabnav.js\");\n/* harmony import */ var _modules_modal_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/modal.js */ \"./js/modules/modal.js\");\n/* harmony import */ var _modules_tooltip_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modules/tooltip.js */ \"./js/modules/tooltip.js\");\n/* harmony import */ var _modules_dropdown_menu_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modules/dropdown-menu.js */ \"./js/modules/dropdown-menu.js\");\n/* harmony import */ var _modules_menu_mobile_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modules/menu-mobile.js */ \"./js/modules/menu-mobile.js\");\n/* harmony import */ var _modules_funcionamento_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modules/funcionamento.js */ \"./js/modules/funcionamento.js\");\n/* harmony import */ var _modules_fetch_animais_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modules/fetch-animais.js */ \"./js/modules/fetch-animais.js\");\n/* harmony import */ var _modules_fetch_bitcoin_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./modules/fetch-bitcoin.js */ \"./js/modules/fetch-bitcoin.js\");\n/* harmony import */ var _modules_scroll_anima_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./modules/scroll-anima.js */ \"./js/modules/scroll-anima.js\");\n/* harmony import */ var _modules_slide_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modules/slide.js */ \"./js/modules/slide.js\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar scrollSuave = new _modules_scroll_suave_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]('[data-menu=\"suave\"] a[href^=\"#\"]');\nscrollSuave.init();\nvar accordion = new _modules_accordion_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('[data-anime=\"accordion\"] dt');\naccordion.init();\nvar tabNav = new _modules_tabnav_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('[data-tab=\"menu\"] li', '[data-tab=\"content\"] section');\ntabNav.init();\nvar modal = new _modules_modal_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('[data-modal=\"abrir\"]', '[data-modal=\"fechar\"]', '[data-modal=\"container\"]');\nmodal.init();\nvar tooltip = new _modules_tooltip_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]('[data-tooltip]');\ntooltip.init();\nvar scrollAnima = new _modules_scroll_anima_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"]('[data-anime=\"scroll\"]');\nscrollAnima.init();\nvar dropdownMenu = new _modules_dropdown_menu_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"]('[data-dropdown]');\ndropdownMenu.init();\nvar menuMobile = new _modules_menu_mobile_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"]('[data-menu=\"button\"]', '[data-menu=\"list\"]');\nmenuMobile.init();\nvar funcionamento = new _modules_funcionamento_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]('[data-semana]', 'aberto');\nfuncionamento.init();\n(0,_modules_fetch_animais_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])('./animaisapi.json', '.numeros-grid');\n(0,_modules_fetch_bitcoin_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"])('https://blockchain.info/ticker', '.btc-preco');\nvar slide = new _modules_slide_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"]('.slide', '.slide-wrapper');\nslide.init();\nslide.addControl('.custom-controls');\n\n//# sourceURL=webpack://my-webpack-project/./js/script.js?");
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./js/script.js");
/******/
/******/ })()
;