From a16b5cc00db5644bbd9a433cc7dded4ade0caac3 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sun, 10 Mar 2019 14:30:23 -0300 Subject: [PATCH] compila frontend para o master --- ...9f236f02.js => chunk-2d0c4a82.9045bcfe.js} | 0 ...02.js.gz => chunk-2d0c4a82.9045bcfe.js.gz} | Bin ...af0d1370.js => chunk-2d0e8be2.fe8799e4.js} | 0 ...70.js.gz => chunk-2d0e8be2.fe8799e4.js.gz} | Bin .../static/sapl/js/chunk-3e2c11a1.b1784407.js | 1 + .../sapl/js/chunk-3e2c11a1.b1784407.js.gz | Bin 0 -> 2975 bytes .../static/sapl/js/chunk-3e2c11a1.b402be47.js | 1 - .../sapl/js/chunk-3e2c11a1.b402be47.js.gz | Bin 2956 -> 0 bytes ...aedd067e.js => chunk-45646c50.496c253b.js} | 0 ...7e.js.gz => chunk-45646c50.496c253b.js.gz} | Bin ...eabed6db.js => chunk-4cf2dae1.ad1263a5.js} | 0 ...db.js.gz => chunk-4cf2dae1.ad1263a5.js.gz} | Bin sapl/static/sapl/js/compilacao.3902f96e.js.gz | Bin 6682 -> 0 bytes sapl/static/sapl/js/compilacao.7e6e04c5.js | 1 - sapl/static/sapl/js/compilacao.7e6e04c5.js.gz | Bin 6650 -> 0 bytes ...cao.3902f96e.js => compilacao.fbdf2a84.js} | 2 +- sapl/static/sapl/js/compilacao.fbdf2a84.js.gz | Bin 0 -> 6677 bytes ...{global.742e068f.js => global.2b34f8ff.js} | 2 +- ...l.742e068f.js.gz => global.2b34f8ff.js.gz} | Bin 13855 -> 13858 bytes ...{online.b19aeb1c.js => online.53109685.js} | 2 +- sapl/static/sapl/js/online.53109685.js.gz | Bin 0 -> 3864 bytes sapl/static/sapl/js/online.b19aeb1c.js.gz | Bin 3855 -> 0 bytes sapl/webpack-stats.json | 2 +- 23 files changed, 5 insertions(+), 6 deletions(-) rename sapl/static/sapl/js/{chunk-2d0c4a82.9f236f02.js => chunk-2d0c4a82.9045bcfe.js} (100%) rename sapl/static/sapl/js/{chunk-2d0c4a82.9f236f02.js.gz => chunk-2d0c4a82.9045bcfe.js.gz} (100%) rename sapl/static/sapl/js/{chunk-2d0e8be2.af0d1370.js => chunk-2d0e8be2.fe8799e4.js} (100%) rename sapl/static/sapl/js/{chunk-2d0e8be2.af0d1370.js.gz => chunk-2d0e8be2.fe8799e4.js.gz} (100%) create mode 100644 sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js create mode 100644 sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js.gz delete mode 100644 sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js delete mode 100644 sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js.gz rename sapl/static/sapl/js/{chunk-45646c50.aedd067e.js => chunk-45646c50.496c253b.js} (100%) rename sapl/static/sapl/js/{chunk-45646c50.aedd067e.js.gz => chunk-45646c50.496c253b.js.gz} (100%) rename sapl/static/sapl/js/{chunk-4cf2dae1.eabed6db.js => chunk-4cf2dae1.ad1263a5.js} (100%) rename sapl/static/sapl/js/{chunk-4cf2dae1.eabed6db.js.gz => chunk-4cf2dae1.ad1263a5.js.gz} (100%) delete mode 100644 sapl/static/sapl/js/compilacao.3902f96e.js.gz delete mode 100644 sapl/static/sapl/js/compilacao.7e6e04c5.js delete mode 100644 sapl/static/sapl/js/compilacao.7e6e04c5.js.gz rename sapl/static/sapl/js/{compilacao.3902f96e.js => compilacao.fbdf2a84.js} (52%) create mode 100644 sapl/static/sapl/js/compilacao.fbdf2a84.js.gz rename sapl/static/sapl/js/{global.742e068f.js => global.2b34f8ff.js} (90%) rename sapl/static/sapl/js/{global.742e068f.js.gz => global.2b34f8ff.js.gz} (90%) rename sapl/static/sapl/js/{online.b19aeb1c.js => online.53109685.js} (83%) create mode 100644 sapl/static/sapl/js/online.53109685.js.gz delete mode 100644 sapl/static/sapl/js/online.b19aeb1c.js.gz diff --git a/sapl/static/sapl/js/chunk-2d0c4a82.9f236f02.js b/sapl/static/sapl/js/chunk-2d0c4a82.9045bcfe.js similarity index 100% rename from sapl/static/sapl/js/chunk-2d0c4a82.9f236f02.js rename to sapl/static/sapl/js/chunk-2d0c4a82.9045bcfe.js diff --git a/sapl/static/sapl/js/chunk-2d0c4a82.9f236f02.js.gz b/sapl/static/sapl/js/chunk-2d0c4a82.9045bcfe.js.gz similarity index 100% rename from sapl/static/sapl/js/chunk-2d0c4a82.9f236f02.js.gz rename to sapl/static/sapl/js/chunk-2d0c4a82.9045bcfe.js.gz diff --git a/sapl/static/sapl/js/chunk-2d0e8be2.af0d1370.js b/sapl/static/sapl/js/chunk-2d0e8be2.fe8799e4.js similarity index 100% rename from sapl/static/sapl/js/chunk-2d0e8be2.af0d1370.js rename to sapl/static/sapl/js/chunk-2d0e8be2.fe8799e4.js diff --git a/sapl/static/sapl/js/chunk-2d0e8be2.af0d1370.js.gz b/sapl/static/sapl/js/chunk-2d0e8be2.fe8799e4.js.gz similarity index 100% rename from sapl/static/sapl/js/chunk-2d0e8be2.af0d1370.js.gz rename to sapl/static/sapl/js/chunk-2d0e8be2.fe8799e4.js.gz diff --git a/sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js b/sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js new file mode 100644 index 000000000..3713a3713 --- /dev/null +++ b/sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3e2c11a1"],{3713:function(t,e,a){"use strict";(function(t){var n=a("975e");e.a={name:"sessao-plenaria-item-list",props:["sessao"],data:function(){return{utils:n.a.Utils,app:["sessao","parlamentares"],model:["sessaoplenaria","sessaolegislativa","tiposessaoplenaria","legislatura"],data_inicio:new Date,sessao_legislativa:{numero:""},tipo:{nome:""},legislatura:{numero:""},metadata:{sessao_legislativa:{app:"parlamentares",model:"sessaolegislativa",id:this.sessao.sessao_legislativa},legislatura:{app:"parlamentares",model:"legislatura",id:this.sessao.legislatura},tipo:{app:"sessao",model:"tiposessaoplenaria",id:this.sessao.tipo}}}},watch:{sessao:function(t){this.updateSessao(),this.fetch()}},computed:{titulo:function(){var t=this.sessao,e=this.tipo,a=this.data_inicio;return"".concat(t.numero,"ª ").concat(e.nome," da \n ").concat(a.getDate()>15?2:1,"ª Quizena do Mês de \n ").concat(this.month_text(a.getMonth())," de \n ").concat(a.getFullYear(),"\n ")},subtitulo:function(){return"".concat(this.sessao_legislativa.numero,"ª Sessão Legislativa da \n ").concat(this.legislatura.numero,"ª Legislatura")},date_text:function(){return"".concat(this.data_inicio.getDate()," de \n ").concat(this.month_text(this.data_inicio.getMonth())," de\n ").concat(this.data_inicio.getFullYear()," – ").concat(this.sessao.hora_inicio)}},methods:{sendStore:function(){this.insertInState({app:"sessao",model:"sessaoplenaria",id:this.sessao.id,value:this.sessao})},month_text:function(t){return["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"][t]},fetch:function(){var e=this;t.mapKeys(e.metadata,function(t,a){var n=e.metadata[a];n.component=e;var s=e.getModel(n);null===s?e.insertInState(n).then(function(t){e[a]=e.getModel(n)[n.id]}):void 0===s[n.id]?e.$nextTick().then(function(){setTimeout(function(){e.fetch()},100)}):e[a]=s[n.id]})},updateSessao:function(){this.data_inicio=this.stringToDate(this.sessao.data_inicio,"yyyy-mm-dd","-"),this.metadata.sessao_legislativa.id=this.sessao.sessao_legislativa,this.metadata.tipo.id=this.sessao.tipo,this.metadata.legislatura.id=this.sessao.legislatura}},mounted:function(){this.updateSessao(),this.fetch()}}}).call(this,a("2ef0"))},"3bb2":function(t,e,a){},4358:function(t,e,a){"use strict";var n=a("3713").a,s=(a("e94f"),a("0c7c")),i=Object(s.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("router-link",{class:"sessao-plenaria-item-list",attrs:{to:{name:"sessao_plenaria_online_link",params:{id:t.sessao.id}}},nativeOn:{click:function(e){return t.sendStore(e)}}},[a("h5",{staticClass:"tit"},[t._v("\n "+t._s(t.titulo)+"\n ")]),a("div",{staticClass:"subtitulo"},[a("span",[t._v(t._s(t.subtitulo))]),a("span",{staticClass:"separator"},[t._v(" – ")]),a("span",[t._v(t._s(t.date_text))])])])},[],!1,null,null,null);e.a=i.exports},"4d36":function(t,e,a){"use strict";(function(t){var n=a("975e");e.a={name:"model-select",props:["app","model","label","limit","ordering","choice"],data:function(){return{utils:n.a.Utils,selected:null,options:[{value:null,text:this.label}]}},watch:{selected:function(t,e){this.$emit("change",t)}},methods:{fetch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=this;a.utils.getModelOrderedList(a.app,a.model,a.ordering,e).then(function(e){t.each(e.data.results,function(t,e){a.options.push({value:t.id,text:t[a.choice]}),a.insertInState({app:a.app,model:a.model,value:t})}),null!==e.data.pagination.next_page&&a.fetch(e.data.pagination.next_page)}).catch(function(t){return a.sendMessage({alert:"danger",message:"Não foi possível recuperar a lista...",time:5})})}},created:function(){this.fetch()}}}).call(this,a("2ef0"))},"5eaf":function(t,e,a){"use strict";var n=a("3bb2");a.n(n).a},"909b":function(t,e,a){"use strict";var n=a("fe0a");a.n(n).a},c419:function(t,e,a){},cc9a:function(t,e,a){"use strict";var n=a("c419");a.n(n).a},d92f:function(t,e,a){"use strict";a.r(e);var n=a("975e"),s=(a("cadf"),a("551c"),a("f751"),a("097d"),{name:"year-exists-in-model-select",props:["app","model","label"],data:function(){return{utils:n.a.Utils,selected:null,options:[{value:null,text:this.label}]}},watch:{selected:function(t,e){this.$emit("change",t)}},methods:{fetch:function(){var t=this;this.utils.getYearsChoiceList(this.app,this.model).then(function(e){t.options=e.data,t.options.unshift({value:null,text:t.label})}).catch(function(e){return t.sendMessage({alert:"danger",message:"Não foi possível recuperar a lista de anos",time:5})})}},created:function(){this.fetch()}}),i=a("0c7c"),o=Object(i.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-form-select",{attrs:{options:t.options},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)},[],!1,null,null,null).exports,l={name:"pagination",props:["pagination"],data:function(){return{currentPage:this.pagination.page}},watch:{currentPage:function(t,e){this.$emit("currentPage",t)},pagination:function(t){this.currentPage=t.page}},methods:{nextPage:function(){this.$emit("nextPage")},previousPage:function(){this.$emit("previousPage")}}},r=(a("5eaf"),Object(i.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"widget-pagination d-flex justify-content-between align-items-center w-100"},[a("span",{class:["arrow",null!==t.pagination.previous_page?"hover-circle":"disabled"],on:{click:t.previousPage}},[a("i",{staticClass:"fas fa-chevron-left"})]),a("div",{staticClass:"pages"},[t._v("\n "+t._s(t.pagination.start_index)+"–"+t._s(t.pagination.end_index)+" de "+t._s(t.pagination.total_entries)+"\n "),a("div",{staticClass:"inner"},[a("b-pagination",{attrs:{align:"right","total-rows":t.pagination.total_entries,"per-page":10},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1)]),a("span",{class:["arrow",null!==t.pagination.next_page?"hover-circle":"disabled"],on:{click:t.nextPage}},[a("i",{staticClass:"fas fa-chevron-right"})])])},[],!1,null,null,null).exports),c={name:"month-select",data:function(){return{selected:null,options:[{value:null,text:"Filtre por mês..."},{value:1,text:"Janeiro"},{value:2,text:"Fevereiro"},{value:3,text:"Março"},{value:4,text:"Abril"},{value:5,text:"Maio"},{value:6,text:"Junho"},{value:7,text:"Julho"},{value:8,text:"Agosto"},{value:9,text:"Setembro"},{value:10,text:"Outubro"},{value:11,text:"Novembro"},{value:12,text:"Dezembro"}]}},watch:{selected:function(t,e){this.$emit("change",t)}}},u=Object(i.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-form-select",{attrs:{options:t.options},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)},[],!1,null,null,null).exports,p=a("4d36").a,d={name:"form-sessao-list",props:["pagination"],components:{YearExistsInModelSelect:o,MonthSelect:u,ModelSelect:Object(i.a)(p,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-form-select",{attrs:{options:t.options},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)},[],!1,null,null,null).exports,Pagination:r},data:function(){return{form_filter:{year:null,month:null,tipo:null}}},watch:{"form_filter.year":function(t){this.$emit("changeFilter",this.form_filter)},"form_filter.month":function(t){this.$emit("changeFilter",this.form_filter)},"form_filter.tipo":function(t){this.$emit("changeFilter",this.form_filter)}},methods:{currentPage:function(t){this.$emit("currentPage",t)},nextPage:function(){this.$emit("nextPage")},previousPage:function(){this.$emit("previousPage")}}},h=(a("909b"),{name:"sessao-list",components:{FormSessaoList:Object(i.a)(d,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-sessao-list"},[a("year-exists-in-model-select",{staticClass:"form-opacity",attrs:{app:"sessao",model:"sessaoplenaria",label:"Filtre por Ano"},on:{change:function(e){return t.form_filter.year=e}}}),a("month-select",{staticClass:"form-opacity",on:{change:function(e){return t.form_filter.month=e}}}),a("model-select",{staticClass:"form-opacity",attrs:{app:"sessao",model:"tiposessaoplenaria",label:"Filtre por Tipo de Sessão",choice:"nome",ordering:"nome"},on:{change:function(e){return t.form_filter.tipo=e}}}),a("pagination",{attrs:{pagination:t.pagination},on:{nextPage:t.nextPage,previousPage:t.previousPage,currentPage:t.currentPage}})],1)},[],!1,null,null,null).exports,SessaoPlenariaItemList:a("4358").a},data:function(){return{utils:n.a.Utils,init:!1,app:["sessao"],model:["sessaoplenaria","tiposessaoplenaria"],ordering:"-data_inicio, -hora_inicio, -id",sessoes:[],pagination:{},form_filter:{year:null,month:null,tipo:null}}},methods:{currentPage:function(t){this.fetch(t)},nextPage:function(){return null!==this.pagination.next_page?this.fetch(this.pagination.next_page):null},previousPage:function(){return null!==this.pagination.previous_page?this.fetch(this.pagination.previous_page):null},changeFilter:function(t){this.form_filter=t,this.fetch(1)},fetch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this;null===t&&(t=e.pagination.page);var a="",n=this.form_filter;return null!==n.year&&(a+="&year=".concat(n.year)),null!==n.month&&(a+="&month=".concat(n.month)),null!==n.tipo&&(a+="&tipo=".concat(n.tipo)),e.utils.getModelOrderedList(e.app[0],e.model[0],e.ordering,null===t?1:t,a).then(function(t){e.init=!0,e.sessoes=[],e.$nextTick().then(function(){e.sessoes=t.data.results,e.pagination=t.data.pagination})}).catch(function(a){1!==t&&e.fetch(e.pagination.previous_page).catch(function(){e.init=!0,e.sendMessage({alert:"danger",message:"Não foi possível recuperar a lista...",time:5})})})}},created:function(){this.fetch(1)}}),f=(a("cc9a"),Object(i.a)(h,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sessaoplenaria-list"},[a("form-sessao-list",{attrs:{pagination:t.pagination},on:{nextPage:t.nextPage,previousPage:t.previousPage,currentPage:t.currentPage,changeFilter:t.changeFilter}}),a("div",{staticClass:"inner-list"},[t._l(t.sessoes,function(t,e){return a("sessao-plenaria-item-list",{key:e,attrs:{sessao:t}})}),0===t.sessoes.length&&t.init?a("div",{staticClass:"empty-list"},[t._v("\n Não foram encontradas Sessões Plenárias com seus critérios de busca!\n ")]):t._e(),t.init?t._e():a("div",{staticClass:"empty-list"},[t._v("\n Carregando listagem...\n ")])],2)],1)},[],!1,null,null,null));e.default=f.exports},e94f:function(t,e,a){"use strict";var n=a("f16d");a.n(n).a},f16d:function(t,e,a){},fe0a:function(t,e,a){}}]); \ No newline at end of file diff --git a/sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js.gz b/sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js.gz new file mode 100644 index 0000000000000000000000000000000000000000..2047d88b35275832e7a90bbe6b79a3608d17cbea GIT binary patch literal 2975 zcmV;Q3t;pgiwFP!000021La!pj@-5pe-)W94l9HbZtr|{PKS*VBr%Xbj#D`OP;3_m zuEgDCtfdwrb?3`^fxbhZpy-F90s65o(0h|UNoPn(qO^Z*o!SM8oB^*y4u`|x%x{K6 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K|v8;ru-DNT9TC@q<&=*N{ON7s0S~ ze(@=>HJ{_EDMAXJz*L>jBo2HQv16|$p6(<6GAM|=Yf5+%88M$i6da=F#6M`RH}pMm z{Wz$z6^MP{=1if^u6u{+Ho^8;?IQ}UWP5?}@Lb))-huf#g!P<$VA!F9R>O2plV`^Rvxu!@X67rYHEW59x=WHEk97#=UCW-r2~<18T;5&_iH6QA0~LMyyFr$ zMh6@{I)zcrHAZ7(ap=CcCDq+40$16`Y1@A|3L z%Yi%M^&5Vd@H+ClFShi?TrT0)4GnXLGAAe6*wgdf;_>B5-}&M-)Z%o!;VWP Vyo}mz-b})){{ZNgJo79n004p1+o1pe literal 0 HcmV?d00001 diff --git a/sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js b/sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js deleted file mode 100644 index 9df87955d..000000000 --- a/sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3e2c11a1"],{3713:function(t,e,a){"use strict";(function(t){var n=a("975e");e.a={name:"sessao-plenaria-item-list",props:["sessao"],data:function(){return{utils:n.a.Utils,app:["sessao","parlamentares"],model:["sessaoplenaria","sessaolegislativa","tiposessaoplenaria","legislatura"],data_inicio:new Date,sessao_legislativa:{numero:""},tipo:{nome:""},legislatura:{numero:""},metadata:{sessao_legislativa:{app:"parlamentares",model:"sessaolegislativa",id:this.sessao.sessao_legislativa},legislatura:{app:"parlamentares",model:"legislatura",id:this.sessao.legislatura},tipo:{app:"sessao",model:"tiposessaoplenaria",id:this.sessao.tipo}}}},watch:{sessao:function(t){this.updateSessao(),this.fetch()}},computed:{titulo:function(){var t=this.sessao,e=this.tipo,a=this.data_inicio;return"".concat(t.numero,"ª ").concat(e.nome," da \n ").concat(a.getDate()>15?2:1,"ª Quizena do Mês de \n ").concat(this.month_text(a.getMonth())," de \n ").concat(a.getFullYear(),"\n ")},subtitulo:function(){return"".concat(this.sessao_legislativa.numero,"ª Sessão Legislativa da \n ").concat(this.legislatura.numero,"ª Legislatura")},date_text:function(){return"".concat(this.data_inicio.getDate()," de \n ").concat(this.month_text(this.data_inicio.getMonth())," de\n ").concat(this.data_inicio.getFullYear()," – ").concat(this.sessao.hora_inicio)}},methods:{sendStore:function(){this.insertInState({app:"sessao",model:"sessaoplenaria",id:this.sessao.id,value:this.sessao})},month_text:function(t){return["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"][t]},fetch:function(){var e=this;t.mapKeys(e.metadata,function(t,a){var n=e.metadata[a];n.component=e;var s=e.getModel(n);null===s?e.insertInState(n).then(function(t){e[a]=e.getModel(n)[n.id]}):void 0===s[n.id]?e.$nextTick().then(function(){setTimeout(function(){e.fetch()},100)}):e[a]=s[n.id]})},updateSessao:function(){this.data_inicio=this.stringToDate(this.sessao.data_inicio,"yyyy-mm-dd","-"),this.metadata.sessao_legislativa.id=this.sessao.sessao_legislativa,this.metadata.tipo.id=this.sessao.tipo,this.metadata.legislatura.id=this.sessao.legislatura}},mounted:function(){this.updateSessao(),this.fetch()}}}).call(this,a("2ef0"))},"3bb2":function(t,e,a){},4358:function(t,e,a){"use strict";var n=a("3713").a,s=(a("e94f"),a("0c7c")),i=Object(s.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("router-link",{class:"sessao-plenaria-item-list",attrs:{to:{name:"sessao_plenaria_online_link",params:{id:t.sessao.id}}},nativeOn:{click:function(e){return t.sendStore(e)}}},[a("h5",{staticClass:"tit"},[t._v("\n "+t._s(t.titulo)+"\n ")]),a("div",{staticClass:"subtitulo"},[a("span",[t._v(t._s(t.subtitulo))]),a("span",{staticClass:"separator"},[t._v(" – ")]),a("span",[t._v(t._s(t.date_text))])])])},[],!1,null,null,null);e.a=i.exports},"4d36":function(t,e,a){"use strict";(function(t){var n=a("975e");e.a={name:"model-select",props:["app","model","label","limit","ordering","choice"],data:function(){return{utils:n.a.Utils,selected:null,options:[{value:null,text:this.label}]}},watch:{selected:function(t,e){this.$emit("change",t)}},methods:{fetch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=this;a.utils.getModelOrderedList(a.app,a.model,a.ordering,e).then(function(e){t.each(e.data.results,function(t,e){a.options.push({value:t.id,text:t[a.choice]}),a.insertInState({app:a.app,model:a.model,value:t})}),null!==e.data.pagination.next_page&&a.fetch(e.data.pagination.next_page)}).catch(function(t){return a.sendMessage({alert:"danger",message:"Não foi possível recuperar a lista...",time:5})})}},created:function(){this.fetch()}}}).call(this,a("2ef0"))},"5eaf":function(t,e,a){"use strict";var n=a("3bb2");a.n(n).a},"909b":function(t,e,a){"use strict";var n=a("fe0a");a.n(n).a},c419:function(t,e,a){},cc9a:function(t,e,a){"use strict";var n=a("c419");a.n(n).a},d92f:function(t,e,a){"use strict";a.r(e);var n=a("975e"),s={name:"year-exists-in-model-select",props:["app","model","label"],data:function(){return{utils:n.a.Utils,selected:null,options:[{value:null,text:this.label}]}},watch:{selected:function(t,e){this.$emit("change",t)}},methods:{fetch:function(){var t=this;this.utils.getYearsChoiceList(this.app,this.model).then(function(e){t.options=e.data,t.options.unshift({value:null,text:t.label})}).catch(function(e){return t.sendMessage({alert:"danger",message:"Não foi possível recuperar a lista de anos",time:5})})}},created:function(){this.fetch()}},i=a("0c7c"),o=Object(i.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-form-select",{attrs:{options:t.options},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)},[],!1,null,null,null).exports,l={name:"pagination",props:["pagination"],data:function(){return{currentPage:this.pagination.page}},watch:{currentPage:function(t,e){this.$emit("currentPage",t)},pagination:function(t){this.currentPage=t.page}},methods:{nextPage:function(){this.$emit("nextPage")},previousPage:function(){this.$emit("previousPage")}}},r=(a("5eaf"),Object(i.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"widget-pagination d-flex justify-content-between align-items-center w-100"},[a("span",{class:["arrow",null!==t.pagination.previous_page?"hover-circle":"disabled"],on:{click:t.previousPage}},[a("i",{staticClass:"fas fa-chevron-left"})]),a("div",{staticClass:"pages"},[t._v("\n "+t._s(t.pagination.start_index)+"–"+t._s(t.pagination.end_index)+" de "+t._s(t.pagination.total_entries)+"\n "),a("div",{staticClass:"inner"},[a("b-pagination",{attrs:{align:"right","total-rows":t.pagination.total_entries,"per-page":10},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1)]),a("span",{class:["arrow",null!==t.pagination.next_page?"hover-circle":"disabled"],on:{click:t.nextPage}},[a("i",{staticClass:"fas fa-chevron-right"})])])},[],!1,null,null,null).exports),c={name:"month-select",data:function(){return{selected:null,options:[{value:null,text:"Filtre por mês..."},{value:1,text:"Janeiro"},{value:2,text:"Fevereiro"},{value:3,text:"Março"},{value:4,text:"Abril"},{value:5,text:"Maio"},{value:6,text:"Junho"},{value:7,text:"Julho"},{value:8,text:"Agosto"},{value:9,text:"Setembro"},{value:10,text:"Outubro"},{value:11,text:"Novembro"},{value:12,text:"Dezembro"}]}},watch:{selected:function(t,e){this.$emit("change",t)}}},u=Object(i.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-form-select",{attrs:{options:t.options},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)},[],!1,null,null,null).exports,p=a("4d36").a,h={name:"form-sessao-list",props:["pagination"],components:{YearExistsInModelSelect:o,MonthSelect:u,ModelSelect:Object(i.a)(p,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-form-select",{attrs:{options:t.options},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)},[],!1,null,null,null).exports,Pagination:r},data:function(){return{form_filter:{year:null,month:null,tipo:null}}},watch:{"form_filter.year":function(t){this.$emit("changeFilter",this.form_filter)},"form_filter.month":function(t){this.$emit("changeFilter",this.form_filter)},"form_filter.tipo":function(t){this.$emit("changeFilter",this.form_filter)}},methods:{currentPage:function(t){this.$emit("currentPage",t)},nextPage:function(){this.$emit("nextPage")},previousPage:function(){this.$emit("previousPage")}}},d=(a("909b"),{name:"sessao-list",components:{FormSessaoList:Object(i.a)(h,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-sessao-list"},[a("year-exists-in-model-select",{staticClass:"form-opacity",attrs:{app:"sessao",model:"sessaoplenaria",label:"Filtre por Ano"},on:{change:function(e){return t.form_filter.year=e}}}),a("month-select",{staticClass:"form-opacity",on:{change:function(e){return t.form_filter.month=e}}}),a("model-select",{staticClass:"form-opacity",attrs:{app:"sessao",model:"tiposessaoplenaria",label:"Filtre por Tipo de Sessão",choice:"nome",ordering:"nome"},on:{change:function(e){return t.form_filter.tipo=e}}}),a("pagination",{attrs:{pagination:t.pagination},on:{nextPage:t.nextPage,previousPage:t.previousPage,currentPage:t.currentPage}})],1)},[],!1,null,null,null).exports,SessaoPlenariaItemList:a("4358").a},data:function(){return{utils:n.a.Utils,init:!1,app:["sessao"],model:["sessaoplenaria","tiposessaoplenaria"],ordering:"-data_inicio, -hora_inicio, -id",sessoes:[],pagination:{},form_filter:{year:null,month:null,tipo:null}}},methods:{currentPage:function(t){this.fetch(t)},nextPage:function(){return null!==this.pagination.next_page?this.fetch(this.pagination.next_page):null},previousPage:function(){return null!==this.pagination.previous_page?this.fetch(this.pagination.previous_page):null},changeFilter:function(t){this.form_filter=t,this.fetch(1)},fetch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this;null===t&&(t=e.pagination.page);var a="",n=this.form_filter;return null!==n.year&&(a+="&year=".concat(n.year)),null!==n.month&&(a+="&month=".concat(n.month)),null!==n.tipo&&(a+="&tipo=".concat(n.tipo)),e.utils.getModelOrderedList(e.app[0],e.model[0],e.ordering,null===t?1:t,a).then(function(t){e.init=!0,e.sessoes=[],e.$nextTick().then(function(){e.sessoes=t.data.results,e.pagination=t.data.pagination})}).catch(function(a){1!==t&&e.fetch(e.pagination.previous_page).catch(function(){e.init=!0,e.sendMessage({alert:"danger",message:"Não foi possível recuperar a lista...",time:5})})})}},created:function(){this.fetch(1)}}),f=(a("cc9a"),Object(i.a)(d,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sessaoplenaria-list"},[a("form-sessao-list",{attrs:{pagination:t.pagination},on:{nextPage:t.nextPage,previousPage:t.previousPage,currentPage:t.currentPage,changeFilter:t.changeFilter}}),a("div",{staticClass:"inner-list"},[t._l(t.sessoes,function(t,e){return a("sessao-plenaria-item-list",{key:e,attrs:{sessao:t}})}),0===t.sessoes.length&&t.init?a("div",{staticClass:"empty-list"},[t._v("\n Não foram encontradas Sessões Plenárias com seus critérios de busca!\n ")]):t._e(),t.init?t._e():a("div",{staticClass:"empty-list"},[t._v("\n Carregando listagem...\n ")])],2)],1)},[],!1,null,null,null));e.default=f.exports},e94f:function(t,e,a){"use strict";var n=a("f16d");a.n(n).a},f16d:function(t,e,a){},fe0a:function(t,e,a){}}]); \ No newline at end of file diff --git a/sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js.gz b/sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js.gz deleted file mode 100644 index 12f581a84e55244f356409830a83ad20e35bd6ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2956 zcmV;73v=`ziwFP!000021La!pj^nlwe-#~ZSXc-xtaoqkvRXKYAjtvwbGa0kekfdH zK})pFoJ<)awR;<%fxbhZpy-F90s65o(0!9WNoPn(qGZ|YOYaI4xd2&-8V$TS-2sk;(^kINHn<`G+)Eb4J!gUW&?8h?1GcHbrjizcloQgiXb~K^L7XHy&rjuo5g4p*fBVMk-MEte+ItZz0n{((g2%&S5 zuhymJX}r-wms#%n54xoudt*{=-*9Nk?6bGMSJvSOiIQ9KqH;a;g{SuI{YUUB{ zEG0q8flM;sp3Z6L?W(*&jG7z;a|)bW2q^+cn&d9U2q*9_3pH_vikvdGKBH`LKD6 zPS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1EmKCMuQ%Wo&3=E9}LzQ64p$nB=Vu&3p_eH~;0A%DY z)#8=FZwb)U=@!FuEBbXr)!B7r)3Jd8mU7er-Qz_1o*O@LF`w#g?cA+Yc7s6>XOGrY z4)$*Ge{RITrMo=3tLC&e3Z0BB6WujtmTrq*ySBRYN7-s?M@2zY?T-E2baZ#{~jfy zdEe8YdjrLOfg@0xYAp3pu??M)x3B6%D}bsQ85Zt2dawr(Y5NR`Lts9>piI>}&~lAL zS>Yv-;x)H~tjkIfaSn2k9YKOMBJmsmYs#+?sQq%J18&xzYb#$jQyXPOus1$ZJZr .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"),i.find(".btn-group-inserts button").mouseenter(function(t){i.find(".btn-group-inserts").removeClass("open"),o(this.parentElement).addClass("open")}),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"),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("