/*! For license information please see 9908.js.LICENSE.txt */
(globalThis.webpackChunkb_blocks=globalThis.webpackChunkb_blocks||[]).push([[9908],{9908:(n,t,i)=>{var o,e;o=[i(428),i(5668),i(7837)],void 0===(e=function(n){return function(n){"use strict";var t=n.fn.dataTable;return n.extend(t.ext.buttons,{colvis:function(n,t){var i=null,o={extend:"collection",init:function(n,t){i=t},text:function(n){return n.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",closeButton:!1,buttons:[{extend:"columnsToggle",columns:t.columns,columnText:t.columnText}]};return n.on("column-reorder.dt"+t.namespace,(function(){n.button(null,n.button(null,i).node()).collectionRebuild([{extend:"columnsToggle",columns:t.columns,columnText:t.columnText}])})),o},columnsToggle:function(n,t){return n.columns(t.columns).indexes().map((function(n){return{extend:"columnToggle",columns:n,columnText:t.columnText}})).toArray()},columnToggle:function(n,t){return{extend:"columnVisibility",columns:t.columns,columnText:t.columnText}},columnsVisibility:function(n,t){return n.columns(t.columns).indexes().map((function(n){return{extend:"columnVisibility",columns:n,visibility:t.visibility,columnText:t.columnText}})).toArray()},columnVisibility:{columns:void 0,text:function(n,t,i){return i._columnText(n,i)},className:"buttons-columnVisibility",action:function(n,t,i,o){var e=t.columns(o.columns),l=e.visible();e.visible(void 0!==o.visibility?o.visibility:!(l.length&&l[0]))},init:function(n,t,i){var o=this,e=n.column(i.columns);t.attr("data-cv-idx",i.columns),n.on("column-visibility.dt"+i.namespace,(function(t,i,l,c){e.index()!==l||i.bDestroying||i.nTable!=n.settings()[0].nTable||o.active(c)})).on("column-reorder.dt"+i.namespace,(function(){i.destroying||1===n.columns(i.columns).count()&&(e=n.column(i.columns),o.text(i._columnText(n,i)),o.active(e.visible()))})),this.active(e.visible())},destroy:function(n,t,i){n.off("column-visibility.dt"+i.namespace).off("column-reorder.dt"+i.namespace)},_columnText:function(n,i){if("string"==typeof i.text)return i.text;var o=n.column(i.columns).title(),e=n.column(i.columns).index();return o=o.replace(/\n/g," ").replace(/<br\s*\/?>/gi," ").replace(/<select(.*?)<\/select\s*>/gi,""),o=t.Buttons.stripHtmlComments(o),o=t.util.stripHtml(o).trim(),i.columnText?i.columnText(n,e,o):o}},colvisRestore:{className:"buttons-colvisRestore",text:function(n){return n.i18n("buttons.colvisRestore","Restore visibility")},init:function(n,t,i){n.columns().every((function(){var n=this.init();void 0===n.__visOriginal&&(n.__visOriginal=this.visible())}))},action:function(n,t,i,o){t.columns().every((function(n){var t=this.init();this.visible(t.__visOriginal)}))}},colvisGroup:{className:"buttons-colvisGroup",action:function(n,t,i,o){t.columns(o.show).visible(!0,!1),t.columns(o.hide).visible(!1,!1),t.columns.adjust()},show:[],hide:[]}}),t}(n,window,document)}.apply(t,o))||(n.exports=e)}}]);