File: /home/honghock/www/wp-content/plugins/ninja-tables/assets/blocks/table-block/block.js
/*! For license information please see block.js.LICENSE.txt */
(()=>{"use strict";var e,t={683:()=>{},1020:(e,t,n)=>{var r=n(6540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},1056:()=>{},1324:()=>{},1436:()=>{},1462:(e,t,n)=>{n.r(t),n.d(t,{availableTables:()=>c,customColorCss:()=>l,hasPro:()=>i,tableLibrary:()=>s});var r,o,a=n(6607),i=!(null===(r=window.ninja_table_admin)||void 0===r||!r.hasPro),l=function(e,t,n){if("custom_color"===t.table_color_type){var r="#footable_".concat(e,"_").concat(n),o="\n ".concat(r," {\n background-color: ").concat(t.table_color_primary||"initial"," !important;\n color: ").concat(t.table_color_secondary||"initial"," !important;\n }\n ").concat(r," thead tr.footable-filtering th {\n background-color: ").concat(t.table_search_color_primary||"initial"," !important;\n color: ").concat(t.table_search_color_secondary||"initial"," !important;\n }\n ").concat(r,":not(.hide_all_borders) thead tr.footable-filtering th {\n ").concat(t.table_search_color_border?"border: 1px solid ".concat(t.table_search_color_border," !important;"):"border: 1px solid transparent !important;","\n }\n ").concat(r," .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n background-color: ").concat(t.table_search_color_secondary," !important;\n color: ").concat(t.table_search_color_primary," !important;\n }\n ").concat(r," tr.footable-header, ").concat(r," tr.footable-header th {\n background-color: ").concat(t.table_header_color_primary||"initial"," !important;\n color: ").concat(t.table_color_header_secondary||"initial"," !important;\n }\n ").concat(r," tr.footable-header th {\n border-color: ").concat(t.table_color_header_border||"initial"," !important;\n }\n ").concat(r," tbody tr td {\n border-color: ").concat(t.table_color_border||"initial"," !important;\n }\n ").concat(r," tbody tr:hover {\n background-color: ").concat(t.table_color_primary_hover||"initial"," !important;\n color: ").concat(t.table_color_secondary_hover||"initial"," !important;\n }\n ").concat(r," tbody tr:hover td {\n border-color: ").concat(t.table_color_border_hover||"initial"," !important;\n }\n\n ").concat("yes"===t.alternate_color_status?"\n ".concat(r," tbody tr:nth-child(even) {\n background-color: ").concat(t.table_alt_color_primary||"initial"," !important;\n color: ").concat(t.table_alt_color_secondary||"initial"," !important;\n }\n ").concat(r," tbody tr:nth-child(odd) {\n background-color: ").concat(t.table_alt_2_color_primary||"initial"," !important;\n color: ").concat(t.table_alt_2_color_secondary||"initial"," !important;\n }\n ").concat(r," tbody tr:nth-child(even):hover {\n background-color: ").concat(t.table_alt_color_hover||"initial"," !important;\n }\n ").concat(r," tbody tr:nth-child(odd):hover {\n background-color: ").concat(t.table_alt_2_color_hover||"initial"," !important;\n }\n "):"","\n\n ").concat(r," tfoot .footable-paging {\n background-color: ").concat(t.table_footer_bg||"initial"," !important;\n }\n ").concat(r," tfoot .footable-paging .footable-page.active a {\n background-color: ").concat(t.table_footer_active||"initial"," !important;\n }\n ").concat(r," tfoot .footable-paging td {\n border-color: ").concat(t.table_footer_border||"initial"," !important;\n }\n "),a=document.getElementById("ninja_table_custom_css_".concat(e,"_").concat(n));a||((a=document.createElement("style")).id="ninja_table_custom_css_".concat(e,"_").concat(n),document.head.appendChild(a)),a.innerHTML=o}else{var i=document.getElementById("ninja_table_custom_css_".concat(e,"_").concat(n));i&&(i.innerHTML="")}},s=a.$,c=(null===(o=window.ninja_table_admin)||void 0===o?void 0:o.availableTables)||[]},3293:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"",""]);const a=o},3580:()=>{},4848:(e,t,n)=>{e.exports=n(1020)},5072:(e,t,n)=>{var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function l(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],s=t.base?a[0]+t.base:a[0],c=n[s]||0,u="".concat(s," ").concat(c);n[s]=c+1;var d=l(u),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:u,updater:y(f,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var b=null,h=0;function y(e,t){var n,r,o;if(t.singleton){var a=h++;n=b||(b=c(t)),r=f.bind(null,n,a,!1),o=f.bind(null,n,a,!0)}else n=c(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);i[o].references--}for(var a=s(e,t),c=0;c<n.length;c++){var u=l(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=a}}}},5287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,y={};function _(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function m(){}function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=_.prototype;var g=v.prototype=new m;g.constructor=v,h(g,_.prototype),g.isPureReactComponent=!0;var w=Array.isArray,j=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)j.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:x.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+P(s,0):a,w(i)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(O,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+P(l=e[c],c);s+=T(l,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=T(l=l.value,t,o,u=a+P(l,c++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function E(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},B={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:x};function z(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=_,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.act=z,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)j.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=z,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},6540:(e,t,n)=>{e.exports=n(5287)},6607:(e,t,n)=>{n.d(t,{$:()=>r});var r=function(){return{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"compact",title:"Compact Table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap4:{title:"Bootstrap 4",description:"Apply Twitter Bootstrap 4 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-sm",title:"Small table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap3:{title:"Bootstrap 3",description:"Apply Twitter Bootstrap 3 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-condensed",title:"Condensed table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]}},colors:{ninja_no_color_table:"Default",white:"White",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}}}},8565:(e,t,n)=>{var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="".concat(window.ninja_table_admin.rest.url,"/").concat(t),o={"X-WP-Nonce":window.ninja_table_admin.rest.nonce};-1!==["PUT","PATCH","DELETE"].indexOf(e.toUpperCase())&&(o["X-HTTP-Method-Override"]=e,e="POST");var a={url:r,type:e,data:n,headers:o};return n&&n instanceof FormData&&(a.contentType=!1,a.processData=!1,a.cache=!1),a.data.query_timestamp=Date.now(),new Promise((function(e,t){window.jQuery.ajax(a).then((function(t){return e(t)})).fail((function(e){return t(e.responseJSON)}))}))};const o=function(e){return r("GET",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})};jQuery(document).ajaxSuccess((function(e,t,n){var r=t.getResponseHeader("X-WP-Nonce");r&&(window.ninja_table_admin.rest_nonce=r)}));var a=n(1462),i=n(4848);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=wp.i18n.__,b=wp.components,h=b.PanelBody,y=b.ToggleControl,_=b.RadioControl,m=b.SelectControl,v=b.TabPanel,g=b.Button,w=wp.blockEditor.PanelColorSettings;function j(e){var t,n=e.tableSettings,r=e.updateTableSettings,o=e.tableId,l=e.instanceId,c=function(e,t){r(e,t,!1);var i=d(d({},n),{},f({},e,t));(0,a.customColorCss)(o,i,l)},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Color Settings";return(0,i.jsx)(w,{title:t,initialOpen:!0,colorSettings:e.map((function(e){var t=e.label,r=e.key;return{value:n[r]||"",onChange:function(e){return c(r,e)},label:t,disableCustomColors:!1}}))})};return(0,i.jsx)("div",{className:"ntb-tab-content label-normalize",children:(0,i.jsxs)(h,{title:p("General Settings"),initialOpen:!0,children:[(0,i.jsx)(_,{label:p("Select Color Scheme"),selected:n.table_color_type||"pre_defined_color",options:[{label:p("Pre Defined Scheme"),value:"pre_defined_color"},{label:p("Custom Scheme"),value:"custom_color"}],onChange:function(e){return r("table_color_type",e)}}),"pre_defined_color"===n.table_color_type?(0,i.jsx)(m,{value:n.table_color||"",options:Object.entries((null===(t=(0,a.tableLibrary)()[n.library])||void 0===t?void 0:t.colors)||{}).map((function(e){var t=s(e,2);return{value:t[0],label:t[1]}})),onChange:function(e){return r("table_color",e)}}):(0,i.jsxs)(i.Fragment,{children:[u([{label:p("Background"),key:"table_search_color_primary"},{label:p("Icon"),key:"table_search_color_secondary"},{label:p("Border"),key:"table_search_color_border"}],"Search Bar Colors"),u([{label:p("Background"),key:"table_header_color_primary"},{label:p("Text"),key:"table_color_header_secondary"},{label:p("Border"),key:"table_color_header_border"}],"Table Header Colors"),(0,i.jsx)(v,{className:"ninja-color-tabs",activeClass:"is-active",tabs:[{name:"default",title:p("Default")},{name:"hover",title:p("Hover")}],children:function(e){var t="default"===e.name?"":"_hover";return u([{label:p("Background"),key:"table_color_primary".concat(t)},{label:p("Text"),key:"table_color_secondary".concat(t)},{label:p("Border"),key:"table_color_border".concat(t)}],"Table Body Colors")}}),(0,i.jsx)(y,{label:p("Use Alternate Color Schema for Table Rows"),checked:"yes"===n.alternate_color_status,onChange:function(e){return c("alternate_color_status",e?"yes":"no")}}),"yes"===n.alternate_color_status&&(0,i.jsxs)(i.Fragment,{children:[u([{label:p("Background"),key:"table_alt_2_color_primary"},{label:p("Text"),key:"table_alt_2_color_secondary"},{label:p("Hover Background"),key:"table_alt_2_color_hover"}],"Odd Row Colors"),u([{label:p("Background"),key:"table_alt_color_primary"},{label:p("Text"),key:"table_alt_color_secondary"},{label:p("Hover Background"),key:"table_alt_color_hover"}],"Even Row Colors")]}),u([{label:p("Background"),key:"table_footer_bg"},{label:p("Active"),key:"table_footer_active"},{label:p("Border"),key:"table_footer_border"}],"Footer Colors")]}),!a.hasPro&&(0,i.jsxs)("div",{className:"pro-notice",style:{marginTop:"24px",padding:"16px",backgroundColor:"#f8f9fa",borderRadius:"8px",border:"1px solid #e0e0e0"},children:[(0,i.jsx)("p",{style:{margin:"0 0 12px 0",fontWeight:"500"},children:p("Color customization is a PRO feature. Please upgrade to pro to apply this feature.")}),(0,i.jsx)(g,{isPrimary:!0,target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",children:p("Get Pro")})]})]})})}var x=function(e){return!0===e||"1"===e};function k(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P=wp.components,T=P.CheckboxControl,E=P.RadioControl,A=P.Tooltip,I=P.PanelBody,N=wp.i18n.__;function B(e){var t,n=e.tableSettings,r=e.updateTableSettings,o=(null===(t=(0,a.tableLibrary)()[n.library])||void 0===t?void 0:t.css_libs)||{},l=o[n.css_lib]||{},s=(null==l?void 0:l.styles)||[];return(0,i.jsxs)("div",{className:"ntb-tab-content",children:[(0,i.jsx)(I,{title:N("Select Styling Library"),initialOpen:!0,children:(0,i.jsx)("div",{className:"form_group",children:(0,i.jsx)(E,{selected:n.css_lib,options:Object.entries(o).map((function(e){var t=S(e,2),n=t[0],r=t[1];return{label:(0,i.jsxs)("span",{children:[r.title,(0,i.jsx)(A,{text:N(r.description),children:(0,i.jsx)("span",{className:"dashicons dashicons-info",style:{marginLeft:"5px",fontSize:"16px"}})})]}),value:n}})),onChange:function(e){return r("css_lib",e)}})})}),(0,i.jsx)(I,{title:N("Select Styles"),initialOpen:!0,children:s.length?(0,i.jsx)("div",{className:"form_group label-normalize",children:(0,i.jsx)("div",{className:"styles-checkboxes",children:s.map((function(e){return(0,i.jsx)("div",{className:"style-checkbox-row",children:(0,i.jsx)(T,{label:(0,i.jsxs)("span",{children:[e.title,(0,i.jsx)(A,{text:N(e.description),children:(0,i.jsx)("span",{className:"dashicons dashicons-info",style:{marginLeft:"5px",fontSize:"16px"}})})]}),checked:(n.css_classes||[]).includes(e.key),onChange:function(t){var o=Array.isArray(n.css_classes)?k(n.css_classes):[];t?o.includes(e.key)||o.push(e.key):o=o.filter((function(t){return t!==e.key})),r("css_classes",o)}})},e.key)}))})}):null}),(0,i.jsx)(I,{title:N("Table Features"),initialOpen:!0,children:(0,i.jsxs)("div",{className:"form_group label-normalize",children:[(0,i.jsx)(T,{label:N("Show Table Title"),checked:x(n.show_title),onChange:function(e){return r("show_title",e)}}),(0,i.jsx)(T,{label:N("Show Table Description"),checked:x(n.show_description),onChange:function(e){return r("show_description",e)}}),(0,i.jsx)(T,{label:N("Enable the visitor to filter or search the table"),checked:x(n.enable_search),onChange:function(e){return r("enable_search",e)}}),(0,i.jsx)(T,{label:N("Enable sorting of the table by the visitor"),checked:x(n.column_sorting),onChange:function(e){return r("column_sorting",e)},disabled:!a.hasPro}),(0,i.jsx)(T,{label:N("Hide Header Row"),checked:x(n.hide_header_row),onChange:function(e){return r("hide_header_row",e)}}),(0,i.jsx)(T,{label:N("Hide All Borders"),checked:x(n.hide_all_borders),onChange:function(e){return r("hide_all_borders",e)}}),(0,i.jsx)(T,{label:N("Hide empty items on responsive breakdown"),checked:x(n.hide_on_empty),onChange:function(e){return r("hide_on_empty",e)},disabled:!a.hasPro}),(0,i.jsx)(T,{label:N("Hide Labels on responsive breakdown"),checked:x(n.hide_responsive_labels),onChange:function(e){return r("hide_responsive_labels",e)},disabled:!a.hasPro})]})}),(0,i.jsx)(I,{title:N("Stackable Table Configuration"),initialOpen:!0,children:(0,i.jsxs)("div",{className:"form_group label-normalize",children:[(0,i.jsx)(T,{label:(0,i.jsxs)("span",{children:[N("Enable Stackable Table"),(0,i.jsx)(A,{text:N("With stackable table, You can show your rows as list item. You can target by device width"),children:(0,i.jsx)("span",{className:"dashicons dashicons-info",style:{marginLeft:"5px",fontSize:"16px"}})})]}),checked:"yes"===n.stackable,onChange:function(e){return r("stackable",e?"yes":"no",!1)}}),"yes"===n.stackable&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h4",{className:"ninja_inner_title",children:N("Target Devices")}),["xs","sm","md","lg"].map((function(e){return(0,i.jsx)(T,{label:N("xs"===e?"Mobile":"sm"===e?"Tablet":"md"===e?"Laptop":"Large Devices (iMac)"),checked:(n.stacks_devices||[]).includes(e),onChange:function(t){var o=Array.isArray(n.stacks_devices)?k(n.stacks_devices):[];if(t)o.includes(e)||o.push(e);else{var a=o.indexOf(e);-1!==a&&o.splice(a,1)}r("stacks_devices",o,!1)}},e)})),(0,i.jsx)("h4",{className:"ninja_inner_title",children:N("Stacked Appearance")}),[{key:"hide_stacked_th",label:N("Hide column headings")},{key:"ninja_stacked_no_cell_border",label:N("Hide internal borders")}].map((function(e){return(0,i.jsx)(T,{label:e.label,checked:(n.stacks_appearances||[]).includes(e.key),onChange:function(t){var o=Array.isArray(n.stacks_appearances)?k(n.stacks_appearances):[];if(t)o.includes(e.key)||o.push(e.key);else{var a=o.indexOf(e.key);-1!==a&&o.splice(a,1)}r("stacks_appearances",o,!1)}},e.key)}))]})]})})]})}var z={show_all:"0",perPage:10,pagination_position:"right",paginate_to_top:!1,show_pager:!1,paze_sizes:"10,20,50,100",search_position:"",nt_search_full_width:!1,sorting_type:"",default_sorting:"old_first",sorting_column:"",sorting_column_by:"ASC",expand_type:"default",togglePosition:"first",extra_css_class:"",sticky_first_column:"no",sticky_header:"no",sticky_header_offset:"0",disable_sticky_on_mobile:"no",table_font_family:"inherit",table_font_size:16},F=[{label:"theme-font",value:"inherit"},{label:"cursive",value:"cursive"},{label:"fantasy",value:"fantasy"},{label:"monospace",value:"monospace"},{label:"sans-serif",value:"sans-serif"},{label:"serif",value:"serif"},{label:"system-ui",value:"system-ui"},{label:"ui-monospace",value:"ui-monospace"},{label:"ui-rounded",value:"ui-rounded"},{label:"ui-sans-serif",value:"ui-sans-serif"},{label:"ui-serif",value:"ui-serif"}],H=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],R=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Default",value:""}],M=[{label:"First Column",value:"first",help:"If you use responsive breakdown then the + icon will show at the first visible column"},{label:"Last Column",value:"last",help:"If you use responsive breakdown then the + icon will show at the last visible column"}],D=[{label:"Default",value:"default",help:"Show All the responsive columns data into the responsive drawer"},{label:"Expand First",value:"expandFirst",help:"This will automatically expand the first row of the table when displayed on a device that hides any columns."},{label:"Expand All",value:"expandAll",help:"This will automatically expand all rows of the table when displayed on a device that hides any columns."}],L=wp.i18n.__,$=wp.components,U=$.ToggleControl,V=$.TextControl,G=$.RadioControl,q=$.CheckboxControl,W=$.SelectControl,Y=$.RangeControl,Q=$.ButtonGroup,X=$.Button,J=$.PanelBody;function K(e){var t,n,r,o=e.tableSettings,l=e.updateTableSettings,s=e.tableConfig;return(0,i.jsxs)("div",{className:"ntb-tab-content label-normalize",children:[(0,i.jsxs)(J,{title:L("Pagination Settings"),initialOpen:!0,children:[(0,i.jsx)(U,{label:L("Hide Pagination (Show all data at once)"),checked:"1"==o.show_all,onChange:function(e){return l("show_all",e?"1":"0")}}),"1"!==o.show_all&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{label:L("Pagination Items Per Page"),type:"number",value:o.perPage,onChange:function(e){return l("perPage",e)}}),(0,i.jsx)(G,{label:L("Pagination Position"),selected:o.pagination_position,options:H,onChange:function(e){return l("pagination_position",e)}}),(0,i.jsx)(q,{label:(0,i.jsxs)("span",{children:[L("Scroll to table top for pagination change")," ",!a.hasPro&&(0,i.jsxs)("span",{children:[" (",L("Pro"),")"]})]}),checked:o.paginate_to_top,onChange:function(e){return l("paginate_to_top",e,!1)},disabled:!a.hasPro,help:L("If enabled, table will scroll to top when pagination changes")}),(0,i.jsx)(q,{label:(0,i.jsxs)("span",{children:[L("Show page size changer")," ",!a.hasPro&&(0,i.jsxs)("span",{children:[" (",L("Pro"),")"]})]}),checked:o.show_pager,onChange:function(e){return l("show_pager",e)},disabled:!a.hasPro,help:L("Allows users to select number of items per page")}),o.show_pager&&(0,i.jsx)(V,{label:L("Page Sizes (Comma-separated)"),value:o.paze_sizes,onChange:function(e){return l("paze_sizes",e,!1)},placeholder:"Default: 10,20,50,100"})]})]}),(0,i.jsxs)(J,{title:L("Search Settings"),initialOpen:!1,children:[(0,i.jsx)(G,{label:L("Search Bar Position"),selected:o.search_position,options:R,onChange:function(e){return l("search_position",e)},disabled:!a.hasPro}),(0,i.jsx)(q,{label:(0,i.jsxs)("span",{children:[L("Full-width Search Input")," ",!a.hasPro&&(0,i.jsxs)("span",{children:[" (",L("Pro"),")"]})]}),checked:x(o.nt_search_full_width),onChange:function(e){return l("nt_search_full_width",e)},disabled:!a.hasPro,help:L("Makes the search input take full width")})]}),(0,i.jsxs)(J,{title:L("Sorting Settings"),initialOpen:!1,children:[(0,i.jsxs)(Q,{children:[(null==s||null===(t=s.table)||void 0===t?void 0:t.isCreatedSortable)&&(0,i.jsx)(X,{isSmall:!0,isPressed:"by_created_at"===o.sorting_type,onClick:function(){return l("sorting_type","by_created_at",!1)},children:L("Created at")}),(0,i.jsx)(X,{isSmall:!0,isPressed:"by_column"===o.sorting_type,onClick:function(){return l("sorting_type","by_column",!1)},children:L("By Column")}),(null==s||null===(n=s.table)||void 0===n?void 0:n.isSortable)&&(0,i.jsx)(X,{isSmall:!0,isPressed:"manual_sort"===o.sorting_type,onClick:function(){return l("sorting_type","manual_sort",!1)},children:L("Manual Sort")})]}),"by_created_at"===o.sorting_type&&(0,i.jsx)(W,{label:L("Sort Type"),value:o.default_sorting,options:[{label:L("Newest First"),value:"new_first"},{label:L("Oldest First"),value:"old_first"}],onChange:function(e){return l("default_sorting",e,!1)}}),"by_column"===o.sorting_type&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{label:L("Column"),value:o.sorting_column,options:(null==s||null===(r=s.columns)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.key}})))||[],onChange:function(e){return l("sorting_column",e,!1)}}),(0,i.jsx)(W,{label:L("Sort Order"),value:o.sorting_column_by,options:[{label:L("Ascending"),value:"ASC"},{label:L("Descending"),value:"DESC"}],onChange:function(e){return l("sorting_column_by",e,!1)}})]})]}),(0,i.jsxs)(J,{title:L("Sticky & Row Details"),initialOpen:!1,children:[(0,i.jsx)(G,{label:L("Row Details (Responsive Drawer)"),selected:o.expand_type,options:D,onChange:function(e){return l("expand_type",e,!1)},disabled:!a.hasPro}),(0,i.jsx)(G,{label:L("Toggle Button Position"),selected:o.togglePosition,options:M,onChange:function(e){return l("togglePosition",e,!1)}}),(0,i.jsx)(q,{label:L("Sticky First Column"),checked:"yes"===o.sticky_first_column,onChange:function(e){return l("sticky_first_column",e?"yes":"no",!1)},disabled:!a.hasPro}),(0,i.jsx)(q,{label:L("Sticky Header"),checked:"yes"===o.sticky_header,onChange:function(e){return l("sticky_header",e?"yes":"no",!1)},disabled:!a.hasPro}),"yes"===o.sticky_header&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{label:L("Sticky Offset"),value:o.sticky_header_offset,onChange:function(e){return l("sticky_header_offset",e,!1)},placeholder:"positive or negative number",help:L("Offset in px or jQuery selector for sticky header"),type:"number"}),(0,i.jsx)(q,{label:L("Disable Sticky on Mobile"),checked:"yes"===o.disable_sticky_on_mobile,onChange:function(e){return l("disable_sticky_on_mobile",e?"yes":"no",!1)},disabled:!a.hasPro})]})]}),(0,i.jsxs)(J,{title:L("Font & Custom Class"),initialOpen:!1,children:[(0,i.jsx)(V,{label:L("Extra CSS Class for Table"),value:o.extra_css_class,onChange:function(e){return l("extra_css_class",e,!1)}}),(0,i.jsx)(W,{label:L("Font Family"),value:o.table_font_family,options:F,onChange:function(e){return l("table_font_family",e,!1)}}),(0,i.jsx)(Y,{label:L("Font Size"),value:parseInt(o.table_font_size)||16,onChange:function(e){return l("table_font_size",e,!1)},min:1,max:50})]})]})}var Z=n(6607);function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ne=wp.components,re=ne.Placeholder,oe=ne.SelectControl,ae=ne.Spinner,ie=wp.i18n.__;function le(e){var t,n,r,o,l=e.tableId,s=e.dataSource,c=e.handleTableSelect,u=e.tableHtml,d=e.isLoading,f=e.tableConfig,p=e.formattedColumns,b=e.instanceId,h=e.tableElementId,y=e.wrapperElementId,_=function(){if(null==f||!f.settings)return"";var e=f.settings,t=[];return e.css_lib&&t.push(e.css_lib),("custom_color"===e.table_color_type||e.table_color&&"ninja_no_color_table"!==e.table_color)&&t.push("colored_table"),t.join(" ")},m=function(){if(null==f||!f.settings)return"table foo-table ninja_footable";var e=f.settings,t=["table","foo-table","ninja_footable"];l&&t.push("foo_table_".concat(l)),"custom_color"===e.table_color_type?t.push("inverted","ninja_custom_color"):e.table_color&&"ninja_no_color_table"!==e.table_color&&t.push("inverted",e.table_color),e.pagination_position?t.push("footable-paging-".concat(e.pagination_position)):t.push("footable-paging-right"),x(e.hide_header_row)&&t.push("ninjatable_hide_header_row"),x(e.hide_all_borders)&&t.push("hide_all_borders"),a.hasPro&&t.push("ninja_table_pro"),e.search_position&&t.push("ninja_search_".concat(e.search_position)),x(e.hide_responsive_labels)&&t.push("nt_hide_breakpoint_labels"),x(e.nt_search_full_width)&&t.push("nt_search_full_width"),"semantic_ui"===e.css_lib&&t.push("ui");var n=[];e.css_classes&&Array.isArray(e.css_classes)&&(n=v().filter((function(t){return-1!==e.css_classes.indexOf(t)})));return[].concat(ee(n),t).join(" ")},v=function(){var e,t,n;if(null==f||null===(e=f.settings)||void 0===e||!e.css_lib||null==f||null===(t=f.settings)||void 0===t||!t.library)return[];var r=null===(n=(0,Z.$)()[f.settings.library])||void 0===n||null===(n=n.css_libs)||void 0===n?void 0:n[f.settings.css_lib];return r&&r.styles?r.styles.map((function(e){return e.key})):[]},g=function(){if(null==f||!f.settings)return{};var e=f.settings;return{"--ninja-table-font-family":e.table_font_family||"inherit","--ninja-table-font-size":"".concat(e.table_font_size||16,"px")}};return(0,i.jsx)("div",{className:"ninja-tables-gutenberg-block",children:l?"drag_and_drop"===s?d?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)(ae,{})}):(0,i.jsx)("div",{id:"ninja_table_builder_".concat(l,"_").concat(b),className:"ninja-table-builder-preview",dangerouslySetInnerHTML:{__html:u}}):d?(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)(ae,{})}):f?(0,i.jsxs)("div",{className:"ninja_design_wrapper",children:[(0,i.jsx)("style",{children:"\n\t\t\t\t.striped > tbody > :nth-child(odd) { background: transparent; }\n\t\t\t\t.footable_parent.ninja_device_mobile { width: 480px; margin: 0 auto; }\n\t\t\t\t.footable_parent.ninja_device_tablet { max-width: 768px; padding: 0 20px; margin: 0 auto; }\n\t\t\t\t.footable_parent .footable-header th, .footable_parent .footable-paging {\n\t\t\t\t\tfont-size: var(--ninja-table-font-size);\n\t\t\t\t}\n\t\t\t\t.ninja_footable tbody tr td {\n\t\t\t\t\tfont-size: var(--ninja-table-font-size);\n\t\t\t\t\tfont-family: var(--ninja-table-font-family);\n\t\t\t\t}\n\t\t\t"}),(0,i.jsxs)("div",{className:"design_preview",style:{background:"white",padding:"10px 20px"},children:[x(null==f||null===(t=f.settings)||void 0===t?void 0:t.show_title)&&(null==f||null===(n=f.table)||void 0===n?void 0:n.post_title)&&(0,i.jsx)("h3",{className:"table_title footable_title",children:f.table.post_title}),x(null==f||null===(r=f.settings)||void 0===r?void 0:r.show_description)&&(null==f||null===(o=f.table)||void 0===o?void 0:o.post_content)&&(0,i.jsx)("div",{className:"table_description footable_description",dangerouslySetInnerHTML:{__html:f.table.post_content}}),(0,i.jsx)("div",{id:y,className:"footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent ".concat(_()),children:(0,i.jsxs)("table",{id:h,className:m(),style:g(),children:[(0,i.jsx)("colgroup",{children:null==p?void 0:p.map((function(e,t){return(0,i.jsx)("col",{className:"ninja_column_".concat(t," ").concat(e.breakpoints||"")},t)}))}),(0,i.jsx)("thead",{})]})})]})]}):null:(0,i.jsx)(re,{icon:"grid-view",label:ie("Ninja Tables"),instructions:ie("Select a table from the block settings in the sidebar."),children:(0,i.jsx)(oe,{value:l,options:a.availableTables,onChange:c})})})}var se=n(5072),ce=n.n(se),ue=n(3293),de={insert:"head",singleton:!1};ce()(ue.A,de);ue.A.locals;function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function pe(){pe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var a=n&&n.prototype instanceof f?n:f,i=Object.create(a.prototype);return s(i,"_invoke",function(t,n,r){var o=1;return function(a,i){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=w(l,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new k(o||[])),!0),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function p(){}function b(){}var h={};s(h,a,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(S([])));_&&_!==n&&r.call(_,a)&&(h=_);var m=b.prototype=f.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function n(o,a,i,l){var s=u(e[o],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==fe(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;s(this,"_invoke",(function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}),!0)}function w(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,w(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var a=u(o,t.i,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,d;var i=a.arg;return i?i.done?(n[t.r]=i.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function j(e){this.tryEntries.push(e)}function x(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function k(e){this.tryEntries=[[-1]],e.forEach(j,this),this.reset(!0)}function S(t){if(null!=t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(fe(t)+" is not iterable")}return p.prototype=b,s(m,"constructor",b),s(b,"constructor",p),p.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},t.awrap=function(e){return{__await:e}},v(g.prototype),s(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new g(c(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(m),s(m,l,"Generator"),s(m,a,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){i.type="throw",i.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a[4],l=this.prev,s=a[1],c=a[2];if(-1===a[0])return r("end"),!1;if(!s&&!c)throw Error("try statement without catch or finally");if(null!=a[0]&&a[0]<=l){if(l<s)return this.method="next",this.arg=e,r(s),!0;if(l<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var a=o?o[4]:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),x(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;x(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:S(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var _e=!1,me=function(){var e,t=(e=pe().mark((function e(t){var n,r,o,a,i,l;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_e){e.next=3;break}return ve(t),e.abrupt("return");case 3:(r=(null===(n=window.ninja_table_admin)||void 0===n?void 0:n.preview_required_scripts)||[]).filter((function(e){return e.endsWith(".css")})).forEach((function(e){if(!document.querySelector('link[href="'.concat(e,'"]'))){var t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)}})),o=r.filter((function(e){return e.endsWith(".js")})).sort((function(e,t){return e.includes("ninja-tables-footable.js")?1:t.includes("ninja-tables-footable.js")?-1:0})),a=be(o),e.prev=7,l=pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.value,!document.querySelector('script[src="'.concat(t,'"]'))){e.next=3;break}return e.abrupt("return",1);case 3:return e.next=5,new Promise((function(e){var n=document.createElement("script");n.src=t,n.async=!1,n.onload=e,n.onerror=function(){console.error("Failed to load: ".concat(t)),e()},document.head.appendChild(n)}));case 5:case"end":return e.stop()}}),e)})),a.s();case 10:if((i=a.n()).done){e.next=16;break}return e.delegateYield(l(),"t0",12);case 12:if(!e.t0){e.next=14;break}return e.abrupt("continue",14);case 14:e.next=10;break;case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(7),a.e(e.t1);case 21:return e.prev=21,a.f(),e.finish(21);case 24:_e=!0,ve(t);case 26:case"end":return e.stop()}}),e,null,[[7,18,21,24]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){ye(a,r,o,i,l,"next",e)}function l(e){ye(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;void 0!==window.FooTable&&void 0!==window.ninjaTableApp?e(!0):t<10?setTimeout((function(){return ve(e,t+1)}),300):console.warn("Scripts loaded but FooTable or ninjaTableApp still missing.")},ge=function(e,t,r,o,a,i,l,s,c){if(e&&t&&(t&&e)){if("object"===("undefined"==typeof FooTable?"undefined":fe(FooTable))){var u=FooTable.get("#".concat(r));u&&u.destroy()}var d=jQuery("#".concat(r));d.find("thead,tbody,tfoot").remove(),d.append(o);var f=a||i;!function(e,t,n,r){if(e){var o=window.ninjaTableApp,a=jQuery("#".concat(t));x(n.hide_on_empty)&&a.on("expanded.ft.row",(function(e,t,n){a.find("table.footable-details td:empty").parent().addClass("nt_has_hide")}));var i=r(n);o.initTable(a,i)}}(e,r,f,l),(0,n(1462).customColorCss)(s,f,c)}},we=function(e,t,n,r){if(!e)return{};var o=n||e.settings||{},a=e.columns||[],i={};a.forEach((function(e,t){i["ninja_column_".concat(t)]={"text-align":e.textAlign,width:"".concat(e.width,"px")}}));var l={default_sorting:o.default_sorting||"old_first",defaut_filter:!1,defaut_filter_column:null,expandAll:"expandAll"===o.expand_type,expandFirst:"expandFirst"===o.expand_type,filtering:x(o.enable_search),i18n:{},use_parent_width:!1,sorting:x(o.column_sorting),togglePosition:o.togglePosition},s={toggleColumn:o.togglePosition,cascade:!0,useParentWidth:!1,columns:a,expandFirst:"expandFirst"===o.expand_type,expandAll:"expandAll"===o.expand_type,empty:"",filtering:{enabled:x(o.enable_search)},paging:{enabled:"1"!==o.show_all&&1!==o.show_all,size:parseInt(o.perPage||10),container:"#".concat(r," .paging-ui-container")},sorting:{enabled:x(o.column_sorting)}};return{columns:t.map((function(e){return Object.assign({},e)})),custom_css:i,settings:l,render_type:"legacy_table",instance_name:"ninja_table_instance_0",table_id:e.table_id||"",title:"",init_config:s}};function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=je(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==je(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Pe=wp.blockEditor||wp.editor,Te=Pe.InspectorControls,Ee=Pe.useBlockProps,Ae=wp.components,Ie=Ae.SelectControl,Ne=Ae.TabPanel,Be=wp.i18n.__,ze=wp.element,Fe=ze.useState,He=ze.useEffect;var Re=wp.i18n.__;(0,wp.blocks.registerBlockType)("ninja-tables/guten-block",{title:Re("Ninja Tables"),icon:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 321.98 249.25",children:[(0,i.jsx)("path",{class:"A",d:"M312.48 249.25H9.5a9.51 9.51 0 0 1-9.5-9.5V9.5A9.51 9.51 0 0 1 9.5 0h303a9.51 9.51 0 0 1 9.5 9.5v230.25a9.51 9.51 0 0 1-9.52 9.5zM9.5 7A2.53 2.53 0 0 0 7 9.5v230.25a2.53 2.53 0 0 0 2.5 2.5h303a2.53 2.53 0 0 0 2.5-2.5V9.5a2.53 2.53 0 0 0-2.5-2.5z"}),(0,i.jsx)("path",{class:"A",d:"M75 44.37h8.75v202.7H75z"}),(0,i.jsx)("path",{class:"B",d:"M129.37 44.37"}),(0,i.jsx)("path",{class:"C",d:"M249.37 44.37"}),(0,i.jsx)("path",{class:"A",d:"M6.16.5h309.66a6 6 0 0 1 6 6v43.8a.63.63 0 0 1-.63.63H.8a.63.63 0 0 1-.63-.63V6.5a6 6 0 0 1 6-6zM4.88 142.84h312.6v15.1H4.88zM22.47 90h28.27v16.97H22.47zm89.13 0h165.67v16.97H111.6zM22.47 190h28.27v16.97H22.47zm89.13 0h165.67v16.97H111.6z"})]}),category:"widgets",keywords:[Re("Ninja Tables"),Re("Gutenberg Table"),Re("Table"),Re("Data Tables"),Re("ninja-tables-gutenberg-block")],attributes:{tableId:{type:"string",default:""},dataSource:{type:"string",default:""},activeDesign:{type:"string",default:"styling"},tableSettings:{type:"object",default:{}}},supports:{customClassName:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.tableId,l=t.dataSource,s=t.activeDesign,c=Ce(Fe(""),2),u=c[0],d=c[1],f=Ce(Fe((function(){return Math.random().toString(36).substring(2,10)})),1)[0],p=Ce(Fe(null),2),b=p[0],h=p[1],y=Ce(Fe(""),2),_=y[0],m=y[1],v=Ce(Fe([]),2),g=v[0],w=v[1],x=Ce(Fe(!1),2),k=x[0],S=x[1],C=Ce(Fe(!1),2),O=C[0],P=C[1],T=Ce(Fe(!1),2),E=T[0],A=T[1],I="footable_".concat(r,"_").concat(f),N="footable_parent_".concat(r,"_").concat(f),F=Ee(),H=window.ninja_table_admin?window.ninja_table_admin.availableTables:[],R=z,M=null!=b&&b.settings?ke(ke({},R),b.settings):R;He((function(){me(P)}),[]),He((function(){r&&"drag_and_drop"===l?L(r):r&&$(r)}),[r]),He((function(){if(O&&E&&_){ge(O,E,I,_,null,M,(function(e){return we(b,g,e,N)}),r,f)}}),[O,E,_]);var D=function(e){var t=H.find((function(t){return t.value==e}));n({tableId:e,dataSource:(null==t?void 0:t.data_source)||""}),q(e,M,f)},L=function(e){S(!0),o("tables/".concat(e,"/drag_and_drop_html")).then((function(e){d(e.html),S(!1)})).catch((function(e){S(!1)}))},$=function(e){S(!0),o("settings/".concat(e)).then((function(t){h(t),V(t.columns),U(e)})).catch((function(e){console.error("Error fetching config:",e),S(!1)}))},U=function(e){o("tables/".concat(e,"/table-inner-html")).then((function(e){m(e),A(!0),S(!1)})).catch((function(e){console.error("Error loading table:",e),S(!1)}))},V=function(e){if(e){var t=e.map((function(e,t){return{name:e.key,title:e.name,breakpoints:e.breakpoints,type:e.data_type,sortable:!0,classes:["ninja_column_"+t],visible:"hidden"!=e.breakpoints}}));w(t)}},G=function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=ke(ke({},M),{},Se({},e,t));b&&h(ke(ke({},b),{},{settings:a})),n({tableSettings:a});var i=ke(ke({},b),{},{settings:ke(ke({},b.settings),{},Se({},e,t))});h(i),o&&setTimeout((function(){ge(O,E,I,_,a,M,(function(e){return we(b,g,e,N)}),r,f)}),50)},q=function(e,t,n){return(0,a.customColorCss)(e,t,n),function(t){(0,a.customColorCss)(e,t,n)}};return(0,i.jsxs)("div",ke(ke({},F),{},{children:[(0,i.jsxs)(Te,{children:[(0,i.jsx)("div",{style:{padding:"0 15px"},children:(0,i.jsx)(Ie,{label:Be("Select Table"),value:r,options:H,onChange:D})}),r&&b&&"drag_and_drop"!==l&&(0,i.jsx)(Ne,{className:"ninja-tables-design-tabs",activeClass:"is-active",tabs:[{name:"styling",title:Be("Styling"),className:"tab-styling"},{name:"colors",title:Be("Colors"),className:"tab-colors"},{name:"other",title:Be("Other"),className:"tab-other"}],onSelect:function(e){return n({activeDesign:e})},initialTabName:s,children:function(e){switch(e.name){case"styling":return(0,i.jsx)(B,{tableSettings:M,updateTableSettings:G,instanceId:f});case"colors":return(0,i.jsx)(j,{tableSettings:M,updateTableSettings:G,tableId:r,instanceId:f});case"other":return(0,i.jsx)(K,{tableSettings:M,updateTableSettings:G,tableConfig:b,instanceId:f});default:return null}}})]}),(0,i.jsx)(le,{tableId:r,dataSource:l,handleTableSelect:D,tableHtml:u,isLoading:k,tableConfig:b,formattedColumns:g,instanceId:f,tableElementId:I,wrapperElementId:N})]}))},save:function(e){var t=e.attributes,n=t.tableId,r=t.dataSource;return n?"drag_and_drop"===r?'[ninja_table_builder id="'.concat(n,'"]'):'[ninja_tables id="'.concat(n,'"]'):null}})}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,o,a]=e[u],l=!0,s=0;s<n.length;s++)(!1&a||i>=a)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(l=!1,a<i&&(i=a));if(l){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,o,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={391:0,895:0,266:0,332:0,128:0,214:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,l,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(s)var u=s(r)}for(t&&t(n);c<i.length;c++)a=i[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.nc=void 0,r.O(void 0,[895,266,332,128,214],(()=>r(8565))),r.O(void 0,[895,266,332,128,214],(()=>r(3580))),r.O(void 0,[895,266,332,128,214],(()=>r(1056))),r.O(void 0,[895,266,332,128,214],(()=>r(1324))),r.O(void 0,[895,266,332,128,214],(()=>r(683)));var o=r.O(void 0,[895,266,332,128,214],(()=>r(1436)));o=r.O(o)})();