Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

adminlte-index.eeebb956.js 9.7KB

3 anos atrás
1
  1. (self.webpackChunk=self.webpackChunk||[]).push([[945],{5225:(t,e,n)=>{"use strict";n(3163)},3163:(t,e,n)=>{n(3710),n(1539),n(9714),n(9826),n(4916),n(3123),n(2772),n(7327),n(9600),n(5306),$(document).ready((function(){!function(){var t=document.querySelectorAll('.custom-switch input[type="checkbox"]');for(i=0;i<t.length;i++)t[i].addEventListener("change",(function(){var t=this,e=this.checked,n=!e,i=this.closest(".custom-switch").dataset.url+"&newValue="+e.toString(),r=$.ajax({type:"POST",url:i,data:{},dataType:"json"});r.done((function(t){Notification.addNotification("success","La propriété a bien été mise à jour.")})),r.fail((function(){t.checked=n,t.disabled=!0,t.closest(".checkbox-switch").classList.add("disabled"),Notification.addNotification("error","Une erreur est survenue.")}))}))}(),function(){var t=$(".content-header-title > .title").html();$(document).on("click",".deselect-batch-button",(function(){$(this).closest(".content").find(":checkbox.form-batch-checkbox-all").prop("checked",!1).trigger("change")})),$(document).on("change",".form-batch-checkbox-all",(function(){$(this).closest(".content").find(":checkbox.form-batch-checkbox").prop("checked",$(this).prop("checked")).trigger("change")})),$(document).on("change",".form-batch-checkbox",(function(){var e=$(this).closest(".content-wrapper"),n=e.find(":hidden#batch_form_entityIds"),i=n.val()?n.val().split(","):[],r=$(this).val();$(this).prop("checked")?($(this).closest("tr").addClass("selected-row"),-1===i.indexOf(r)&&i.push(r)):($(this).closest("tr").removeClass("selected-row"),i=i.filter((function(t){return t!==r})),e.find(":checkbox.form-batch-checkbox-all").prop("checked",!1)),0===i.length?(e.find(".global-actions").show(),e.find(".batch-actions").hide(),e.find("table").removeClass("table-batch")):(e.find(".batch-actions").show(),e.find(".global-actions").hide(),e.find("table").addClass("table-batch")),n.val(i.join(",")),e.find(".content-header-title > .title").html(0===i.length?t:"")}));var e=$("#batch-action-confirmation-title"),n=e.text();$("[data-action-batch]").on("click",(function(t){t.preventDefault(),t.stopPropagation();var i=$(this),r=i.attr("data-action-name"),a=$('input[type="checkbox"].form-batch-checkbox:checked');e.text(n.replace("%action_name%",r).replace("%num_items%",a.length)),$("#modal-batch-action").modal({backdrop:!0,keyboard:!0}).off("click","#modal-batch-action-button").on("click","#modal-batch-action-button",(function(){i.unbind("click"),$form=document.createElement("form"),$form.setAttribute("action",i.attr("data-action-url")),$form.setAttribute("method","POST"),$actionNameInput=document.createElement("input"),$actionNameInput.setAttribute("type","hidden"),$actionNameInput.setAttribute("name","batchActionName"),$actionNameInput.setAttribute("value",i.attr("data-action-name")),$form.appendChild($actionNameInput),$entityFqcnInput=document.createElement("input"),$entityFqcnInput.setAttribute("type","hidden"),$entityFqcnInput.setAttribute("name","entityFqcn"),$entityFqcnInput.setAttribute("value",i.attr("data-entity-fqcn")),$form.appendChild($entityFqcnInput),$actionUrlInput=document.createElement("input"),$actionUrlInput.setAttribute("type","hidden"),$actionUrlInput.setAttribute("name","batchActionUrl"),$actionUrlInput.setAttribute("value",i.attr("data-action-url")),$form.appendChild($actionUrlInput),$csrfTokenInput=document.createElement("input"),$csrfTokenInput.setAttribute("type","hidden"),$csrfTokenInput.setAttribute("name","batchActionCsrfToken"),$csrfTokenInput.setAttribute("value",i.attr("data-action-csrf-token")),$form.appendChild($csrfTokenInput),a.each((function(t,e){$entityIdInput=document.createElement("input"),$entityIdInput.setAttribute("type","hidden"),$entityIdInput.setAttribute("name","batchActionEntityIds[".concat(t,"]")),$entityIdInput.setAttribute("value",e.value),$form.appendChild($entityIdInput)})),document.body.appendChild($form),$form.submit()}))}))}()}))},1194:(t,e,n)=>{var i=n(7293),r=n(5112),a=n(7392),c=r("species");t.exports=function(t){return a>=51||!i((function(){var e=[];return(e.constructor={})[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,n)=>{"use strict";var i=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},648:(t,e,n)=>{var i=n(1694),r=n(4326),a=n(5112)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?n:c?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},647:(t,e,n)=>{var i=n(7908),r=Math.floor,a="".replace,c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,u,l,s){var d=n+t.length,h=u.length,f=o;return void 0!==l&&(l=i(l),f=c),a.call(s,f,(function(i,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(d);case"<":c=l[a.slice(1,-1)];break;default:var o=+a;if(0===o)return i;if(o>h){var s=r(o/10);return 0===s?i:s<=h?void 0===u[s-1]?a.charAt(1):u[s-1]+a.charAt(1):i}c=u[o-1]}return void 0===c?"":c}))}},7850:(t,e,n)=>{var i=n(111),r=n(4326),a=n(5112)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},288:(t,e,n)=>{"use strict";var i=n(1694),r=n(648);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},6707:(t,e,n)=>{var i=n(9670),r=n(3099),a=n(5112)("species");t.exports=function(t,e){var n,c=i(t).constructor;return void 0===c||null==(n=i(c)[a])?e:r(n)}},1694:(t,e,n)=>{var i={};i[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(i)},7327:(t,e,n)=>{"use strict";var i=n(694),r=n(2092).filter;i({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},2772:(t,e,n)=>{"use strict";var i=n(694),r=n(1318).indexOf,a=n(9341),c=[].indexOf,o=!!c&&1/[1].indexOf(1,-0)<0,u=a("indexOf");i({target:"Array",proto:!0,forced:o||!u},{indexOf:function(t){return o?c.apply(this,arguments)||0:r(this,t,arguments.length>1?arguments[1]:void 0)}})},9600:(t,e,n)=>{"use strict";var i=n(694),r=n(8361),a=n(5656),c=n(9341),o=[].join,u=r!=Object,l=c("join",",");i({target:"Array",proto:!0,forced:u||!l},{join:function(t){return o.call(a(this),void 0===t?",":t)}})},3710:(t,e,n)=>{var i=n(1320),r=Date.prototype,a="Invalid Date",c="toString",o=r.toString,u=r.getTime;new Date(NaN)+""!=a&&i(r,c,(function(){var t=u.call(this);return t==t?o.call(this):a}))},1539:(t,e,n)=>{var i=n(1694),r=n(1320),a=n(288);i||r(Object.prototype,"toString",a,{unsafe:!0})},9714:(t,e,n)=>{"use strict";var i=n(1320),r=n(9670),a=n(7293),c=n(7066),o="toString",u=RegExp.prototype,l=u.toString,s=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=o;(s||d)&&i(RegExp.prototype,o,(function(){var t=r(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in u)?c.call(t):n)}),{unsafe:!0})},5306:(t,e,n)=>{"use strict";var i=n(7007),r=n(9670),a=n(7466),c=n(9958),o=n(4488),u=n(1530),l=n(647),s=n(7651),d=Math.max,h=Math.min;i("replace",2,(function(t,e,n,i){var f=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=i.REPLACE_KEEPS_$0,v=f?"$":"$0";return[function(n,i){var r=o(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!f&&p||"string"==typeof i&&-1===i.indexOf(v)){var o=n(e,t,this,i);if(o.done)return o.value}var g=r(t),b=String(this),m="function"==typeof i;m||(i=String(i));var $=g.global;if($){var x=g.unicode;g.lastIndex=0}for(var y=[];;){var I=s(g,b);if(null===I)break;if(y.push(I),!$)break;""===String(I[0])&&(g.lastIndex=u(b,a(g.lastIndex),x))}for(var k,A="",S=0,E=0;E<y.length;E++){I=y[E];for(var C=String(I[0]),T=d(h(c(I.index),b.length),0),w=[],N=1;N<I.length;N++)w.push(void 0===(k=I[N])?k:String(k));var O=I.groups;if(m){var U=[C].concat(w,T,b);void 0!==O&&U.push(O);var j=String(i.apply(void 0,U))}else j=l(C,b,T,w,O,i);T>=S&&(A+=b.slice(S,T)+j,S=T+C.length)}return A+b.slice(S)}]}))},3123:(t,e,n)=>{"use strict";var i=n(7007),r=n(7850),a=n(9670),c=n(4488),o=n(6707),u=n(1530),l=n(7466),s=n(7651),d=n(2261),h=n(2999).UNSUPPORTED_Y,f=[].push,p=Math.min,v=4294967295;i("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(c(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===t)return[i];if(!r(t))return e.call(i,t,a);for(var o,u,l,s=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,h+"g");(o=d.call(g,i))&&!((u=g.lastIndex)>p&&(s.push(i.slice(p,o.index)),o.length>1&&o.index<i.length&&f.apply(s,o.slice(1)),l=o[0].length,p=u,s.length>=a));)g.lastIndex===o.index&&g.lastIndex++;return p===i.length?!l&&g.test("")||s.push(""):s.push(i.slice(p)),s.length>a?s.slice(0,a):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=c(this),a=null==e?void 0:e[t];return void 0!==a?a.call(e,r,n):i.call(String(r),e,n)},function(t,r){var c=n(i,t,this,r,i!==e);if(c.done)return c.value;var d=a(t),f=String(this),g=o(d,RegExp),b=d.unicode,m=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(h?"g":"y"),$=new g(h?"^(?:"+d.source+")":d,m),x=void 0===r?v:r>>>0;if(0===x)return[];if(0===f.length)return null===s($,f)?[f]:[];for(var y=0,I=0,k=[];I<f.length;){$.lastIndex=h?0:I;var A,S=s($,h?f.slice(I):f);if(null===S||(A=p(l($.lastIndex+(h?I:0)),f.length))===y)I=u(f,I,b);else{if(k.push(f.slice(y,I)),k.length===x)return k;for(var E=1;E<=S.length-1;E++)if(k.push(S[E]),k.length===x)return k;I=y=A}}return k.push(f.slice(y)),k}]}),h)}},t=>{"use strict";t.O(0,[381,855],(()=>{return e=5225,t(t.s=e);var e}));t.O()}]);