From 0070e89437500b071beab9259e8f31eb458b32a4 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sat, 16 Mar 2019 00:40:17 -0300 Subject: [PATCH] rebuild sapl-frontend para master MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lembrar de não fazer commits no sapl:3.1.x que misturem rebuilds do sapl-frontend:3.1.x com alterações no backend, isso causa a necessidade de cherry-pick de tal commit, no entanto, trazer um commit de rebuild do sapl-frontend:3.1.x para sapl:master gera a necessidade de rebuild de sapl-frontend para master... o correto então e trabalhar de forma isolada com o frontend e não fazer commits que envolva alterações do backend com rebuilds de frontend, ou seja, deixar o cherry-pick do frontend lá no font do frontend e não trazer para o build provocando passados desnecessários no backend --- ...8c82f4d6.js => chunk-2d0c4a82.b08760d4.js} | 0 ...d6.js.gz => chunk-2d0c4a82.b08760d4.js.gz} | Bin ...a6e556e8.js => chunk-2d0e8be2.7c437d2a.js} | 0 ...e8.js.gz => chunk-2d0e8be2.7c437d2a.js.gz} | Bin ...d5728997.js => chunk-3e2c11a1.ecaa49da.js} | 0 ...97.js.gz => chunk-3e2c11a1.ecaa49da.js.gz} | Bin ...9979cc5b.js => chunk-45646c50.e6ef0a44.js} | 0 ...5b.js.gz => chunk-45646c50.e6ef0a44.js.gz} | Bin ...fca61b25.js => chunk-4cf2dae1.69b9c8a1.js} | 0 ...25.js.gz => chunk-4cf2dae1.69b9c8a1.js.gz} | Bin .../sapl/frontend/js/compilacao.a120ef6f.js | 1 - .../frontend/js/compilacao.a120ef6f.js.gz | Bin 6683 -> 0 bytes ...cao.411d8643.js => compilacao.e6001ae8.js} | 2 +- ...1d8643.js.gz => compilacao.e6001ae8.js.gz} | Bin 6683 -> 6687 bytes .../sapl/frontend/js/global.06b30fe1.js | 7 ------- ...{global.a87c35c2.js => global.98ec7b90.js} | 2 +- ...l.06b30fe1.js.gz => global.98ec7b90.js.gz} | Bin 13864 -> 13861 bytes .../sapl/frontend/js/global.a87c35c2.js.gz | Bin 13865 -> 0 bytes .../sapl/frontend/js/online.98f44927.js.gz | Bin 3860 -> 0 bytes ...{online.98f44927.js => online.99b167f0.js} | 2 +- .../sapl/frontend/js/online.99b167f0.js.gz | Bin 0 -> 3860 bytes sapl/webpack-stats.json | 2 +- 22 files changed, 4 insertions(+), 12 deletions(-) rename sapl/static/sapl/frontend/js/{chunk-2d0c4a82.8c82f4d6.js => chunk-2d0c4a82.b08760d4.js} (100%) rename sapl/static/sapl/frontend/js/{chunk-2d0c4a82.8c82f4d6.js.gz => chunk-2d0c4a82.b08760d4.js.gz} (100%) rename sapl/static/sapl/frontend/js/{chunk-2d0e8be2.a6e556e8.js => chunk-2d0e8be2.7c437d2a.js} (100%) rename sapl/static/sapl/frontend/js/{chunk-2d0e8be2.a6e556e8.js.gz => chunk-2d0e8be2.7c437d2a.js.gz} (100%) rename sapl/static/sapl/frontend/js/{chunk-3e2c11a1.d5728997.js => chunk-3e2c11a1.ecaa49da.js} (100%) rename sapl/static/sapl/frontend/js/{chunk-3e2c11a1.d5728997.js.gz => chunk-3e2c11a1.ecaa49da.js.gz} (100%) rename sapl/static/sapl/frontend/js/{chunk-45646c50.9979cc5b.js => chunk-45646c50.e6ef0a44.js} (100%) rename sapl/static/sapl/frontend/js/{chunk-45646c50.9979cc5b.js.gz => chunk-45646c50.e6ef0a44.js.gz} (100%) rename sapl/static/sapl/frontend/js/{chunk-4cf2dae1.fca61b25.js => chunk-4cf2dae1.69b9c8a1.js} (100%) rename sapl/static/sapl/frontend/js/{chunk-4cf2dae1.fca61b25.js.gz => chunk-4cf2dae1.69b9c8a1.js.gz} (100%) delete mode 100644 sapl/static/sapl/frontend/js/compilacao.a120ef6f.js delete mode 100644 sapl/static/sapl/frontend/js/compilacao.a120ef6f.js.gz rename sapl/static/sapl/frontend/js/{compilacao.411d8643.js => compilacao.e6001ae8.js} (81%) rename sapl/static/sapl/frontend/js/{compilacao.411d8643.js.gz => compilacao.e6001ae8.js.gz} (81%) delete mode 100644 sapl/static/sapl/frontend/js/global.06b30fe1.js rename sapl/static/sapl/frontend/js/{global.a87c35c2.js => global.98ec7b90.js} (74%) rename sapl/static/sapl/frontend/js/{global.06b30fe1.js.gz => global.98ec7b90.js.gz} (52%) delete mode 100644 sapl/static/sapl/frontend/js/global.a87c35c2.js.gz delete mode 100644 sapl/static/sapl/frontend/js/online.98f44927.js.gz rename sapl/static/sapl/frontend/js/{online.98f44927.js => online.99b167f0.js} (90%) create mode 100644 sapl/static/sapl/frontend/js/online.99b167f0.js.gz diff --git a/sapl/static/sapl/frontend/js/chunk-2d0c4a82.8c82f4d6.js b/sapl/static/sapl/frontend/js/chunk-2d0c4a82.b08760d4.js similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-2d0c4a82.8c82f4d6.js rename to sapl/static/sapl/frontend/js/chunk-2d0c4a82.b08760d4.js diff --git a/sapl/static/sapl/frontend/js/chunk-2d0c4a82.8c82f4d6.js.gz b/sapl/static/sapl/frontend/js/chunk-2d0c4a82.b08760d4.js.gz similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-2d0c4a82.8c82f4d6.js.gz rename to sapl/static/sapl/frontend/js/chunk-2d0c4a82.b08760d4.js.gz diff --git a/sapl/static/sapl/frontend/js/chunk-2d0e8be2.a6e556e8.js b/sapl/static/sapl/frontend/js/chunk-2d0e8be2.7c437d2a.js similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-2d0e8be2.a6e556e8.js rename to sapl/static/sapl/frontend/js/chunk-2d0e8be2.7c437d2a.js diff --git a/sapl/static/sapl/frontend/js/chunk-2d0e8be2.a6e556e8.js.gz b/sapl/static/sapl/frontend/js/chunk-2d0e8be2.7c437d2a.js.gz similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-2d0e8be2.a6e556e8.js.gz rename to sapl/static/sapl/frontend/js/chunk-2d0e8be2.7c437d2a.js.gz diff --git a/sapl/static/sapl/frontend/js/chunk-3e2c11a1.d5728997.js b/sapl/static/sapl/frontend/js/chunk-3e2c11a1.ecaa49da.js similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-3e2c11a1.d5728997.js rename to sapl/static/sapl/frontend/js/chunk-3e2c11a1.ecaa49da.js diff --git a/sapl/static/sapl/frontend/js/chunk-3e2c11a1.d5728997.js.gz b/sapl/static/sapl/frontend/js/chunk-3e2c11a1.ecaa49da.js.gz similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-3e2c11a1.d5728997.js.gz rename to sapl/static/sapl/frontend/js/chunk-3e2c11a1.ecaa49da.js.gz diff --git a/sapl/static/sapl/frontend/js/chunk-45646c50.9979cc5b.js b/sapl/static/sapl/frontend/js/chunk-45646c50.e6ef0a44.js similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-45646c50.9979cc5b.js rename to sapl/static/sapl/frontend/js/chunk-45646c50.e6ef0a44.js diff --git a/sapl/static/sapl/frontend/js/chunk-45646c50.9979cc5b.js.gz b/sapl/static/sapl/frontend/js/chunk-45646c50.e6ef0a44.js.gz similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-45646c50.9979cc5b.js.gz rename to sapl/static/sapl/frontend/js/chunk-45646c50.e6ef0a44.js.gz diff --git a/sapl/static/sapl/frontend/js/chunk-4cf2dae1.fca61b25.js b/sapl/static/sapl/frontend/js/chunk-4cf2dae1.69b9c8a1.js similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-4cf2dae1.fca61b25.js rename to sapl/static/sapl/frontend/js/chunk-4cf2dae1.69b9c8a1.js diff --git a/sapl/static/sapl/frontend/js/chunk-4cf2dae1.fca61b25.js.gz b/sapl/static/sapl/frontend/js/chunk-4cf2dae1.69b9c8a1.js.gz similarity index 100% rename from sapl/static/sapl/frontend/js/chunk-4cf2dae1.fca61b25.js.gz rename to sapl/static/sapl/frontend/js/chunk-4cf2dae1.69b9c8a1.js.gz diff --git a/sapl/static/sapl/frontend/js/compilacao.a120ef6f.js b/sapl/static/sapl/frontend/js/compilacao.a120ef6f.js deleted file mode 100644 index 961a102c5..000000000 --- a/sapl/static/sapl/frontend/js/compilacao.a120ef6f.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){function e(e){for(var n,s,r=e[0],d=e[1],l=e[2],f=0,p=[];f .dpt-form").html(""),o(".dpt-actions, .dpt-actions-bottom").html(""),window.tinymce.remove(),o(".dpt-selected").removeClass("dpt-selected")},t.editDispositivo=function(e){var i=e.target.classList.contains("dpt-link")?e.target:e.target.parentElement.classList.contains("dpt-link")?e.target.parentElement:null;if(!(i&&i.getAttribute("href")&&i.getAttribute("href").length>0)){var n=o(this).closest(".dpt");if(n.hasClass("dpt-selected"))"editor-close"===this.getAttribute("action")&&t.clearEditSelected();else{t.clearEditSelected(),t.loadActionsEdit(n);var a=n.attr("formtype");n.on(a,t[a]),t.loadForm(n,a)}}},t.gc=function(){setTimeout(function(){o(".dpt:not(.dpt-selected) > .dpt-form").html("")},500)},t.get_form_base=function(){var e=o(this);e.addClass("dpt-selected"),e.children().filter(".dpt-form").find("form").submit(t.onSubmitEditFormBase),t.scrollTo(e),e.off("get_form_base"),e.find(".btn-fechar").on("click",function(e){t.clearEditSelected(),e.preventDefault()});var i=e.find(".btns-excluir");e.find(".dpt-actions-bottom").first().append(i),i.find(".btn-outline-danger").on("click",t.bindActionsClick)},t.get_form_alteracao=function(){var e=o(this);e.off("get_form_alteracao"),o(".dpt-actions, .dpt-actions-bottom").html("");var i=e.children().filter(".dpt-form").children().first(),n=i[0].id_dispositivo_search_form.value;window.DispositivoSearch({url_form:n,text_button:"Selecionar"}),t.scrollTo(e),i.submit(t.onSubmitFormRegistraAlteracao),e.find(".btn-fechar").on("click",function(i){t.clearEditSelected(),t.triggerBtnDptEdit(e.attr("pk")),i.preventDefault()})},t.get_form_inclusao=function(){var e=o(this);e.off("get_form_inclusao"),o(".dpt-actions, .dpt-actions-bottom").html("");var i=e.children().filter(".dpt-form").children().first(),n=i[0].id_dispositivo_search_form.value;window.DispositivoSearch({url_form:n,text_button:"Selecionar",post_selected:t.allowed_inserts_registro_inclusao,params_post_selected:{pk_bloco:e.attr("pk")}}),t.scrollTo(e),i.submit(t.onSubmitFormRegistraInclusao),e.find(".btn-fechar").on("click",function(i){t.clearEditSelected(),t.triggerBtnDptEdit(e.attr("pk")),i.preventDefault()})},t.get_form_revogacao=function(){var e=o(this);e.off("get_form_revogacao"),o(".dpt-actions, .dpt-actions-bottom").html("");var i=e.children().filter(".dpt-form").children().first(),n=i[0].id_dispositivo_search_form.value;window.DispositivoSearch({url_form:n,text_button:"Selecionar"}),t.scrollTo(e),i.submit(t.onSubmitFormRegistraRevogacao),e.find(".btn-fechar").on("click",function(){t.clearEditSelected(),t.triggerBtnDptEdit(e.attr("pk"))})},t.allowed_inserts_registro_inclusao=function(e){var i=o("#id"+e.pk_bloco+" input[name='dispositivo_base_para_inclusao']");if(0!==i.length){var n=i[0].value,a={action:"get_actions_allowed_inserts_registro_inclusao",pk_bloco:e.pk_bloco},s=n+"/refresh";t.waitShow(),o.get(s,a).done(function(e){o(".allowed_inserts").html(e),o(".allowed_inserts").find(".btn-action").on("click",t.bindActionsClick)}).fail(t.waitHide).always(t.waitHide)}},t.loadActionsEdit=function(i){var n=i.attr("pk")+"/refresh?action=get_actions";o.get(n).done(function(n){i.find(".dpt-actions").first().html(n),i.find(".btn-action").on("click",t.bindActionsClick),i.find(".btn-compila").on("click",t.loadFormsCompilacao),i.find(".btn-editor-type").on("click",t.bindActionsEditorType),"construct"===e&&(i.find(".btn-group-inserts").first().addClass("open show"),i.find(".btn-group-inserts ul").first().addClass("show")),i.find(".btn-group-inserts button").mouseenter(function(t){i.find(".btn-group-inserts ul").removeClass("show"),i.find(".btn-group-inserts").removeClass("open show"),o(this.parentElement).addClass("open show"),o(this.parentElement).find("ul").addClass("show")}),i.find(".btn-group-inserts").mouseleave(function(t){i.find(".btn-group-inserts ul").removeClass("show"),i.find(".btn-group-inserts").removeClass("open show")}),t.gc()})},t.loadForm=function(i,n){var a=i.attr("pk"),s=i.children().filter(".dpt-form");if(1===s.length){var r=a+"/refresh?action="+n;o.get(r).done(function(t){"construct"!==e&&(s.html(t),"tinymce"===e&&window.initTextRichEditor()),i.trigger(n)}).always(function(){t.waitHide()})}},t.loadFormsCompilacao=function(e){var i=o(this).closest(".dpt"),n=this.getAttribute("action");i.on(n,t[n]),t.loadForm(i,n)},t.modalMessage=function(t,e,i){return null!==t&&""!==t&&(o("#modal-message #message").html(t),o("#modal-message").modal("show"),o("#modal-message, #modal-message .alert button").off(),o("#modal-message .alert").removeClass("alert-success alert-info alert-warning alert-danger alert-danger"),o("#modal-message .alert").addClass(e),null!=i&&o("#modal-message").on("hidden.bs.modal",i),o("#modal-message .alert button").on("click",function(){o("#modal-message").modal("hide")}),!0)},t.message=function(e){if(void 0!==e.message)if(e.message.modal)t.modalMessage(e.message.value,"alert-"+e.message.type,function(){t.waitShow(),t.refreshScreenFocusPk(e)});else{if(t.refreshScreenFocusPk(e),!("message"in e))return;var i=o(".cp-notify");i.removeClass("hide");var n=i.find(".message");n.text(e.message.value),n.removeClass("bg-primary bg-success bg-info bg-warning bg-danger").addClass("bg-"+e.message.type),setTimeout(function(){i.addClass("hide")},e.message.time?e.message.time:3e3)}else t.refreshScreenFocusPk(e)},t.offClicks=function(){o(".btn-dpt-edit").off()},t.onClicks=function(e){(null==e?o(".btn-dpt-edit"):o(e).find(".btn-dpt-edit")).on("click",t.editDispositivo)},t.onSubmitFormRegistraAlteracao=function(e){if(void 0===this.dispositivo_alterado)return t.modalMessage("Nenhum dispositivo selecionado","alert-info"),void(null!=e&&e.preventDefault());var i=void 0===this.dispositivo_alterado.length?[this.dispositivo_alterado]:n()(this.dispositivo_alterado),a={csrfmiddlewaretoken:this.csrfmiddlewaretoken.value,dispositivo_alterado:i.filter(function(t,e,i){return t.checked}).map(function(t){return t.value}),formtype:"get_form_alteracao"},s=o(this).closest(".dpt").attr("pk")+"/refresh";t.waitShow(),o.post(s,a).done(function(e){t.clearEditSelected(),null!=e.pk?t.message(e):alert("Erro na resposta!")}).always(function(){t.waitHide()}),null!=e&&e.preventDefault()},t.onSubmitFormRegistraInclusao=function(e){var i={csrfmiddlewaretoken:this.csrfmiddlewaretoken.value,dispositivo_base_para_inclusao:this.dispositivo_base_para_inclusao.value,formtype:"get_form_inclusao"},n=o(this).closest(".dpt").attr("pk")+"/refresh";t.waitShow(),o.post(n,i).done(function(e){t.clearEditSelected(),null!=e.pk?t.message(e):alert("Erro na resposta!")}).always(function(){t.waitHide()}),null!=e&&e.preventDefault()},t.onSubmitFormRegistraRevogacao=function(e){if(void 0===this.dispositivo_revogado)return t.modalMessage("Nenhum dispositivo selecionado","alert-info"),void(null!=e&&e.preventDefault());var i=void 0===this.dispositivo_revogado.length?[this.dispositivo_revogado]:n()(this.dispositivo_revogado),a={csrfmiddlewaretoken:this.csrfmiddlewaretoken.value,dispositivo_revogado:i.filter(function(t,e,i){return t.checked}).map(function(t){return t.value}),revogacao_em_bloco:this.revogacao_em_bloco.value,formtype:"get_form_revogacao"},s=o(this).closest(".dpt").attr("pk")+"/refresh";t.waitShow(),o.post(s,a).done(function(e){t.clearEditSelected(),null!=e.pk?t.message(e):alert("Erro na resposta!")}).always(function(){t.waitHide()}),null!=e&&e.preventDefault()},t.onSubmitEditFormBase=function(e){var i=this,n="",a="",s="",r=window.tinymce.get("id_texto"),d=window.tinymce.get("id_texto_atualizador");n=null!=r?r.getContent():this.id_texto.value,null!=d?a=d.getContent():"id_texto_atualizador"in this&&(a=this.id_texto_atualizador.value),"visibilidade"in this&&(s=this.visibilidade.value);var l={csrfmiddlewaretoken:this.csrfmiddlewaretoken.value,texto:n,texto_atualizador:a,visibilidade:s,formtype:"get_form_base"},c=o(this).closest(".dpt").attr("pk")+"/refresh";t.waitShow(),o.post(c,l).done(function(e){if("string"==typeof e){var n=o(i).closest(".dpt");return n=o("#"+n.replaceWith(e).attr("id")),t.onClicks(n),void t.waitHide()}t.clearEditSelected(),null!=e.pk?t.message(e):alert("Erro na resposta!")}).always(function(){t.waitHide()}),null!=e&&e.preventDefault()},t.refreshContent=function(e,i){if(0!==e.length){var n=e.shift(),a=n+"/refresh";o.get(a).done(function(a){var s=o("#id"+n).closest(".dpt");s=o("#"+s.replaceWith(a).attr("id")),t.onClicks(s),t.reloadFunctionsDraggables(),i>0&&t.triggerBtnDptEdit(i),t.refreshContent(e)})}else t.waitHide()},t.refreshScreenFocusPk=function(e){if(t.waitShow(),-1===e.pai[0]){t.waitShow();var i=location.href.split("#")[0];location.href=i+"#"+e.pk,location.reload(!0)}else t.refreshContent(e.pai,e.pk)},t.reloadFunctionsDraggables=function(){o(".dpt-alts").sortable({revert:!0,distance:15,start:function(t,e){},stop:function(t,e){var i=e.item.attr("pk"),n=e.item.closest(".dpt-alts").closest(".dpt").attr("pk"),a=i+"/refresh?action=json_drag_move_dpt_alterado&index="+e.item.index()+"&bloco_pk="+n;o.get(a).done(function(t){})}}),o(".dpt-alts .dpt").draggable({connectToSortable:".dpt-alts",revert:"invalid",zIndex:1,distance:15,drag:function(t,e){o(".dpt-alts").addClass("drag")},stop:function(t,e){o(".dpt-alts").removeClass("drag")}}),o(".dpt-alts").disableSelection()},t.scrollTo=function(t){try{o("html, body").animate({scrollTop:t.offset().top-window.innerHeight/9},100)}catch(t){}},t.triggerBtnDptEdit=function(t){var e=o("#id"+t+" > .dpt-text.btn-dpt-edit");0===e.length&&(e=o("#id"+t+" > .dpt-actions-fixed > .btn-dpt-edit")),e.trigger("click")},t.waitHide=function(){o("#wait_message").addClass("displaynone")},t.waitShow=function(){o("#wait_message").removeClass("displaynone")},t.init=function(){o(".dpt-actions-fixed").first().css("opacity","1"),null!==(e=window.ReadCookie("editortype"))&&""!==e||(e="textarea",window.SetCookie("editortype",e,30)),t.offClicks(),t.onClicks(),t.reloadFunctionsDraggables();var i=location.href.split("#");2===i.length&&""!==i[1]&&t.triggerBtnDptEdit(i[1]),o("main").click(function(e){e.target!==this&&e.target!==this.firstElementChild||t.clearEditSelected()}),t.waitHide()},t.init()},o(document).ready(function(){t(".cpe").length>0&&window.DispositivoEdit()})}).call(this,i("1157"))},1:function(t,e,i){t.exports=i("6ccd")},"4a8b":function(t,e,i){"use strict";var n=i("f499"),o=i.n(n),a=(i("7514"),i("cadf"),i("551c"),i("f751"),i("097d"),window.$);function s(t){a(t).append('
')}e.a={SetCookie:function(t,e,i){var n=new Date,o=new Date;null!==i&&0!==i||(i=1),o.setTime(n.getTime()+864e5*i),document.cookie=t+"="+escape(e)+";expires="+o.toGMTString()},ReadCookie:function(t){var e=" "+document.cookie,i=e.indexOf(" "+t+"=");if(-1===i&&(i=e.indexOf(";"+t+"=")),-1===i||""===t)return"";var n=e.indexOf(";",i+1);return-1===n&&(n=e.length),unescape(e.substring(i+t.length+2,n))},insertWaitAjax:s,DispositivoSearch:function(t){a(function(){var e={},i=a("body").children("#container_ds");i.length>0&&a(i).remove(),i=a('
'),a("body").prepend(i),a('[data-sapl-ta="DispositivoSearch"]').each(function(){var n=a(this),r=n.attr("data-type-selection"),d=n.attr("data-field"),l=n.attr("data-function"),c=function(t){if("checkbox"===r){var e=n.find('input[name="ta_select_all"]');e.off(),e.on("change",function(t){a(this).closest("ul").find('input[name="'+d+'"]').prop("checked",this.checked)})}else{var i=n.find("input");i.off(),i.attr("type","hidden"),a('').insertBefore(i).append(a('')).on("click",function(){2===a(this).closest("ul").find("li").length?a(this).closest("ul").remove():a(this).closest("li").remove()})}};c();var f=function(t){var i=a('select[name="tipo_ta"]').val(),n=a('select[name="tipo_model"]').val(),c=a('input[name="num_ta"]').val(),f=a('input[name="ano_ta"]').val(),p=a('input[name="dispositivos_internos"]:checked').val(),u=a('input[name="rotulo_dispositivo"]').val(),m=a('input[name="texto_dispositivo"]').val(),v=a('select[name="max_results"]').val();u.length>0||m.length>0?(a('input[name="dispositivos_internos"]').prop("disabled",!1),a('input[name="dispositivos_internos"]').each(function(t,e){e.parentElement.classList.remove("disabled")}),a('input[name="dispositivos_internos"]').closest("#div_id_dispositivos_internos").css("opacity","1")):(a('input[name="dispositivos_internos"]').filter('[value="False"]').prop("checked",!0),a('input[name="dispositivos_internos"]').prop("disabled",!0),a('input[name="dispositivos_internos"]').each(function(t,e){e.parentElement.classList.add("disabled")}),a('input[name="dispositivos_internos"]').closest("#div_id_dispositivos_internos").css("opacity","0.3"),p="False"),e={tipo_ta:i,tipo_model:n,num_ta:c,ano_ta:f,texto:m,rotulo:u,dispositivos_internos:p,max_results:v,data_type_selection:r,data_field:d,data_function:l},window.localStorage.setItem("dispositivo_search_form_data",o()(e)),a(".result-busca-dispositivo").html(""),s(".result-busca-dispositivo"),a.get("/ta/search_fragment_form",e).done(function(t){if(a(".result-busca-dispositivo").html(t),"checkbox"===r){var e=a(".result-busca-dispositivo").find('input[name="ta_select_all"]');e.off(),e.on("change",function(t){a(this).closest("ul").find('input[name="'+d+'"]').prop("checked",this.checked)})}})},p=function(t){var e=a('input[name="rotulo_dispositivo"]').val(),i=a('input[name="texto_dispositivo"]').val();e.length>0||i.length>0?(a('input[name="dispositivos_internos"]').prop("disabled",!1),a('input[name="dispositivos_internos"]').each(function(t,e){e.parentElement.classList.remove("disabled")}),a('input[name="dispositivos_internos"]').closest("#div_id_dispositivos_internos").css("opacity","1")):(a('input[name="dispositivos_internos"]').filter('[value="False"]').prop("checked",!0),a('input[name="dispositivos_internos"]').prop("disabled",!0),a('input[name="dispositivos_internos"]').each(function(t,e){e.parentElement.classList.add("disabled")}),a('input[name="dispositivos_internos"]').closest("#div_id_dispositivos_internos").css("opacity","0.3"))},u=n.children("#buttonDs");u.length>0&&a(u).remove(),u=a('
'),n.prepend(u);var m=a("