From f312838b3aa9571061123b3d8a01ba1e9ee9ff2b Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Fri, 15 Feb 2019 17:05:33 -0200 Subject: [PATCH] novos arquivos de layout... juntos ao commit anterior --- sapl/static/sapl/css/painel.fcdc2950.css | 1 + sapl/static/sapl/js/compilacao.fff51687.js | 240 +++++++++++++++++++++ 2 files changed, 241 insertions(+) create mode 100644 sapl/static/sapl/css/painel.fcdc2950.css create mode 100644 sapl/static/sapl/js/compilacao.fff51687.js diff --git a/sapl/static/sapl/css/painel.fcdc2950.css b/sapl/static/sapl/css/painel.fcdc2950.css new file mode 100644 index 000000000..1dc938dbd --- /dev/null +++ b/sapl/static/sapl/css/painel.fcdc2950.css @@ -0,0 +1 @@ +.painel-principal{background:#1c1b1b;font-family:Verdana}.painel-principal .text-title{color:#4fa64d;margin:.5rem}.painel-principal .text-subtitle{color:#459170}.painel-principal .data-hora{font-size:180%}.painel-principal .text-value{color:#fff}.painel-principal .logo-painel{max-width:100%}.painel-principal .painels{-ms-flex-wrap:wrap;flex-wrap:wrap}.painel-principal .painel{margin-top:1rem}.painel-principal .painel table{width:100%}.painel-principal .painel h2{margin-bottom:.5rem}.painel-principal .painel #oradores_list,.painel-principal .painel #votacao{text-align:left;display:inline-block;margin-bottom:1rem} \ No newline at end of file diff --git a/sapl/static/sapl/js/compilacao.fff51687.js b/sapl/static/sapl/js/compilacao.fff51687.js new file mode 100644 index 000000000..bcd812785 --- /dev/null +++ b/sapl/static/sapl/js/compilacao.fff51687.js @@ -0,0 +1,240 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // install a JSONP callback for chunk loading +/******/ function webpackJsonpCallback(data) { +/******/ var chunkIds = data[0]; +/******/ var moreModules = data[1]; +/******/ var executeModules = data[2]; +/******/ +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0, resolves = []; +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(installedChunks[chunkId]) { +/******/ resolves.push(installedChunks[chunkId][0]); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ for(moduleId in moreModules) { +/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { +/******/ modules[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(parentJsonpFunction) parentJsonpFunction(data); +/******/ +/******/ while(resolves.length) { +/******/ resolves.shift()(); +/******/ } +/******/ +/******/ // add entry modules from loaded chunk to deferred list +/******/ deferredModules.push.apply(deferredModules, executeModules || []); +/******/ +/******/ // run deferred modules when all chunks ready +/******/ return checkDeferredModules(); +/******/ }; +/******/ function checkDeferredModules() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ return result; +/******/ } +/******/ +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // Promise = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "compilacao": 0 +/******/ }; +/******/ +/******/ var deferredModules = []; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = "/static/sapl/"; +/******/ +/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || []; +/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); +/******/ jsonpArray.push = webpackJsonpCallback; +/******/ jsonpArray = jsonpArray.slice(); +/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); +/******/ var parentJsonpFunction = oldJsonpFunction; +/******/ +/******/ +/******/ // add entry module to deferred list +/******/ deferredModules.push([1,"chunk-vendors"]); +/******/ // run deferred modules when ready +/******/ return checkDeferredModules(); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "08cb": +/*!*******************************************************!*\ + !*** ./src/apps/compilacao/js/old/compilacao_view.js ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(jQuery) {/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"ac6a\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.search */ \"386d\");\n/* harmony import */ var core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_1__);\n\n\nvar _$ = window.$;\n\nvar JsDiff = __webpack_require__(/*! diff */ \"bf68\");\n\nfunction isElementInViewport(el) {\n if (typeof jQuery === 'function' && el instanceof jQuery) {\n el = el[0];\n }\n\n var rect = el.getBoundingClientRect();\n return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);\n}\n\nfunction textoMultiVigente(item, diff) {\n var elv = null;\n\n var ldpts = _$('.dptt');\n\n for (var i = 0; i < ldpts.length; i++) {\n if (_$(ldpts[i]).hasClass('displaynone')) continue;\n\n if (isElementInViewport(ldpts[i])) {\n if (i + 1 < ldpts.length) elv = ldpts[i + 1];else {\n elv = ldpts[i];\n }\n break;\n }\n }\n\n _$('.cp .tipo-vigencias a').removeClass('selected');\n\n _$(item).addClass('selected');\n\n _$('.dptt.desativado').removeClass('displaynone');\n\n _$('.dtxt').removeClass('displaynone');\n\n _$('.dtxt.diff').remove();\n\n _$('.nota-alteracao').removeClass('displaynone');\n\n if (diff) {\n _$('.dtxt[id^=\"da\"').each(function () {\n if (_$(this).html().search(/<\\/\\w+>/g) > 0) {\n return;\n }\n\n var pk = _$(this).attr('pk');\n\n var pks = _$(this).attr('pks');\n\n var a = _$('#d' + pks).contents().filter(function () {\n return this.nodeType === Node.TEXT_NODE;\n });\n\n var b = _$('#da' + pk).contents().filter(function () {\n return this.nodeType === Node.TEXT_NODE;\n });\n\n var diff = JsDiff.diffWordsWithSpace(_$(a).text(), _$(b).text());\n\n if (diff.length > 0) {\n _$('#d' + pks).closest('.desativado').addClass('displaynone');\n\n var clone = _$('#da' + pk).clone();\n\n _$('#da' + pk).after(clone);\n\n _$('#da' + pk).addClass('displaynone');\n\n _$(clone).addClass('diff').html('');\n\n diff.forEach(function (part) {\n // let color = part.added ? '#018' : part.removed ? '#faa' : ''\n var span = document.createElement('span');\n var value = part.value;\n\n if (part.removed) {\n _$(span).addClass('desativado');\n\n value += ' ';\n } else if (part.added) {\n _$(span).addClass('added');\n }\n\n span.appendChild(document.createTextNode(value));\n\n _$(clone).append(span);\n });\n }\n }); // textoVigente(item, true)\n\n }\n\n if (elv) {\n try {\n _$('html, body').animate({\n scrollTop: _$(elv).parent().offset().top - 60\n }, 0);\n } catch (err) {\n console.log(err);\n }\n }\n}\n\nfunction textoVigente(item, link) {\n var elv = null;\n\n var ldpts = _$('.dptt');\n\n for (var i = 0; i < ldpts.length; i++) {\n if (_$(ldpts[i]).hasClass('displaynone')) continue;\n\n if (isElementInViewport(ldpts[i])) {\n if (i + 1 < ldpts.length) elv = ldpts[i + 1];else {\n elv = ldpts[i];\n }\n break;\n }\n }\n\n _$('.cp .tipo-vigencias a').removeClass('selected');\n\n _$(item).addClass('selected');\n\n _$('.dptt.desativado').addClass('displaynone');\n\n _$('.nota-alteracao').removeClass('displaynone');\n\n if (!link) _$('.nota-alteracao').addClass('displaynone');\n\n if (elv) {\n try {\n _$('html, body').animate({\n scrollTop: _$(elv).parent().offset().top - 60\n }, 0);\n } catch (err) {\n console.log(err);\n }\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isElementInViewport: isElementInViewport,\n textoMultiVigente: textoMultiVigente,\n textoVigente: textoVigente\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"1157\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDhjYi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9hcHBzL2NvbXBpbGFjYW8vanMvb2xkL2NvbXBpbGFjYW9fdmlldy5qcz8wOGNiIl0sInNvdXJjZXNDb250ZW50IjpbImxldCBfJCA9IHdpbmRvdy4kXG5sZXQgSnNEaWZmID0gcmVxdWlyZSgnZGlmZicpXG5cbmZ1bmN0aW9uIGlzRWxlbWVudEluVmlld3BvcnQgKGVsKSB7XG4gIGlmICh0eXBlb2YgalF1ZXJ5ID09PSAnZnVuY3Rpb24nICYmIGVsIGluc3RhbmNlb2YgalF1ZXJ5KSB7XG4gICAgZWwgPSBlbFswXVxuICB9XG5cbiAgbGV0IHJlY3QgPSBlbC5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKVxuXG4gIHJldHVybiAoXG4gICAgcmVjdC50b3AgPj0gM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UNsYXNzKCdkaXNwbGF5bm9uZScpXG5cbiAgaWYgKGRpZmYpIHtcbiAgICBfJCgnLmR0eHRbaWRePVwiZGFcIicpLmVhY2goZnVuY3Rpb24gKCkge1xuICAgICAgaWYgKF8kKHRoaXMpXG4gICAgICAgIC5odG1sKClcbiAgICAgICAgLnNlYXJjaCgvPFxcL1xcdys+L2cpID4gMCkge1xuICAgICAgICByZXR1cm5cbiAgICAgIH1cblxuICAgICAgbGV0IHBrID0gXyQodGhpcykuYXR0cigncGsnKVxuICAgICAgbGV0IHBrcyA9IF8kKHRoaXMpLmF0dHIoJ3BrcycpXG5cbiAgICAgIGxldCBhID0gXyQoJyNkJyArIHBrcylcbiAgICAgICAgLmNvbnRlbnRzKClcbiAgICAgICAgLmZpbHRlcihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgcmV0dXJuIHRoaXMubm9kZVR5cGUgPT09IE5vZGUuVEVYVF9OT0RFXG4gICAgICAgIH0pXG4gICAgICBsZXQgYiA9IF8kKCcjZGEnICsgcGspXG4gICAgICAgIC5jb250ZW50cygpXG4gICAgICAgIC5maWx0ZXIoZnVuY3Rpb24gKCkge1xuICAgICAgICAgIHJldHVybiB0aGlzLm5vZGVUeXBlID09PSBOb2RlLlRFWFRfTk9ERVxuICAgICAgICB9KVxuXG4gICAgICBsZXQgZGlmZiA9IEpzRGlmZi5kaWZmV29yZHNXaXRoU3BhY2UoXyQoYSkudGV4dCgpLCBfJChiKS50ZXh0KCkpXG5cbiAgICAgIGlmIChkaWZmLmxlbmd0aCA+IDApIHtcbiAgICAgICAgXyQoJyNkJyArIHBrcylcbiAgICAgICAgICAuY2xvc2VzdCgnLmRlc2F0aXZhZG8nKVxuICAgICAgICAgIC5hZGRDbGFzcygnZGlzcGxheW5vbmUnKVxuXG4gICAgICAgIGxldCBjbG9uZSA9IF8kKCcjZGEnICsgcGspLmNsb25lKClcbiAgICAgICAgXyQoJyNkYScgKyBwaykuYWZ0ZXIoY2xvbmUpXG4gICAgICAg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BQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQURBO0FBUUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///08cb\n"); + +/***/ }), + +/***/ 1: +/*!*******************************************!*\ + !*** multi ./src/apps/compilacao/main.js ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! ./src/apps/compilacao/main.js */"ef7e"); + + +/***/ }), + +/***/ "42f9": +/*!**************************************************!*\ + !*** ./src/apps/compilacao/js/old/compilacao.js ***! + \**************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _home_leandro_desenvolvimento_envs_sapl_frontend_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/json/stringify */ \"f499\");\n/* harmony import */ var _home_leandro_desenvolvimento_envs_sapl_frontend_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_home_leandro_desenvolvimento_envs_sapl_frontend_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_array_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.array.find */ \"7514\");\n/* harmony import */ var core_js_modules_es6_array_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_find__WEBPACK_IMPORTED_MODULE_1__);\n\n\nvar _$ = window.$;\n\nfunction SetCookie(cookieName, cookieValue, nDays) {\n var today = new Date();\n var expire = new Date();\n if (nDays === null || nDays === 0) nDays = 1;\n expire.setTime(today.getTime() + 3600000 * 24 * nDays);\n document.cookie = cookieName + '=' + escape(cookieValue) + ';expires=' + expire.toGMTString();\n}\n\nfunction ReadCookie(cookieName) {\n var theCookie = ' ' + document.cookie;\n var ind = theCookie.indexOf(' ' + cookieName + '=');\n if (ind === -1) ind = theCookie.indexOf(';' + cookieName + '=');\n if (ind === -1 || cookieName === '') return '';\n var ind1 = theCookie.indexOf(';', ind + 1);\n if (ind1 === -1) ind1 = theCookie.length;\n return unescape(theCookie.substring(ind + cookieName.length + 2, ind1));\n}\n\nfunction insertWaitAjax(element) {\n // jQuery(element).append('
')\n _$(element).append('
');\n}\n\nfunction DispositivoSearch(opts) {\n _$(function () {\n var formData = {};\n\n var containerDs = _$('body').children('#container_ds');\n\n if (containerDs.length > 0) {\n _$(containerDs).remove();\n }\n\n containerDs = _$('
');\n\n _$('body').prepend(containerDs);\n\n var fields = _$('[data-sapl-ta=\"DispositivoSearch\"]');\n\n fields.each(function () {\n var field = _$(this);\n\n var dataTypeSelection = field.attr('data-type-selection');\n var dataField = field.attr('data-field');\n var dataFunction = field.attr('data-function');\n\n var onChangeFieldSelects = function onChangeFieldSelects(event) {\n if (dataTypeSelection === 'checkbox') {\n var tas = field.find('input[name=\"ta_select_all\"]'); // tas - Textos Articulados\n\n tas.off();\n tas.on('change', function (event) {\n _$(this).closest('ul').find('input[name=\"' + dataField + '\"]').prop('checked', this.checked); // _$(this).prop('checked', false)\n\n });\n } else {\n var dpts = field.find('input');\n dpts.off();\n dpts.attr('type', 'hidden');\n\n _$('').insertBefore(dpts).append(_$('×')).on('click', function () {\n if (_$(this).closest('ul').find('li').length === 2) {\n _$(this).closest('ul').remove();\n } else {\n _$(this).closest('li').remove();\n }\n });\n }\n };\n\n onChangeFieldSelects();\n\n var onChangeParamTA = function onChangeParamTA(event) {\n var tipoTa = _$('select[name=\"tipo_ta\"]').val();\n\n var tipoModel = _$('select[name=\"tipo_model\"]').val();\n\n var numTa = _$('input[name=\"num_ta\"]').val();\n\n var anoTa = _$('input[name=\"ano_ta\"]').val();\n\n var dispositivosInternos = _$('input[name=\"dispositivos_internos\"]:checked').val();\n\n var rotuloDispositivo = _$('input[name=\"rotulo_dispositivo\"]').val();\n\n var textoDispositivo = _$('input[name=\"texto_dispositivo\"]').val();\n\n var maxResults = _$('select[name=\"max_results\"]').val();\n\n var url = '';\n\n if (rotuloDispositivo.length > 0 || textoDispositivo.length > 0) {\n _$('input[name=\"dispositivos_internos\"]').prop('disabled', false);\n\n _$('input[name=\"dispositivos_internos\"]').each(function (idx, element) {\n element.parentElement.classList.remove('disabled');\n });\n\n _$('input[name=\"dispositivos_internos\"]').closest('#div_id_dispositivos_internos').css('opacity', '1');\n } else {\n _$('input[name=\"dispositivos_internos\"]').filter('[value=\"False\"]').prop('checked', true);\n\n _$('input[name=\"dispositivos_internos\"]').prop('disabled', true);\n\n _$('input[name=\"dispositivos_internos\"]').each(function (idx, element) {\n element.parentElement.classList.add('disabled');\n });\n\n _$('input[name=\"dispositivos_internos\"]').closest('#div_id_dispositivos_internos').css('opacity', '0.3');\n\n dispositivosInternos = 'False';\n }\n\n formData = {\n 'tipo_ta': tipoTa,\n 'tipo_model': tipoModel,\n 'num_ta': numTa,\n 'ano_ta': anoTa,\n 'texto': textoDispositivo,\n 'rotulo': rotuloDispositivo,\n 'dispositivos_internos': dispositivosInternos,\n 'max_results': maxResults,\n 'data_type_selection': dataTypeSelection,\n 'data_field': dataField,\n 'data_function': dataFunction\n };\n window.localStorage.setItem('dispositivo_search_form_data', _home_leandro_desenvolvimento_envs_sapl_frontend_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default()(formData));\n url = '/ta/search_fragment_form';\n\n _$('.result-busca-dispositivo').html('');\n\n insertWaitAjax('.result-busca-dispositivo');\n\n _$.get(url, formData).done(function (data) {\n _$('.result-busca-dispositivo').html(data); // OptionalCustomFrontEnd().init()\n\n\n if (dataTypeSelection === 'checkbox') {\n var tas = _$('.result-busca-dispositivo').find('input[name=\"ta_select_all\"]');\n\n tas.off();\n tas.on('change', function (event) {\n _$(this).closest('ul').find('input[name=\"' + dataField + '\"]').prop('checked', this.checked);\n });\n }\n });\n };\n\n var onKeyPressRotuloBuscaTextual = function onKeyPressRotuloBuscaTextual(event) {\n var rotuloDispositivo = _$('input[name=\"rotulo_dispositivo\"]').val();\n\n var textoDispositivo = _$('input[name=\"texto_dispositivo\"]').val(); // let dispositivosInternos = _$('input[name=\"dispositivos_internos\"]:checked').val()\n\n\n if (rotuloDispositivo.length > 0 || textoDispositivo.length > 0) {\n _$('input[name=\"dispositivos_internos\"]').prop('disabled', false);\n\n _$('input[name=\"dispositivos_internos\"]').each(function (idx, element) {\n element.parentElement.classList.remove('disabled');\n });\n\n _$('input[name=\"dispositivos_internos\"]').closest('#div_id_dispositivos_internos').css('opacity', '1');\n } else {\n _$('input[name=\"dispositivos_internos\"]').filter('[value=\"False\"]').prop('checked', true);\n\n _$('input[name=\"dispositivos_internos\"]').prop('disabled', true);\n\n _$('input[name=\"dispositivos_internos\"]').each(function (idx, element) {\n element.parentElement.classList.add('disabled');\n });\n\n _$('input[name=\"dispositivos_internos\"]').closest('#div_id_dispositivos_internos').css('opacity', '0.3'); // dispositivosInternos = 'False'\n\n }\n };\n\n var buttonDs = field.children('#buttonDs');\n\n if (buttonDs.length > 0) {\n _$(buttonDs).remove();\n }\n\n buttonDs = _$('
');\n field.prepend(buttonDs);\n\n var btnOpenSearch = _$('