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 000000000..2047d88b3 Binary files /dev/null and b/sapl/static/sapl/js/chunk-3e2c11a1.b1784407.js.gz differ 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 12f581a84..000000000 Binary files a/sapl/static/sapl/js/chunk-3e2c11a1.b402be47.js.gz and /dev/null differ diff --git a/sapl/static/sapl/js/chunk-45646c50.aedd067e.js b/sapl/static/sapl/js/chunk-45646c50.496c253b.js similarity index 100% rename from sapl/static/sapl/js/chunk-45646c50.aedd067e.js rename to sapl/static/sapl/js/chunk-45646c50.496c253b.js diff --git a/sapl/static/sapl/js/chunk-45646c50.aedd067e.js.gz b/sapl/static/sapl/js/chunk-45646c50.496c253b.js.gz similarity index 100% rename from sapl/static/sapl/js/chunk-45646c50.aedd067e.js.gz rename to sapl/static/sapl/js/chunk-45646c50.496c253b.js.gz diff --git a/sapl/static/sapl/js/chunk-4cf2dae1.eabed6db.js b/sapl/static/sapl/js/chunk-4cf2dae1.ad1263a5.js similarity index 100% rename from sapl/static/sapl/js/chunk-4cf2dae1.eabed6db.js rename to sapl/static/sapl/js/chunk-4cf2dae1.ad1263a5.js diff --git a/sapl/static/sapl/js/chunk-4cf2dae1.eabed6db.js.gz b/sapl/static/sapl/js/chunk-4cf2dae1.ad1263a5.js.gz similarity index 100% rename from sapl/static/sapl/js/chunk-4cf2dae1.eabed6db.js.gz rename to sapl/static/sapl/js/chunk-4cf2dae1.ad1263a5.js.gz diff --git a/sapl/static/sapl/js/compilacao.3902f96e.js.gz b/sapl/static/sapl/js/compilacao.3902f96e.js.gz deleted file mode 100644 index 9ce1484eb..000000000 Binary files a/sapl/static/sapl/js/compilacao.3902f96e.js.gz and /dev/null differ diff --git a/sapl/static/sapl/js/compilacao.7e6e04c5.js b/sapl/static/sapl/js/compilacao.7e6e04c5.js deleted file mode 100644 index 48bff36bb..000000000 --- a/sapl/static/sapl/js/compilacao.7e6e04c5.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"),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("